/* Steph & Ink — gallery override. Replace the OLD gallery-styles.css with this file. */
.gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.gallery-card { min-width:0; }
.gallery-card button.gallery-image {
  appearance:none; display:block; width:100%; height:auto; min-height:0;
  padding:0; margin:18px 0; border:0; border-radius:12px;
  background:transparent; overflow:visible; text-align:center;
  cursor:zoom-in; aspect-ratio:auto;
}
.gallery-card button.gallery-image > img {
  display:block; width:100%; height:auto; max-width:100%; max-height:none;
  aspect-ratio:auto; object-fit:contain; object-position:center;
  border-radius:10px; transform:none;
}
.gallery-card button.gallery-image:hover > img { transform:none; }
.gallery-card button.gallery-image:focus-visible { outline:3px solid #80004c; outline-offset:4px; }
.gallery-lightbox { position:fixed; max-width:min(94vw,1100px); max-height:94vh; padding:12px; border:0; border-radius:14px; background:#fff; box-shadow:0 20px 70px #0005; }
.gallery-lightbox::backdrop { background:#000b; }
.gallery-lightbox img { display:block; max-width:100%; max-height:85vh; width:auto; height:auto; object-fit:contain; }
.lightbox-close { position:absolute; top:12px; right:16px; border:0; border-radius:50%; width:38px; height:38px; background:#fff; color:#222; font-size:30px; cursor:pointer; }
@media(max-width:850px) { .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .gallery { grid-template-columns:1fr; } }
