.page-head{
  padding:72px 0 42px;
  text-align:center;
}
.page-head .eyebrow{
  color:var(--pink);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.16em;
}
.page-head h1{
  margin-top:5px;
  font-size:clamp(2rem,5vw,3rem);
}
.page-head p:last-child{
  margin-top:8px;
  color:var(--ink-soft);
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:58px;
}
.gallery-card{
  display:block;
  width:100%;
  overflow:hidden;
  background:var(--white);
  border:0;
  border-radius:20px;
  box-shadow:0 5px 0 rgba(85,73,74,.05);
  cursor:zoom-in;
  transition:transform .2s ease,box-shadow .2s ease;
}
.gallery-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 16px rgba(85,73,74,.08);
}
.gallery-card img{
  width:100%;
  height:auto;
  aspect-ratio:1;
  background:var(--white);
  object-fit:contain;
}
.gallery-card img,.lightbox img{
  user-select:none;
  -webkit-user-drag:none;
  -webkit-touch-callout:none;
}
.back-home{margin-bottom:76px;text-align:center;}

.lightbox[hidden]{display:none;}
.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:58px 24px 24px;
  background:rgba(85,73,74,.86);
}
.lightbox img{
  max-width:min(1100px,94vw);
  max-height:88vh;
  background:var(--white);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(85,73,74,.24);
}
.lightbox-close{
  position:absolute;
  top:14px;
  right:20px;
  width:42px;
  height:42px;
  color:var(--ink);
  background:var(--white);
  border:0;
  border-radius:50%;
  font-size:1.5rem;
  cursor:pointer;
}

@media (max-width:760px){
  .page-head{padding-top:54px;}
  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .gallery-card{border-radius:15px;}
}
@media (max-width:390px){
  .gallery-grid{grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce){
  .gallery-card{transition:none;}
}
