/* -------------------------------------------
   BASE PAGE SETTINGS
-------------------------------------------- */
body {
  margin: 0;
  padding: 0;
  /* font-family: Arial, sans-serif; */
  overflow-x: hidden;
}

/* -------------------------------------------
   FIXED BACKGROUND
-------------------------------------------- */
#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #e5e5d6;
  /* background: #9ba1a5;  */
  overflow: hidden;

  /* center the image whether it's full or 95% */
  display: flex;
  align-items: center;
  justify-content: center;
}

#bg-container img {
  opacity: 1;
  filter: brightness(1);
  transition: opacity 1.2s ease-in-out,
              filter 1s ease-in-out;
}

@media (max-width: 600px) {
  #bg-container img {
    transition: opacity 0.6s ease-in-out, filter 1s ease-in-out;
  }
}

/* full-screen background (index-image, silo) */
#bg-container img.full-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 95% photo (all other photo panels) */
#bg-container img.small-bg {
  width: 95vw;
  max-height: 95vh;
  height: auto;
  object-fit: contain;
}

/* Dimmed version used ONLY on opening section */
#bg-container img.dimmed {
  filter: brightness(0.5);  /* ← 50% brightness */
}

/* -------------------------------------------
   PANELS
-------------------------------------------- */
.story {
  position: relative;
  z-index: 10;
}

.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* ✅ Make Read More appear sooner in photo sequences */
.sequence-group .panel.sequence-photo {
  min-height: 70vh;   /* 👈 reduce from 100vh so you reach Read More sooner */
  padding: 0;         /* optional: removes extra interior padding */
}

/* ✅ Reduce scroll length of the sticky readmore “panel” itself */
.sequence-group .sequence-sticky {
  min-height: 30vh;   /* 👈 was 100vh */
}



/* TEXT OVER IMAGES */
.overlay {
  max-width: 900px;
  text-align: left;
  color: rgb(5, 5, 5);
}



.plain-overlay h2 {
  font-size: 2.5rem;
  text-align: center;;
}

/* Full-width body text ONLY in plain text sections */
.panel.plain .plain-overlay p:not(.box) {
  font-family: 'Utopia Std', serif;
  font-size: 2em;
  max-width: none;          /* 👈 removes narrow column */
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0vw;        /* 👈 small side margins */
  padding-right: 6vw;
}


/* -------------------------------------------
   TYPOGRAPHY (UPDATED OPENING FONTS)
-------------------------------------------- */
.opening-overlay {
  margin-left: -20px;
  text-align: left;
  margin: 0.2em auto;
}

.opening-overlay h1 { 
  color: #ffffff;
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 900;
  font-family: 'Utopia Std Bold', serif;
}

/* Small phones */
@media (max-width: 500px) {
  .opening-overlay h1 {
    font-size: 2.5rem;
  }
}

.opening-overlay h2 { 
  color: #ffffff;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-family: 'Utopia Std', serif;
  line-height: 1.4;
}

/* Small phones */
@media (max-width: 500px) {
  .opening-overlay h2 {
    font-size: 1.2rem;
  }
}

.opening-overlay h3 { 
  font-weight: 400;
  font-size: 1.5rem;
  font-family: 'Utopia Std', serif;
  line-height: 1.3;
  color: #b8b8b8;
}

/* Small phones */
@media (max-width: 500px) {
  .opening-overlay h3 {
    font-size: 0.8rem;
  }
}

a {
  color: inherit;          
  text-decoration: underline; 
}

a:visited {
  color: inherit;          
}

a:hover {
  text-decoration-thickness: 2px; 
}

/* LEFT-ALIGNED FINAL PARAGRAPHS */
/* .text-left {
  text-align: left;
  max-width: 800px;
} */

/* -------------------------------------------
   PLAIN SECTIONS (black)
-------------------------------------------- */
.plain {
  position: relative;
  min-height: 100vh;   /* ✅ FULL HEIGHT (was 40vh) */
}

.plain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 120px;
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ✅ Adds breathing room before subtitle text */
.plain-overlay {
  padding-top: 20vh;
}

