.media-page {
  max-width: 1100px;
}

.media-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.media-tab {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 0.55rem 1.4rem;
  transition: all 0.3s;
}

.media-tab:hover,
.media-tab.active {
  background: var(--gold);
  color: #fff;
}

.media-section {
  margin-bottom: 4rem;
  scroll-margin-top: 6rem;
}

.media-section-title {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  text-align: center;
  margin-bottom: 1.75rem;
}

.media-status {
  text-align: center;
  color: var(--ash);
  margin-bottom: 1.5rem;
}

.media-grid {
  display: grid;
  gap: 1.25rem;
}

.images-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.image-card {
  border: 1px solid rgba(212, 168, 67, 0.35);
  background: var(--parchment);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.image-card:hover {
  box-shadow: 0 8px 24px rgba(26, 18, 8, 0.12);
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.image-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--deep);
}

.videos-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.video-card {
  border: 1px solid rgba(212, 168, 67, 0.35);
  background: var(--parchment);
  overflow: hidden;
}

.video-card .video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--deep);
  cursor: pointer;
}

.video-card .video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 18, 8, 0.35);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.video-card .video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  display: none;
}

.video-card.is-playing .video-thumb-wrap {
  display: none;
}

.video-card.is-playing .video-embed {
  display: block;
}

.video-card h3 {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem 0.25rem;
  color: var(--deep);
}

.video-card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: var(--ash);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 18, 8, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: min(960px, 100%);
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  color: var(--cream);
  margin-top: 1rem;
  text-align: center;
  max-width: 640px;
}
