/* ==========================================================
   KBR GALLERY PAGE STYLES
   ========================================================== */

.gallery-page {
  background: var(--red-950);
}

.gallery-page main {
  overflow: hidden;
}

.gallery-page img {
  display: block;
  max-width: 100%;
}

/* ==========================================================
   HERO (TEXT ONLY — NO IMAGE)
   ========================================================== */

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 201, 76, 0.13), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(215, 25, 32, 0.2), transparent 32%),
    linear-gradient(135deg, var(--red-950), var(--red-825));
}

.gallery-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.gallery-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.gallery-glow-one {
  top: 12%;
  right: 8%;
  width: 330px;
  height: 330px;
  background: rgba(242, 201, 76, 0.1);
}

.gallery-glow-two {
  bottom: 8%;
  left: 5%;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.035);
}

.gallery-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(2rem, 5vw, 4rem);
}

.gallery-hero-content {
  max-width: 760px;
  text-align: center;
}

.gallery-hero-logo {
  width: clamp(96px, 9vw, 140px);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.35));
  animation: gallery-logo-float 5s ease-in-out infinite;
}

.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--yellow-400);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--yellow-500);
}

.gallery-hero-content h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.65rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.gallery-hero-content h1 span {
  color: var(--yellow-500);
  font-weight: 500;
}

