/* Media Coverage & Season 1 Gallery Styles */
.media-page {
  color: #101913;
  background: #f4f0e9;
}

.media-page main {
  overflow: visible;
  background:
    radial-gradient(circle at 10% 18%, rgba(196, 162, 78, .09), transparent 28%),
    linear-gradient(180deg, #f4f0e9 0%, #f8f5ef 55%, #f0ebe3 100%);
}

.media-section {
  padding: 60px 0 90px;
}

/* Section Title Fix for Light Background */
.media-section .section-title h2,
.media-page .section-title h2 {
  color: #181818 !important;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(32px, 3.1vw, 43px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.media-section .section-title p,
.media-page .section-title p {
  color: var(--gold, #c79522) !important;
  font-family: var(--nav, "Montserrat", sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Filter Tabs */
.media-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 45px;
}

.filter-btn {
  padding: 10px 24px;
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0d8ca;
  border-radius: 30px;
  font-family: var(--nav, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold, #c79522);
  color: #ffffff;
  border-color: var(--gold, #c79522);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199, 149, 34, 0.3);
}

.filter-btn .badge-count {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 11px;
}

.filter-btn:hover .badge-count,
.filter-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
}

.gallery-item {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  aspect-ratio: 4 / 3;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/* Hover Overlay & Zoom Icon */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
  text-align: center;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.zoom-icon-btn {
  width: 58px;
  height: 58px;
  background: var(--gold, #c79522);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  cursor: pointer;
  transform: scale(0.7);
  transition: transform 0.35s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.gallery-card:hover .zoom-icon-btn {
  transform: scale(1);
}

.zoom-icon-btn:hover {
  background: #ffffff;
  color: var(--gold, #c79522);
  transform: scale(1.15) !important;
}

.gallery-overlay-title {
  color: #ffffff;
  font-family: var(--nav, "Montserrat", sans-serif);
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-overlay-title {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.lightbox-img-wrapper img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  margin-top: 16px;
  color: #ffffff;
  text-align: center;
  font-family: var(--nav, "Montserrat", sans-serif);
}

.lightbox-caption {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold, #c79522);
  margin-bottom: 4px;
}

.lightbox-counter {
  font-size: 13px;
  color: #aaaaaa;
}

/* Lightbox Controls */
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover {
  background: var(--gold, #c79522);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-nav:hover {
  background: var(--gold, #c79522);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
