/* =====================================================
   MEDIA SECTION
===================================================== */

.media-section {
  position: relative;
  padding: 110px 20px 120px;

  background:
    linear-gradient(rgba(246, 230, 193, 0.94), rgba(246, 230, 193, 0.94)),
    url("Images/books-background.jpg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: #4b2e1d;
  overflow: hidden;
}

/* =====================================================
   MEDIA CONTAINER
===================================================== */

.media-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}

/* =====================================================
   SECTION HEADER
===================================================== */

.media-header {
  max-width: 750px;
  margin: 0 auto 65px;
  text-align: center;
}

.media-label {
  display: block;

  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;

  letter-spacing: 3px;

  color: #8b5a24;

  margin-bottom: 18px;
}

.media-header h1 {
  margin: 0;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;

  line-height: 1.1;

  color: #4b2e1d;
}

.media-divider {
  width: 500px;
  height: 2px;

  background: #9a6b2f;

  margin: 22px auto;
}

.media-header p {
  max-width: 680px;

  margin: 0 auto;

  font-family: "Cormorant Garamond", Georgia, serif;

  font-size: 25px;

  line-height: 1.7;

  color: #6b4932;
}

/* =====================================================
   FEATURED MEDIA CARD
===================================================== */

.featured-media-card {
  display: grid;

  grid-template-columns: 1.5fr 1fr;

  width: 100%;

  background: rgba(255, 250, 237, 0.95);

  border: 1px solid rgba(120, 78, 35, 0.18);

  box-shadow: 0 18px 45px rgba(76, 48, 24, 0.14);

  margin-bottom: 40px;

  overflow: hidden;
}

/* =====================================================
   FEATURED VIDEO
===================================================== */

.featured-video {
  width: 100%;

  aspect-ratio: 16 / 9;

  background: #2e1b11;

  overflow: hidden;
}

.featured-video video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* =====================================================
   FEATURED VIDEO INFORMATION
===================================================== */

.featured-video-info {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 50px;
}

.media-category {
  display: block;

  font-family: Georgia, serif;

  font-size: 11px;

  font-weight: bold;

  letter-spacing: 2px;

  color: #986426;

  margin-bottom: 13px;
}

.featured-video-info h2 {
  margin: 0 0 15px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: 32px;

  line-height: 1.3;

  color: #4b2e1d;
}

.featured-video-info p {
  margin: 0;

  font-family: "Cormorant Garamond", Georgia, serif;

  font-size: 25px;

  line-height: 1.7;

  color: #6b4932;
}

/* =====================================================
   OTHER MEDIA GRID
===================================================== */

.media-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 40px;

  width: 100%;
}

/* =====================================================
   MEDIA CARD
===================================================== */

.media-card {
  width: 100%;

  background: rgba(255, 250, 237, 0.95);

  border: 1px solid rgba(120, 78, 35, 0.18);

  box-shadow: 0 12px 30px rgba(76, 48, 24, 0.1);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.media-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 18px 40px rgba(76, 48, 24, 0.18);
}

/* =====================================================
   SECOND VIDEO
===================================================== */

.media-video {
  width: 100%;

  aspect-ratio: 16 / 9;

  background: #2e1b11;

  overflow: hidden;
}

.media-video video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* =====================================================
   PHOTO
===================================================== */

.media-photo {
  width: 100%;

  aspect-ratio: 16 / 9;

  background: #d9c29a;

  overflow: hidden;
}

.media-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.photo-card:hover .media-photo img {
  transform: scale(1.05);
}

/* =====================================================
   MEDIA CARD CONTENT
===================================================== */

.media-card-content {
  padding: 28px 30px 32px;
}

.media-card-content h3 {
  margin: 0 0 12px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: 27px;

  line-height: 1.3;

  color: #4b2e1d;
}

.media-card-content p {
  margin: 0;

  font-family: "Cormorant Garamond", Georgia, serif;

  font-size: 25px;

  line-height: 1.6;

  color: #6b4932;
}

/* =====================================================
   TABLET RESPONSIVE
===================================================== */

