.media-body .hero,
.media-hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6.5rem 1.4rem 1.5rem;
}

.media-hero .eyebrow {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.media-hero .brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.06em;
}

.media-hero .tagline {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--ink-muted);
}

.photo-reel {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 2.25rem;
  padding: 0 1.4rem;
}

.reel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.95rem;
}

.reel-head-text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.reel-head-text p {
  margin: 0.3rem 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.gallery-open-btn {
  border: 1px solid rgba(212, 181, 106, 0.45);
  background: rgba(212, 181, 106, 0.12);
  color: var(--gold);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-open-btn:hover,
.gallery-open-btn:focus-visible {
  background: rgba(212, 181, 106, 0.22);
  border-color: rgba(212, 181, 106, 0.7);
  outline: none;
  transform: translateY(-1px);
}

.reel-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.reel-nav {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 244, 0.22);
  background: rgba(5, 8, 6, 0.82);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.reel-nav:hover,
.reel-nav:focus-visible {
  border-color: rgba(212, 181, 106, 0.55);
  background: rgba(8, 12, 10, 0.95);
  outline: none;
  transform: scale(1.05);
}

.reel-viewport {
  overflow: hidden;
  border-radius: 14px;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 2.5%,
    #000 97.5%,
    transparent 100%
  );
  cursor: grab;
}

.reel-viewport.is-dragging {
  cursor: grabbing;
}

.reel-track {
  display: flex;
  gap: 1.15rem;
  width: max-content;
  padding: 0.45rem 0.2rem 0.85rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.reel-shot {
  flex: 0 0 auto;
  width: min(640px, 85vw);
  aspect-ratio: 16 / 10;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0a0e0b center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 247, 244, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.reel-shot:hover,
.reel-shot:focus-visible {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(212, 181, 106, 0.55);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.58);
  outline: none;
}

@media (max-width: 640px) {
  .reel-shell {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .reel-shot {
    width: min(520px, 88vw);
  }

  .reel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.3rem;
    height: 2.3rem;
  }

  .reel-prev {
    left: 0.35rem;
  }

  .reel-next {
    right: 0.35rem;
  }

  .reel-nav:hover,
  .reel-nav:focus-visible {
    transform: translateY(-50%) scale(1.05);
  }
}

.media-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.4rem 2rem;
  align-items: start;
}

.media-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.media-loading,
.media-empty {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  padding: 1rem 0;
}

.media-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: mediaRise 0.55s ease both;
}

.media-card:hover,
.media-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 181, 106, 0.45);
  outline: none;
}

.media-card.is-image {
  cursor: zoom-in;
}

.media-thumb {
  aspect-ratio: 16 / 9;
  background: #0a0e0b center / cover no-repeat;
  position: relative;
}

.media-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 5, 0.55));
  pointer-events: none;
}

.media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.media-card:hover .media-play {
  opacity: 1;
}

.media-play span {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(206, 43, 55, 0.92);
  border: 1px solid rgba(245, 247, 244, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.media-play span::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.media-card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.media-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.media-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.media-kind {
  display: inline-block;
  width: fit-content;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.media-sidebar {
  position: sticky;
  top: 5.5rem;
  padding: 1.15rem 1.2rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-sidebar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.sidebar-copy {
  margin: 0.35rem 0 1rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.movie-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.movie-list a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.movie-list a:hover,
.movie-list a:focus-visible {
  border-color: rgba(0, 146, 70, 0.55);
  background: rgba(0, 146, 70, 0.12);
  outline: none;
}

.movie-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #0a0e0b center / cover no-repeat;
}

.movie-list strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 600;
}

.movie-list span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 4, 3, 0.92);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 1.5rem 1.5rem 1.25rem;
}

.media-lightbox[hidden] {
  display: none !important;
}

.lightbox-frame {
  width: min(1100px, 100%);
  max-height: calc(100vh - 7.5rem);
  aspect-ratio: auto;
  background: transparent;
  border-radius: 12px;
  overflow: visible;
  box-shadow: none;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lightbox-frame iframe {
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  border-radius: 12px;
  pointer-events: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-frame img {
  max-width: 100%;
  max-height: calc(100vh - 7.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
  pointer-events: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 244, 0.25);
  background: rgba(8, 12, 10, 0.85);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
  z-index: 2;
}

.lightbox-actions[hidden] {
  display: none !important;
}

.lightbox-btn {
  border: 1px solid rgba(245, 247, 244, 0.28);
  background: rgba(8, 12, 10, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  border-color: rgba(245, 247, 244, 0.5);
  background: rgba(20, 26, 22, 0.95);
  outline: none;
  transform: translateY(-1px);
}

.lightbox-btn.is-gold {
  border-color: rgba(212, 181, 106, 0.5);
  background: rgba(212, 181, 106, 0.14);
  color: var(--gold);
}

.lightbox-btn.is-gold:hover,
.lightbox-btn.is-gold:focus-visible {
  background: rgba(212, 181, 106, 0.24);
  border-color: rgba(212, 181, 106, 0.75);
}

/* --- Fullscreen photo gallery (Google Photos-style grid) --- */
.photo-gallery {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: #0a0c0b;
  color: var(--ink);
}

.photo-gallery[hidden] {
  display: none !important;
}

.gallery-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(245, 247, 244, 0.1);
  background: rgba(5, 7, 5, 0.96);
  z-index: 2;
}

.gallery-counter {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 244, 0.88);
}

.gallery-close,
.gallery-viewer-close {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 244, 0.28);
  background: rgba(8, 12, 10, 0.72);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-close:hover,
.gallery-viewer-close:hover {
  background: rgba(206, 43, 55, 0.55);
  transform: scale(1.04);
}

.gallery-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.85rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-cell {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #141816 center / cover no-repeat;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-cell:hover,
.gallery-cell:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  outline: 2px solid rgba(212, 181, 106, 0.55);
  outline-offset: 1px;
  z-index: 1;
}

.gallery-viewer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "close close close"
    "prev img next"
    ". count .";
  align-items: center;
  justify-items: center;
  background: rgba(2, 4, 3, 0.96);
  padding: 0.75rem;
}

.gallery-viewer[hidden] {
  display: none !important;
}

.gallery-viewer-close {
  grid-area: close;
  justify-self: end;
  margin: 0.25rem 0.35rem 0.5rem;
}

.gallery-viewer img {
  grid-area: img;
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.gallery-nav {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 244, 0.22);
  background: rgba(8, 12, 10, 0.65);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-prev {
  grid-area: prev;
}

.gallery-next {
  grid-area: next;
}

.gallery-nav:hover {
  background: rgba(212, 181, 106, 0.22);
  transform: scale(1.05);
}

.gallery-viewer-count {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(245, 247, 244, 0.7);
}

.gallery-viewer-bar {
  grid-area: count;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@keyframes mediaRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .media-layout {
    grid-template-columns: 1fr;
  }

  .media-sidebar {
    position: static;
    order: -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .gallery-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.45rem;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
