/* Original photographs keep their proportions. Only interface thumbnails are small. */
.rt-result-gallery { min-width:0; color:var(--wc-ink,#331512); }
.rt-result-gallery [hidden] { display:none !important; }
.rt-result-gallery button { font:inherit; color:inherit; cursor:pointer; border-radius:0; }
.rt-result-gallery button:disabled { opacity:.35; cursor:default; }
.rt-result-gallery :is(button,a,summary):focus-visible { outline:2px solid var(--wc-ink,#331512); outline-offset:4px; }
.rt-result-gallery button:not(:disabled):active { transform:translateY(1px); }
.rt-result-gallery svg { width:1.25rem; height:1.25rem; fill:none; stroke:currentColor; stroke-width:1.4; flex:none; }
.rt-result-gallery__toolbar { display:flex; justify-content:flex-end; align-items:center; gap:1.25rem; padding-bottom:1.25rem; }
.rt-result-gallery__counter { font-size:.8rem; font-variant-numeric:tabular-nums; margin:0; }
.rt-result-gallery__arrows { display:flex; gap:.5rem; }
.rt-result-gallery__arrows button { display:grid; place-items:center; width:48px; min-height:48px; background:transparent; border:1px solid rgba(51,21,18,.4); transition:background-color .2s ease; }
.rt-result-gallery__arrows button:not(:disabled):hover { background:rgba(247,248,246,.5); }
.rt-result-gallery__slide { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr); gap:clamp(2rem,4.5vw,5rem); align-items:start; min-width:0; }
.rt-result-gallery__copy { padding-top:.35rem; }
.rt-result-gallery__copy [data-rt-gallery-title] { margin:0 0 1.4rem; font-size:clamp(2.1rem,3.25vw,3.65rem); line-height:1.04; overflow-wrap:anywhere; text-wrap:balance; }
.rt-result-gallery__eyebrow { font-size:.74rem; line-height:1.5; margin:0 0 .85rem; }
.rt-result-gallery__copy dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem 1.4rem; margin:1.5rem 0; padding-block:1.2rem; border-block:1px solid rgba(51,21,18,.3); }
.rt-result-gallery__copy dt { font-size:.7rem; margin:0 0 .3rem; }
.rt-result-gallery__copy dd { font-size:.88rem; margin:0; overflow-wrap:anywhere; }
.rt-result-gallery__note { max-width:48ch; font-size:.86rem; line-height:1.65; margin:1.25rem 0 0; }
.rt-result-gallery__treatment { display:inline-flex; align-items:center; gap:2rem; min-height:44px; margin-top:1.25rem; padding-bottom:.5rem; color:inherit; text-decoration:none; border-bottom:1px solid currentColor; font-size:.88rem; }
.rt-result-archive .rt-result-gallery__stage { border-top:1px solid var(--wc-rule,#c6bdb4); padding-top:1.5rem; }
.rt-result-archive [data-rt-archive-panel][hidden] { display:none !important; }
.rt-result-gallery__visual { min-width:0; }
.rt-result-gallery__photos { display:grid; gap:.75rem; align-items:start; }
.rt-result-gallery__photos--pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.rt-result-gallery__photos--composite { grid-template-columns:minmax(0,1fr); }
.rt-result-gallery__figure { margin:0; min-width:0; }
.rt-result-gallery__image-link { display:block; min-width:0; color:inherit; text-decoration:none; }
.rt-result-gallery__figure img { display:block; width:100%; max-width:100%; height:auto; max-height:36rem; object-fit:contain; object-position:center top; background:rgba(247,248,246,.2); }
.rt-result-gallery__figure figcaption { font-size:.74rem; line-height:1.45; margin:.6rem 0 0; }
.rt-result-gallery__enlarge { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; min-height:44px; padding:.55rem 0; margin:.75rem 0 0 auto; background:none; border:0; border-bottom:1px solid currentColor; font-size:.8rem !important; }
.rt-result-gallery__image-error,.rt-result-gallery__unavailable { padding:2rem 1.5rem; background:rgba(247,248,246,.35); border:1px solid rgba(51,21,18,.2); font-size:.88rem; line-height:1.6; margin:0; }
.rt-result-gallery__image-error { display:block; }
.rt-result-gallery__browse { margin-top:1.75rem; padding-top:1.25rem; border-top:1px solid rgba(51,21,18,.25); }
.rt-result-gallery__browse>p { margin:0 0 .75rem; font-size:.75rem; }
.rt-result-gallery__thumbs { display:flex; overflow-x:auto; gap:.65rem; padding:4px 4px .75rem; margin-inline:-4px; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:rgba(51,21,18,.45) transparent; }
.rt-result-gallery__thumbs button { position:relative; flex:0 0 76px; min-width:0; height:64px; scroll-snap-align:center; background:rgba(247,248,246,.35); border:1px solid transparent; padding:3px; }
.rt-result-gallery__thumbs button[aria-current="true"] { border-color:var(--wc-ink,#331512); outline:1px solid var(--wc-ink,#331512); outline-offset:1px; }
.rt-result-gallery__thumbs img { width:100%; height:100%; object-fit:contain; display:block; }
.rt-result-gallery__thumbs span { position:absolute; bottom:2px; right:2px; font-size:.62rem; min-width:1.15rem; padding:.05rem .15rem; background:var(--wc-paper,#f7f8f6); line-height:1.4; font-variant-numeric:tabular-nums; }
.rt-result-gallery__disclaimer { max-width:64ch; font-size:.75rem; line-height:1.6; margin:1.25rem 0 0; }
.rt-result-gallery__fallback details { border-top:1px solid rgba(51,21,18,.3); margin-top:1.5rem; padding-block:1rem; }
.rt-result-gallery__fallback summary { min-height:44px; cursor:pointer; }
.rt-result-gallery .rt-result-gallery__dialog { box-sizing:border-box; width:min(94vw,1280px); min-width:0; max-width:calc(100vw - 1rem); height:min(94dvh,64rem); max-height:94dvh; padding:1.25rem; margin:auto; overflow:hidden; border:0; color:var(--wc-ink,#331512); background:var(--wc-paper,#f7f8f6); overscroll-behavior:contain; }
.rt-result-gallery .rt-result-gallery__dialog[open] { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto minmax(0,1fr) auto; }
.rt-result-gallery .rt-result-gallery__dialog>* { min-width:0; max-width:100%; box-sizing:border-box; }
.rt-result-gallery__dialog::backdrop { background:rgba(35,20,18,.82); }
.rt-result-gallery .rt-result-gallery__dialog-head { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.75rem; padding-bottom:.8rem; }
.rt-result-gallery .rt-result-gallery__dialog .rt-result-gallery__dialog-head h2 { min-width:0; max-width:100%; width:auto; font-family:inherit; font-size:1.25rem; font-weight:500; line-height:1.3; letter-spacing:normal; margin:0; padding:0; overflow-wrap:anywhere; text-wrap:pretty; }
.rt-result-gallery .rt-result-gallery__dialog-head button { display:flex; align-items:center; justify-content:center; gap:.5rem; min-width:48px; min-height:48px; padding:.35rem .5rem; border:0; background:none; font-size:.875rem; line-height:1.3; white-space:nowrap; }
.rt-result-gallery__dialog .rt-result-gallery__figure img { max-height:72dvh; background:none; }
.rt-result-gallery .rt-result-gallery__dialog-body { min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; padding:4px; }
.rt-result-gallery__dialog-body:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
.rt-result-gallery .rt-result-gallery__dialog-note { box-sizing:border-box; position:sticky; left:0; width:100%; max-width:65ch; margin:0 0 1rem; font-size:.875rem; line-height:1.6; overflow-wrap:anywhere; }
.rt-result-gallery__zoom-tools { display:flex; align-items:center; gap:.5rem 1rem; flex-wrap:wrap; padding:0 0 .6rem; font-size:.75rem; }
.rt-result-gallery .rt-result-gallery__zoom-tools button { min-height:48px; padding:.5rem .6rem; border:1px solid var(--wc-rule,#c6bdb4); background:none; font-size:.8rem; line-height:1.3; }
.rt-result-gallery__dialog.is-detail .rt-result-gallery__photos { display:block; width:max-content; min-width:100%; }
.rt-result-gallery__dialog.is-detail .rt-result-gallery__figure { margin-bottom:1rem; }
.rt-result-gallery__dialog.is-detail .rt-result-gallery__figure img { width:auto; max-width:none; height:auto; max-height:none; }
.rt-result-gallery .rt-result-gallery__dialog-foot { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:.5rem; padding-top:1rem; }
.rt-result-gallery .rt-result-gallery__dialog-foot button { min-height:48px; min-width:0; max-width:100%; justify-self:start; padding:.5rem .6rem; border:1px solid var(--wc-rule,#c6bdb4); background:none; font-size:.82rem; line-height:1.3; white-space:nowrap; }
.rt-result-gallery .rt-result-gallery__dialog-foot button:last-child { justify-self:end; }
.rt-result-gallery .rt-result-gallery__dialog-foot p { grid-column:2; min-width:0; margin:0; font-size:.75rem; line-height:1.4; font-variant-numeric:tabular-nums; text-align:center; }
@media(max-width:760px) {
 .rt-result-gallery__toolbar { justify-content:space-between; padding-bottom:1rem; }
 .rt-result-gallery__slide { grid-template-columns:1fr; gap:1.4rem; }
 .rt-result-gallery__visual { grid-row:1; }
 .rt-result-gallery__copy { padding:0; }
 .rt-result-gallery__copy [data-rt-gallery-title] { font-size:clamp(1.8rem,7vw,2.5rem); margin-bottom:1rem; }
 .rt-result-gallery__eyebrow { margin-bottom:.45rem; }
 .rt-result-gallery__copy dl { margin:1rem 0 0; padding-block:.9rem; gap:.85rem 1rem; }
 .rt-result-gallery__note { margin-top:1rem; }
 .rt-result-gallery__figure img { max-height:30rem; }
 .rt-result-gallery__photos { gap:.45rem; }
 .rt-result-gallery__figure figcaption { font-size:.72rem; }
 .rt-result-gallery__browse { margin-top:1.4rem; }
 .rt-result-gallery__thumbs button { flex-basis:64px; height:56px; }
 .rt-result-gallery .rt-result-gallery__dialog { width:calc(100vw - 1rem); max-height:calc(100dvh - 1rem); padding:.8rem; }
 .rt-result-gallery__dialog .rt-result-gallery__photos--pair { grid-template-columns:minmax(0,1fr); gap:1.25rem; }
 .rt-result-gallery__dialog .rt-result-gallery__figure img { max-height:none; }
}
@media(prefers-reduced-motion:reduce) { .rt-result-gallery * { scroll-behavior:auto !important; transition:none !important; } }
