.atr-gallery { --atr-accent: #bd472a; --atr-border: #d1d4d5; margin: 0 0 1.25rem; }
.atr-gallery .atr-gallery__figure { margin: 0; }
.atr-gallery__stage { touch-action: pan-y pinch-zoom; position: relative; border: 1px solid var(--atr-border); border-radius: .45rem; background: #f4f5f5; overflow: hidden; }
.atr-gallery__open { position: relative; display: block; aspect-ratio: 16 / 10; }
.atr-gallery .atr-gallery__cover { display: block; width: 100%; height: 100%; object-fit: contain; }
.atr-gallery__expand, .atr-gallery__badge { position: absolute; background: #222a2f; color: #fff; border-radius: .25rem; padding: .3rem .5rem; font-size: .8rem; line-height: 1.35; font-weight: 650; }
.atr-gallery__expand { right: .5rem; bottom: .5rem; }
.atr-gallery__badge { left: .5rem; top: .5rem; pointer-events: none; }
.atr-gallery__badge[data-status="available"], .atr-gallery__badge[data-status="new_listing"] { background: #985125; }
.atr-gallery__badge[data-status="sold"] { background: #9e2726; }
.atr-gallery__badge[hidden] { display: none; }
.atr-gallery__meta { display: flex; justify-content: space-between; gap: .5rem; margin-top: .35rem; font-size: .875rem; }
.atr-gallery__count { flex: none; }
.atr-gallery__thumbs { display: flex; gap: .45rem; overflow: auto; padding: .3rem .2rem .5rem; }
.atr-gallery__thumb { flex: 0 0 auto; display: block; border: 2px solid transparent; border-radius: .35rem; padding: 2px; }
.atr-gallery__thumb[aria-current="true"] { border-color: var(--atr-accent); }
.atr-gallery .atr-gallery__thumb img { display: block; width: clamp(58px, 12vw, 92px); height: clamp(46px, 9vw, 66px); object-fit: cover; border-radius: .15rem; }
.atr-gallery a:focus-visible, .atr-gallery button:focus-visible { outline: 2px solid #e07942; outline-offset: 2px; }
.atr-gallery .atr-gallery__dialog { box-sizing: border-box; position: fixed; inset: 0; width: min(94vw, 1150px); max-width: none; height: 94vh; height: 94dvh; max-height: none; margin: auto; padding: .65rem; border: 0; border-radius: .45rem; background: #172025; color: #fff; }
.atr-gallery .atr-gallery__dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .5rem; }
.atr-gallery__dialog::backdrop { background: #000c; }
.atr-gallery__toolbar, .atr-gallery__controls { display: flex; align-items: center; gap: .45rem; }
.atr-gallery__toolbar span, .atr-gallery__announcement { flex: 1; }
.atr-gallery__announcement { margin: 0; text-align: center; font-size: .875rem; }
.atr-gallery .atr-gallery__dialog button { cursor: pointer; min-height: 44px; padding: .25rem .5rem; border: 1px solid #828b91; border-radius: .25rem; background: #222e35; color: #fff; font: inherit; }
.atr-gallery__viewer { min-height: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.atr-gallery .atr-gallery__full { display: block; width: 100%; height: 100%; object-fit: contain; }
.atr-gallery__viewer.is-zoomed { overflow: auto; touch-action: auto; }
.atr-gallery .is-zoomed .atr-gallery__full { width: 200%; height: 200%; max-width: none; max-height: none; }
