/* Graphite, steel and copper: ML BOOST performance palette. */
:root {
  --bg: #0e0e0e;
  --surface: #1d1d1d;
  --line: #434343;
  --muted: #d1d1d5;
  --text: #f4f7fc;
  --accent: #ed2438;
  --steel: #d1d1d5;
  --copper-light: #ed2438;
}

body { background: var(--bg); }
::selection { background: #ed2438; color: #ed2438; }
.site-header {
  background: linear-gradient(105deg, #0e0e0e, #1d1d1d);
  border-bottom-color: #454545;
  box-shadow: 0 8px 35px #00000038;
}
.brand-slash { color: #ed2438; text-shadow: 0 0 18px #ed243840; }
.desktop-nav { color: #d1d1d5; }
.desktop-nav a { transition: color .2s; }
.nav-enquiry {
  background: #ed243812;
  border-color: #ed243880;
  color: #ffe9da;
  transition: background .2s, border-color .2s;
}
.nav-enquiry:hover { background: #ed243825; border-color: #ed2438; }
.mobile-nav:not([hidden]) {
  background: #1d1d1d;
  border-color: #ed243875;
}

.hero { background: #0e0e0e; }
.hero-image {
  inset: 0;
  background-image: url('/assets/hero-workshop-v2.webp');
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
  transform: none;
  filter: saturate(1.07) brightness(1.02);
}
.hero-shade {
  background:
    linear-gradient(90deg, #0e0e0ee6 0%, #0e0e0ed6 26%, #0e0e0e52 48%, #0e0e0e00 68%),
    linear-gradient(0deg, #0e0e0ee6, transparent 32%, transparent 78%, #0e0e0e66);
}
.hero-topline, .hero-bottom { color: #d1d1d5; }
.hero-content .eyebrow { color: #dae5f4; }
.orange-dash { background: #ed2438; box-shadow: 0 0 18px #ed243855; }
h1 { text-shadow: 0 5px 35px #0000004d; }
h1 em {
  background: linear-gradient(110deg, #ed2438 8%, #ed2438 65%, #ed2438);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
h2 span { color: #d1d1d5; }
.hero-copy { color: #d1d1d5; }
.hero-caption { color: #e3ebf8; }
.hero-bottom { border-top-color: #d1d1d54d; }
.status-dot { background: #ed2438; box-shadow: 0 0 12px #ed243888; }

.button-orange {
  color: #ed2438;
  background: linear-gradient(110deg, #ed2438, #ed2438);
  border-color: #ed2438;
  box-shadow: 0 7px 26px #ed24382b, inset 0 1px #ffd6ad70;
}
.button-orange:hover {
  color: #ed2438;
  background: linear-gradient(110deg, #ed2438, #ed2438);
  box-shadow: 0 9px 32px #ed243845, inset 0 1px #ffe5c799;
}
.button-orange span { transition: transform .2s; }
.button-orange:hover span { transform: translate(2px, -2px); }
.button-outline { color: #edf4ff; background: #ed24380a; border-color: #ed2438; }
.button-outline:hover { background: #ed243822; border-color: #ed2438; }
.text-link { color: #e1e9f5; }
.text-link:hover { color: #ed2438; }
.spec-strip {
  background: linear-gradient(110deg, #ed2438, #ed2438 58%, #ed2438);
  color: #ed2438;
  border-block: 1px solid #ed2438;
  box-shadow: 0 8px 42px #ed24381c;
}

.parts-section {
  background: radial-gradient(ellipse at 95% 0, #34343488, transparent 48%), #141414;
}
.section-intro p { color: #d1d1d5; }
.catalog-toolbar {
  background: #1d1d1d;
  border-color: #4d4d4d;
  padding-inline: 12px;
}
.filter { color: #d1d1d5; transition: background .2s, color .2s; }
.filter:hover { background: #3c3c3c; color: #fff; }
.filter.active { color: #ed2438; background: linear-gradient(100deg, #ed2438, #ed2438); }
.filter.active > span { color: #ed2438; }
.catalog-count { color: #d1d1d5; }
.product-card {
  padding: 14px;
  background: linear-gradient(145deg, #272727, #1a1a1a 75%);
  border: 1px solid #454545;
  box-shadow: 0 12px 32px #00000024;
  transition: border-color .25s, box-shadow .25s;
}
.product-card:hover, .product-card:focus-within {
  border-color: #ed2438b3;
  box-shadow: 0 15px 38px #00000045, 0 0 22px #ed243810;
}
.product-image { background: #0e0e0e; }
.product-image img { filter: saturate(.98) brightness(.98); }
.product-image:hover img { filter: saturate(1.05) brightness(1.05); }
.product-label { color: #edf4fe; background: #161616e8; border: 1px solid #d1d1d56b; }
.photo-count { color: #ed2438; background: #ed2438; }
.image-open {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #ed2438e6;
  color: #ed2438;
}
.product-meta { color: #d1d1d5; }
.product-meta span:last-child { color: #d1d1d5; }
.product-card > p { color: #d1d1d5; }
.product-card { display: flex; flex-direction: column; }
.product-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid #4d4d4d; }
.product-actions .buy-button { min-width: 0; padding: 12px 17px; gap: 14px; }
.product-details { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 3px; background: transparent; color: #d1d1d5; font-size: 12px; }
.product-details span { color: #ed2438; font-size: 18px; }
.product-details:hover { color: #ed2438; }
.section-intro .catalog-order-note { margin: 11px 0 0; font-size: 12px; line-height: 1.7; }
.custom-order-actions, .dialog-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.dialog-order-actions { gap: 12px; }
.dialog-content > .order-note { margin: 14px 0 0; color: #d1d1d5; font-size: 11px; line-height: 1.7; }
.product-cta { color: #e3edfb; border-color: #4d4d4d; }
.product-cta:hover { color: #ed2438; }
.build-card {
  background: radial-gradient(ellipse at 100% 0, #ed24382b, transparent 65%), linear-gradient(145deg, #ed2438, #1c1c1c);
  border-color: #ed2438;
  box-shadow: inset 0 2px #ed2438, 0 12px 32px #00000024;
}
.build-symbol { color: #ed243825; }
.build-card p { color: #c5cbd5; }
.image-note { color: #d1d1d5; }

.custom-section {
  background: radial-gradient(ellipse at 95% 20%, #ed243831, transparent 70%), #1a1a1a;
  border-color: #ed2438;
}
.custom-photo img { filter: saturate(.98) brightness(.92); }
.photo-label { color: #fff1e8; text-shadow: 0 1px 8px #000; }
.custom-content > p:not(.eyebrow) { color: #d1d1d5; }
.custom-options span { background: #ed243820; border-color: #ed2438; color: #ed2438; }
.custom-footnote { color: #bcafaa; }
.about-section { background: #121212; border-color: #434343; }
.about-story > p:not(.story-lead) { color: #d1d1d5; }
.process-section { background: linear-gradient(120deg, #202020, #151515); border-color: #474747; }
.process-steps article > span { color: #ed2438; text-shadow: 0 0 18px #ed243838; }
.process-steps p { color: #d1d1d5; }

.enquiry-section {
  background:
    radial-gradient(ellipse at 0 65%, #ed243820, transparent 55%),
    radial-gradient(ellipse at 100% 15%, #3f3f3f66, transparent 58%), #101010;
}
.enquiry-intro > p:not(.eyebrow) { color: #d1d1d5; }
.contact-location { color: #d1d1d5; }
.email-contact { display: grid; gap: 7px; margin-top: 26px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  font: 600 28px/1.3 var(--heading);
  color: #e0ebfa;
}
.contact-email span { color: var(--accent); font-size: 22px; }
.contact-email:hover, .footer-email:hover { color: #ed2438; }
.footer-email { text-underline-offset: 4px; }
.footer-email:hover { text-decoration: underline; }
.enquiry-form {
  background: linear-gradient(#202020, #1d1d1d) padding-box,
    linear-gradient(135deg, #ed2438, #5b5b5b 45%, #515151) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 65px #0000003d;
}
.form-topline { color: #d1d1d5; }
.enquiry-form label { color: #d1d1d5; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  background: transparent;
  border-bottom-color: #666666;
  color: #f5f8fd;
}
.enquiry-form option { background: #242424; }
.enquiry-form input::placeholder, .enquiry-form textarea::placeholder { color: #d1d1d5; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { border-bottom-color: #ed2438; }
.optional, .form-note { color: #d1d1d5; }
.faq-section { background: #171717; border-color: #434343; }
.faq-list details, .faq-list details:first-child { border-color: #4c4c4c; }
.faq-list summary { color: #e3ecf9; }
.faq-list summary:hover, .faq-list details[open] summary { color: #ed2438; }
.faq-list p { color: #d1d1d5; }
.site-footer { background: linear-gradient(110deg, #212121, #131313); border-color: #545454; }
.footer-top > span { color: #d1d1d5; }
.footer-bottom { border-color: #4c4c4c; color: #d1d1d5; }

.product-dialog, .privacy-dialog { background: #1e1e1e; border-color: #d1d1d5; box-shadow: 0 25px 100px #0009; }
.product-dialog::backdrop, .privacy-dialog::backdrop { background: #090909de; }
.dialog-close { color: #f4f8ff; background: #141414e8; border: 1px solid #686868; }
.dialog-close:hover { background: #ed2438; color: #ed2438; border-color: #ed2438; }
.dialog-layout > img, .product-gallery { background: #151515; }
.gallery-stage { background: #0c0c0c; }
.gallery-arrow { background: #161616df; border-color: #d1d1d570; }
.gallery-arrow:hover { color: #ed2438; background: #ed2438; border-color: #ed2438; }
.gallery-thumbnail { background: #151515; border-color: #656565; opacity: .8; }
.gallery-thumbnail[aria-pressed="true"] { border-color: #ed2438; box-shadow: 0 0 12px #ed243824; }
.gallery-caption { color: #d1d1d5; }
.gallery-caption > span:last-child { color: #ed2438; }
.dialog-content > p, .dialog-content ul, .privacy-dialog > p:not(.eyebrow) { color: #d1d1d5; }

@media (max-width: 760px) {
  .hero-image { inset: 0; background-size: auto 80%; background-position: 68% top; filter: saturate(1.04) brightness(.94); }
  .hero-shade {
    background: linear-gradient(90deg, #0e0e0ee8, #0e0e0e8a 75%, #0e0e0e40),
      linear-gradient(0deg, #0e0e0ef5, transparent 40%, #0e0e0e22);
  }
  .hero-copy { color: #d1d1d5; }
  .catalog-toolbar { padding-inline: 8px; }
  .product-grid { gap: 20px 12px; }
  .product-card { padding: 10px; }
  .product-card h3 { font-size: 26px; }
  .product-card > p { font-size: 12px; }
  .product-label { top: 7px; left: 7px; }
  .photo-count { left: 7px; bottom: 7px; }
  .image-open { right: 7px; bottom: 7px; width: 26px; height: 26px; }
}

@media (max-width: 600px) {
  .product-actions { grid-template-columns: 1fr; gap: 2px; padding-top: 12px; }
  .product-actions .buy-button { min-height: 46px; font-size: 12px; padding-inline: 12px; }
  .product-details { min-height: 44px; }
  .dialog-order-actions { flex-direction: column; align-items: stretch; }
  .dialog-order-actions .button { justify-content: center; }
  .custom-order-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .button-orange:hover, .button-orange:hover span { transform: none; }
}

/* Larger product galleries keep every view easy to select. */
.gallery-thumbnails-many { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Keep order and shipping enquiries readable on narrow product cards. */
.product-actions { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.buy-button { white-space: normal; text-align: center; justify-content: center; line-height: 1.4; font-size: 14px; }
.product-actions .buy-button { width: 100%; padding: 12px; }
.product-details { font-size: 14px; }
@media (max-width:760px) { .product-actions .buy-button { font-size: 14px; } }

/* Larger black and red brand identity. */
.site-header { min-height: 104px; height: auto; padding-block: 18px; background: #070707; border-bottom-color: #ed2438; }
.brand { gap: 14px; }
.brand-mark { color: #fff; font-size: 58px; }
.brand-slash { color: #ed2438; font-size: 32px; text-shadow: none; }
.brand-type { color: #ed2438; font-size: 29px; letter-spacing: 3px; }
.brand-type > span { color: #fff; font-size: 10px; letter-spacing: 2.2px; margin-top: 6px; }
@media (max-width: 760px) {
  .site-header { min-height: 88px; padding-block: 14px; }
  .site-header .brand { gap: 11px; }
  .site-header .brand-mark { font-size: 48px; }
  .site-header .brand-slash { font-size: 27px; }
  .site-header .brand-type { font-size: 24px; letter-spacing: 2px; }
  .site-header .brand-type > span { font-size: 8px; letter-spacing: 1.7px; }
  .mobile-nav:not([hidden]) { top: 88px; }
}

/* ML BOOST motorsport redesign. */
:root { --bg:#070707; --surface:#121214; --line:#363639; --muted:#b9b9be; --text:#f6f6f7; --accent:#ed2438; }
html { scroll-padding-top:24px; }
body { background:#070707; }
.site-header { min-height:100px; padding:10px 4vw; gap:30px; background:#050505; border-bottom:1px solid #402024; }
.brand { flex-shrink:0; width:clamp(240px,27vw,400px); }
.brand-logo { width:100%; height:auto; object-fit:contain; }
.desktop-nav { gap:28px; font-size:16px; color:#f1f1f2; }
.desktop-nav a:hover { color:#ff3447; }
.nav-enquiry { color:#fff; font-size:15px; border-color:#ae2634; background:#2b0b10; white-space:nowrap; }
.hero { height:420px; min-height:420px; max-height:none; padding:0 4vw; background:#050505; }
.hero-image { inset:0; background-image:url('/assets/hero-red-engine.webp'); background-size:cover; background-position:center; filter:none; }
.hero-shade { background:linear-gradient(90deg,#050505fa 0%,#050505e8 28%,#0505059c 48%,transparent 75%),linear-gradient(0deg,#05050590,transparent 35%); }
.hero-topline, .hero-bottom { display:none; }
.hero-content { padding:42px 0; justify-content:center; }
.hero-content .eyebrow { font-size:12px; margin-bottom:18px; }
h1 { font-size:clamp(40px,4.4vw,70px); line-height:1.04; font-style:italic; letter-spacing:-.02em; max-width:860px; }
h1 > span { color:#f3f3f6; }
h1 em { color:#ef1630; background:none; -webkit-text-fill-color:currentColor; white-space:normal; }
.hero-copy { font-size:20px; margin-top:18px; max-width:640px; color:#e8e8ec; border-left:3px solid #ed2438; padding-left:16px; }
.hero-actions { gap:16px; margin-top:27px; }
.button { font-size:15px; border-radius:5px; font-weight:700; gap:14px; }
.button-orange { color:#fff; background:linear-gradient(175deg,#ef1831,#a10012); border-color:#ff384b; box-shadow:0 4px 20px #ec092633,inset 0 1px #ff8a9566; }
.button-orange:hover { color:#fff; background:linear-gradient(#ff3047,#c10721); }
.button-outline { background:#08080899; border-color:#9c9c9f; color:#fff; }
.button-outline:hover { background:#330a11; border-color:#ed2438; }
.hero-actions .button { min-width:190px; justify-content:center; text-transform:uppercase; }
.spec-strip { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; background:linear-gradient(#1b1b1e,#0b0b0d); border-block:1px solid #39393e; padding:15px 4vw; color:#efeff2; font-family:var(--body); font-size:15px; box-shadow:none; }
.spec-strip span { display:block!important; }
.section-pad { padding:64px 4vw; }
.parts-section { padding-top:32px; background:radial-gradient(ellipse at 100% 100%,#6b06122b,transparent 55%),#080809; }
.section-heading { margin-bottom:24px; align-items:center; }
.section-heading h2 { font-size:42px; font-style:italic; }
.section-heading .eyebrow { margin-bottom:12px; }
.section-intro { max-width:450px; }
.section-intro > p:first-child { display:none; }
.catalog-order-note { font-size:14px!important; }
.catalog-toolbar { background:#131315; padding:10px 12px; margin-bottom:22px; border-color:#36363b; border-radius:6px; }
.filters { flex-wrap:wrap; }
.filter { font-size:14px; }
.filter.active { background:#b00a21; color:#fff; }
.catalog-count { font-size:12px; }
.product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.product-card { padding:0; overflow:hidden; background:linear-gradient(145deg,#19191c,#0d0d0f); border:1px solid #45454a; border-radius:10px; box-shadow:inset 0 1px #ef183177,0 8px 26px #0005; }
.product-card:hover,.product-card:focus-within { border-color:#ed2438; transform:translateY(-3px); }
.product-image { width:100%; aspect-ratio:1.9; height:auto; border-radius:0; }
.product-image img { object-fit:cover; }
.product-label { color:#fff; background:#11090bd9; border-color:#ac2536; font-size:11px; }
.photo-count { font-size:11px; }
.product-meta { display:none; }
.product-card h3 { font-size:28px; line-height:1.05; font-style:italic; text-transform:uppercase; padding:18px 18px 0; }
.product-card > p { font-size:14px; line-height:1.6; min-height:0; margin:12px 18px 18px; color:#bfbfc5; }
.product-actions { padding:14px 18px 16px; gap:6px; border-top:1px solid #353539; }
.product-actions .buy-button { font-size:14px; min-height:44px; }
.product-details { min-height:36px; font-size:14px; }
.build-card { grid-column:1/-1; min-height:0; padding:26px; display:flex; flex-wrap:wrap; align-items:center; gap:24px; background:linear-gradient(110deg,#1b1013,#121214); border-color:#71202a; border-radius:8px; }
.build-card > .eyebrow,.build-symbol { display:none; }
.build-card h3 { font-size:29px; margin:0; max-width:260px; }
.build-card p { margin:0; max-width:500px; font-size:16px; }
.build-card .button { margin-left:auto; }
.custom-section,.about-section,.process-section,.enquiry-section,.faq-section,.site-footer { background:radial-gradient(ellipse at 0 100%,#4c09142b,transparent 65%),#0c0c0e; border-color:#37373c; }
.custom-content { padding-block:55px; }
.custom-options span { background:#3d0b14; color:#f4c8ce; border-color:#79232f; font-size:12px; }
.enquiry-form { background:#151518; border:1px solid #74303b; box-shadow:0 15px 45px #0005; }
.enquiry-form label { font-size:14px; }
.enquiry-form input,.enquiry-form select,.enquiry-form textarea { font-size:16px; border-color:#626269; }
.enquiry-form option { background:#151518; }
.contact-email { overflow-wrap:anywhere; }
.product-dialog,.privacy-dialog { background:#141416; border-color:#5a5a61; }
.product-gallery,.dialog-layout > img,.gallery-stage { background:#0b0b0d; }
.gallery-thumbnail[aria-pressed="true"] { border-color:#ed2438; }
.floating-whatsapp { position:fixed; z-index:30; bottom:22px; right:22px; display:grid; background:linear-gradient(#11a84d,#077830); color:#fff; padding:12px 22px; border:1px solid #72eb9f; border-radius:13px; box-shadow:0 5px 25px #0008; line-height:1.2; }
.floating-whatsapp strong { font-size:18px; }
.floating-whatsapp span { font-size:14px; margin-top:3px; }
body:has(dialog[open]) .floating-whatsapp { visibility:hidden; }
.site-footer { padding-bottom:110px; }
@media (max-width:1100px) {
 .site-header { gap:20px; } .brand { width:280px; } .desktop-nav { gap:18px; font-size:14px; } .nav-enquiry { display:none; }
 .hero { min-height:400px; height:400px; } h1 { font-size:54px; max-width:650px; }
 .product-card h3 { font-size:25px; }
}
@media (max-width:760px) {
 .site-header { min-height:94px; padding:10px 20px; } .site-header .brand { width:min(280px,73vw); }
 .mobile-nav:not([hidden]) { top:100%; background:#111114; border-color:#72212d; }
 .hero { height:490px; min-height:490px; padding:0 22px; }
 .hero-image { inset:0; background-size:cover; background-position:65% center; filter:brightness(.7); }
 .hero-shade { background:linear-gradient(90deg,#050505eb,#05050598 70%,#05050544),linear-gradient(0deg,#050505bf,transparent); }
 .hero-content { padding:35px 0; } h1 { font-size:clamp(39px,8vw,60px); line-height:1.06; max-width:580px; }
 .hero-content .eyebrow { font-size:11px; } .hero-copy { font-size:17px; max-width:380px; }
 .hero-actions { flex-direction:row; flex-wrap:wrap; gap:10px; } .hero-actions .button { min-width:145px; padding:12px 15px; font-size:14px; }
 .spec-strip { display:grid; grid-template-columns:1fr 1fr; gap:12px; font-size:13px; padding:16px 22px; }
 .section-pad { padding:45px 20px; } .section-heading h2 { font-size:38px; } .section-intro { margin-top:18px; }
 .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 .product-image { aspect-ratio:1.25; } .product-card h3 { padding:14px 12px 0; font-size:24px; }
 .product-card > p { font-size:14px; margin:10px 12px 14px; } .product-actions { padding:12px; }
 .product-actions .buy-button { font-size:14px; padding:10px 8px; }
 .product-label { font-size:9px; } .photo-count { font-size:10px; }
 .filter { font-size:14px; padding:9px; } .catalog-count { font-size:11px; }
 .build-card { padding:22px; gap:18px; } .build-card h3 { font-size:29px; } .build-card .button { margin:0; }
 .floating-whatsapp { bottom:14px; right:14px; padding:10px 15px; } .floating-whatsapp strong { font-size:16px; }
 .contact-email { font-size:26px; } .site-footer { padding-bottom:110px; }
}
@media (max-width:390px) { .product-grid { grid-template-columns:1fr; } .product-image { aspect-ratio:1.8; } .product-card h3 { font-size:28px; } }
.product-card[hidden],.build-card[hidden] { display:none; }

.zoom-image-trigger { display:block; padding:0; width:100%; min-width:0; background:#0b0b0d; cursor:zoom-in; overflow:hidden; }
.gallery-stage > .zoom-image-trigger { height:100%; }
.dialog-layout > .zoom-image-trigger { align-self:start; }
.dialog-layout > .zoom-image-trigger img { max-height:640px; min-height:300px; object-fit:contain; }
.image-zoom-dialog { width:calc(100vw - 32px); max-width:1600px; height:calc(100dvh - 32px); max-height:100dvh; padding:0; border:1px solid #6c3039; background:#09090b; color:#fff; overflow:hidden; }
.image-zoom-dialog[open] { display:flex; flex-direction:column; }
.image-zoom-dialog::backdrop { background:#000e; }
.image-zoom-toolbar { display:flex; flex-shrink:0; align-items:center; gap:12px; padding:12px 16px; background:#171719; border-bottom:1px solid #454549; }
.image-zoom-toolbar > span:first-child { margin-right:auto; font-size:14px; font-weight:700; letter-spacing:1px; }
.image-zoom-toolbar > span[role] { min-width:48px; text-align:center; font-size:14px; }
.image-zoom-toolbar button { min-width:44px; min-height:44px; padding:6px 12px; border:1px solid #66666d; border-radius:4px; background:#252529; color:#fff; font-size:24px; line-height:1; }
.image-zoom-toolbar button[aria-label="Fit photo to screen"] { font-size:16px; }
.image-zoom-toolbar button:last-child { background:#a80d23; border-color:#ed2438; }
.image-zoom-toolbar button:disabled { opacity:.4; cursor:default; }
.image-zoom-stage { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; }
.image-zoom-stage.is-zoomed { cursor:grab; }
.image-zoom-stage.is-zoomed:active { cursor:grabbing; }
.image-zoom-canvas { display:grid; place-items:center; min-width:100%; min-height:100%; width:max-content; height:max-content; padding:12px; }
.image-zoom-canvas img { max-width:none; object-fit:contain; user-select:none; }
@media (max-width:760px) {
 .image-zoom-dialog { width:100vw; height:100dvh; max-width:100vw; margin:0; border:0; }
 .image-zoom-toolbar { gap:7px; padding:10px; }
 .image-zoom-toolbar > span:first-child { font-size:11px; letter-spacing:0; }
 .image-zoom-toolbar button { padding:6px 10px; }
}