@media (max-width: 900px) {
  .featured-media-card {
    grid-template-columns: 1fr;
  }

  .featured-video-info {
    padding: 40px;
  }

  .media-grid {
    grid-template-columns: 1fr;

    max-width: 700px;

    margin: 0 auto;
  }
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 600px) {
  .media-section {
    padding: 75px 15px 90px;

    background-attachment: scroll;
  }

  .media-header {
    margin-bottom: 45px;
  }

  .media-label {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .media-header h1 {
    font-size: 3rem;
  }

  .media-header p {
    font-size: 18px;
  }

  .featured-video-info {
    padding: 30px;
  }

  .featured-video-info h2 {
    font-size: 27px;
  }

  .featured-video-info p {
    font-size: 18px;
  }

  .media-grid {
    gap: 25px;
  }

  .media-card-content {
    padding: 25px;
  }

  .media-card-content h3 {
    font-size: 24px;
  }

  .media-card-content p {
    font-size: 17px;
  }
}

/* =====================================================
   TWO IMAGE PHOTO GALLERY
===================================================== */

.media-photo-gallery {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  width: 100%;

  height: 300px;

  overflow: hidden;

  background: #d9c29a;
}

/* INDIVIDUAL IMAGE */

.media-photo {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;
}

/* IMAGE */

.media-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  cursor: pointer;

  transition:
    transform 0.5s ease,
    filter 0.4s ease;
}

/* IMAGE HOVER */

.media-photo:hover img {
  transform: scale(1.06);

  filter: brightness(0.92);
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
  .media-photo-gallery {
    height: 240px;
  }
}

/* =====================================================
   VIDEO PREVIEW
===================================================== */

.featured-video,
.media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2e1b11;
  overflow: hidden;
}

.featured-video video,
.media-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.drop-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-80px);
  animation: dropLetter 0.6s ease forwards;
}

/* Drop from LEFT to RIGHT */
.drop-text span:nth-child(1) {
  animation-delay: 0.1s;
} /* M */
.drop-text span:nth-child(2) {
  animation-delay: 0.2s;
} /* e */
.drop-text span:nth-child(3) {
  animation-delay: 0.3s;
} /* d */
.drop-text span:nth-child(4) {
  animation-delay: 0.4s;
} /* i */
.drop-text span:nth-child(5) {
  animation-delay: 0.5s;
} /* a */

.drop-text span:nth-child(6) {
  animation-delay: 0.6s;
} /* Space */

.drop-text span:nth-child(7) {
  animation-delay: 0.7s;
} /* A */
.drop-text span:nth-child(8) {
  animation-delay: 0.8s;
} /* n */
.drop-text span:nth-child(9) {
  animation-delay: 0.9s;
} /* d */

.drop-text span:nth-child(10) {
  animation-delay: 1s;
} /* Space */

.drop-text span:nth-child(11) {
  animation-delay: 1.1s;
} /* M */
.drop-text span:nth-child(12) {
  animation-delay: 1.2s;
} /* o */
.drop-text span:nth-child(13) {
  animation-delay: 1.3s;
} /* m */
.drop-text span:nth-child(14) {
  animation-delay: 1.4s;
} /* e */
.drop-text span:nth-child(15) {
  animation-delay: 1.5s;
} /* n */
.drop-text span:nth-child(16) {
  animation-delay: 1.6s;
} /* t */
.drop-text span:nth-child(17) {
  animation-delay: 1.7s;
} /* S — LAST */

