.anx-gallery {
  background: #f8f5f0;
  color: #392328;
  padding: clamp(4.5rem, 8vw, 9rem) max(5vw, calc((100% - 1440px)/2));
  scroll-margin-top: 4rem;
}
.anx-gallery__head {display:flex;align-items:baseline;justify-content:space-between;gap:1.25rem}
.anx-gallery__head h2 {margin:0;line-height:.98;font-size:clamp(3.3rem,7vw,7rem);font-weight:400;letter-spacing:-.045em}
.anx-gallery__instagram {color:inherit;text-decoration:none;font:inherit;font-size:.86rem;border-bottom:1px solid #b4a5a1;padding:.65rem 0}
.anx-gallery__instagram span {display:inline-block;margin-left:.4em;transition:transform .2s}
.anx-gallery__instagram:hover span {transform:translate(2px,-2px)}
.anx-gallery__filters {display:flex;align-items:center;flex-wrap:wrap;gap:.2rem clamp(.85rem,2.4vw,2.7rem);border-bottom:1px solid #d2c6c3;margin:clamp(1.4rem,3vw,3rem) 0 clamp(1.25rem,2.1vw,2.2rem)}
.anx-gallery__filters button {cursor:pointer;display:block;background:none;border-radius:0;border:0;color:#654d51;padding:.85rem 0;font:inherit;font-size:clamp(.8rem,1.05vw,.97rem);position:relative}
.anx-gallery__filters button[aria-pressed=true] {color:#602736;font-weight:600}
.anx-gallery__filters button[aria-pressed=true]::after {position:absolute;content:"";height:2px;left:0;right:0;bottom:-1px;background:#602736}
.anx-gallery__filters button:hover {color:#392328}
.anx-gallery__status {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.anx-gallery__grid {display:grid;grid-template-columns:1.15fr 1fr .94fr;align-items:start;gap:clamp(.65rem,1.7vw,2rem)}
.anx-gallery__photo {position:relative;display:block;overflow:hidden;background:#ded1cd;cursor:zoom-in;color:#fff;aspect-ratio:3/4}
.anx-gallery__grid:not(.is-filtered) .anx-gallery__photo:nth-child(2) {margin-top:clamp(1rem,4.5vw,5.5rem)}
.anx-gallery__grid:not(.is-filtered) .anx-gallery__photo:nth-child(3) {margin-top:clamp(.5rem,1.5vw,2rem)}
.anx-gallery__photo img {width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s ease}
.anx-gallery__expand {position:absolute;right:.8rem;bottom:.8rem;border:1px solid #fffc;border-radius:50%;width:2.3rem;height:2.3rem;display:grid;place-items:center;background:#21151977;color:white;line-height:1;font-family:Arial,sans-serif;font-size:1.45rem}
.anx-gallery__photo:hover img,.anx-gallery__photo:focus-visible img {transform:scale(1.025)}
.anx-gallery :focus-visible {outline:2px solid #823b52;outline-offset:3px}
.anx-gallery__viewer {position:fixed;inset:0;box-sizing:border-box;max-width:none;max-height:none;width:100%;height:100%;height:100dvh;margin:0;border:0;background:#21191b;color:#fff;padding:clamp(3.8rem,6vh,6rem) max(4vw,1rem) max(1.5rem,env(safe-area-inset-bottom));overflow:auto}
.anx-gallery__viewer[open] {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem}
.anx-gallery__viewer::backdrop {background:#21191b}
html:has(.anx-gallery__viewer[open]) {overflow:hidden}
.anx-gallery__viewer button {background:transparent;color:#fff;border:1px solid #ffffff75;border-radius:50%;width:2.85rem;height:2.85rem;padding:0;display:grid;place-items:center;font:1.45rem/1 Arial,sans-serif;cursor:pointer}
.anx-gallery__viewer button:hover {background:#ffffff17}
.anx-gallery__viewer button:focus-visible {outline-color:#fff}
.anx-gallery__close {position:absolute;top:max(.7rem,env(safe-area-inset-top));right:max(1rem,env(safe-area-inset-right))}
.anx-gallery__current-img {display:block;min-height:0;max-width:100%;min-width:0;object-fit:contain;flex:1}
.anx-gallery__controls {display:flex;flex:none;align-items:center;gap:clamp(.75rem,3vw,2.5rem)}
.anx-gallery__controls p {margin:0;text-align:center;font:inherit;font-size:.95rem;color:inherit}
.anx-gallery [hidden] {display:none!important}
@media(max-width:660px) {
  .anx-gallery {padding-inline:5vw}
  .anx-gallery__head {gap:.5rem}
  .anx-gallery__instagram {font-size:.76rem}
  .anx-gallery__filters {gap:0 1.1rem}
  .anx-gallery__filters button {min-height:44px}
  .anx-gallery__grid {grid-template-columns:1fr 1fr}
  .anx-gallery__grid:not(.is-filtered) .anx-gallery__photo:first-child {grid-column:1/-1;aspect-ratio:1.07}
  .anx-gallery__grid:not(.is-filtered) .anx-gallery__photo:nth-child(n+2) {margin-top:0}
  .anx-gallery__expand {width:1.8rem;height:1.8rem;right:.5rem;bottom:.5rem;font-size:1.2rem}
}
@media(prefers-reduced-motion:reduce) {
  .anx-gallery__photo img,.anx-gallery__instagram span {transition:none}
}
