.oh-image-link { cursor: zoom-in; }
.oh-hover-detail, .oh-hover-lens { position: fixed; pointer-events: none; z-index: 9990; display: none; }
.oh-hover-detail { width: 300px; height: 300px; background-repeat: no-repeat; background-color: #f5f3ee; border: 1px solid #19254f; box-shadow: 0 6px 24px #0002; }
.oh-hover-lens { border: 1px solid #fff; outline: 1px solid #19254f; background: #fff2; }
.oh-viewer { box-sizing: border-box; width: 96vw; max-width: 96vw; height: auto; max-height: 94vh; padding: 26px; border: 0; background: #19254f; color: white; overflow: auto; }
.oh-viewer::backdrop { background: #101323d9; }
.oh-viewer *, .oh-viewer *::before, .oh-viewer *::after { box-sizing: border-box; }
.oh-viewer-header { position: sticky; top: -26px; z-index: 2; background: #19254f; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 8px 0; }
.oh-viewer-title { font-family: inherit; font-size: 21px; margin: 0; color: white; }
.oh-viewer-title:focus { outline: none; }
.oh-viewer button { color: white; background: transparent; border: 1px solid #ffffffa0; border-radius: 0; min-width: 44px; min-height: 44px; padding: 9px 14px; font: inherit; font-size: 16px; line-height: 1.4; cursor: pointer; }
.oh-viewer button:hover, .oh-viewer button[aria-pressed=true] { color: #19254f; background: white; }
.oh-viewer button:focus-visible, .oh-whole:focus-visible, .oh-detail:focus-visible { outline: 3px solid #e4cf9e; outline-offset: 4px; }
.oh-viewer button:focus:not(:focus-visible), .oh-detail:focus:not(:focus-visible), .oh-whole:focus:not(:focus-visible) { outline: none; }
.oh-viewer .oh-viewer-close { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 2px; border: 0; box-shadow: none; }
.oh-viewer .oh-viewer-close:hover { background: transparent; color: white; text-decoration: underline; }
.oh-viewer-close span { display: block; font-size: 40px; line-height: 1; }
.oh-viewer-close img { display: block; width: 40px; height: 40px; margin: 0; }
.oh-viewer-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.65fr); gap: 22px; }
.oh-viewer-label { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.oh-whole-wrap { display: grid; place-items: center; min-height: 240px; height: clamp(240px, calc(94vh - 350px), 58vh); background: #f4f2ed; }
.oh-whole { position: relative; display: inline-flex; max-width: 100%; max-height: 100%; touch-action: pan-y pinch-zoom; cursor: crosshair; }
.oh-whole img { display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(240px, calc(94vh - 350px), 58vh); margin: 0; }
.oh-detail-lens { position: absolute; pointer-events: none; border: 2px solid #fff; outline: 1px solid #19254f; background: #fff2; will-change: transform; }
.oh-detail { position: relative; overflow: hidden; height: clamp(240px, calc(94vh - 350px), 58vh); min-height: 240px; background-color: #f4f2ed; cursor: grab; touch-action: none; user-select: none; }
.oh-viewer .oh-detail-image { position: absolute; top: 0; left: 0; max-width: none; max-height: none; margin: 0; pointer-events: none; will-change: transform; }
.oh-pan-controls button.is-holding { background: white; color: #19254f; }
.oh-detail.is-dragging { cursor: grabbing; }
.oh-detail { --oh-motion-preference: standard; }
@media (prefers-reduced-motion: reduce) {
 .oh-detail { --oh-motion-preference: reduced; }
}
.oh-pan-help { font-size: 15px; line-height: 1.5; margin: 12px 0; }
.oh-pan-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; }
.oh-viewer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; }
.oh-viewer-help { font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
.oh-viewer-zoom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; }
.oh-viewer-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.oh-viewer-thumbs button { padding: 3px; }
.oh-viewer-thumbs img { display: block; width: 54px; height: 54px; object-fit: contain; margin: 0; background: #f4f2ed; }
.oh-viewer-status { font-size: 14px; line-height: 1.5; margin: 12px 0 0; min-height: 18px; }
.oh-viewer .oh-full-size { display: inline-block; min-height: 44px; padding: 10px 0; color: white; text-decoration: underline; font-size: 16px; }
.oh-viewer .oh-full-size:focus-visible { outline: 3px solid #e4cf9e; outline-offset: 4px; }
.oh-gallery-main { margin: 0 0 32px; }
.oh-gallery-main .single-slide, .oh-gallery-main .oh-image-link { margin-bottom: 0 !important; }
.oh-gallery-main .single-slide > p { margin: 10px 0 0; }
.oh-gallery-main .single-slide > p:empty { display: none; }
.oh-gallery-hint { text-align: center; font-size: 16px; line-height: 1.5; margin: 10px 0 0; }
.oh-viewer-loading .oh-detail-lens { display: none; }
html.oh-viewer-open { overflow: hidden; }
.oh-viewer[open] { display: flex; flex-direction: column; height: 94vh; height: 94dvh; overflow: hidden; padding: 18px 26px; }
.oh-viewer [hidden] { display: none !important; }
.oh-viewer-header { position: static; flex: 0 0 auto; margin-bottom: 6px; padding: 0; }
.oh-viewer-title { font-size: 19px; }
.oh-viewer-help { order: 2; flex: 0 0 auto; margin: 0 0 10px; font-size: 15px; }
.oh-viewer-tools { order: 1; flex: 0 0 auto; margin: 0 0 8px; gap: 14px; }
.oh-photo-stage { order: 3; flex: 1 1 0; min-height: 0 !important; width: 100%; display: flex; justify-content: center; align-items: center; padding: 0 !important; border: 0 !important; overflow: hidden; cursor: zoom-in !important; }
.oh-viewer .oh-photo-stage:hover, .oh-viewer .oh-photo-stage:focus { background: transparent; }
.oh-photo-stage img { display: block; flex: 0 1 auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; }
.oh-viewer-grid { order: 3; flex: 1 1 0; min-height: 0; gap: 20px; }
.oh-viewer-grid > section { display: flex; flex-direction: column; min-height: 0; }
.oh-viewer-label { font-size: 15px; margin-bottom: 7px; }
.oh-whole-wrap { flex: 1 1 0; min-height: 0; height: auto; overflow: hidden; }
.oh-whole { height: 100%; width: 100%; justify-content: center; align-items: center; }
.oh-whole img { max-height: 100%; object-fit: contain; }
.oh-detail { flex: 1 1 0; height: auto; min-height: 0; }
.oh-pan-help { flex: 0 0 auto; margin: 0; font-size: 15px; line-height: 1.5; }
.oh-pan-controls { flex: 0 0 auto; gap: 7px; margin-top: 9px; }
.oh-pan-controls > span { display: none; }
.oh-detail-toolbar { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.oh-detail-toolbar .oh-pan-controls, .oh-detail-toolbar .oh-viewer-tools { margin: 0; gap: 7px; }
.oh-viewer-grid .oh-viewer-help { order: 0; flex: 0 0 auto; min-height: 44px; margin: 10px 0 0; display: flex; align-items: center; }
.oh-viewer-zoom { gap: 7px; }
.oh-viewer-zoom > span { display: none; }
.oh-photo-footer { order: 4; flex: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; min-height: 62px; }
.oh-photo-counter { font-size: 14px; white-space: nowrap; }
.oh-viewer-thumbs { margin: 0; flex-wrap: nowrap; max-width: calc(100% - 55px); overflow-x: auto; padding: 3px; }
.oh-viewer-thumbs button { flex: 0 0 auto; }
.oh-viewer-status, .oh-viewer .oh-full-size { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
.oh-viewer .oh-full-size:focus { position: static; width: auto; height: auto; min-height: 44px; clip-path: none; order: 5; }
@media (max-width: 760px) {
 .oh-viewer { padding: 18px; width: 96vw; }
 .oh-viewer-header { top: -18px; }
 .oh-viewer-grid { grid-template-columns: 1fr; gap: 18px; }
 .oh-whole-wrap { height: 30vh; min-height: 160px; }
 .oh-whole img { max-height: 30vh; }
 .oh-detail { height: 32vh; min-height: 180px; }
 .oh-viewer-title { font-size: 18px; }
 .oh-viewer[open] { padding: 12px 16px; }
 .oh-viewer-header { gap: 8px; }
 .oh-viewer-title { font-size: 17px; }
 .oh-viewer-grid { grid-template-columns: 1fr; }
 .oh-viewer-grid > section:first-child { display: none; }
 .oh-viewer-grid .oh-detail { height: auto; min-height: 0; }
 .oh-viewer-grid .oh-viewer-label { display: none; }
 .oh-viewer-tools { gap: 8px; }
 .oh-viewer button { font-size: 15px; padding-left: 10px; padding-right: 10px; }
 .oh-viewer-help { font-size: 14px; }
 .oh-photo-footer { margin-top: 8px; }
 .oh-pan-controls { justify-content: center; }
 .oh-detail-toolbar .oh-pan-controls { display: none; }
 .oh-detail-toolbar .oh-pan-help { display: none; }
 .oh-detail-toolbar { justify-content: center; gap: 8px; }
 .oh-viewer-grid .oh-viewer-help { min-height: 0; margin: 8px 0 0; }
}

/* Refined local proof: square overview, rectangular detail, quiet controls. */
.oh-sr-only, .oh-viewer .oh-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap; }
.oh-gallery-main { position: relative; margin-bottom: 20px; }
.oh-item-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 50px; }
.oh-item-header .entry-title { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
.oh-item-navigation { display: flex; flex: 0 0 auto; align-items: center; gap: 0; margin: 0; }
.oh-item-navigation a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; color: #19254f; background: transparent; }
.oh-item-navigation a::before { content: ''; position: absolute; inset: 4px; border: 1px solid #19254f55; border-radius: 50%; }
.oh-item-navigation a:hover::before { border-color: #19254f; background: #19254f08; }
.oh-item-navigation a:focus-visible { outline: 2px solid #19254f; outline-offset: 4px; }
.oh-item-navigation svg { display: block; width: 17px; height: 17px; }
@media(max-width: 767px) { .oh-item-header { gap: 14px; margin-bottom: 30px; } }
.oh-page-thumbs { margin-bottom: 32px !important; }
.oh-page-thumbs .slick-list { overflow: visible; padding: 4px; }
.oh-page-thumbs .slick-track { display: flex; flex-wrap: wrap; justify-content: center; width: 100% !important; transform: none !important; gap: 10px; }
.oh-page-thumbs .slick-track::before, .oh-page-thumbs .slick-track::after { display: none; }
.oh-page-thumbs img.slick-slide { flex: 0 0 72px; width: 72px !important; height: 72px !important; object-fit: contain; padding: 3px; margin: 0 !important; opacity: 1; border: 0; cursor: pointer; }
.oh-page-thumbs img.slick-current { opacity: 1; box-shadow: 0 0 0 1px #19254f, 0 0 0 2px #fff; }
.oh-page-thumbs .slick-cloned { display: none !important; }
.oh-page-thumbs img:focus-visible { outline: 2px solid #19254f !important; outline-offset: 4px; }
.oh-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 24px 0 32px; }
.oh-item-actions .oh-tear-sheet { font-size: 16px; font-weight: 400; text-decoration: underline; }
.oh-viewer[open] { height: max-content; padding: 24px 26px; }
.oh-viewer:not(.is-inspecting)[open] { height: 94vh; height: 94dvh; }
.oh-viewer-header { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.65fr); gap: 20px; position: relative; top: auto; align-items: center; min-height: 44px; margin-bottom: 20px; }
.oh-viewer-title { grid-column: 1; grid-row: 1; font-size: 19px; line-height: 1.4; }
.oh-viewer .oh-viewer-close { position: absolute; top: 0; right: 0; }
.oh-viewer-header > .oh-viewer-tools { grid-column: 2; grid-row: 1; padding-right: 60px; margin: 0; gap: 8px 18px; }
.oh-viewer .oh-pan-help { display: block; margin: 0; color: white; font-size: 14px; line-height: 1.4; }
.oh-viewer-grid { flex: 0 0 auto; align-items: center; }
.oh-viewer-grid > section { height: var(--oh-panel-size); min-height: 0; justify-content: center; }
.oh-viewer-grid > section:first-child { align-items: center; }
.oh-whole-wrap { flex: 0 0 auto; width: var(--oh-panel-size); height: var(--oh-panel-size); max-width: 100%; overflow: visible; }
.oh-detail { flex: 1 1 auto; }
.oh-detail-toolbar:empty { display: none; }
.oh-viewer .oh-inspect-toggle { border: 0; min-width: 0; padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; }
.oh-viewer .oh-inspect-toggle:hover { background: transparent; color: white; }
.oh-viewer-zoom { gap: 0; }
.oh-viewer-zoom [data-zoom] { min-width: 44px; padding: 8px 10px; }
.oh-viewer-zoom [data-zoom] + [data-zoom] { margin-left: -1px; }
.oh-photo-footer { margin-top: 20px; min-height: 64px; }
.oh-viewer-thumbs { max-width: 100%; gap: 14px; padding: 6px; }
.oh-viewer-thumbs button { position: relative; border: 0; padding: 3px; min-width: 60px; opacity: 1; }
.oh-viewer .oh-viewer-thumbs button:hover, .oh-viewer .oh-viewer-thumbs button[aria-pressed=true] { background: transparent; opacity: 1; }
.oh-viewer-thumbs button[aria-pressed=true] { box-shadow: 0 0 0 1px #19254f, 0 0 0 2px #fff; }
.oh-viewer.is-full-scale .oh-detail { cursor: default; touch-action: pan-y pinch-zoom; }
.oh-viewer .oh-tooltip.is-pointer-tip, .oh-gallery-main .oh-tooltip.is-pointer-tip { position: fixed; bottom: auto; transform: none; }
.oh-tooltip.is-pointer-tip::before { content: ''; position: absolute; top: -4px; left: var(--oh-tip-tail, 10px); width: 8px; height: 8px; background: white; transform: rotate(45deg); }
.oh-tooltip.is-pointer-tip.is-above::before { top: auto; bottom: -4px; }
.oh-gallery-main > .oh-tooltip, .oh-viewer .oh-tooltip { position: absolute; z-index: 4; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 7px 11px; max-width: calc(100% - 24px); width: max-content; color: #19254f; background: #fff; box-shadow: 0 2px 10px #0002; font-size: 14px; line-height: 1.4; text-align: center; pointer-events: none; opacity: 0; }
.oh-gallery-main:focus-within > .oh-tooltip, .oh-whole:focus-visible > .oh-tooltip, .oh-detail:focus-visible > .oh-tooltip { opacity: 1; }
.oh-tip-dismissed > .oh-tooltip { opacity: 0 !important; }
@media (hover: hover) {
 .oh-gallery-main:hover > .oh-tooltip, .oh-whole:hover > .oh-tooltip, .oh-detail:hover > .oh-tooltip { opacity: 1; }
}
@media (hover: none) {
 .oh-gallery-main::before { content: '↗'; position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; color: #19254f; background: #fffe; font-size: 23px; pointer-events: none; }
}
@media (max-width: 760px) {
 .oh-viewer[open] { height: 94vh; height: 94dvh; padding: 16px; }
 .oh-viewer-header { display: flex; padding-right: 52px; margin-bottom: 12px; min-height: 44px; }
 .oh-viewer-title { font-size: 17px; }
 .oh-viewer-header > .oh-viewer-tools { padding-right: 0; }
 .oh-viewer-grid { flex: 1 1 0; }
 .oh-viewer-grid > section { height: 100%; }
 .oh-detail-toolbar { flex: 0 0 auto; margin-top: 12px; }
 .oh-detail-toolbar .oh-viewer-tools { gap: 12px; }
 .oh-photo-footer { margin-top: 12px; }
 .oh-page-thumbs .slick-track { gap: 8px; }
 .oh-page-thumbs img.slick-slide { flex-basis: 60px; width: 60px !important; height: 60px !important; }
 .oh-viewer:not(.is-inspecting) .oh-viewer-header { flex-wrap: wrap; }
}
