.aura-gallery { width: 100%; min-width: 0; margin: 0 0 20px; }
.aura-gallery *, .aura-gallery-dialog * { box-sizing: border-box; }
.aura-gallery__stage { position: relative; border: 1px solid #ddd; background: #fff; border-radius: 0; }
.aura-gallery__open { display: flex; width: 100%; aspect-ratio: 1; align-items: center; justify-content: center; cursor: zoom-in; overflow: hidden; }
.aura-gallery__image { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; transform: scale(1); transition: transform .2s ease; }
@media (hover: hover) and (pointer: fine) {
    .aura-gallery__open.is-zoomed .aura-gallery__image { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .aura-gallery__image { transition: none; }
}
.aura-gallery__arrow, .aura-gallery-dialog__close {
    appearance: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
    width: 42px; height: 42px; color: #9359a0; background: rgba(255,255,255,.95);
    border-radius: 50%; box-shadow: 0 2px 12px #0002; font-family: inherit; font-size: 20px; font-weight: 400; line-height: 1;
}
.aura-gallery__arrow { position: absolute; z-index: 3; top: calc(50% - 21px); }
.aura-gallery__arrow--previous { left: 10px; }
.aura-gallery__arrow--next { right: 10px; }
.aura-gallery__arrow:hover, .aura-gallery-dialog__close:hover { background: #9359a0; color: #fff; }
.aura-gallery button:focus-visible, .aura-gallery a:focus-visible,
.aura-gallery-dialog button:focus-visible { outline: 2px solid #9359a0; outline-offset: 3px; }
.aura-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; margin: 0; }
.aura-gallery__thumb { flex: 0 0 76px; width: 76px; height: 76px; padding: 3px; border: 1px solid #ddd; border-radius: 0; background: #fff; cursor: pointer; }
.aura-gallery__thumb[aria-current="true"] { border-color: #9359a0; box-shadow: inset 0 0 0 1px #9359a0; }
.aura-gallery__thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
html.aura-gallery-is-open { overflow: hidden; }
.aura-gallery-dialog:not([open]) { display: none; }
.aura-gallery-dialog {
    position: fixed; inset: 0; margin: 0; padding: 16px 64px; border: 0; border-radius: 0;
    width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
    background: transparent; color: #fff; overflow: hidden;
}
.aura-gallery-dialog::backdrop { background: rgba(0,0,0,.88); }
.aura-gallery-dialog__image { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.aura-gallery-dialog__close { position: absolute; top: 12px; right: 12px; z-index: 4; width: 50px; height: 50px; }
.aura-gallery-dialog__close::before,
.aura-gallery-dialog__close::after {
    content: ''; position: absolute; top: 12px; left: 25px;
    height: 26px; width: 0; border-left: 1.6px solid currentColor;
    transform: rotate(45deg); pointer-events: none;
}
.aura-gallery-dialog__close::after { transform: rotate(-45deg); }
.aura-gallery-dialog__count { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); margin: 0; padding: 5px 12px; background: #0009; color: #fff; font: 14px/1.4 Arial,sans-serif; }
.aura-gallery [hidden], .aura-gallery-dialog [hidden] { display: none !important; }
@media(max-width:767px) {
    .aura-gallery__thumb { flex-basis: 64px; width: 64px; height: 64px; }
    .aura-gallery-dialog { padding: 60px 8px 40px; }
    .aura-gallery-dialog .aura-gallery__arrow { background: rgba(255,255,255,.85); }
}
