/* ================================================================
   gallery.css — Gallery page
   ================================================================ */

.gallery-hero {
  background-image: url('https://static.wixstatic.com/media/78b7b5_e46f3a67b33d48deb86bb9b14c165955~mv2.jpg/v1/fit/w_960,h_959,q_90,enc_avif,quality_auto/78b7b5_e46f3a67b33d48deb86bb9b14c165955~mv2.jpg');
}

/* ─── Intro ────────────────────────────────────────────── */
.gallery-intro {
  background: var(--cream);
  text-align: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.gallery-intro .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}
.gallery-intro p {
  font-size: 16px;
  max-width: 540px;
  margin: 16px auto 0;
}

/* ─── Filter Tabs ──────────────────────────────────────── */
.gallery-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 80px;
  z-index: 100;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.filter-tab {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  padding: 18px 24px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.filter-tab:hover { color: var(--terra); }
.filter-tab.active {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* ─── Grid ─────────────────────────────────────────────── */
.gallery-section { background: var(--white); padding: 60px 0; }
.gallery-section-header {
  margin-bottom: 32px;
}
.gallery-section-header h3 {
  font-size: 28px;
  color: var(--ink);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--parch);
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,14,6,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(20,14,6,0.25);
}
.gallery-item-zoom {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item-zoom svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.gallery-item:hover .gallery-item-zoom {
  opacity: 1;
  transform: scale(1);
}

/* ─── Virtual Tour CTA ─────────────────────────────────── */
.virtual-tour-cta {
  background: var(--parch);
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.virtual-tour-cta h3 {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 12px;
}
.virtual-tour-cta p {
  font-size: 15px;
  margin-bottom: 28px;
  color: var(--mid);
}
.virtual-tour-cta .btn { margin: 0 8px; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
  .filter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filter-tab { white-space: nowrap; padding: 16px 18px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 3px; }
  .gallery-item.wide { grid-column: span 2; }
}
