body {
    margin: 0;
    background-color: #7399ae;
    font-family: "fractul-variable", sans-serif;
}

.navbar {
  background-color: #506a7b;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, links right */
  padding: 0 20px; /* desktop horizontal padding */
}

.navbar2 {
  background-color: #7a5357;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, links right */
  padding: 0 20px; /* desktop horizontal padding */
}

.logo img {
  height: 100px; /* desktop logo size */
  margin-left: 15%; /* optional offset */
  padding-top: 20px; /* add top spacing */
}

.logo2 img {
  height: 75px; /* desktop logo size */
  margin-left: 25%; /* optional offset */
  padding-top: 20px; /* add top spacing */
  padding-bottom: 20px
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px; /* space between links */
  margin: 0;
  padding: 0;
}

.nav-links2 {
  list-style: none;
  display: flex;
  gap: 20px; /* space between links */
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f2f6f7;
  text-decoration: none;
  padding: 50px; /* desktop padding */
  display: block;
  text-align: center;
  font-family: "fractul-variable", sans-serif;
  font-variation-settings: 'wght' 700;
  font-size: larger;
}

.nav-links2 a {
  color: #f7f1f2;
  text-decoration: none;
  padding: 50px; /* desktop padding */
  display: block;
  text-align: center;
  font-family: "fractul-variable", sans-serif;
  font-variation-settings: 'wght' 700;
  font-size: larger;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo img {
    height: 70px; /* shrink logo */
    padding-top: 10px; /* less top padding */
  }

  .logo2 img {
    height: 52.5px; /* shrink logo */
    padding-top: 10px; /* less top padding */
    padding-bottom: 10px
  }

  .nav-links a {
    padding: 20px 10px; /* smaller clickable area for mobile */
    font-size: medium; /* smaller text */
  }

  .nav-links {
    gap: 10px; /* smaller gap between links */
    flex-wrap: wrap; /* allow wrapping if needed */
  }
  
    .nav-links2 a {
    padding: 20px 10px; /* smaller clickable area for mobile */
    font-size: medium; /* smaller text */
  }

  .nav-links2 {
    gap: 10px; /* smaller gap between links */
    flex-wrap: wrap; /* allow wrapping if needed */
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 50px;
    padding-top: 5px;
  }

  .logo2 img {
    height: 35px;
    padding-top: 5px;
    padding-bottom: 5px
  }

  .nav-links a {
    padding: 10px 5px;
    font-size: 14px;
  }

  .nav-links {
    gap: 5px;
  }
  
  .nav-links2 a {
    padding: 10px 5px;
    font-size: 14px;
  }

  .nav-links2 {
    gap: 5px;
  }
}

/* Layout wrapper */
.layout {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    gap: 20px;   /* space between sidebar and main content */
}

.sidebar {
    width: 200px;
    margin: 0;
    padding: 0;   /* flush */
}

.sidebar-box {
    background-color: #506a7b;
    color: #f2f6f7;
    padding: 12px;       /* text inside box padded */
}

.sidebar-box img {
    display: block;   /* stack images */
    height: 42px;
    margin: 0;        /* remove gaps */
    padding: 0;
}


.main {
    flex: 1; /* takes the rest of the width */
}

.home-content {
    background-color: #a8b5bd;
    margin-top: 20px;
    margin-right: 20px;
    padding: 20px;
}

.ref-content {
    background-color: #a8b5bd;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
}

.ref-content2 {
    background-color: #be9095;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
}

h1, h2, h3 {
    text-align: center;
}

.john-container {
  display: flex;
  justify-content: center;
}

.flex-john {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 25%;   /* scales down with container */
  height: 25%;      /* keeps aspect ratio */
}

.flex-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 50%;   /* scales down with container */
  height: 25%;      /* keeps aspect ratio */
}

@media (max-width: 768px) {
  .flex-title {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 75%;   /* scales down with container */
    height: 25%;      /* keeps aspect ratio */
    }
  }

  .color-row {
    display: flex;
    width: 100%;
    height: 75px; /* adjust height as desired */
  }
  .block {
    flex: 1;
  }
  .color1 { background-color: #eabd83; } /* light tan */
  .color2 { background-color: #3b241c; } /* dark brown */
  .color3 { background-color: #c9ae9b; } /* beige */
  .color4 { background-color: #955a25; } /* warm brown */
  .color5 { background-color: #3cc4a0; } /* turquoise */
  .color6 { background-color: #a41c1c; } /* red */

div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

div.gallery-item {
  margin: 5px;
  background-color: #7a848a;
  width: calc(25% - 20px);
}


div.gallery-item img {
  width: 100%;
  height: auto;
}

div.gallery-item div.desc {
  padding: 15px;
  text-align: center;
  font-variation-settings: 'wght' 600;
}

@media only screen and (max-width: 768px) {
  div.gallery-item {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 480px) {
  div.gallery-item {
    width: calc(100% - 20px);
  }


}