/* ══════════════════════════════════════
   GALLERY PAGE — gallery.css
   Combs & Scissors · Premium Barbershop
══════════════════════════════════════ */

/* ── Filter Tabs ── */
.gallery-tabs-section {
  border-bottom: 1px solid rgba(201,162,39,0.15);
  position: sticky;
  top: 72px;
  z-index: 100;
  background: #0a0806;
  padding: 0 0 1px;
}
.gallery-tabs-wrap {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 0.5rem;
  gap: 0.25rem;
}
.gallery-tabs-wrap::-webkit-scrollbar { display: none; }

.gallery-tab {
  background: transparent;
  border: none;
  color: #6a5e48;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -1px;
  position: relative;
}
.gallery-tab i { font-size: 0.85rem; transition: color 0.2s; }
.gallery-tab:hover {
  color: rgba(201,162,39,0.85);
  background: rgba(201,162,39,0.05);
}
.gallery-tab.active {
  color: #c9a827;
  border-bottom-color: #c9a827;
  background: rgba(201,162,39,0.08);
}


/* ── Gallery Section ── */
.gallery-section {
  background: #080603;
  padding-top: 3rem;
  padding-bottom: 4rem;
}


/* ══════════════════════════════════════
   BENTO MASONRY GRID
══════════════════════════════════════ */
.gallery-grid {
  columns: 4 240px;
  column-gap: 10px;
}

/* Each item breaks inside avoided */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Wide items span visually via extra height on the image */
.gallery-item-wide .gallery-img {
  aspect-ratio: 16/8;
}
.gallery-item-tall .gallery-img {
  aspect-ratio: 3/4;
}
.gallery-item:not(.gallery-item-wide):not(.gallery-item-tall) .gallery-img {
  aspect-ratio: 4/3;
}


/* ── Image ── */
.gallery-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}
.gallery-img-wrap:hover .gallery-img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.1);
}


/* ── Hover Overlay ── */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 4, 2, 0.93) 0%,
    rgba(5, 4, 2, 0.45) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem 1rem 0.9rem;
  border-radius: 10px;
}
.gallery-img-wrap:hover .gallery-overlay { opacity: 1; }

/* Zoom button top-right */
.gallery-zoom-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(201,162,39,0.92);
  color: #0a0806;
  border-radius: 50%;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.gallery-img-wrap:hover .gallery-zoom-btn {
  opacity: 1;
  pointer-events: auto;
}
.gallery-zoom-btn:hover {
  background: #c9a827;
  transform: scale(1.12);
  color: #0a0806;
}

.gallery-overlay-content { width: 100%; }

.gallery-cat-tag {
  display: inline-block;
  background: #c9a827;
  color: #0a0806;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}
.gallery-title {
  color: #f5efe0;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}
.gallery-sub {
  color: rgba(245, 235, 210, 0.5);
  font-size: 0.72rem;
  margin: 0;
  line-height: 1.3;
}


/* ══════════════════════════════════════
   LOAD MORE
══════════════════════════════════════ */
.btn-outline-gold {
  background: transparent;
  border: 1.5px solid rgba(201,162,39,0.5);
  color: #c9a827;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.btn-outline-gold:hover {
  background: rgba(201,162,39,0.12);
  border-color: #c9a827;
  color: #c9a827;
}
.btn-outline-gold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* ══════════════════════════════════════
   BEFORE / AFTER
══════════════════════════════════════ */
.ba-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s;
}
.ba-card:hover {
  box-shadow: 0 16px 50px rgba(0,0,0,0.13);
  border-color: rgba(201,162,39,0.4);
  transform: translateY(-5px);
}

.ba-images {
  display: flex;
  align-items: stretch;
  height: 225px;
}
.ba-before,
.ba-after {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.ba-card:hover .ba-img { transform: scale(1.05); }

.ba-label {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
.ba-label-before {
  background: rgba(0,0,0,0.72);
  color: #999;
}
.ba-label-after {
  background: #c9a827;
  color: #0a0806;
}

.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  background: #0a0806;
  flex-shrink: 0;
  font-size: 1rem;
  color: #c9a827;
  font-weight: 900;
  z-index: 2;
  letter-spacing: -1px;
}

.ba-info {
  padding: 1.1rem 1.2rem 1.25rem;
  border-top: 1px solid #ede7d9;
  background: #fff;
}
.ba-name {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1208;
  margin: 0 0 0.3rem;
}
.ba-service {
  font-size: 0.76rem;
  color: #c9a827;
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* ══════════════════════════════════════
   INSTAGRAM CTA
══════════════════════════════════════ */
.gallery-insta-section {
  border-top: 1px solid rgba(201,162,39,0.12);
  border-bottom: 1px solid rgba(201,162,39,0.12);
}
.insta-icon-wrap {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.9rem;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(220,39,67,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.insta-icon-wrap:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 40px rgba(220,39,67,0.5);
}


/* ── Lightbox theme override ── */
.lb-data .lb-caption {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 0.95rem;
  color: #c9a827;
}
.lb-outerContainer { border-radius: 10px; }
.lb-nav a.lb-prev,
.lb-nav a.lb-next { opacity: 0.65; }
.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover { opacity: 1; }


/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: #4a3e2a;
}
.gallery-empty i { font-size: 3rem; margin-bottom: 1rem; color: #2a2215; }
.gallery-empty h4 { color: #6a5e48; font-size: 1rem; margin: 0; }


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1199px) {
  .gallery-grid { columns: 3 220px; }
}

@media (max-width: 991px) {
  .gallery-tabs-section { top: 0; }
  .gallery-grid { columns: 3 180px; }
}

@media (max-width: 768px) {
  .gallery-grid { columns: 2 160px; column-gap: 8px; }
  .gallery-grid .gallery-item { margin-bottom: 8px; }
  .ba-images { height: 175px; }
  .ba-divider { width: 26px; font-size: 0.85rem; }
  .gallery-item-wide .gallery-img { aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 2 140px; column-gap: 6px; }
  .gallery-grid .gallery-item { margin-bottom: 6px; }
  .gallery-tab { padding: 0.8rem 0.85rem; font-size: 0.72rem; }
  .gallery-tab i { display: none; }
  .ba-images { height: 150px; }
}