/* Use the dimensions of the actual product screen in the hero. */
.desk .specimen-phone {
  display: grid;
  place-items: center;
  transform: none;
  right: 9%;
  top: 10%;
  width: 36%;
  height: 79%;
  filter: none;
}
.specimen-phone img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: clamp(3px, .7cqw, 6px) solid #252a2c;
  border-radius: clamp(9px, 2.3cqw, 20px);
  background: #fff;
  box-shadow: 5px 12px 18px #1b274839;
}
.desk .memo {left: 21%; width: 31%}
.gallery-card {
  position: relative;
  display: flex;
  gap: 6%;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1.48;
  padding: 5%;
  border-radius: 4px;
  isolation: isolate;
  background-image: radial-gradient(#42465a27 .7px, transparent .8px);
  background-size: 9px 9px;
}
.gc-mobile-packages {background-color: #d7ddfc}
.gc-motors {background-color: #d4e6d8; gap: 4%}
.gc-ratings {background-color: #f2d5b8}
.gallery-card > div {min-width: 0; height: 100%; display:flex; align-items:center}
.gallery-card img {width: auto; height: auto; max-width:100%; max-height:100%; object-fit:contain; border-radius:2px;box-shadow:0 4px 10px #292b441a}
.gallery-card .card-device {max-width:42%;justify-content:center}
.gallery-card .card-detail {width:43%}
.gallery-card .card-map {width:64%;justify-content:center}
.gc-motors .card-device {max-width:29%}
.gallery-card .card-rating {justify-content:center}
.gc-ratings img {width:auto}
.small-card .small-art {
  aspect-ratio: 1.85; padding: 0; display: grid; place-items:center;
}
.small-art img {width:100%;height:100%;object-fit:contain;object-position:center;box-shadow:none}
.small-art.promotions img,.small-art.car-comparison img {width:100%}
.case-exhibits {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2.4vw,32px);
  padding:clamp(14px,2.5vw,36px);border-radius:5px;
}
.case-mobile-packages {background:#dce1f8}
.case-motors {grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr);background:#dfecdf}
.case-ratings {background:#f3dfca}
.cover-figure {min-width:0;display:flex;flex-direction:column;align-items:stretch}
.cover-figure .zoom {
  width:100%;height:clamp(280px,30vw,415px);padding:clamp(10px,1.6vw,24px);
  background:#ffffff61;border-color:#242e311c;
}
.cover-figure .zoom img {height:100%;width:100%;object-fit:contain;box-shadow:none}
.cover-figure figcaption {margin-top:9px;font-size:.9rem;color:#344039}
.zoom {position:relative}
.expand-hint {
  position:absolute;right:9px;bottom:9px;width:32px;height:32px;border:1px solid #c6ccc5;
  border-radius:50%;background:#fff;color:#253125;box-shadow:0 1px 5px #212b201a;
}
.expand-hint:before,.expand-hint:after {content:"";position:absolute}
.expand-hint:before {width:9px;height:9px;left:8px;top:7px;border:1.6px solid;border-radius:50%}
.expand-hint:after {width:7px;height:1.6px;left:18px;top:19px;transform:rotate(45deg);background:currentColor}
.zoom:hover,.zoom:focus-visible {border-color:#46527f}
.zoom:hover .expand-hint,.zoom:focus-visible .expand-hint {color:var(--blue);border-color:var(--blue)}
.exhibit .zoom {padding:clamp(8px,1.5vw,20px)}
.exhibit .zoom img {max-height:none;max-width:100%;width:auto;height:auto;object-fit:contain}
.compact .zoom {min-height:0}
.compact .zoom img {max-height:min(68vh,520px);width:100%;height:auto;object-fit:contain;box-shadow:none}
.paired {align-items:start}
.exhibit:only-of-type.compact .zoom img {max-height:520px}
html:has(.enlarged[open]) { overflow: hidden; }
.enlarged {
  width:min(1420px,96vw);max-width:96vw;height:min(960px,94vh);
  height:min(960px,94dvh);max-height:94dvh;padding:0;overflow:hidden;
}
.enlarged[open]{display:flex;flex-direction:column}
.enlarged .tools{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:10px 16px;margin:0;background:var(--paper);border-bottom:1px solid var(--line)
}
.viewer-modes,.viewer-actions {display:flex;align-items:center;gap:8px}
.viewer-actions a{font-size:.88rem;text-decoration:underline;text-underline-offset:.2em}
.enlarged .tools button {min-height:38px;font-size:.9rem;line-height:1.1}
.enlarged .tools button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.enlarged .screen-stage {
  flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#e4e7e0;
  position:relative;outline-offset:-4px;
}
.viewer-device, .viewer-display {display:contents}
.screen-plane {min-width:100%;min-height:100%;width:max-content;display:grid;place-items:center}
.enlarged .screen-plane img {display:block;max-width:none;max-height:none;width:auto;height:auto;background:#fff}
.enlarged .viewer-caption{padding:9px 16px 12px;margin:0;max-width:none;line-height:1.4}
.enlarged .screen-stage.can-drag{cursor:grab}.enlarged .screen-stage.dragging{cursor:grabbing}
@media (pointer: coarse) {
  .enlarged .tools button, .enlarged .viewer-actions a {
    min-height: 44px;
  }
  .enlarged .viewer-actions a { display: inline-flex; align-items: center; }
}
@media (min-width:721px) and (max-width:990px){
  .cards,.small-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .desk .specimen-phone{right:13%;width:31%;height:87%;top:6%}
  .desk .memo{left:26%;width:28%}
  .gallery-card{aspect-ratio:1.7}
  .small-card .small-art{aspect-ratio:1.32}
  .case-exhibits{gap:12px;padding:12px}
  .cover-figure .zoom{height:clamp(215px,50vw,340px);padding:7px}
  .case-motors{grid-template-columns:1fr}
  .case-motors .cover-figure:first-child .zoom {height:auto}
  .case-motors .cover-figure:first-child img{width:100%;height:auto}
}
@media(max-width:600px){
  .paired{grid-template-columns:1fr;gap:0}
  .case-exhibits{grid-template-columns:1fr;gap:16px}
  .cover-figure .zoom{height:clamp(245px,67vw,360px)}
  .exhibit.compact .zoom img{width:auto;max-width:100%;max-height:460px}
  .enlarged{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0}
  .enlarged .tools{padding:10px;gap:8px}
  .viewer-modes,.viewer-actions{gap:5px}
  .enlarged .tools button{padding:7px 9px}
  .viewer-actions a{font-size:.82rem}
}
/* These focused mobile captures retain the native source width at full size. */
img[src$="motors-vin.webp"],img[src$="motors-description.webp"] {max-width:min(100%, 361px)}
