/* Gallery controls remain outside the photograph, with generous touch targets. */
.ag-modal[open]{display:flex;flex-direction:column;width:min(1120px,calc(100vw - 24px));height:min(90vh,900px);height:min(90dvh,900px);max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;box-sizing:border-box}
.ag-modal .ag-modal-bar{flex:0 0 auto;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #d9e6eb;background:#f5f9fa}
.bz-gallery-nav{display:flex;align-items:center;gap:12px;min-width:0}
.ag-modal .bz-gallery-arrow{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;height:44px;padding:0;border-radius:50%;border:1px solid #aacbd8;background:#fff;color:#245b73;touch-action:manipulation}
.bz-gallery-arrow svg{display:block;width:23px;height:23px;pointer-events:none}
.bz-gallery-count{min-width:58px;text-align:center;font-size:14px;line-height:1.4;font-variant-numeric:tabular-nums;color:#365e70;white-space:nowrap}
.ag-modal #ag-close{min-width:72px;min-height:44px;padding:8px 15px;white-space:nowrap}
.ag-modal button:hover{background:#deeff3}
.ag-modal button:focus-visible{outline:3px solid #2875ac;outline-offset:3px}
.ag-modal button:disabled{opacity:.45;cursor:default}
.ag-modal figure{flex:1 1 0;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;margin:0;padding:0;overflow:hidden;background:#eaf0f2}
.ag-modal #ag-full{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0}
@media(max-width:480px){.ag-modal[open]{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:90vh;height:90dvh}.ag-modal .ag-modal-bar{gap:8px;padding:10px}.bz-gallery-nav{gap:6px}.bz-gallery-count{min-width:52px;font-size:13px}.ag-modal #ag-close{min-width:64px;padding:8px 12px}}