/* ================================================
   GALLERY PAGE — Simple
   gallery.css v2
================================================ */

/* PAGE HERO */
.gal-hero {
  position: relative;
  padding: 110px 0 64px;
  background: var(--dark);
  overflow: hidden;
}
.gal-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #0a1f35 0%, var(--dark) 60%, #0d1a2a 100%);
}
.gal-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.gal-hero-inner {
  position: relative;
  z-index: 2;
}
.gal-hero-inner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.gal-hero-inner .breadcrumb a { color: rgba(255,255,255,0.5); }
.gal-hero-inner .breadcrumb a:hover { color: var(--white); }
.gal-hero-inner .breadcrumb i { font-size: 0.6rem; }
.gal-hero-inner h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}
.gal-hero-inner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* GALLERY SECTION */
.gal-section {
  padding: 64px 0 100px;
  background: var(--off-white);
}

/* GRID */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gal-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--border);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gal-item:hover img { transform: scale(1.06); }

.gal-hover {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gal-hover i {
  font-size: 1.4rem;
  color: var(--white);
  background: rgba(0,128,202,0.85);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.gal-item:hover .gal-hover { opacity: 1; }

/* CTA BAND */
.gal-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a1f35 0%, var(--dark-2) 100%);
}
.gal-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.gal-cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.gal-cta-text p { font-size: 1rem; color: rgba(255,255,255,0.6); }
.gal-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* LIGHTBOX */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 10, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gal-lightbox.active { opacity: 1; visibility: visible; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: var(--primary); border-color: var(--primary); }
.lb-close { top: 22px; right: 22px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal-cta-inner { flex-direction: column; text-align: center; }
  .gal-cta-actions { justify-content: center; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
@media (max-width: 480px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
