html, body {
  height: auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;   /* prevent sideways scroll */
  overflow-y: auto;     /* allow vertical scroll */
  background-image: url(images/WEBSITE_sansheader.PNG);
  background-size: contain; /* ensure the background image covers the entire area */
  background-repeat: no-repeat; /* prevent the background image from repeating */
  background-position: center; /* center the background image */
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;     /* Stack children vertically */
  align-items: center;        /* Center horizontally */
  position: relative; /* Allow absolute positioning of children */
  min-height: 100svh;
}

@supports not (height: 100svh) {
  .main-wrapper {
    min-height: calc(var(--vh, 1vh) * 100); /* fallback for older mobile browsers */
  }
}

@media (min-width: 1024px) {
  .main-wrapper {
    min-height: 100vh; /* Ensure it takes full height on larger screens */
  }
}

/*ICON LINKS SECTION*/
.icon-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.icon-row {
  display: flex;
  gap: 20%;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  line-height: 0;
}

.icon-row h1 a {
    text-decoration: none;
    color: black;
    font-family: "Gabriela", serif;

  }

  .icon-row h1 a:hover {
    color: rgb(67, 131, 59);
  }

/* On desktop, constrain icon-row to same width as slideshow */
@media (min-width: 1024px) {
  .icon-row {
    width: 33.33%;
    line-height: 0;
  }

  .icon-row a {
  margin: 0;
  display: inline-block; /* keep them inline but allow box model */
  line-height: 0;        /* remove line height */
}

  .icon-row img {
    width: 7vw; /* smaller on desktop to match scale */
  }

  .icon-row h1 a {
    text-decoration: none;
    font-family: "Gabriela", serif;

  }

  .main-wrapper {
      padding-top: 6%;
  }
}
/* END ICON LINKS */

/* LOGO SECTION */
/* Default: show mobile logo, hide desktop */
#logo-mobile {
  width: 100vw;        /* full viewport width */
  max-width: 100%;
  height: auto;
  display: block;
  padding: 0;
  margin-bottom: auto;
  object-fit: contain;
  line-height: 0;
}

/* Hide desktop version on mobile */
#logo-desktop {
  display: none;
}

/* On larger screens: hide mobile logo, show desktop */
@media (min-width: 1024px) {
  #logo-mobile {
    display: none;
  }

 #logo-desktop {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 33.33%; /* fixed width to ensure visibility */
  height: auto;
  display: block;     /* make sure it’s visible */
  object-fit: contain;
  z-index: 2;
}
}
/* END LOGO SECTION */

/* SLIDESHOW SECTION */
/* Slideshow container */
* {
  box-sizing: border-box;
}

.slideshow-container {
  width: 100%;
  height: auto;
  position: relative;
  
}

/* For larger screens (e.g., desktops, tablets) */
@media (min-width: 1024px) {
  .slideshow-container {
    width: 30%;
  }

  .mySlides img {
    margin: -10px auto; /* Adjust margin for larger screens */
  }
}

.mySlides {
  position: relative;   /* required for absolute children to work logically */
}

/* Center the images in the slider and apply object-fit */
.mySlides img {
  display: block;
  width: 100%; /* Make the image scale with the container's width */
  height: auto; /* Make the image scale with the container's height */
  object-fit: cover; /* Ensures the image covers the container while maintaining aspect ratio */
}

/* Show the first slide by default */
.mySlides:first-child {
  display: block;
}

.mySlides p {
  color: black;
  font-size: 0.8em;
  font-family: "Lucida Console", "Courier New", monospace;
  font-weight: 100;
}

/* Hide the rest of the slides */
.mySlides:not(:first-child) {
  display: none;
}
/* END SLIDESHOW SECTION */

/* Shared button styles */

div#nav-container {
  height: 75px;
  display: block;
}

.nav-button {
  all: unset;
  position: absolute;
  border: none;
  outline: none;
  box-shadow: none;
  width: 75px;
  height: 75px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  bottom: 1px;
  z-index: 1;
  transition: background-color 0.3s ease;
  float:none;
}

.nav-button img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Hover state */
.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

/* Mobile Layout */
.first {
  left: 0%;
}

.prev {
  left: 30%;
  transform: translateX(-50%);
}

.random {
  left: 50%;
  transform: translateX(-50%);
}

.next {
  left: 70%;
  transform: translateX(-50%);
}

.last {
  left: 100%;
  transform: translateX(-100%);
}



@media (min-width: 768px) {
  .nav-button {
  all: unset;
  position: absolute;
  border: none;
  outline: none;
  box-shadow: none;
  width: 85px;
  height: 85px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  bottom: 1px;
  z-index: 1;
  transition: background-color 0.3s ease;
  float:none;
}
}

/* Desktop Layout */
@media (min-width: 768px) {
  .first {
    left: calc((100% - 33.33%) / 2 + -20px);
  }

  .prev {
    left: calc((100% - 33.33%) / 2 + 100px);
  }

  .random {
    left: 50%;
    transform: translateX(-50%);
  }

  .next {
    right: calc((100% - 33.33%) / 2 + 100px);
  }

  .last {
    right: calc((100% - 33.33%) / 2 + -20px);
  }
}

/* End Shared button styles */

/* Caption text */
.text {
  color: black;
  font-size: 1.5em;
  font-family: "Gabriela", serif;
  font-weight: 100;
  text-align: center;
  text-decoration: none;
  position: relative; /* <- important: remove absolute positioning */
}

