.aurea-gallery{--aurea-gallery-gap:16px;--aurea-gallery-columns:3;color:inherit;font:inherit}
.aurea-gallery__grid{display:grid;grid-template-columns:repeat(var(--aurea-gallery-columns),minmax(0,1fr));gap:var(--aurea-gallery-gap)}
.aurea-gallery__tile{position:relative;display:block;overflow:hidden;background:#e4dfd3;aspect-ratio:4/3}
.aurea-gallery__tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.aurea-gallery__tile:hover img{transform:scale(1.025)}
.aurea-gallery__all{position:absolute;inset:auto 0 0;padding:28px 18px 16px;background:linear-gradient(transparent,rgba(20,27,17,.88));color:#fff;font-size:14px;line-height:1.5}
.aurea-gallery__open{display:inline-flex;align-items:center;gap:18px;padding:12px 0;border-bottom:1px solid currentColor;color:inherit!important;font:inherit;text-decoration:none!important;letter-spacing:.08em}
.aurea-gallery a:focus-visible{outline:3px solid currentColor;outline-offset:4px}
html.aurea-gallery-is-open,html.aurea-gallery-is-open body{overflow:hidden!important}
dialog.aurea-gallery-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#f3ede1;color:#454d40;box-sizing:border-box;overscroll-behavior:contain}
.aurea-gallery-dialog:not([open]){display:none}
.aurea-gallery-dialog[open]{display:flex;flex-direction:column}
.aurea-gallery-dialog::backdrop{background:#454d40}
.aurea-gallery-dialog *{box-sizing:border-box}
.aurea-gallery-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 32px;border-bottom:1px solid #454d4030}
.aurea-gallery-dialog .aurea-gallery-dialog__title{margin:0;font-family:inherit;font-size:clamp(18px,2vw,28px);font-weight:400;line-height:1.3;overflow-wrap:anywhere;color:inherit}
.aurea-gallery-dialog button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border:1px solid #454d4060;border-radius:0;background:transparent;color:#454d40;font:inherit;cursor:pointer}
.aurea-gallery-dialog button:hover{background:#454d40;color:#f3ede1}
.aurea-gallery-dialog.aurea-gallery-dialog button:focus,.aurea-gallery-dialog.aurea-gallery-dialog button:focus-visible{outline:3px solid #454d40!important;outline-offset:3px!important;background:transparent!important;color:#454d40!important;box-shadow:none!important}
.aurea-gallery-dialog button:disabled{opacity:.35;cursor:default}
.aurea-gallery-dialog .aurea-gallery-dialog__close{font-size:28px;flex-shrink:0}
.aurea-gallery-dialog__viewer{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:24px;flex:1;min-height:0;width:100%;max-width:1600px;margin:0 auto;padding:24px 40px}
.aurea-gallery-dialog__stage{display:flex;flex-direction:column;min-width:0;min-height:0}
.aurea-gallery-dialog__image-wrap{position:relative;flex:1;min-height:0}
.aurea-gallery-dialog__image{display:block;width:100%;height:100%;object-fit:contain;touch-action:pan-y}
.aurea-gallery-dialog__caption{margin:10px 0 0;text-align:center;font-size:14px;line-height:1.4;max-height:4em;overflow:auto}
.aurea-gallery-dialog__error{position:absolute;inset:40% 20px auto;text-align:center}
.aurea-gallery-dialog [hidden]{display:none!important}
.aurea-gallery-dialog__controls{display:flex;align-items:center;justify-content:center;gap:24px;padding-top:12px;flex-shrink:0}
.aurea-gallery-dialog__counter{font-size:13px;line-height:1.4;text-align:center}
.aurea-gallery-dialog__thumbs{display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;padding:4px;scrollbar-width:thin}
.aurea-gallery-dialog .aurea-gallery-dialog__thumb{display:block;flex:0 0 76px;width:100%;height:76px;min-height:0;padding:3px;border:2px solid transparent;opacity:.65}
.aurea-gallery-dialog .aurea-gallery-dialog__thumb[aria-current=true]{border-color:#454d40;opacity:1}
.aurea-gallery-dialog__thumb img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:1024px){.aurea-gallery{--aurea-gallery-columns:2}.aurea-gallery-dialog__viewer{padding:20px;gap:16px}}
@media(max-width:767px){.aurea-gallery{--aurea-gallery-gap:10px}.aurea-gallery-dialog__header{padding:12px 16px}.aurea-gallery-dialog__viewer{display:flex;flex-direction:column;padding:12px 14px max(12px,env(safe-area-inset-bottom));gap:12px}.aurea-gallery-dialog__stage{flex:1}.aurea-gallery-dialog__thumbs{flex:0 0 70px;flex-direction:row}.aurea-gallery-dialog .aurea-gallery-dialog__thumb{flex:0 0 82px;width:82px;height:58px}.aurea-gallery-dialog__controls{gap:16px}}
@media(prefers-reduced-motion:reduce){.aurea-gallery__tile img{transition:none}}
