.case-project-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; width: 100%; margin-bottom: 12px; }
.case-project-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--accent, var(--home-turquoise, #32dac8)); text-decoration: underline; text-underline-offset: .24em; }
.case-project-links a:hover { text-decoration-thickness: 2px; }
.case-gallery { margin-block: 32px; }
.case-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 14px; }
.case-gallery-grid figure { min-width: 0; margin: 0; }
.case-gallery-grid a { display: grid; place-items: center; padding: 8px; border-radius: 6px; background: var(--wash, var(--home-bg-soft, #142028)); border: 1px solid var(--rule, var(--home-line-dark, #56616b)); }
.case-gallery-grid a:hover { border-color: currentColor; }
.case-gallery-grid img { display: block; width: 100%; height: 220px; object-fit: contain; }
.case-gallery-grid figcaption { margin-top: 8px; font-size: 15px; color: var(--soft, var(--home-text-muted, inherit)); }
.case-gallery-dialog { position: fixed; inset: 0; margin: auto; width: min(1180px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; padding: clamp(10px, 1.5vw, 18px); background: #101820; color: #f5f7fa; border: 1px solid #52626f; border-radius: 10px; }
.case-gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.case-gallery-dialog::backdrop { background: #080d12e8; }
.case-gallery-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
.case-gallery-dialog button { min-width: 44px; min-height: 44px; border: 1px solid #647581; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: 23px; cursor: pointer; }
.case-gallery-dialog button:hover { background: #32404c; }
.case-gallery-viewer { position: relative; min-height: 0; min-width: 0; display: grid; }
.case-gallery-frame { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-gutter: stable; }
.case-gallery-frame img { display: block; width: 100%; height: auto; touch-action: pan-y pinch-zoom; }
.case-gallery-side { position: absolute; inset: 0; pointer-events: none; }
.case-gallery-side[hidden] { display: none; }
.case-gallery-dialog .case-gallery-side button { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: auto; background: #15212eef; border-color: #dbe5ed99; box-shadow: 0 3px 12px #070d13a0; }
.case-gallery-dialog .case-gallery-side button:hover { background: #24394c; }
.case-gallery-side [data-case-step="-1"] { inset-inline-start: 8px; }
.case-gallery-side [data-case-step="1"] { inset-inline-end: 20px; }
.case-gallery-dialog [data-case-caption] { margin: 0; color: #e1e7ec; flex: 1 1 240px; }
.case-gallery-dialog [data-case-count] { white-space: nowrap; }
.case-gallery-dialog [data-case-original] { margin-left: auto; color: #85ede1; text-decoration: underline; text-underline-offset: .23em; }
.case-gallery-dialog :focus-visible { outline: 2px solid #85ede1; outline-offset: 3px; }
