/* Overlapping examples, adapted from the existing Nach-Tech showroom. */
#case-gallery.example-gallery{display:block;margin-top:30px;border-top:1px solid var(--line);padding-top:24px}
#case-gallery[hidden]{display:none}
.example-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.example-heading h3{font-size:24px;font-weight:500;letter-spacing:-.7px}
.example-heading p{font-size:12px;color:var(--muted);line-height:1.5;margin-top:6px}
.example-navigation{display:flex;gap:8px;flex-shrink:0}
.example-navigation[hidden]{display:none}
.example-stage{position:relative;height:clamp(330px,48vh,440px);margin-top:20px;overflow:hidden;isolation:isolate;touch-action:pan-y;overscroll-behavior-x:contain}
.example-gallery-landscape .example-stage{height:clamp(300px,58vh,430px)}
#case-gallery .example-card{position:absolute;left:50%;top:14px;bottom:32px;width:57%;margin:0;padding:0;display:block;background:var(--paper);border:1px solid #cdd2c7;border-radius:5px;box-shadow:0 8px 20px #2326261c;transform-origin:center;transform:translateX(calc(-50% + var(--shift))) translateY(var(--drop)) scale(var(--scale)) rotate(var(--angle));transition:transform 460ms cubic-bezier(.22,.7,.26,1);filter:none;opacity:1;visibility:visible}
#case-gallery.example-gallery-landscape .example-card{width:80%}
#case-gallery .example-card[inert]{visibility:hidden;pointer-events:none}
.example-image{display:block;position:absolute;inset:0;width:100%;height:100%;padding:0;border-radius:4px;overflow:hidden;background:var(--paper)}
.example-image{cursor:zoom-in}
#case-gallery .example-image img{position:absolute;inset:0;width:100%;height:100%;max-height:100%;margin:0;object-fit:contain;filter:none;mix-blend-mode:normal;opacity:1;transform:none;mask-image:none;border-radius:0}
.example-controls{display:flex;justify-content:space-between;gap:24px;align-items:center;border-block:1px solid var(--line);padding:15px 0;min-height:90px}
.example-nav{min-height:46px;min-width:110px;border:1px solid #aeb3a7;border-radius:5px;font-size:13px;font-weight:500;padding:11px 16px}
.example-nav-next{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.example-nav:hover{background:#e3e6db;color:var(--ink);border-color:var(--ink)}
.example-nav-next:hover{background:#454b42;color:var(--paper)}
.example-nav:disabled{opacity:.35;cursor:default}
.example-status{text-align:left;min-width:0}
.example-count{font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:.13em;color:var(--blue)}
.example-caption{font-size:12px;line-height:1.55;color:#66705e;margin-top:7px}
.example-enlarge{flex-shrink:0;min-height:44px;padding:10px 14px;border:1px solid #aeb3a7;border-radius:5px;font-size:12px;font-weight:500}
.example-enlarge:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
@media(max-width:760px){.example-heading{display:block}.example-heading h3{font-size:22px}.example-navigation{margin-top:15px}.example-nav{flex:1;min-width:0}.example-stage{height:350px;margin:12px -10px 0}.example-gallery-landscape .example-stage{height:225px}#case-gallery .example-card{width:70%;top:15px;bottom:35px}#case-gallery.example-gallery-landscape .example-card{width:84%}.example-controls{align-items:stretch;flex-direction:column;gap:14px;padding-block:14px}.example-enlarge{align-self:flex-start}.example-caption{font-size:12px}.example-count{font-size:10px}}
@media(prefers-reduced-motion:reduce){#case-gallery .example-card{transition:none}}

/* Side cards select; the front image retains the original enlarge action. */
.example-card:not([data-position="0"]) .example-image{cursor:pointer}

/* Round the card and the image itself, including portrait screenshots. */
#case-gallery .example-card{border-radius:16px;overflow:hidden}
#case-gallery .example-image{border-radius:15px}
#case-gallery .example-image img{width:auto;height:auto;max-width:100%;max-height:100%;margin:auto;border-radius:14px}

/* The frame follows each photo's intrinsic ratio, without white letterboxing. */
#case-gallery .example-card{
  top:50%;bottom:auto;border:0;background:transparent;
  transform:translateX(calc(-50% + var(--shift))) translateY(calc(-50% + var(--drop))) scale(var(--scale)) rotate(var(--angle));
}
#case-gallery .example-image{background:transparent;border-radius:inherit}
#case-gallery .example-image img{width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:inherit}
