@media (min-width: 768px) {
  .view:has(.cp-stage + .ch-gallery) {
    --car-gallery-height: clamp(420px, 49vw, 720px);
  }
  .view .cp-stage:has(+ .ch-gallery) {
    min-height: 0;
    height: var(--car-gallery-height);
  }
  .cp-stage:has(+ .ch-gallery #ch-exterior[hidden]) { display: none !important; }
  .ch-gallery {
    display: block;
    position: relative;
    z-index: 3;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    background: #f2f4f9;
    overflow: visible;
  }
  .ch-gallery:has(#ch-exterior:not([hidden])) .ch-gallery-frame { display: none; }
  .ch-gallery-arrow { display: none !important; }
  .ch-gallery-frame { position: relative; height: var(--car-gallery-height); background: #eef0f5; }
  .ch-gallery-panel { position: absolute; inset: 0; }
  .ch-gallery-panel[hidden] { display: none !important; }
  .ch-gallery-photos {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .ch-gallery-track { display: flex; height: 100%; width: 100%; }
  .ch-gallery-photos[data-loop] { overflow: hidden; }
  .ch-gallery-photos::-webkit-scrollbar { display: none; }
  .ch-gallery-photos img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f4f5f8;
    scroll-snap-align: center;
    user-select: none;
  }
  .ch-gallery-photos--portrait img { background: #161922; }
  .ch-desktop-viewport { position: absolute; z-index: 1; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; }
  .ch-desktop-viewport[hidden] { display: none; }
  .ch-desktop-viewport.is-dragging { cursor: grabbing; }
  .ch-desktop-viewport.is-single { cursor: default; background: #202634; }
  .ch-desktop-backdrop { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(38px) brightness(.55); pointer-events: none; }
  .ch-desktop-viewport.is-single .ch-desktop-track { position: relative; }
  .ch-desktop-track { display: flex; width: max-content; height: 100%; gap: 5px; will-change: transform; }
  .ch-desktop-track img { display: block; flex: none; width: auto; height: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #161922; user-select: none; -webkit-user-drag: none; pointer-events: none; }
  .ch-gallery-photos.ch-desktop-ready { visibility: hidden; }
  .ch-gallery-empty {
    display: grid;
    place-items: center;
    color: #fff;
    background: #252b3b;
    font: 600 16px/1.5 Montserrat, sans-serif;
  }
  .cp-stage:has(+ .ch-gallery) .cs-prog { display: none !important; }
  .ch-gallery-tabs {
    position: absolute;
    z-index: 3;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(420px, 80%);
    padding: 4px;
    border-radius: 999px;
    background: rgba(242, 242, 246, .9);
  }
  .ch-gallery-tabs { isolation: isolate; touch-action: pan-y; user-select: none; }
  .ch-gallery-tabs::before {
    content: ""; position: absolute; inset: 4px auto 4px 4px;
    width: calc((100% - 8px) / 3); z-index: -1; border-radius: 999px;
    background: #fff; box-shadow: 0 1px 4px #0002;
    transform: translateX(calc(var(--gallery-tab, 0) * 100%));
    transition: transform .2s ease-out; pointer-events: none;
  }
  .ch-gallery-tabs[data-dragging]::before { transition: none; }
  .ch-gallery-tabs button {
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #454555;
    font: 600 12px/1 Montserrat, sans-serif;
    cursor: pointer;
  }
  .ch-gallery-tabs button[aria-selected="true"] { color: #101120; }
  .ch-gallery-tabs button:focus-visible, .ch-desktop-arrow:focus-visible { outline: 3px solid #3347ff; outline-offset: -2px; }
  .ch-desktop-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: rgba(30, 38, 55, .55);
    background: rgba(255, 255, 255, .75);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .ch-desktop-arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateX(-2px) rotate(45deg);
  }
  .ch-desktop-arrow[data-direction="-1"]::before { transform: translateX(2px) rotate(-135deg); }
  .ch-desktop-arrow[data-direction="-1"] { left: 18px; }
  .ch-desktop-arrow[data-direction="1"] { right: 18px; }
  .ch-desktop-arrow[hidden] { display: none; }
}

@media (max-width: 767px) { .ch-desktop-viewport, .ch-desktop-arrow { display: none !important; } }

.cp-book .offer-discount {
  color: var(--blue-deep);
}