@media (max-width: 1023px) {
  .text {
    box-sizing: border-box; /* Make sure padding doesn’t overflow container */
  }

  
  /* Remove margins on child elements */
  .text p,
  .text h3 {
    margin: 0;
    padding: 0;
    font-family: "Gabriela", serif;
  }
}

/* Number text (1/3 etc) */
.numbertext {
  color: black;
  font-size: 1em;
  font-family: "Lucida Console", "Courier New", monospace;
  font-weight: 100;
  /* padding: 8px 12px; */
  position: absolute;
  top: 0px;
  left: -100px; /* Position the numbertext at the top left */
  z-index: 2; /* Ensure it's above the image and not hidden */
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  background-color: #bbb;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 0s;
}

@keyframes fade {
  from {
    opacity: 0.1;
  }
  to {
    opacity: 1;
  }
}

/* ========== ABOUT PAGE STYLES ========== */

.about-wrapper {
  min-height: 100vh;
  width: 100%;
  background-color: #fdfdf5;
  background-image: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

/* About Page Header */
.about-wrapper header {
  position: relative;
  text-align: center;
  z-index: 1; /* Ensures the header text is above other content */
}


.about-wrapper header h1 {
  font-size: 2.5em;
  font-family: "Gabriela", serif;
  color: black;
  z-index: 2; /* Ensures h1 is always above other content */
}


/* Main */
.about-wrapper main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8%; /* slightly narrower padding */
  margin-top: 0; /* removed excess top margin */
  background-image: none;

}

.about-wrapper section {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.about-wrapper h2 {
  font-size: 1.75em;
  font-family: "Gabriela", serif;
  color: black;
}

.about-wrapper p {
  font-size: 1.05em;
  font-family: "Gabriela", serif;
  font-weight: 100;
  color: black;
  margin: 0 auto 1.5em; /* reduced bottom spacing */
}

/* Footer */
.about-wrapper footer {
  text-align: center;
  padding: 1em 0; /* reduced footer padding */
  font-size: 0.9em;
  font-family: "Gabriela", serif;
  font-weight: 100;
  color: black;
  margin-top: auto;
}

/* Image spacing reduced */
.about-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* LOGO SECTION */
#about-logo {
  width: 100vw;        /* full viewport width */
  max-width: 100%;
  height: auto;
  display: block;
  padding: 0;
  margin-bottom: auto;
  object-fit: contain;
  line-height: 0;
}

/* On larger screens: hide mobile logo, show desktop */
@media (min-width: 1024px) {

 #about-logo {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 33.33%; /* fixed width to ensure visibility */
  height: auto;
  display: block;     /* make sure it’s visible */
  object-fit: contain;
  z-index: 2;
}
}
/* END LOGO SECTION */

/* Responsive Tweaks */
@media (min-width: 768px) {
  .about-wrapper header h1 {
    font-size: 2em;
    margin-top: 120px;
  }

  .about-wrapper h2 {
    font-size: 1.5em;
  }

  .about-wrapper p {
    font-size: 1em;
  }

  .about-wrapper main {
    padding: 0 5%;
  }
}

/* End ABOUT PAGE STYLES */

/* ========== CONTACT PAGE STYLES ========== */
/* Contact Page Wrapper */
.contact-wrapper {
  min-height: 100vh;
  width: 100%;
  background-color: #fdfdf5;
  background-image: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

/* Header */
.contact-wrapper header {
  text-align: center;
  padding: 2% 2%; /* Reduced padding to keep it compact */
  margin-bottom: 1em;
}

.contact-wrapper header h1 {
  font-size: 2.25em;
  margin: 0;
  font-family: "Gabriela", serif;
  color: black;
}

/* Main Content */
.contact-wrapper main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8%; /* Adjusted padding */
  margin-top: 0;
}

.contact-wrapper section {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-bottom: 2em;
}

.contact-wrapper h2 {
  font-size: 1.75em;
  margin-bottom: 0.5em;
  font-family: "Gabriela", serif;
  color: black;
}

.contact-wrapper p {
  font-size: 1.05em;
  line-height: 1.5;
  font-family: "Gabriela", serif;
  font-weight: 100;
  color: black;
  margin: 0 auto 1.5em;
}

/* Footer */
.contact-wrapper footer {
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
  font-family: "Gabriela", serif;
  font-weight: 100;
  color: black;
  margin-top: auto;
}

/* LOGO SECTION */
#contact-logo {
  width: 100vw;        /* full viewport width */
  max-width: 100%;
  height: auto;
  display: block;
  padding: 0;
  margin-bottom: auto;
  object-fit: contain;
  line-height: 0;
}

/* On larger screens: hide mobile logo, show desktop */
@media (min-width: 1024px) {

 #contact-logo {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 33.33%; /* fixed width to ensure visibility */
  height: auto;
  display: block;     /* make sure it’s visible */
  object-fit: contain;
  z-index: 2;
}
}
/* END LOGO SECTION */

.contact-wrapper img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  object-fit: contain;
  margin: 0 auto;
}

/* Responsive adjustments for mobile */
@media (min-width: 768px) {
  .contact-wrapper main {
    padding: 0 5%;
  }

  .contact-wrapper header h1 {
    font-size: 2em;
    margin-top: 320px;
  }

  .contact-wrapper h2 {
    font-size: 1.5em;
  }

  .contact-wrapper p {
    font-size: 1em;
  }
  
}
/* End CONTACT PAGE STYLES */
