/* One card per installation; original photographs stay together in an album. */
.installation-cases{padding:76px 0;background:#f4f8fc;scroll-margin-top:90px;color:#102541}
.installation-cases__inner{width:min(1220px,calc(100% - 80px));margin-inline:auto}
.installation-cases__heading{margin-bottom:30px}
.installation-cases__eyebrow{margin:0 0 12px;color:#0866cf;font-size:.875rem;font-weight:750;letter-spacing:.12em}
.installation-cases h2{margin:0;font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.3;letter-spacing:-.055em;word-break:keep-all}
.installation-cases h2 span{color:#0866cf}
.installation-cases__footer{margin-top:28px;text-align:center}
.installation-cases__link{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:52px;padding:12px 26px;border:1px solid #a8bfd9;border-radius:8px;background:#fff;color:#075cc1;font-size:1rem;font-weight:750}
.installation-cases__link:hover{background:#e9f3ff}
.case-project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.case-project-grid[data-case-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.case-project{min-width:0;background:#fff;border:1px solid #dbe5ef;border-radius:14px;overflow:hidden;scroll-margin-top:90px}
.case-project__cover{display:grid;background:#0b1422;cursor:zoom-in}
.case-project__cover img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
.case-project__cover .case-project__extra{display:none}
.case-project:only-child{grid-column:1/-1}
.case-project:only-child .case-project__cover{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.case-project:only-child .case-project__extra{display:block}
.case-project__info{display:flex;flex-direction:column;gap:16px;padding:20px}
.case-project:only-child .case-project__info{flex-direction:row;align-items:center;justify-content:space-between;gap:24px}
.case-project__number{margin:0 0 8px;color:#075cc1;font-size:.875rem;font-weight:750;letter-spacing:.02em}
.case-project h3{margin:0;color:#102541;font-size:1.125rem;line-height:1.5;word-break:keep-all}
.case-project__tags{display:flex;flex-wrap:wrap;gap:6px 12px;margin:10px 0 0;padding:0;list-style:none;color:#52657d;font-size:.875rem;line-height:1.5}
.case-project__view{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;color:#075cc1;font-size:1rem;font-weight:700}
.case-project__view:hover{text-decoration:underline}
.case-project__view span{font-size:1.5rem;font-weight:400}
.case-album{padding:0 20px 20px;scroll-margin-top:90px}
.case-album>summary{min-height:44px;padding:10px 0;color:#154672;font-size:1rem;cursor:pointer}
.case-gallery-ready .case-album{display:none}
.case-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.case-photo-card{min-width:0;margin:0}
.case-photo{display:block;background:#0b1422;cursor:zoom-in}
.case-photo img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
.case-photo-card figcaption{padding:8px 0;font-size:.875rem;line-height:1.5}
.installation-cases a:focus-visible,.installation-cases summary:focus-visible,.case-viewer :focus-visible{outline:3px solid #188cff;outline-offset:-4px}
.case-viewer{box-sizing:border-box;width:min(1120px,calc(100% - 32px));max-width:none;height:min(1080px,calc(100vh - 32px));height:min(1080px,calc(100dvh - 32px));max-height:none;padding:0;border:1px solid #ffffff26;border-radius:14px;color:#fff;background:#0c1625;overflow:hidden}
.case-viewer::backdrop{background:#020912e8}
.case-viewer[open]{display:flex;flex-direction:column}
.case-viewer__bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:12px 18px;border-bottom:1px solid #ffffff20}
.case-viewer__title{font-size:1rem;font-weight:650;line-height:1.4;margin:0}
.case-viewer button{font:inherit;cursor:pointer;color:#fff;border:1px solid #a3b3c955;background:#1b2b42;min-width:44px;min-height:44px;border-radius:8px;padding:8px 14px}
.case-viewer button:hover{background:#285178}
.case-viewer__close{font-size:1.5rem!important;padding:0!important;flex-shrink:0}
.case-viewer__stage{display:flex;flex:1;min-height:0;min-width:0;align-items:center;justify-content:center;padding:12px;touch-action:pan-y pinch-zoom}
.case-viewer__image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.case-viewer__thumbnails{display:flex;flex-shrink:0;gap:8px;overflow-x:auto;padding:8px 18px;scrollbar-width:thin;scrollbar-color:#65758c transparent}
.case-viewer .case-viewer__thumbnail{display:block;flex:0 0 48px;width:48px;height:64px;min-height:0;padding:0;border:2px solid transparent;border-radius:5px;overflow:hidden;background:#182538}
.case-viewer__thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.case-viewer .case-viewer__thumbnail[aria-current="true"]{border-color:#72b7ff}
.case-viewer__footer{display:flex;align-items:center;justify-content:center;gap:18px;flex-shrink:0;padding:10px 18px max(10px,env(safe-area-inset-bottom));border-top:1px solid #ffffff20}
.case-viewer__count{font-size:1rem;min-width:64px;text-align:center;font-variant-numeric:tabular-nums}
html.case-viewer-open{overflow:hidden}
@media(max-width:900px){
  .installation-cases{padding:60px 0}
  .installation-cases__inner{width:calc(100% - 40px)}
  .case-project-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}
@media(max-width:600px){
  .installation-cases{padding:46px 0;scroll-margin-top:72px}
  .installation-cases__inner{width:calc(100% - 32px)}
  .installation-cases__heading{margin-bottom:20px}
  .case-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .case-project:only-child .case-project__cover{grid-template-columns:repeat(2,minmax(0,1fr))}
  .case-project:only-child .case-project__cover .case-project__extra:nth-child(2){display:none}
  .case-project__info{padding:14px 12px;gap:10px}
  .case-project:only-child .case-project__info{align-items:flex-start;flex-direction:column;gap:10px}
  .case-project h3{font-size:1rem}
  .case-project__view{font-size:.875rem;gap:8px}
  .case-project__tags{gap:4px 8px}
  .case-album{padding:0 12px 14px}
  .case-photo-grid{grid-template-columns:minmax(0,1fr)}
  .case-viewer{width:calc(100% - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);border-radius:10px}
  .case-viewer__bar{padding:10px 12px}
  .case-viewer__stage{padding:8px}
  .case-viewer__thumbnails{padding:6px 12px}
}
