/* =========================================================
   EYF GALLERY PAGE — Premium Black & Gold
   File: css/gallery.css  (loaded after style.css)
   Scope: body.page-gallery
   ========================================================= */

.page-gallery {
  background:
    radial-gradient(circle at 82% 0%, rgba(245, 197, 66, 0.08), transparent 26%),
    radial-gradient(circle at 6% 16%, rgba(184, 134, 11, 0.05), transparent 30%),
    var(--color-primary-black);
}

.page-gallery .section-eyebrow {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-metallic-gold);
}

/* -----------------------------
   1. Hero — image bleeds into the background on the right (funding style)
------------------------------ */
.gallery-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 70vh, 600px);
  padding: clamp(34px, 6vh, 80px) 0;
}

.gallery-hero .container {
  position: relative;
  z-index: 2;
}

.gallery-hero-content {
  max-width: 500px;
}

.gallery-hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}

/* Right-side image — large, bled to the edge, faded into black on its left */
.gallery-hero-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0;
  transform: translateX(50px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%);
}

.is-loaded .gallery-hero-img {
  animation:
    galleryHeroIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
    galleryHeroFloat 8s ease-in-out 1.4s infinite;
}

@keyframes galleryHeroIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes galleryHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.gallery-hero-title {
  font-family: var(--font-main);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.gallery-hero-title .gold {
  color: var(--color-bright-gold);
}

.gallery-hero-divider {
  width: 64px;
  height: 3px;
  margin: 22px 0;
  border-radius: 2px;
  background: var(--gradient-gold);
}

.gallery-hero-desc {
  color: var(--color-muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
  max-width: 440px;
}

.gallery-hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 30px;
}

.gallery-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.07);
  color: var(--color-metallic-gold);
  flex-shrink: 0;
}

.gallery-stat-icon svg {
  width: 20px;
  height: 20px;
}

.gallery-stat strong {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
}

.gallery-stat span {
  font-size: 12.5px;
  color: var(--color-muted);
}

/* Tablet-landscape (1101–1200px): reduce the bled image width and text column
   so the image never crowds the hero copy. Keeps the hero side-by-side and
   cinematic (e.g. iPad Pro 11" landscape at 1194px). */
@media (min-width: 1101px) and (max-width: 1200px) {
  .gallery-hero-img {
    width: 52%;
  }

  .gallery-hero-content {
    max-width: 430px;
  }
}

/* Tablet + mobile: image becomes a clean, full-width rounded block under the
   text (no bleed, no mask) so it stays fully visible. */
@media (max-width: 1100px) {
  .gallery-hero {
    display: block;
    min-height: auto;
    padding: clamp(24px, 5vh, 48px) 0 clamp(8px, 2vh, 20px);
  }

  .gallery-hero-content {
    max-width: 640px;
  }

  .gallery-hero-img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 420px;
    margin-top: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-gold);
    opacity: 1;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-hero-img {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* -----------------------------
   2. Filter tabs
------------------------------ */
.gallery-filters-section {
  padding: 8px 0 4px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-gold);
  background: rgba(212, 175, 55, 0.04);
  color: var(--color-soft-white);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.gallery-filter-btn svg {
  width: 17px;
  height: 17px;
  color: var(--color-metallic-gold);
  transition: color var(--transition-fast);
}

.gallery-filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 197, 66, 0.55);
}

.gallery-filter-btn.is-active {
  background: var(--gradient-gold);
  color: var(--color-primary-black);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.gallery-filter-btn.is-active svg {
  color: var(--color-primary-black);
}

/* -----------------------------
   3. Category sections
------------------------------ */
.gallery-categories {
  padding: clamp(24px, 3vw, 40px) 0 0;
}

.gallery-cat {
  margin-bottom: 22px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(9, 9, 9, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
}

.gallery-cat[hidden] {
  display: none;
}

.gallery-cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.gallery-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  color: var(--color-metallic-gold);
}

.gallery-cat-icon svg {
  width: 22px;
  height: 22px;
}

.gallery-cat-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.gallery-cat-titles h2 {
  font-family: var(--font-main);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.gallery-cat-titles p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

.gallery-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-gold);
  background: rgba(212, 175, 55, 0.05);
  color: var(--color-metallic-gold);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), gap var(--transition-fast);
}

