/* -------------------------------------------
   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: rgb(0, 0, 0);
  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 0.7s 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;
}

/* TEXT OVER IMAGES */
.overlay {
  max-width: 900px;
  text-align: left;
  color: white;
}

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

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

.opening-overlay h1 { 
  font-size: 6rem;
  margin-bottom: 1rem;
  font-weight: 980;
  font-family: 'Utopia Std Bold', serif;
}

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

.opening-overlay h2 { 
  font-weight: 500;
  font-size: 3rem;
  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
-------------------------------------------- */
.plain {
  position: relative;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

/* Remove the old 120px pseudo-layer from regular plain sections */
.plain::before {
  content: none;
}

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


/* -------------------------------------------
   SUBTITLE PANELS — COAL DUST BACKGROUND
-------------------------------------------- */
.subtitle-panel {
  position: relative;
  background: #000;
  overflow: hidden;
}

/* Full-panel coal dust image */
.subtitle-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 0;
}

.subtitle-intro::before {
  background-image: url("images/main-title-bg.jpg");
}
.subtitle-clean-coal::before {
  background-image: url("images/clean-coal-bg.jpg");
}

.subtitle-breath::before {
  background-image: url("images/breath-bg.jpg");
}

/* Dark readability layer */
.subtitle-panel::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Keep text above image */
.subtitle-panel .overlay {
  position: relative;
  z-index: 2;
}

/* CENTER ALIGN SUBTITLE PANEL CONTENT */
.subtitle-panel .opening-overlay {
  text-align: center;
  margin-left: auto;
  margin-right: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* -------------------------------------------
   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 {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  z-index: 6;
}

/* Uniform left anchor for all Read More buttons */
.readmore-container {
  position: relative;
  left: auto;
  bottom: auto;
  margin-left: 15vw;
  margin-bottom: 8vh;
  max-width: 600px;
}

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

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

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

/* Mobile adjustments */
@media (max-width: 600px) {
  .readmore-container {
    margin-left: 5vw;
    margin-right: 5vw;
    margin-bottom: 10vh;
    max-width: 90vw;
  }
}


/* -------------------------------------------
   PHOTO SEQUENCE
-------------------------------------------- */

.sequence-group {
  position: relative;
}

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

/* 
   This is no longer sticky.
   It now scrolls naturally after each photo.
*/
.sequence-sticky {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 5;
  background: transparent;
}

.sequence-sticky.readmore-before-text {
  min-height: 120vh;
}
/* 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: 2rem;
  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%;
  }
}

.photo-text {
  font-family: 'Utopia Std', serif;
  font-size: 22px;
  line-height: 1.65;
  color: white;

  max-width: 800px;
  margin: 0 auto 1.2rem auto;

  text-align: center;
  display: block;
}

@media (max-width: 600px) {
  .photo-text {
    font-size: 20px;
    max-width: 90%;
  }
}

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

.hed-line {
  border: none;
  height: 1px;
  background-color: yellow;
  opacity: 0.5;
  width: 60%;
  margin: 1em auto;
}

.coal {
  width: 200px;
  height: 200px;
  /* margin: 1em auto; */
  border: none;
  background-image: url("images/coal.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  text-align: center;
}


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


/* -------------------------------------------
   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;
  }
}



/* -------------------------------------------
   AUDIO VISUALIZER
-------------------------------------------- */


.audio-story-player {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #fff;
}

.audio-toggle {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.audio-icon {
  width: 54px;
  height: 54px;
  display: block;
}

.audio-info {
  width: 100%;
}

.audio-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.audio-visualizer {
  width: 100%;
  height: 72px;
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.audio-time {
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.78;
}

@media (max-width: 600px) {
  .audio-story-player {
    align-items: flex-start;
    padding: 0.85rem;
  }

  .audio-toggle,
  .audio-icon {
    width: 46px;
    height: 46px;
  }

  .audio-visualizer {
    height: 58px;
  }
}

/* -------------------------------------------
   END CREDITS OVER FINAL IMAGE
-------------------------------------------- */
.end-credits-panel {
  position: relative;
  min-height: 100vh;

  background: transparent;

  z-index: 20;

  align-items: center;
  justify-content: center;
}

.end-credits-panel .overlay {
  text-align: center;
  font-size: 24px;
  color: white;
}