

/* ------------------------------------------------------------
   FILTER BAR
------------------------------------------------------------ */
.gallery-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--soft);
}

/* ------------------------------------------------------------
   MASONRY GRID — CSS columns approach
   No JS library needed, works everywhere
------------------------------------------------------------ */
.gallery-masonry-wrapper {
  padding: 24px 72px;
  background: var(--warm-white);
}

.gallery-item.reveal {
  opacity: 1;
  transform: none;
}

.gallery-masonry {
  columns: 3;
  column-gap: 72px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 72px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Hide filtered items */
.gallery-item.hidden {
  display: none;
}

/* Real images */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.0);
}

/* Placeholder tiles (remove once real images added) */
.gallery-placeholder {
  width: 100%;
  border-radius: 2px;
  display: block;
  position: relative;
}

/* Vary placeholder heights for masonry feel */
.gallery-item:nth-child(3n+1) .gallery-placeholder { aspect-ratio: 3/4; }
.gallery-item:nth-child(3n+2) .gallery-placeholder { aspect-ratio: 1/1; }
.gallery-item:nth-child(3n+3) .gallery-placeholder { aspect-ratio: 4/5; }

/* Overlay on hover */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,20,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 2px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  font-family: var(--font-hand);
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

/* ------------------------------------------------------------
   GALLERY CTA
------------------------------------------------------------ */
.gallery-cta {
  padding: 100px 48px;
  text-align: center;
  background: var(--parchment);
}

.gallery-cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  color: var(--ink);
  margin: 16px 0 40px;
  line-height: 1.1;
}

.gallery-cta-title em {
  font-style: italic;
  color: var(--cobalt);
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
  .gallery-masonry-wrapper { padding: 24px; }
  .gallery-filter-bar { padding: 24px; }
  .gallery-hero { padding: 80px 24px 56px; }
  .gallery-cta { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .gallery-title { font-size: 44px; }
}