/* -------------------------------------------
   PHOTO FRAME MASK
   (still used as a layout box; photo is background)
-------------------------------------------- */
.photo-frame {
  width: 90vw;
  height: 90vh;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* -------------------------------------------
   READ MORE
-------------------------------------------- */

.readmore-panel {
  display: block;
  text-align: left;
}

/* Uniform left anchor for all Read More buttons */
.readmore-container {
  position: absolute;
  left: 15vw;          /* ✅ same offset on every panel */
  bottom: 8vh;         /* ✅ keeps it visually grounded */
  max-width: 600px;
}

/* Button */
.readmore-btn {
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 16px;
  cursor: pointer;
  color: rgb(215, 212, 212);
}

/* Hidden text */
.readmore-text {
  overflow: hidden;
  max-height: 0;          /* ✅ Hidden by default */
  transition: max-height 0.4s ease;
  color: rgb(255, 255, 255);
  font-size: 1.2em;
  line-height: 1.4;
  margin-top: 0.6em;
}

/* When opened */
.readmore-text.open {
  max-height: 500px;     /* ✅ Smooth reveal */
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .readmore-container {
    left: 5vw;
    transform: translateY(-40%);
  }
}

/* -------------------------------------------
   PHOTO SEQUENCE
-------------------------------------------- */
.sequence-group {
  position: relative;
}

.sequence-photo {
  position: relative;
  z-index: 1;
}

/* sticky read more */
.sequence-sticky {
  position: sticky;
  top: 0vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: transparent;
}

/* Smooth blend where the sequence transitions to text */
.sequence-group::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  z-index: 4;
}

.quote {
  font-family: 'Utopia Std', serif;
  font-size: 2.5rem;
  font-style: italic;
  line-height: 1.4;
  color: rgb(255, 255, 255);
  max-width: 500px;
  display: block; 
  margin-left: 2em auto;
  text-align: right;
}

@media (min-width: 1200px) {
  .quote {
    transform: translateX(420px);
  }
}

@media (max-width: 900px) {
  .overlay {
    justify-content: center;
  }

  .quote {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .quote {
    font-size: 1.6rem;
    max-width: 90%;
  }
}

.text-left p {
  font-size: 22px;
  line-height: 1.65;
}

.hed-line {
  border: none;
  height: 1px;
  background-color: rgb(255, 255, 255);
  opacity: 0.5;
  width: 60%;
  margin: 1em 0;
}


.box-line {
  border: none;
  height: 4px;
  background-color: rgb(33, 33, 33);
  opacity: 0.5;
  width: 100%;
  margin: 1em 0;
}


.logo {
  width: 300px;
  height: 300px;
  margin: 2em auto;
  border: none;
  background-image: url("images/vcij-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
}



.panel,
.sequence-sticky,
.sequence-photo {
  position: relative;
}

/* -------------------------------------------
   ROTATE GIF — MOBILE ONLY
-------------------------------------------- */
.rotate-mobile {
  display: none;               /* hidden by default */
  text-align: center;
  margin-top: 1.5rem;
}

.rotate-mobile img {
  width: 100px;
  height: auto;
  opacity: 0.9;
}

/* ✅ Only show on mobile */
@media (max-width: 600px) {
  .rotate-mobile {
    display: block;
  }
}

/* -------------------------------------------
   BOX CALLOUT TEXT  ✅ FIXED
-------------------------------------------- */
.box {
  max-width: 560px;          /* ✅ narrower than body text */
  margin: 0 auto;            /* ✅ centered */
  font-family: 'Utopia Std', serif;
  font-size: 2em;
  line-height: 1.4;
  text-align: justify;
  text-justify: inter-word;
}


.overlay.plain-overlay .footer {
  text-align: center !important;
  color: rgb(54, 54, 54);
}

mark {
  background-color: rgb(4, 0, 0);
  color: #ffffff;
}

bordered-paragraph {
  border-left: 2px solid #000;  /* Left bar: 2px wide, solid, black */
  border-right: 2px solid #000; /* Right bar: 2px wide, solid, black */
  padding: 0 10px;              /* Adds space between the text and the bars */
  margin: 10px 0;               /* Adds space above and below the paragraph */
}