/* ==========================================================================
   VANTAGE — Gallery page (loaded after home.css; body.home.gallery-page)
   ========================================================================== */

/* ---------- Hero (shared subpage height lives in home.css; no feature strip, so pad the bottom) ---------- */
.gallery-page .hero {
  padding-bottom: 90px;
}

/* ---------- Projects ---------- */
.gallery-page .gal-work {
  background: var(--bg);
  padding: var(--sec-y) 0;
  scroll-margin-top: 60px;
}

/* ---------- Grid: 2 large on top, then rows of 3 ---------- */
.gallery-page .gal-grid {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 14px;
}
.gallery-page .gal-item {
  position: relative;
  height: 240px;
  padding: 0;
  overflow: hidden;
  background: #0d0f0e;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery-page .gal-item.lg {
  height: 320px;
}
.gallery-page .gal-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-page .gal-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(var(--v-bg-rgb) / 0) 45%, rgb(var(--v-bg-rgb) / 0.90) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-page .gal-cap {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-page .gal-cap strong {
  font-size: 0.95rem;
}
.gallery-page .gal-cap span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}
.gallery-page .gal-item:hover,
.gallery-page .gal-item:focus-visible {
  border-color: #4d5a50;
}
.gallery-page .gal-item:hover img,
.gallery-page .gal-item:focus-visible img {
  transform: scale(1.05);
}
.gallery-page .gal-item:hover::before,
.gallery-page .gal-item:focus-visible::before,
.gallery-page .gal-item:hover .gal-cap,
.gallery-page .gal-item:focus-visible .gal-cap {
  opacity: 1;
  transform: none;
}

/* ---------- Before / after ---------- */
.gallery-page .gal-ba {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sec-y) 0;
  scroll-margin-top: 60px;
}
.gallery-page .gal-ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.gallery-page .gal-ba-head .sec-title {
  margin: 0;
}
.gallery-page .gal-ba-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gallery-page .gal-ba-count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-right: 10px;
}
.gallery-page .gal-compare {
  height: 520px;
  border: 1px solid var(--line2);
}
.gallery-page .gal-compare .lbl.left {
  left: 20px;
}
.gallery-page .gal-compare .lbl.right {
  right: 20px;
}

/* ---------- Testimonials ---------- */
.gallery-page .gal-testi {
  position: relative;
  overflow: hidden;
  padding: var(--sec-y) 0;
  background: var(--bg);
}
.gallery-page .gal-testi .testi-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.gallery-page .gal-testi::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(var(--v-bg-rgb) / 0.90) 0%, rgb(var(--v-bg-rgb) / 0.60) 50%, rgb(var(--v-bg-rgb) / 0.90) 100%);
}
.gallery-page .gal-testi .container {
  z-index: 2;
}
.gallery-page .gal-testi-grid {
  --bs-gutter-x: 40px;
  --bs-gutter-y: 28px;
}
.gallery-page .gal-testi-grid .testi-nav {
  --fr: 0.25; /* 0.5 : 1.5 */
}
.gallery-page .gal-testi .sec-title {
  margin-bottom: 18px;
}
.gallery-page .quote blockquote {
  max-width: 560px;
  font-size: 1.05rem;
  margin: 0 0 26px;
}
.gallery-page .quote .stars {
  margin-left: 24px;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
}

/* ---------- Lightbox ---------- */
.gallery-page .gal-lightbox .modal-content {
  position: relative;
  padding: 0;
}
.gallery-page .gal-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}
.gallery-page .gal-lightbox .btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 10px;
  background-color: rgb(var(--v-bg-rgb) / 0.70);
  opacity: 1;
}
.gallery-page .gal-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.gallery-page .gal-lightbox-bar .cap {
  font-size: 0.88rem;
}
.gallery-page .gal-lightbox-bar .cap em {
  font-style: normal;
  color: var(--sage);
  margin-left: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gallery-page .gal-lightbox-bar > span:last-child {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .gallery-page .gal-item {
    height: 220px;
  }
  .gallery-page .gal-item.lg {
    height: 300px;
  }
  /* Captions always visible on touch screens */
  .gallery-page .gal-item::before,
  .gallery-page .gal-cap {
    opacity: 1;
    transform: none;
  }
  .gallery-page .gal-compare {
    height: 400px;
  }
}

@media (max-width: 575px) {
  .gallery-page .gal-grid {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }
  .gallery-page .gal-item {
    height: 160px;
  }
  .gallery-page .gal-item.lg {
    height: 220px;
  }
  .gallery-page .gal-cap {
    left: 12px;
    right: 12px;
    bottom: 10px;
  }
  .gallery-page .gal-cap strong {
    font-size: 0.82rem;
  }
  .gallery-page .gal-cap span {
    font-size: 0.62rem;
  }
  .gallery-page .gal-ba-count {
    display: none;
  }
  .gallery-page .gal-compare {
    height: 280px;
  }
  .gallery-page .quote .who {
    flex-wrap: wrap;
  }
  .gallery-page .quote .stars {
    flex-basis: 100%;
    margin: 6px 0 0;
  }
}

/* Stacked (<992px): default gutter so wide desktop gutters do not overhang the container */
@media (max-width: 991px) {
  .gallery-page .gal-testi-grid {
    --bs-gutter-x: 24px;
  }
}
