/* ==========================================================================
   Film & Stage — Page-Specific Styles
   Shared components (page-hero, gallery, video-grid, lightbox, buttons, etc.)
   are defined in css/style.css. This file only contains overrides and
   additions unique to the film & stage page.
   ========================================================================== */

/* ── Sticky hero — page scrolls OVER the hero ── */
[data-page="film-stage"] .page-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 32vh;
}

[data-page="film-stage"] .page-hero-bg {
  width: 85%;
  height: 70%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 0;
}

[data-page="film-stage"] .page-hero-desc {
  position: relative;
  margin-top: 4.5rem;
}

/* Content sections scroll OVER the sticky hero */
[data-page="film-stage"] .section-light {
  position: relative;
  z-index: 2;
  background: var(--cream);
}

/* ── Page-wide body text ── */
[data-page="film-stage"] .page-hero-desc,
[data-page="film-stage"] .section-text,
[data-page="film-stage"] .cta-section .section-text {
  color: var(--text-body, #A0A0A0);
}

/* Featured project — large hero-style card */
.video-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.video-featured-player .video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
}

.video-featured-player .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-featured-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-featured-title {
  font-family: 'Monument Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--coral);
  line-height: 1.2;
}

.video-featured-duration {
  font-family: 'Monument Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.video-featured-synopsis {
  font-family: 'Monument Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

/* CTA section centering */
.cta-section {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

.cta-section .section-title {
  text-align: center;
}

.cta-section .section-text {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Photo gallery — masonry columns (preserves original aspect ratios) */
.film-stage-gallery {
  columns: 3;
  column-gap: 1rem;
  margin-top: 2rem;
}

.film-stage-gallery img,
.film-stage-gallery .gallery-video {
  width: 100%;
  display: block;
  border-radius: 0;
  margin-bottom: 1rem;
  break-inside: avoid;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(.19,1,.22,1), filter 0.6s cubic-bezier(.19,1,.22,1);
}

.film-stage-gallery img:hover,
.film-stage-gallery .gallery-video:hover {
  transform: scale(1.03);
  filter: brightness(1.1) contrast(1.03);
}

/* Video in gallery */
.film-stage-gallery .gallery-video {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

.film-stage-gallery .gallery-video video {
  width: 100%;
  display: block;
  pointer-events: none;
}

.film-stage-gallery .gallery-video .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
}

.film-stage-gallery .gallery-video:hover .video-play-btn {
  background: rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(1.1);
}

.film-stage-gallery .gallery-video .video-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 3px;
}

/* ── Overview split: video + personal story side by side ── */
.overview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.overview-split-video {
  position: relative;
}

.overview-personal {
  font-family: var(--sans, 'Monument Grotesk', sans-serif);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-body, #A0A0A0);
  letter-spacing: 0.01em;
  margin: 0;
}

/* Acting reel video player */
.acting-reel-video {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

.acting-reel-video video {
  width: 100%;
  display: block;
  pointer-events: none;
}

.acting-reel-video .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
}

.acting-reel-video:hover .video-play-btn {
  background: rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(1.1);
}

.acting-reel-video .video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 2px;
}

.reel-mute-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}

.reel-mute-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ── Video expand overlay ── */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  cursor: pointer;
}

.video-overlay.active {
  background: rgba(0, 0, 0, 0.85);
}

.video-overlay-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s var(--ease, ease), opacity 0.3s;
  cursor: default;
}

.video-overlay.active .video-overlay-inner {
  transform: scale(1);
  opacity: 1;
}

.video-overlay-inner video {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
}

.video-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.video-close-btn:hover {
  opacity: 1;
}

.video-mute-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.video-mute-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Projects grid */
[data-page="film-stage"] .video-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  [data-page="film-stage"] .page-hero {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  [data-page="film-stage"] .page-hero-bg {
    position: relative;
    width: 100%;
    height: auto;
    order: -1;
    margin-top: 2rem;
  }

  [data-page="film-stage"] .page-hero-desc {
    margin-top: 1.5rem;
  }
}

@media (min-width: 900px) {
  .video-featured {
    grid-template-columns: 3fr 2fr;
    align-items: start;
    gap: 3rem;
  }

  .video-featured-info {
    padding-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .video-featured-title {
    font-size: 1.5rem;
  }

  .overview-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .film-stage-gallery {
    columns: 2;
  }

  [data-page="film-stage"] .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .film-stage-gallery {
    columns: 1;
  }
}
