/* Reuse your main site styles (header/footer/theme/etc.) */
@import url("styles.css");

/* ---------------- Gallery Page ---------------- */

/* Gallery page single background */
body{
  background: #fff4f4;
}


.gallery-hero{
  padding: clamp(2.2rem, 4vw, 3.2rem) 0 1.4rem;
}

.gallery-title{
  margin: 0 0 .6rem;
  font-size: var(--h1);
  line-height: 1.05;
}

.gallery-subtitle{
  margin: 0 0 1.2rem;
  max-width: 60ch;
  color: var(--muted);
  font-size: var(--p);
}

.gallery-controls{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .6rem;
}

.filter-btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  padding: .55rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.filter-btn:hover{
  transform: translateY(-1px);
  background: rgba(229, 70, 83, 0.08);
  border-color: rgba(229, 70, 83, 0.18);
}

.filter-btn.is-active{
  background: rgba(229, 70, 83, 0.12);
  border-color: rgba(229, 70, 83, 0.25);
}

/* Gallery grid */
.gallery{
  padding: 1.4rem 0 3.2rem;
}

.gallery-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Make items consistent and premium */
.gallery-item{
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(229,231,235,0.85);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  cursor: zoom-in;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gallery-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.18);
  border-color: rgba(229, 70, 83, 0.20);
}

.gallery-item img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Filtering */
.gallery-item.is-hidden{
  display: none;
}

/* Responsive grid */
@media (min-width: 680px){
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item img{
    height: 280px;
  }
}

@media (min-width: 980px){
  .gallery-grid{
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item img{
    height: 300px;
  }
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.lightbox.is-open{
  display: block;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.lightbox-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(229,231,235,0.9);
  box-shadow: 0 28px 80px rgba(0,0,0,0.30);
}

.lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(229,231,235,1);
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: .45rem .6rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.lightbox-img{
  width: 100%;
  height: min(70vh, 640px);
  object-fit: contain;
  background: #fff;
  display: block;
}

@media (prefers-reduced-motion: reduce){
  .gallery-item,
  .filter-btn{
    transition: none !important;
  }
}
