/* --------------------------------------------------
   URW Palladio L – self-hosted webfont kit
--------------------------------------------------- */
@font-face {
  font-family: "URW Palladio L";
  src: url("../fonts/palladio/p052-roman-webfont.woff2") format("woff2"),
       url("../fonts/palladio/p052-roman-webfont.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "URW Palladio L";
  src: url("../fonts/palladio/p052-italic-webfont.woff2") format("woff2"),
       url("../fonts/palladio/p052-italic-webfont.woff")  format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "URW Palladio L";
  src: url("../fonts/palladio/p052-bold-webfont.woff2") format("woff2"),
       url("../fonts/palladio/p052-bold-webfont.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "URW Palladio L";
  src: url("../fonts/palladio/p052-bolditalic-webfont.woff2") format("woff2"),
       url("../fonts/palladio/p052-bolditalic-webfont.woff")  format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------
   GLOBAL RESET & BASIC STYLES
--------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "URW Palladio L", Georgia, "Times New Roman", serif;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background-color: #111;
  color: #fff;
}

/* --------------------------------------------------
   SECTION STYLING FOR SPLASH, PURPOSE & OUTRO
--------------------------------------------------- */
.splash-section,
.purpose-section,
.outro-section {
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  scroll-snap-align: start;
  background: #222;
  color: #fff;
}

/* --------------------------------------------------
   SECTION CONTAINER
--------------------------------------------------- */
.section-container {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* --------------------------------------------------
   DEFAULT SECTION CONTENT (used by Splash & Outro)
--------------------------------------------------- */
.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; 
  max-width: 800px;
  margin: 0 auto;
}

.section-content h1 {
  font-size: 2.65rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  /* font-weight: normal; */
}

.section-content p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.section-footer {
  text-align: center;
  padding: 2rem 0;
}

.contact-info a {
  color: #9ecfff;
  text-decoration: none;
  font-size: 0.8rem;
}

.contact-info a:hover {
  text-decoration: underline;
}

copyright,
.copyright {
  font-size: 0.8rem;
  color: #ccc;
}

/* --------------------------------------------------
   PURPOSE SECTION CONTENT
--------------------------------------------------- */
.purpose-content {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Vertically center the content */
  align-items: flex-start;
}

.purpose-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: left;
  width: 100%;
}

.byline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purpose-statement {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
  font-size: 1.1rem;
  white-space: normal;
  margin-bottom: 1.5rem;
  hyphens: auto;
}

.outro-section .mission-statement {
  width: 90%;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.6;
  font-size: 1.1rem;
  white-space: normal;
  hyphens: none;
}

/* --------------------------------------------------
   IMAGE GALLERY SECTIONS
--------------------------------------------------- */
#gallery {
  background-color: #000;
}

.image-section {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.image-section img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --------------------------------------------------
   CAPTIONS & TOGGLE STYLING
--------------------------------------------------- */
/* Base style for caption container (desktop):
   Anchored to the lower right */
.caption-container {
  white-space: pre-wrap;
  position: absolute;
  bottom: calc(2% + env(safe-area-inset-bottom, 0));
  right: 2%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  max-width: 90%;
  display: none;
  transition: opacity 0.3s ease;
}

.caption-container.visible {
  display: block;
}

.caption-toggle {
  position: absolute;
  bottom: calc(2% + env(safe-area-inset-bottom, 0));
  right: 2%;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #fff;
  z-index: 10;
}

.caption-toggle:hover {
  opacity: 0.8;
}

/* --------------------------------------------------
  ENABLE AUTO CAPTIONS TOGGLE ON SPLASH PAGE
--------------------------------------------------- */
.auto-caption-toggle {
  text-align: center;
  margin: 0.5rem 0;  /* Minimal spacing so it's close to the footer */
}

.auto-caption-toggle .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.auto-caption-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.auto-caption-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.2s;
  border-radius: 20px;
}

.auto-caption-toggle .slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
}

.auto-caption-toggle input:checked + .slider {
  background-color: #66bb6a;
}

.auto-caption-toggle input:checked + .slider:before {
  transform: translateX(20px);
}

.auto-caption-toggle .toggle-label {
  vertical-align: middle;
  font-size: 0.9rem;
  color: #fff;
}

/* --------------------------------------------------
  BACK TO TOP BUTTON ON OUTRO PAGE
--------------------------------------------------- */

/* Back to Top Button Styling */
.back-to-top-toggle {
  text-align: center;
  margin: 1rem 0;  /* Adjust spacing as needed */
}

/* Style the button as an inline-flex container */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* Space between the icon and text */
  border: none;
  background: none; /* No background so only the SVG shows its circle */
  cursor: pointer;
  padding: 0;
  outline: none;
}

/* Hover effect: darken the circle background slightly */
.back-to-top:hover svg circle {
  fill: #5aa760;
}

/* Style for the text label */
.back-to-top-text {
  font-size: 1rem;
  color: #fff;
}

/* --------------------------------------------------
   LOGO PLACEHOLDER (CAMERA) STYLING (SPLASH SECTION)
--------------------------------------------------- */
.splash-section .section-content .logo-placeholder {
  width: 70%;
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.logo-placeholder .aperture {
  transform-box: fill-box;
  transform-origin: center;
  animation: irisClose 2s ease-in-out forwards;
}

@keyframes irisClose {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.8);
  }
}

/* --------------------------------------------------
   MEDIA QUERIES
--------------------------------------------------- */
/* On mobile (max-width: 768px), allow the caption container to expand fully */
@media (max-width: 768px) {
  .caption-container {
    left: 2%;
    right: 2%;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .purpose-content {
    width: 60%;
    max-width: 500px;
    padding: 0;
  }
}