/* ═══════════════════════════════
   GALLERY PAGE — Trust Salon
═══════════════════════════════ */

/* ─── FILTER ─── */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 5vw;
  background: var(--ivory);
  border-bottom: 1px solid var(--light-gray);
  flex-wrap: wrap;
}
.gf-btn {
  padding: 10px 22px;
  background: transparent;
  border: 2px solid var(--light-gray);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mid-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}
.gf-btn.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
}
.gf-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* ─── GALLERY MAIN ─── */
.gallery-main {
  padding: 56px 5vw 80px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ─── GALLERY GRID (Masonry-style) ─── */
.gallery-grid {
  columns: 4;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.gallery-item.hidden {
  display: none;
}

.gi-image {
  width: 100%;
  height: 220px;
  transition: transform 0.5s ease;
}
.gallery-item.gi-tall .gi-image { height: 340px; }

.gi-info {
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.4s ease;
}
.gi-cat {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease 0.05s;
}
.gi-info h3 {
  font-family: var(--serif);
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
  font-style: italic;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease 0.1s;
}

.gallery-item:hover .gi-image { transform: scale(1.04); }
.gallery-item:hover .gi-info { background: rgba(30,30,30,0.55); }
.gallery-item:hover .gi-cat,
.gallery-item:hover .gi-info h3 {
  opacity: 1;
  transform: translateY(0);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: var(--sans);
}
.lb-close:hover { color: #fff; }
.lb-content {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 40px;
  max-width: 900px;
  width: 90%;
}
.lb-img {
  width: 400px;
  height: 500px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lb-details {
  color: #fff;
}
.lb-cat {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.lb-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.2;
}

/* ─── GALLERY CTA ─── */
.gallery-cta {
  padding: 90px 5vw;
  background: var(--charcoal);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gallery-cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(184,150,46,0.1) 0%, transparent 70%);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) { .gallery-grid { columns: 3; } }
@media (max-width: 860px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
  .lb-content { flex-direction: column; }
  .lb-img { width: 100%; height: 250px; }
}
.gi-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
