/* ==========================================================
   ThinkAIQ — Gallery page
   3 albums · Swiper coverflow · lightbox. Light theme.
   ========================================================== */

.gal-page {
  background: #f8fafc;
}

/* ---------- Hero ---------- */
.gal-hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  text-align: center;
}

.gal-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.06);
  color: #06b6d4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gal-hero h1 {
  margin: 20px 0 0;
  font-size: 40px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}

.gal-hero p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #64748b;
}

/* ---------- Album ---------- */
.gal-album {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 60px 0;
}

.gal-album:last-child {
  border-bottom: 0;
}

.gal-album-head {
  max-width: 1600px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.gal-album-title {
  margin: 10px 0 0;
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.gal-album-sub {
  margin: 8px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

/* ---------- Carousel ---------- */
.gal-carousel {
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px 0 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.gal-carousel .swiper-wrapper {
  align-items: stretch;
}

.gal-carousel .swiper-slide {
  height: auto;
  transition: opacity 0.35s ease;
}

.gal-carousel .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.5;
}

.gal-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: scale(0.85);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.gal-carousel .swiper-slide-active .gal-card {
  transform: scale(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.gal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

.gal-card figcaption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.gal-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed #e2e8f0;
  border-radius: 20px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 15px;
}

/* ---------- Controls ---------- */
.gal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.gal-prev,
.gal-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gal-prev:hover,
.gal-next:hover {
  border-color: #06b6d4;
  color: #06b6d4;
  transform: translateY(-2px);
}

.gal-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.gal-dots .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.25s ease;
}

.gal-dots .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
  background: #06b6d4;
}

/* ---------- Lightbox ---------- */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.gal-lightbox.is-open {
  display: flex;
}

.gal-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gal-lb-close,
.gal-lb-prev,
.gal-lb-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.gal-lb-close:hover,
.gal-lb-prev:hover,
.gal-lb-next:hover {
  transform: scale(1.06);
}

.gal-lb-close {
  top: 20px;
  right: 20px;
}

.gal-lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gal-lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gal-lb-prev:hover {
  transform: translateY(-50%) scale(1.06);
}

.gal-lb-next:hover {
  transform: translateY(-50%) scale(1.06);
}

body.gal-lightbox-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .gal-hero {
    padding: 56px 20px 32px;
  }

  .gal-hero h1 {
    font-size: 30px;
  }

  .gal-album {
    padding: 40px 0;
  }

  .gal-album-head {
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .gal-album-title {
    font-size: 24px;
  }

  .gal-lb-prev,
  .gal-lb-next {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gal-card,
  .gal-carousel .swiper-slide {
    transition: none;
  }

  .gal-prev:hover,
  .gal-next:hover,
  .gal-lb-close:hover,
  .gal-lb-prev:hover,
  .gal-lb-next:hover {
    transform: none;
  }
}