.gallery-hero-content p {
  max-width: 600px;
  margin: 0.9rem auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.75;
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.gallery-primary-button,
.gallery-secondary-button,
.gallery-partner-button,
.gallery-partner-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-primary-button,
.gallery-partner-button {
  border: 1px solid var(--yellow-500);
  background: var(--yellow-500);
  color: var(--red-950);
}

.gallery-secondary-button,
.gallery-partner-link {
  border: 1px solid rgba(242, 201, 76, 0.25);
  background: rgba(242, 201, 76, 0.06);
  color: var(--yellow-100);
}

/* ==========================================================
   SHOWCASE SECTION
   ========================================================== */

.gallery-showcase {
  background:
    radial-gradient(circle at 10% 20%, rgba(242, 201, 76, 0.05), transparent 28%),
    linear-gradient(180deg, var(--red-950), var(--red-875));
}

.gallery-section-header {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.gallery-section-header h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.65rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.gallery-section-header h2 span {
  color: var(--yellow-500);
  font-weight: 500;
}

.gallery-section-header p {
  max-width: 680px;
  margin: 0.85rem auto 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.gallery-section-header strong {
  color: var(--yellow-400);
}

/* Media tabs */

.gallery-media-tabs {
  display: grid;
  width: min(100%, 320px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  margin: 0 auto 2rem;
  padding: 0.28rem;
  border: 1px solid rgba(242, 201, 76, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.gallery-media-tab {
  min-height: 42px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.gallery-media-tab.active {
  background: var(--yellow-500);
  color: var(--red-950);
}

/* ==========================================================
   PHOTO GRID — consistent square tiles, premium hover zoom
   ========================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid[hidden],
.gallery-video-grid[hidden] {
  display: none !important;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(242, 201, 76, 0.14);
  border-radius: 20px;
  background: var(--red-900);
  box-shadow: 0 20px 45px rgba(12, 0, 1, 0.28);
  transition: border-color 300ms ease, transform 300ms ease;
}

.gallery-item:hover {
  border-color: rgba(242, 201, 76, 0.4);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms ease;
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 0, 1, 0.75), transparent 55%);
}

.gallery-item-overlay {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 2;
}

.gallery-item-overlay span {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(242, 201, 76, 0.24);
  border-radius: 100px;
  background: rgba(242, 201, 76, 0.12);
  color: var(--yellow-300);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-item-overlay strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ==========================================================
   VIDEO GRID
   ========================================================== */

.gallery-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery-video-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(242, 201, 76, 0.18);
  border-radius: 20px;
  background: rgba(76, 4, 6, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.gallery-video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ==========================================================
   STORY CARDS
   ========================================================== */

.gallery-story-section {
  background: var(--red-875);
  padding-block: clamp(2.2rem, 5vw, 4.5rem);
}

.gallery-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-story-card {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid rgba(242, 201, 76, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 201, 76, 0.04), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-medium);
}

.gallery-story-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow-500), transparent);
  opacity: 0.45;
}

.gallery-story-card span {
  color: var(--yellow-400);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-story-card h3 {
  margin-top: 0.55rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.gallery-story-card p {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ==========================================================
   PARTNER CTA
   ========================================================== */

.gallery-partner-section {
  padding-block: clamp(2.2rem, 5vw, 4.5rem);
  background: var(--red-950);
}

.gallery-partner-card {
  position: relative;
  display: grid;
  min-height: 250px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 3.8vw, 2.8rem);
  border: 1px solid var(--border-yellow);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 15%, rgba(242, 201, 76, 0.12), transparent 28%),
    linear-gradient(135deg, var(--red-850), var(--red-700));
  box-shadow: var(--shadow-large);
}

.gallery-partner-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 201, 76, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 201, 76, 0.028) 1px, transparent 1px);
  background-size: 38px 38px;
}

.gallery-partner-glow {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(242, 201, 76, 0.11);
  filter: blur(70px);
  transform: translateY(-50%);
}

.gallery-partner-content,
.gallery-partner-actions {
  position: relative;
  z-index: 2;
}

.gallery-partner-content .section-kicker {
  justify-content: flex-start;
}

.gallery-partner-content .section-kicker::after {
  display: none;
}

.gallery-partner-content h2 {
  display: flex;
  flex-direction: column;
  margin-top: 0.65rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.gallery-partner-content h2 span {
  color: var(--yellow-500);
  font-weight: 500;
}

.gallery-partner-content p {
  max-width: 680px;
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.gallery-partner-actions {
  display: grid;
  gap: 0.65rem;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes gallery-logo-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

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

/* ==========================================================
   TABLET (<=1024px)
   ========================================================== */

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .gallery-partner-card {
    grid-template-columns: 1fr;
  }

  .gallery-partner-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

/* ==========================================================
   MOBILE (<=768px)
   ========================================================== */

@media (max-width: 768px) {
  .gallery-hero {
    padding-top: calc(var(--top-offset, var(--header-height)) + 0.6rem);
  }

  .gallery-hero-container {
    padding-block: 2rem 1.75rem;
  }

  .gallery-hero-logo {
    width: clamp(76px, 22vw, 110px);
    margin-bottom: 0.7rem;
  }

  .gallery-eyebrow {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .gallery-eyebrow::before {
    width: 18px;
  }

  .gallery-hero-content h1 {
    margin-top: 0.4rem;
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
    letter-spacing: -0.045em;
  }

  .gallery-hero-content p {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .gallery-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    width: 100%;
    margin-top: 1.1rem;
  }

  .gallery-primary-button,
  .gallery-secondary-button {
    min-height: 46px;
    padding: 0.65rem 0.5rem;
    font-size: 0.6rem;
    white-space: normal;
    text-align: center;
  }

  .gallery-section-header {
    margin-bottom: 1.4rem;
  }

  .gallery-section-header h2 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .gallery-section-header p {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .gallery-media-tabs {
    width: min(100%, 260px);
    margin-bottom: 1.25rem;
  }

  .gallery-media-tab {
    min-height: 38px;
    font-size: 0.6rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .gallery-item {
    border-radius: 12px;
  }

  .gallery-item-overlay {
    right: 0.4rem;
    bottom: 0.4rem;
    left: 0.4rem;
  }

  .gallery-item-overlay span {
    display: none;
  }

  .gallery-item-overlay strong {
    font-size: 0.5rem;
    line-height: 1.15;
  }

  .gallery-video-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery-story-section {
    padding-block: 2rem;
  }

  .gallery-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .gallery-story-card {
    padding: 0.7rem;
    border-radius: 12px;
  }

  .gallery-story-card span {
    font-size: 0.32rem;
  }

  .gallery-story-card h3 {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.15;
  }

  .gallery-story-card p {
    margin-top: 0.4rem;
    font-size: 0.52rem;
    line-height: 1.45;
  }

  .gallery-partner-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .gallery-partner-content h2 {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .gallery-partner-content p {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .gallery-partner-actions {
    display: grid;
    gap: 0.5rem;
  }
}

/* ==========================================================
   SMALL MOBILE (<=480px)
   ========================================================== */

@media (max-width: 480px) {
  .gallery-hero-content h1 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .gallery-hero-content p {
    font-size: 0.7rem;
  }

  .gallery-grid {
    gap: 0.4rem;
  }

  .gallery-item {
    border-radius: 10px;
  }

  .gallery-item-overlay strong {
    font-size: 0.46rem;
  }

  .gallery-story-grid {
    gap: 0.35rem;
  }

  .gallery-story-card {
    padding: 0.55rem;
  }

  .gallery-story-card h3 {
    font-size: 0.68rem;
  }

  .gallery-story-card p {
    font-size: 0.44rem;
  }
}
/* ==========================================
   REMOVE ALL BLACK SHADES - GALLERY PAGE
   ========================================== */

/* Remove hero glow effects */
.gallery-glow,
.gallery-glow-one,
.gallery-glow-two {
    display: none !important;
}

/* Remove dark overlay on gallery images */
.gallery-item::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
}

/* Remove dark backgrounds */
.gallery-item,
.gallery-video-item,
.gallery-story-card,
.gallery-partner-card {
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove image backgrounds and shadows */
.gallery-item img,
.gallery-video-item video,
.gallery-hero-logo {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Remove partner glow and pattern */
.gallery-partner-glow,
.gallery-partner-pattern {
    display: none !important;
}

/* Remove borders if desired */
.gallery-item,
.gallery-video-item,
.gallery-story-card,
.gallery-partner-card {
    border-color: transparent !important;
}