/* Photo and thumbnail area above a full-width title share one card outline. */
.machine-gallery-visual{position:relative;min-width:0;overflow:hidden;border-radius:var(--radius,16px) var(--radius,16px) 0 0}
/* Fill the fixed photo stage proportionally, clear of the thumbnail rail. */
.machine-gallery.has-photos .machine-photo-stage{position:relative}
.machine-gallery .machine-photo-main{background-size:cover}
@media(min-width:601px){.machine-gallery.has-photo-rail .machine-photo-main{right:116px;width:auto}}
.machine-gallery.has-photo-rail .machine-photo-navigation{background:rgb(0 0 0 / 62%);border-color:rgb(255 255 255 / 18%);-webkit-backdrop-filter:none;backdrop-filter:none}
.machine-gallery.panel>.machine-heading{width:100%;margin:0;border:0;border-radius:0 0 var(--radius,16px) var(--radius,16px);background:var(--bg,#f6f7fb);-webkit-backdrop-filter:none;backdrop-filter:none}
.machine-gallery .machine-heading h1{color:#101820;text-shadow:none}
.machine-gallery.has-photo-rail .machine-photo-choice{padding:0;background-size:cover;background-origin:border-box;background-clip:border-box}

.machine-gallery.has-photo-rail .machine-photo-stage{height:clamp(310px,31vw,420px)}
@media(max-width:600px){.machine-gallery.has-photo-rail .machine-photo-stage{height:clamp(472px,124vw,556px)}}

/* Native scrollbar stays hidden; wheel, touch and arrow controls remain available. */
.machine-gallery .machine-photo-rail{scrollbar-width:none;-ms-overflow-style:none}
.machine-gallery .machine-photo-rail::-webkit-scrollbar{display:none;width:0;height:0}

/* Dark controls belong only to the model photo thumbnail rail. */
.machine-gallery .machine-photo-navigation>.machine-scroll-button{background:#161a20;border-color:#343b45;color:#d7dce3}
.machine-gallery .machine-photo-navigation>.machine-scroll-button:hover:enabled{background:#242b34;border-color:#535f6d;color:#fff}
.machine-gallery .machine-photo-navigation>.machine-scroll-button:active:enabled{background:#0d1117}
