/* =============================================
   GALLERY PAGE
   ============================================= */

/* ── HERO ── */
.gal-hero {
  padding: 160px 64px 80px;
  border-bottom: 1px solid var(--grey-200);
}

.gal-hero-inner {
  max-width: 800px;
}

.gal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.88;
  margin: 16px 0 24px;
  color: var(--white);
  overflow-wrap: break-word;
  word-break: break-word;
}

.gal-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--grey-400);
  max-width: 480px;
  line-height: 1.75;
}

/* ── FILTER TABS ── */
.gal-filters {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--grey-200);
  padding: 0 64px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gal-filters::-webkit-scrollbar { display: none; }

.gal-filter {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 20px 28px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  margin-bottom: -1px;
}

.gal-filter:hover {
  color: var(--white);
}

.gal-filter--active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* ── GRID ── */
.gal-section {
  padding: 48px 48px 80px;
}

.gal-grid {
  columns: 3;
  column-gap: 12px;
}

.gal-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  background: var(--grey-100);
}

.gal-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-fit: cover;
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gal-overlay span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 400;
}

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

.gal-item:hover .gal-overlay {
  opacity: 1;
}

/* Hide filtered items */
.gal-item--hidden {
  display: none;
}

/* ── CTA BAND ── */
.gal-cta {
  border-top: 1px solid var(--grey-200);
  background: var(--grey-100);
  padding: 100px 64px;
  text-align: center;
}

.gal-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.gal-cta-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.92;
  color: var(--white);
  margin: 0 0 24px;
}

.gal-cta p {
  font-size: 16px;
  font-weight: 300;
  color: var(--grey-400);
  line-height: 1.75;
  margin-bottom: 36px;
}

.gal-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── LIGHTBOX ── */
.gal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.gal-lightbox--open {
  opacity: 1;
  pointer-events: all;
}

.gal-lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gal-lb-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.gal-lb-caption {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.gal-lb-close,
.gal-lb-prev,
.gal-lb-next {
  position: fixed;
  background: none;
  border: 1px solid var(--grey-300);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s, border-color 0.2s;
  z-index: 1001;
}

.gal-lb-close { top: 24px; right: 24px; font-size: 16px; }
.gal-lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.gal-lb-next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; }

.gal-lb-close:hover,
.gal-lb-prev:hover,
.gal-lb-next:hover {
  background: var(--grey-200);
  border-color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gal-grid { columns: 2; }
  .gal-filters { padding: 0 24px; }
}

@media (max-width: 640px) {
  .gal-hero { padding: 120px 24px 60px; }
  .gal-hero-title { font-size: clamp(44px, 14vw, 80px); }
  .gal-grid { columns: 2; column-gap: 8px; }
  .gal-item { margin-bottom: 8px; }
  .gal-section { padding: 32px 16px 60px; }
  .gal-cta { padding: 80px 24px; }
  .gal-lb-prev { left: 12px; }
  .gal-lb-next { right: 12px; }
}