.gallery-view-all:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-black);
  border-color: transparent;
  gap: 12px;
}

/* Image rows */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-row--5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: #0a0a0a;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--color-primary-black);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.gallery-item-zoom svg {
  width: 18px;
  height: 18px;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover .gallery-item-zoom {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* -----------------------------
   4. Media coverage strip
------------------------------ */
.gallery-media-row {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 20px;
  align-items: stretch;
}

.gallery-media-feature {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  min-height: 180px;
}

.gallery-media-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Real channel logos sit on clean white tiles so every brand (which each
   ship with their own background/colours) reads crisp and uniform. */
.gallery-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  min-height: 92px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-gold);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  /* entrance animation defaults (revealed below) */
  opacity: 0;
  transform: translateY(16px) scale(0.94);
}

.gallery-logo img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-logo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Staggered pop-in once the Media Coverage block scrolls into view */
.gallery-cat.is-visible .gallery-logo {
  animation: galleryLogoIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-cat.is-visible .gallery-logo:nth-child(1) { animation-delay: 0.05s; }
.gallery-cat.is-visible .gallery-logo:nth-child(2) { animation-delay: 0.13s; }
.gallery-cat.is-visible .gallery-logo:nth-child(3) { animation-delay: 0.21s; }
.gallery-cat.is-visible .gallery-logo:nth-child(4) { animation-delay: 0.29s; }
.gallery-cat.is-visible .gallery-logo:nth-child(5) { animation-delay: 0.37s; }
.gallery-cat.is-visible .gallery-logo:nth-child(6) { animation-delay: 0.45s; }

@keyframes galleryLogoIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-logo {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* -----------------------------
   5. Bottom CTA
------------------------------ */
.gallery-cta-section {
  padding: clamp(20px, 3vw, 40px) 0 clamp(56px, 7vw, 90px);
}

.gallery-cta-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 38px) clamp(26px, 3vw, 46px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 88% 130%, rgba(212, 175, 55, 0.22) 0%, transparent 60%),
    var(--gradient-dark);
}

.gallery-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  color: var(--color-metallic-gold);
}

.gallery-cta-icon svg {
  width: 26px;
  height: 26px;
}

.gallery-cta-text {
  flex: 1 1 320px;
}

.gallery-cta-text h2 {
  font-family: var(--font-main);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.gallery-cta-text p {
  margin-top: 6px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--color-bright-gold);
}

.gallery-cta-card .btn {
  flex-shrink: 0;
}

/* -----------------------------
   6. Lightbox
------------------------------ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox.is-open {
  opacity: 1;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(960px, 92vw);
  max-height: 86vh;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.is-open .gallery-lightbox-figure {
  transform: scale(1);
}

.gallery-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.gallery-lightbox-cap {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-soft-white);
}

.gallery-lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border-gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-soft-white);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.gallery-lb-btn svg {
  width: 22px;
  height: 22px;
}

.gallery-lb-btn:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-black);
}

.gallery-lb-close {
  top: 22px;
  right: 22px;
}

.gallery-lb-close:hover {
  transform: rotate(90deg);
}

.gallery-lb-prev {
  left: max(16px, 3vw);
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lb-next {
  right: max(16px, 3vw);
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lb-prev:hover,
.gallery-lb-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* -----------------------------
   7. Responsive
------------------------------ */
@media (max-width: 1100px) {
  .gallery-row,
  .gallery-row--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-media-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-cat-head {
    flex-wrap: wrap;
  }

  .gallery-view-all {
    margin-left: 62px;
  }

  .gallery-row,
  .gallery-row--5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-cta-card .btn {
    width: 100%;
  }

  .gallery-lb-prev {
    left: 10px;
  }

  .gallery-lb-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .gallery-row,
  .gallery-row--5 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img,
  .gallery-lightbox,
  .gallery-lightbox-figure {
    transition: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}
