:root {
  --upgrade-ink: #111a2d;
  --upgrade-muted: #687386;
  --upgrade-line: #d9dde4;
  --upgrade-soft: #f6f4f1;
  --upgrade-orange: #ef512d;
}

.upgrade-shell { background: #fff; color: var(--upgrade-ink); }
.upgrade-container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.upgrade-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--upgrade-orange); font: 700 11px/1.2 monospace; letter-spacing: .14em; text-transform: uppercase; }
.upgrade-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.upgrade-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid var(--upgrade-orange); border-radius: 12px; background: var(--upgrade-orange); color: #fff; font-weight: 800; text-decoration: none; }
.upgrade-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.upgrade-button--secondary { border-color: var(--upgrade-ink); background: transparent; color: var(--upgrade-ink); }
.upgrade-button:focus-visible, .upgrade-filter:focus-visible, .upgrade-document a:focus-visible, .upgrade-project-card summary:focus-visible { outline: 3px solid rgba(239, 81, 45, .28); outline-offset: 3px; }

.upgrade-breadcrumb { padding: 22px 0 0; color: var(--upgrade-muted); font-size: 14px; }
.upgrade-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.upgrade-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #a8afb9; }
.upgrade-breadcrumb a { color: inherit; }

.upgrade-product-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 8vw, 96px); padding: clamp(48px, 7vw, 92px) 0; }
.upgrade-product-visual { min-height: 480px; display: grid; place-items: center; background: var(--upgrade-soft); border: 1px solid var(--upgrade-line); border-radius: 28px; overflow: hidden; }
.upgrade-product-visual img { width: min(76%, 380px); max-height: 500px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(17, 26, 45, .16)); }
.upgrade-product-copy h1 { margin: 12px 0 16px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; }
.upgrade-product-classification { display: inline-flex; margin-bottom: 18px; padding: 8px 12px; border-radius: 999px; background: var(--upgrade-ink); color: #fff; font: 700 12px/1.2 monospace; letter-spacing: .1em; }
.upgrade-product-summary { max-width: 660px; color: var(--upgrade-muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.upgrade-product-price { margin-top: 24px; font-size: 15px; color: var(--upgrade-muted); }
.upgrade-product-price strong { display: block; color: var(--upgrade-ink); font-size: 28px; }
.upgrade-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.upgrade-order-note { margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--upgrade-orange); color: var(--upgrade-muted); font-size: 13px; line-height: 1.55; }

.upgrade-section { padding: clamp(64px, 8vw, 108px) 0; border-top: 1px solid var(--upgrade-line); }
.upgrade-section--soft { background: var(--upgrade-soft); }
.upgrade-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.upgrade-section-heading h2 { max-width: 720px; margin: 8px 0 0; font-size: clamp(32px, 4.5vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.upgrade-section-heading p { margin: 0; color: var(--upgrade-muted); line-height: 1.7; }
.upgrade-use-grid, .upgrade-fact-grid, .upgrade-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.upgrade-use { min-height: 112px; padding: 22px; border: 1px solid var(--upgrade-line); border-radius: 16px; background: #fff; font-weight: 800; }
.upgrade-use::before { content: "✓"; display: block; margin-bottom: 16px; color: var(--upgrade-orange); }
.upgrade-fact { padding: 22px; border-top: 3px solid var(--upgrade-ink); background: #fff; }
.upgrade-fact dt { color: var(--upgrade-muted); font-size: 13px; }
.upgrade-fact dd { margin: 8px 0 0; font-size: 22px; font-weight: 900; }

.upgrade-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: application-step; }
.upgrade-step { min-height: 210px; padding: 24px; border: 1px solid var(--upgrade-line); border-radius: 18px; counter-increment: application-step; }
.upgrade-step::before { content: counter(application-step, decimal-leading-zero); display: block; margin-bottom: 34px; color: var(--upgrade-orange); font: 800 15px/1 monospace; }
.upgrade-step h3 { margin: 0 0 10px; font-size: 19px; }
.upgrade-step p { margin: 0; color: var(--upgrade-muted); line-height: 1.65; }

.upgrade-specs { width: 100%; border-collapse: collapse; background: #fff; }
.upgrade-specs th, .upgrade-specs td { padding: 18px; border-bottom: 1px solid var(--upgrade-line); text-align: left; vertical-align: top; }
.upgrade-specs th { width: 38%; color: var(--upgrade-muted); font-size: 13px; font-weight: 700; }
.upgrade-specs td { font-weight: 800; }

.upgrade-document { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--upgrade-line); border-radius: 16px; background: #fff; }
.upgrade-document small { color: var(--upgrade-orange); font: 700 11px/1.2 monospace; letter-spacing: .12em; }
.upgrade-document h3 { margin: 10px 0 22px; font-size: 17px; }
.upgrade-document span { color: var(--upgrade-muted); font-size: 13px; }
.upgrade-document a { color: var(--upgrade-orange); font-weight: 800; }

.upgrade-calculator { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; padding: 26px; border: 1px solid var(--upgrade-line); border-radius: 20px; background: #fff; }
.upgrade-calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.upgrade-field label { display: block; margin-bottom: 7px; color: var(--upgrade-ink); font-size: 13px; font-weight: 800; }
.upgrade-field input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #afb7c2; border-radius: 10px; font: inherit; }
.upgrade-field input:focus { border-color: var(--upgrade-orange); outline: 3px solid rgba(239, 81, 45, .14); }
.upgrade-calculator-result { display: grid; align-content: center; padding: 28px; border-radius: 16px; background: var(--upgrade-ink); color: #fff; }
.upgrade-calculator-result strong { display: block; margin: 6px 0; font-size: clamp(28px, 4vw, 46px); }
.upgrade-calculator-result p { margin: 10px 0 0; color: #d8deea; font-size: 13px; line-height: 1.55; }

.upgrade-projects-hero { padding: clamp(64px, 8vw, 110px) 0 46px; text-align: center; }
.upgrade-projects-hero h1 { max-width: 850px; margin: 12px auto; font-size: clamp(44px, 7vw, 82px); line-height: .96; letter-spacing: -.05em; }
.upgrade-projects-hero p { max-width: 700px; margin: 18px auto 0; color: var(--upgrade-muted); font-size: 18px; line-height: 1.65; }
.upgrade-project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.upgrade-filter { min-height: 42px; padding: 9px 16px; border: 1px solid var(--upgrade-line); border-radius: 999px; background: #fff; color: var(--upgrade-ink); font-weight: 800; cursor: pointer; }
.upgrade-filter.is-active { border-color: var(--upgrade-ink); background: var(--upgrade-ink); color: #fff; }
.upgrade-projects-library { min-height: clamp(380px, 46vh, 560px); }
.upgrade-projects-library > .upgrade-container { min-height: clamp(250px, 31vh, 390px); }
.upgrade-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.upgrade-projects-empty { grid-column: 1 / -1; display:grid; min-height:220px; margin:0; place-items:center; border:1px solid var(--upgrade-line); border-top:3px solid var(--upgrade-orange); border-radius:18px; background:#fff; padding:32px 24px; color:#5f6978; line-height:1.65; text-align:center; }
.upgrade-project-card { overflow: hidden; border: 1px solid var(--upgrade-line); border-radius: 18px; background: #fff; }
.upgrade-project-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--upgrade-soft); }
.upgrade-project-card summary { padding: 20px; list-style: none; cursor: pointer; }
.upgrade-project-card summary::-webkit-details-marker { display: none; }
.upgrade-project-card summary::after { content: "+"; float: right; color: var(--upgrade-orange); font-size: 24px; }
.upgrade-project-card[open] summary::after { content: "−"; }
.upgrade-project-card h2, .upgrade-project-card h3 { margin: 5px 0 8px; font-size: 21px; }
.upgrade-project-meta { color: var(--upgrade-muted); font-size: 13px; }
.upgrade-project-detail { padding: 0 20px 22px; color: var(--upgrade-muted); line-height: 1.6; }
.upgrade-project-product-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.upgrade-project-product-links a{display:inline-flex;align-items:center;min-height:38px;padding:8px 11px;border:1px solid var(--upgrade-orange);border-radius:9px;color:var(--upgrade-orange);font-size:12px;font-weight:800}.upgrade-project-product-links a:hover{background:var(--upgrade-orange);color:#fff}
.upgrade-placeholder-notice { margin: 0 0 26px; padding: 15px 18px; border-left: 3px solid var(--upgrade-orange); background: #fff7f3; color: #5f4b44; }
.upgrade-home-projects { padding: clamp(70px, 9vw, 116px) 0; background: #fff; border-top: 1px solid var(--upgrade-line); }

.ltg-location-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 20px; }
.ltg-location-button { min-height: 46px; padding: 10px 18px; border: 1px solid var(--upgrade-ink); border-radius: 12px; background: var(--upgrade-ink); color: #fff; font-weight: 800; cursor: pointer; }
.ltg-location-help { color: var(--upgrade-muted); font-size: 13px; }
.ltg-dealer-distance { display: inline-flex; margin-top: 9px; padding: 5px 9px; border-radius: 999px; background: #eef7ef; color: #276a34; font-size: 12px; font-weight: 800; }

@media (max-width: 900px) {
  .upgrade-product-hero, .upgrade-section-heading, .upgrade-calculator { grid-template-columns: 1fr; }
  .upgrade-product-visual { min-height: 390px; order: -1; }
  .upgrade-use-grid, .upgrade-fact-grid, .upgrade-document-grid, .upgrade-steps, .upgrade-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .upgrade-container { width: min(100% - 28px, 1120px); }
  .upgrade-product-hero { gap: 28px; padding: 34px 0 56px; }
  .upgrade-product-visual { min-height: 320px; border-radius: 20px; }
  .upgrade-product-copy h1 { font-size: clamp(40px, 14vw, 58px); }
  .upgrade-section { padding: 58px 0; }
  .upgrade-use-grid, .upgrade-fact-grid, .upgrade-document-grid, .upgrade-steps, .upgrade-project-grid, .upgrade-calculator-fields { grid-template-columns: 1fr; }
  .upgrade-step { min-height: 0; }
  .upgrade-step::before { margin-bottom: 18px; }
  .upgrade-specs, .upgrade-specs tbody, .upgrade-specs tr, .upgrade-specs th, .upgrade-specs td { display: block; width: 100%; }
  .upgrade-specs tr { padding: 14px 0; border-bottom: 1px solid var(--upgrade-line); }
  .upgrade-specs th, .upgrade-specs td { padding: 3px 0; border: 0; }
  .upgrade-calculator { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .upgrade-button { transition: none; }
}

/* Project gallery v5 ----------------------------------------------------- */
.upgrade-project-cover-media{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;background:var(--upgrade-soft)}
.upgrade-project-card--gallery{transition:box-shadow .25s ease,border-color .25s ease}.upgrade-project-card--gallery:hover{border-color:#d7c8c0;box-shadow:0 12px 34px rgba(22,28,38,.06)}.upgrade-project-card--gallery[open]{grid-column:1/-1;box-shadow:0 24px 64px rgba(22,28,38,.09)}.upgrade-project-card--gallery[open]>.upgrade-project-cover-media{display:none}
.upgrade-project-open-hint{display:inline-flex;margin-top:12px;padding:6px 9px;border-radius:999px;background:#fff4ef;color:#c94322;font-size:11px;font-weight:800;letter-spacing:.02em}
.upgrade-project-detail>p{max-width:860px;margin:0 0 22px}.upgrade-project-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}.upgrade-project-gallery-item{overflow:hidden;margin:0;border:1px solid var(--upgrade-line);border-radius:13px;background:#f7f7f6}.upgrade-project-gallery-image{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.upgrade-project-gallery-item img,.upgrade-project-gallery-item video{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#111}.upgrade-project-gallery-item video{height:auto}.upgrade-project-gallery-item figcaption{padding:9px 11px;color:#697382;font-size:11px;line-height:1.45}.upgrade-project-gallery-video{grid-column:span 2}.upgrade-project-gallery-video video{aspect-ratio:16/9}
.upgrade-project-card--compact{position:relative;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.upgrade-project-card--compact:hover{transform:translateY(-3px);border-color:#d7c8c0;box-shadow:0 18px 46px rgba(22,28,38,.09)}.upgrade-project-card--compact .upgrade-project-card-copy{display:block;padding:20px}.upgrade-project-card-open--compact{height:100%}.upgrade-project-card--compact .upgrade-project-cover-media{transition:transform .4s ease}.upgrade-project-card--compact:hover .upgrade-project-cover-media{transform:scale(1.025)}
.upgrade-projects-all-cta{min-height:52px;padding-inline:22px;border-color:var(--upgrade-orange);background:var(--upgrade-orange);color:#fff;box-shadow:0 12px 26px rgba(239,81,45,.22);gap:18px}.upgrade-projects-all-cta span:last-child{font-size:21px;line-height:1;transition:transform .2s ease}.upgrade-projects-all-cta:hover span:last-child{transform:translateX(3px)}
@media(max-width:900px){.upgrade-project-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.upgrade-project-gallery-video{grid-column:1/-1}}
@media(max-width:620px){.upgrade-project-gallery{grid-template-columns:1fr}.upgrade-project-gallery-video{grid-column:auto}.upgrade-project-card--gallery[open]{grid-column:auto}.upgrade-project-open-hint{display:flex;width:max-content}.upgrade-project-detail{padding-left:14px;padding-right:14px}.upgrade-project-card summary{padding:17px}}

/* Project viewer v6 ------------------------------------------------------ */
.upgrade-project-card--portfolio{position:relative;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.upgrade-project-card--portfolio:hover{transform:translateY(-3px);border-color:#d7c8c0;box-shadow:0 18px 46px rgba(22,28,38,.09)}
.upgrade-project-card-open{display:block;width:100%;padding:0;border:0;background:#fff;color:inherit;text-align:left;cursor:pointer;font:inherit}.upgrade-project-card-open:focus-visible{outline:3px solid rgba(239,81,45,.28);outline-offset:-3px}.upgrade-project-card-media{position:relative;display:block;overflow:hidden;background:var(--upgrade-soft)}.upgrade-project-card--portfolio .upgrade-project-cover-media{transition:transform .4s ease}.upgrade-project-card--portfolio:hover .upgrade-project-cover-media{transform:scale(1.025)}
.upgrade-project-card-count{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:rgba(18,18,18,.72);backdrop-filter:blur(12px);color:#fff;font-size:11px;font-weight:800;letter-spacing:.02em}
.upgrade-project-card--portfolio .upgrade-project-card-copy{display:block;padding:20px}.upgrade-project-card-title{display:block;margin:6px 0 8px;font-size:22px;line-height:1.15;letter-spacing:-.025em}.upgrade-project-card--portfolio .upgrade-project-meta{display:block;min-height:36px;line-height:1.45}.upgrade-project-view-link{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding-top:14px;border-top:1px solid var(--upgrade-line);color:#c94322;font-size:12px;font-weight:800}.upgrade-project-link-arrow{display:block;flex:0 0 20px;width:20px;height:20px;transition:transform .2s ease}.upgrade-project-card--portfolio:hover .upgrade-project-link-arrow,.upgrade-project-card--compact:hover .upgrade-project-link-arrow{transform:translate(2px,-2px)}
.upgrade-project-viewer-open{overflow:hidden}.upgrade-project-viewer[hidden]{display:none!important}.upgrade-project-viewer{position:fixed;z-index:99999;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(12,14,18,.76);backdrop-filter:blur(14px);opacity:0;transition:opacity .18s ease}.upgrade-project-viewer.is-open{opacity:1}.upgrade-project-viewer-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;width:min(1380px,96vw);height:min(900px,94vh);overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:#fff;box-shadow:0 36px 110px rgba(0,0,0,.35);transform:translateY(10px) scale(.99);transition:transform .2s ease}.upgrade-project-viewer.is-open .upgrade-project-viewer-shell{transform:none}
.upgrade-project-viewer-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #e7e8ea}.upgrade-project-viewer-topbar h2{margin:3px 0 4px;font-size:clamp(24px,3vw,38px);line-height:1;letter-spacing:-.04em}.upgrade-project-viewer-topbar p{margin:0;color:#687281;font-size:13px}.upgrade-project-viewer-close{display:grid;flex:0 0 auto;width:44px;height:44px;padding:0;place-items:center;border:1px solid #dedfe2;border-radius:50%;background:#fff;color:#111;font-size:28px;line-height:1;cursor:pointer}.upgrade-project-viewer-close:hover{background:#f6f6f5}
.upgrade-project-viewer-stage-wrap{position:relative;min-height:0;background:#101113}.upgrade-project-viewer-stage{display:grid;width:100%;height:100%;place-items:center;overflow:hidden}.upgrade-project-viewer-stage img,.upgrade-project-viewer-stage video{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;background:#101113}.upgrade-project-viewer-stage video{outline:0}.upgrade-project-viewer-nav{position:absolute;z-index:2;top:50%;display:grid;width:48px;height:48px;padding:0;place-items:center;transform:translateY(-50%);border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(15,15,15,.58);backdrop-filter:blur(10px);color:#fff;font-size:36px;line-height:1;cursor:pointer}.upgrade-project-viewer-nav:hover{background:rgba(239,81,45,.88)}.upgrade-project-viewer-prev{left:18px}.upgrade-project-viewer-next{right:18px}.upgrade-project-viewer-counter{position:absolute;right:18px;bottom:16px;padding:6px 9px;border-radius:999px;background:rgba(15,15,15,.68);color:#fff;font-size:11px;font-weight:800}
.upgrade-project-viewer-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 14px;border-top:1px solid #26272a;border-bottom:1px solid #e7e8ea;background:#17181b;scrollbar-width:thin}.upgrade-project-thumb{flex:0 0 82px;width:82px;height:60px;overflow:hidden;padding:0;border:2px solid transparent;border-radius:9px;background:#2a2b2f;cursor:pointer;opacity:.72}.upgrade-project-thumb.is-active{border-color:#ef512d;opacity:1}.upgrade-project-thumb img{width:100%;height:100%;object-fit:cover}.upgrade-project-thumb-video{display:grid;width:100%;height:100%;place-content:center;gap:2px;color:#fff;text-align:center}.upgrade-project-thumb-video span{font-size:18px}.upgrade-project-thumb-video small{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.upgrade-project-viewer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:start;padding:16px 20px;max-height:170px;overflow:auto}.upgrade-project-viewer-caption{margin:0 0 5px;color:#111;font-size:13px;font-weight:700}.upgrade-project-viewer-caption:empty{display:none}.upgrade-project-viewer-description{max-width:840px;margin:0;color:#66717e;font-size:13px;line-height:1.55}.upgrade-project-viewer-bottom .upgrade-project-product-links{margin:0;justify-content:flex-end}
.upgrade-projects-empty strong,.upgrade-projects-empty span{display:block}.upgrade-projects-empty strong{margin-bottom:6px;color:#20242b;font-size:18px}.upgrade-projects-empty span{color:#77808c}
@media(max-width:760px){.upgrade-project-viewer{padding:0}.upgrade-project-viewer-shell{width:100vw;height:100dvh;border:0;border-radius:0}.upgrade-project-viewer-topbar{padding:14px}.upgrade-project-viewer-topbar h2{font-size:25px}.upgrade-project-viewer-close{width:40px;height:40px}.upgrade-project-viewer-nav{width:42px;height:42px}.upgrade-project-viewer-prev{left:10px}.upgrade-project-viewer-next{right:10px}.upgrade-project-viewer-counter{right:10px;bottom:10px}.upgrade-project-viewer-bottom{grid-template-columns:1fr;gap:12px;padding:14px;max-height:210px}.upgrade-project-viewer-bottom .upgrade-project-product-links{justify-content:flex-start}.upgrade-project-thumb{flex-basis:72px;width:72px;height:54px}}
@media(prefers-reduced-motion:reduce){.upgrade-project-viewer,.upgrade-project-viewer-shell,.upgrade-project-card--portfolio,.upgrade-project-card--compact,.upgrade-project-card--portfolio .upgrade-project-cover-media,.upgrade-project-card--compact .upgrade-project-cover-media,.upgrade-project-link-arrow,.upgrade-projects-all-cta span:last-child{transition:none}}

/* Full-photo viewer: preserve the full image while extending its colour into unused space. */
.upgrade-project-viewer-stage { position: relative; isolation: isolate; background: #101113; }
.upgrade-project-viewer-stage .upgrade-project-viewer-backdrop {
  position: absolute !important;
  z-index: 0;
  inset: -5% !important;
  width: 110% !important;
  height: 110% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  filter: blur(24px) saturate(.82) brightness(.5);
  opacity: .86;
  transform: scale(1.04);
}
.upgrade-project-viewer-stage .upgrade-project-viewer-image {
  position: absolute !important;
  z-index: 1;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.28));
}

/* The whole gallery is one scroll surface, so the photograph moves with its details. */
.upgrade-project-viewer-shell {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.upgrade-project-viewer-stage-wrap {
  height: clamp(420px, 62vh, 680px);
  min-height: 0;
}
.upgrade-project-viewer-bottom {
  max-height: none;
  overflow: visible;
}
@media (max-width: 760px) {
  .upgrade-project-viewer-shell {
    height: 100dvh;
    scrollbar-gutter: auto;
  }
  .upgrade-project-viewer-stage-wrap {
    height: clamp(420px, 68vh, 580px);
  }
  .upgrade-project-viewer-bottom {
    max-height: none;
  }
}