/* Drop Animation */
@keyframes dropLetter {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }

  60% {
    opacity: 1;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   MEDIA / ABOUT HERO BACKGROUND
===================================================== */

.about-hero {
  position: relative;
  width: 100%;
  min-height: 500px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* BACKGROUND IMAGE */

.about-hero .hero-bg {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  z-index: 0;

  /* Keep the original image brightness */
  filter: brightness(1.08) contrast(0.95);

  transform: scale(1.01);
}

/* =====================================================
   LIGHT OVERLAY
===================================================== */

/*
   Your previous overlay was probably making
   the entire background too dark.

   This version uses a very subtle warm overlay.
*/

.about-hero .overlay {
  position: absolute;

  inset: 0;

  background: rgba(255, 239, 205, 0.08);

  z-index: 1;

  pointer-events: none;
}

/* =====================================================
   HERO CONTENT
===================================================== */

.about-hero .container {
  position: relative;

  z-index: 2;

  width: 100%;
}

/* =====================================================
   TITLE
===================================================== */

.about-hero .drop-text {
  color: #f7e6c4;

  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

/* =====================================================
   DESCRIPTION
===================================================== */

.about-hero .hero-description {
  color: #fff4dc;

  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.65);
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
  .about-hero {
    min-height: 450px;
  }

  .about-hero .hero-bg {
    object-position: center;
    filter: brightness(1.12) contrast(0.92);
  }

  .about-hero .overlay {
    background: rgba(255, 239, 205, 0.05);
  }
}

/* =====================================================
   MEDIA ON-SCROLL ANIMATION
===================================================== */

/* ================= FEATURED VIDEO ================= */

.featured-media-card {
  opacity: 0;

  transform: translateY(70px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;

  will-change: opacity, transform;
}

/* ================= SECOND VIDEO ================= */

.media-grid .media-card:nth-child(1) {
  opacity: 0;

  transform: translateX(-100px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;

  will-change: opacity, transform;
}

/* ================= PHOTO GALLERY ================= */

.media-grid .media-card:nth-child(2) {
  opacity: 0;

  transform: translateX(100px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;

  will-change: opacity, transform;
}

/* =====================================================
   SHOW ANIMATION
===================================================== */

/* Featured video */
.featured-media-card.show {
  opacity: 1;

  transform: translateY(0);
}

/* Second video from LEFT */
.media-grid .media-card:nth-child(1).show {
  opacity: 1;

  transform: translateX(0);
}

/* Photos from RIGHT */
.media-grid .media-card:nth-child(2).show {
  opacity: 1;

  transform: translateX(0);
}

/* =====================================================
   OPTIONAL STAGGER
===================================================== */

.featured-media-card {
  transition-delay: 0.1s;
}

.media-grid .media-card:nth-child(1) {
  transition-delay: 0.15s;
}

.media-grid .media-card:nth-child(2) {
  transition-delay: 0.25s;
}




/* =====================================================
   MEDIA HERO SECTION
===================================================== */

.about-hero {
    position: relative;
    width: 100%;
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =====================================================
   BACKGROUND IMAGE
===================================================== */

.about-hero .hero-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;

    /* Slightly darken the image */
    filter: brightness(0.88);
}


/* =====================================================
   SUBTLE DARK OVERLAY
===================================================== */

.about-hero .overlay {
    position: absolute;

    inset: 0;

    background: rgba(20, 15, 10, 0.08);

    z-index: 1;

    pointer-events: none;
}


/* =====================================================
   HERO CONTENT
===================================================== */

.about-hero .container {
    position: relative;
    z-index: 2;
}


/* =====================================================
   HERO TITLE
===================================================== */

.about-hero .drop-text {
    color: #f7e6c4;

    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.55),
        0 1px 3px rgba(0, 0, 0, 0.8);
}


/* =====================================================
   HERO DESCRIPTION
===================================================== */

.about-hero .hero-description {
    color: #fff4dc;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.6);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .about-hero {
        min-height: 450px;
    }

    .about-hero .hero-bg {
        object-position: center;
        filter: brightness(0.88);
    }

}




/* =====================================================
   MEDIA HEADER ON-SCROLL ANIMATION
===================================================== */

/* Initial state */

.media-header {
    opacity: 0;
    transform: translateY(-50px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    will-change: opacity, transform;
}


/* Header label */

.media-header .media-label {
    opacity: 0;
    transform: translateY(-20px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

    transition-delay: 0.1s;
}


/* Divider */

.media-header .media-divider {
    opacity: 0;
    transform: scaleX(0);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

    transition-delay: 0.3s;
}


/* Description */

.media-header p {
    opacity: 0;
    transform: translateY(20px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

    transition-delay: 0.4s;
}


/* =====================================================
   SHOW HEADER ANIMATION
===================================================== */

.media-header.show {
    opacity: 1;
    transform: translateY(0);
}


.media-header.show .media-label {
    opacity: 1;
    transform: translateY(0);
}


.media-header.show .media-divider {
    opacity: 1;
    transform: scaleX(1);
}


.media-header.show p {
    opacity: 1;
    transform: translateY(0);
}





/* =====================================================
   PHOTO GALLERY
===================================================== */

.media-photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    width: 100%;
    height: 360px;

    overflow: hidden;
}

.media-photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.media-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.media-photo:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}


/* =====================================================
   LIGHTBOX
===================================================== */

.image-lightbox {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    background: rgba(0, 0, 0, 0.9);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 99999;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}


/* EXPANDED IMAGE */

.image-lightbox img {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 5px;

    box-shadow:
        0 10px 50px rgba(0, 0, 0, 0.6);

    transform: scale(0.85);

    transition:
        transform 0.3s ease;
}

.image-lightbox.active img {
    transform: scale(1);
}


/* CLOSE BUTTON */

.close-lightbox {
    position: absolute;

    top: 20px;
    right: 30px;

    color: #fff;

    font-size: 40px;
    font-weight: 300;

    cursor: pointer;

    z-index: 100000;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.close-lightbox:hover {
    transform: scale(1.15);
    opacity: 0.8;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .media-photo-gallery {
        height: 300px;
    }

    .image-lightbox {
        padding: 15px;
    }

    .image-lightbox img {
        max-width: 95vw;
        max-height: 85vh;
    }

    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}


.media-label {
    font-family: Georgia, serif;
    font-size: 2rem; /* Adjust as needed */
    font-weight: bold;
    color: #8b5a24;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}





