/* ═══════════════════════════════════════
   GALLERY PAGE
═══════════════════════════════════════ */

.page-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,14,0.88) 0%, rgba(14,14,14,0.25) 100%); }
.page-hero-content { position: relative; z-index: 1; padding: 80px 7%; width: 100%; }

/* BEFORE / AFTER */
.ba-wrap {
  position: relative; overflow: hidden;
  height: 480px; cursor: ew-resize;
  border: 1px solid var(--rule);
  user-select: none;
}
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after { clip-path: inset(0 50% 0 0); transition: none; }
.ba-label { position: absolute; top: 20px; font-family: 'Epilogue', sans-serif; font-weight: 900; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: white; background: rgba(0,0,0,0.55); padding: 6px 14px; z-index: 5; }
.ba-label-l { left: 20px; }
.ba-label-r { right: 20px; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: white; z-index: 10; transform: translateX(-1px); cursor: ew-resize; }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); cursor: ew-resize; }
.ba-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; z-index: 6; font-size: 12px; color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.4); padding: 8px 16px; width: fit-content; margin: 0 auto; }

/* GALLERY */
.gal-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.gf { padding: 8px 22px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--rule-dk); background: transparent; color: var(--ink-soft); cursor: pointer; transition: all 0.15s; font-family: 'Figtree', sans-serif; }
.gf:hover, .gf.active { background: var(--orange); border-color: var(--orange); color: white; }

.gal-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 240px; gap: 4px; }
.gal-item { position: relative; overflow: hidden; cursor: pointer; }
.gal-item.gal-tall { grid-row: span 2; }
.gal-item.gal-wide { grid-column: span 2; }

.gal-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.gal-item:hover .gal-photo { transform: scale(1.07); }

.gal-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-tag-pill { position: absolute; top: 14px; left: 14px; background: var(--orange); color: white; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; }
.gal-info {}
.gal-title { font-family: 'Epilogue', sans-serif; font-weight: 900; font-size: 16px; color: white; margin-bottom: 4px; }
.gal-loc { font-size: 12px; color: rgba(255,255,255,0.7); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lb-box { background: var(--dark); max-width: 720px; width: 100%; position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.lb-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 18px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: background 0.15s; }
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-img-wrap { height: 400px; overflow: hidden; }
.lb-img { width: 100%; height: 100%; object-fit: cover; }
.lb-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.lb-tag { display: inline-block; background: var(--orange); color: white; font-size: 10px; font-weight: 700; padding: 4px 10px; margin-bottom: 14px; letter-spacing: 0.12em; text-transform: uppercase; width: fit-content; }
.lb-title { font-family: 'Epilogue', sans-serif; font-weight: 900; font-size: 22px; color: white; margin-bottom: 12px; letter-spacing: -0.02em; }
.lb-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.65; }

@media (max-width: 768px) {
  .lb-box { grid-template-columns: 1fr; }
  .lb-img-wrap { height: 240px; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gal-item.gal-wide { grid-column: span 2; }
  .ba-wrap { height: 320px; }
}
