/* Public galleries use the existing nail studio's cream + rose-gold language. */
.tami-gallery-grid{--tami-gallery-cols:3;display:grid;grid-template-columns:repeat(var(--tami-gallery-cols),minmax(0,1fr));gap:16px;margin:24px 0 34px;clear:both}
.tami-gallery-grid *{box-sizing:border-box}
.tami-gallery-card{margin:0;min-width:0;overflow:hidden;border:1px solid #eadbd4;border-radius:15px;background:#fffaf8;box-shadow:0 8px 26px rgba(93,52,43,.06)}
.tami-gallery-link{display:block;position:relative;overflow:hidden;aspect-ratio:1/1.06;background:#f6e9e3;cursor:zoom-in}
.tami-gallery-image{width:100%;height:100%;display:block;object-fit:cover;transition:transform .32s ease}
.tami-gallery-link:hover .tami-gallery-image{transform:scale(1.045)}
.tami-gallery-link:focus-visible{outline:3px solid #ac6d5e;outline-offset:-4px}
.tami-gallery-zoom{position:absolute;right:11px;bottom:11px;display:grid;place-items:center;width:35px;height:35px;background:rgba(255,251,248,.95);border:1px solid #e6cfc4;border-radius:50%;color:#a86b5b;font-size:22px;line-height:1;box-shadow:0 2px 11px #40231d24}
.tami-gallery-card figcaption{padding:10px 12px;font-size:.86rem;line-height:1.5;color:#6f5c54}
.tami-gallery-dialog{position:fixed;inset:0;margin:auto;max-width:min(1160px,96vw);max-height:95vh;width:max-content;height:max-content;border:1px solid #dcbeb3;border-radius:18px;padding:0;background:#1f1816;color:#fff;box-shadow:0 25px 80px #0006;overflow:hidden}
.tami-gallery-dialog::backdrop{background:rgba(25,16,14,.88)}
.tami-gallery-dialog-body{position:relative;display:flex;justify-content:center;align-items:center;min-width:min(600px,88vw);padding:14px 58px 46px}
.tami-gallery-dialog img{display:block;width:auto;max-width:100%;max-height:min(80vh,920px);height:auto;object-fit:contain;border-radius:8px}
.tami-gallery-dialog button{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid #ffffff35;background:#fffdf5ed;color:#493129;cursor:pointer;border-radius:50%;font-size:27px;width:40px;height:40px;line-height:1}
.tami-gallery-dialog button:focus-visible{outline:3px solid #d3927e;outline-offset:2px}
.tami-gallery-close{right:12px;top:12px}
.tami-gallery-prev{left:10px;top:50%;transform:translateY(-50%)}
.tami-gallery-next{right:10px;top:50%;transform:translateY(-50%)}
.tami-gallery-caption{position:absolute;bottom:14px;left:48px;right:48px;text-align:center;font:14px/1.4 Arial,sans-serif;color:#f6e4de;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:980px){.tami-gallery-grid{grid-template-columns:repeat(min(2,var(--tami-gallery-cols)),minmax(0,1fr))}}
@media(max-width:580px){.tami-gallery-grid{grid-template-columns:repeat(min(2,var(--tami-gallery-cols)),minmax(0,1fr));gap:10px}.tami-gallery-dialog-body{min-width:85vw;padding:14px 40px 44px}.tami-gallery-dialog button{width:32px;height:32px;font-size:23px}.tami-gallery-prev{left:4px}.tami-gallery-next{right:4px}}
@media(max-width:380px){.tami-gallery-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.tami-gallery-image{transition:none}}
