/* ─────────────────────────────────────────────────────────────
   GALLERY PAGE SPECIFIC STYLES
   Matching gallery.png reference layout exactly
───────────────────────────────────────────────────────────── */

/* Hero Banner */
.gal-hero {
  position: relative;
  background: #031833 url('assets/hero-banner-reference.png') center center / cover no-repeat;
  color: #ffffff;
  padding: 85px 0 90px;
  overflow: hidden;
}

.gal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 24, 51, 0.92) 0%, rgba(3, 24, 51, 0.82) 50%, rgba(3, 24, 51, 0.65) 100%);
}

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

.gal-hero-badge {
  display: inline-block;
  background: rgba(229, 35, 39, 0.15);
  border: 1px solid rgba(229, 35, 39, 0.4);
  color: #ff4d4f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.gal-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.gal-hero p {
  max-width: 580px;
  font-size: 15px;
  color: #d1d5db;
  line-height: 1.6;
  margin: 0 0 24px;
}

.gal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.gal-breadcrumbs a {
  color: #e5e7eb;
  transition: color 0.2s;
}

.gal-breadcrumbs a:hover {
  color: #3b82f6;
}

.gal-breadcrumbs span {
  color: #ef4444;
  font-weight: 600;
}

/* Eyebrow Accent */
.red-eyebrow-text {
  color: #e52327;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-center-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-center-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: #081936;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.18;
}

.section-center-head p {
  color: #64748b;
  font-size: 14.5px;
  margin: 0;
  line-height: 1.65;
}

/* Section 1: Gallery Grid */
.gal-grid-section {
  padding: 85px 0;
  background: #ffffff;
}

.gal-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filter-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover {
  border-color: #03142e;
  color: #03142e;
}

.filter-pill.active {
  background: #03142e;
  border-color: #03142e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(3, 20, 46, 0.25);
}

.gallery-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.gal-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 260px;
  background: #021430;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(3, 24, 51, 0.18);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.4s ease;
}

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

.gal-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 20, 48, 0.88) 100%);
  opacity: 1;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  transition: background 0.3s ease;
}

.gal-item:hover .gal-item-overlay {
  background: linear-gradient(180deg, transparent 25%, rgba(2, 20, 48, 0.95) 100%);
}

.gal-item-overlay span {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .gallery-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-photos-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   FULLSCREEN LIGHTBOX MODAL
   ---------------------------------------------------------- */
.gal-item {
  cursor: pointer;
}

.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(2, 12, 28, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.gal-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gal-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gal-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.gal-lightbox.active .gal-lightbox-img {
  transform: scale(1);
}

.gal-lightbox-caption {
  margin-top: 16px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
  background: rgba(3, 24, 51, 0.8);
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gal-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 100001;
}

.gal-lightbox-close:hover {
  background: #ed2626;
  transform: scale(1.1);
}

.gal-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 100000;
}

.gal-lightbox-nav:hover {
  background: #1766c7;
  transform: translateY(-50%) scale(1.1);
}

.gal-lightbox-prev {
  left: 24px;
}

.gal-lightbox-next {
  right: 24px;
}
