/* PMG 34.6.11 — LOT DETAIL RESPONSIVE LAYOUT
   Dealer: lot.php. Insurance: insurance-lot.php.
   Deliberately isolated from exported PDFs and non-lot pages.
   R5.5: screen-only inspection/condition under gallery, market summary under specs;
   full sold-analogs table and PDF flow remain unchanged.
   Active PHP, page content, lot actions, analytics, canonical and PDF unchanged. */

@media screen {
  body.pmg-lot-stage:not(.lot-pdf-mode) .utility {
    display: none !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .nav {
    height: 70px;
    min-height: 70px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .brand img {
    width: 52px;
    height: 52px;
  }

  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-breadcrumbs__inner {
    min-height: 28px;
    padding-block: 5px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero {
    padding: 16px 0 18px !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: start !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero .eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-title-actions {
    margin: 0 0 11px !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-title-actions h1 {
    max-width: none !important;
    margin: 0 !important;
    font-size: clamp(27px, 2.4vw, 39px) !important;
    line-height: 1.09 !important;
    letter-spacing: -0.03em;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-info-row {
    grid-template-columns: 210px minmax(0, 1fr) !important;
    gap: 17px !important;
    align-items: start !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-info-row--insurance {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-info-row--insurance:has(.lot-insurance-status-summary) {
    grid-template-columns: 150px minmax(0, 1fr) !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-score-summary {
    max-width: 210px;
    border-radius: 11px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-score-summary__main {
    padding: 9px 11px !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-score-summary__main strong {
    font-size: 28px !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-score-bars {
    padding: 7px 10px !important;
    gap: 6px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero__meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px 13px !important;
    align-items: center;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero__meta > span {
    width: auto !important;
    min-height: 24px;
    padding: 2px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    align-self: center;
    gap: 5px;
    max-width: 100%;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero__meta > span > small {
    font-size: 9px;
    color: #8e9aa5;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero__meta > span > strong {
    font-size: 12px;
    color: #f5f6f7;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-actions {
    margin-top: 6px;
    padding-top: 7px;
    gap: 7px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-action-btn {
    min-height: 32px;
    padding-inline: 11px;
    font-size: 10px;
  }

  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-main {
    padding-top: 15px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-container {
    width: min(calc(100% - 32px), 1720px);
    max-width: none;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout--no-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual {
    position: sticky;
    top: 80px;
    align-self: start;
    min-width: 0;
    min-height: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information {
    min-width: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery {
    margin: 0;
    min-width: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide {
    height: min(62vh, 690px) !important;
    min-height: 0 !important;
    max-height: 690px !important;
    border-radius: 12px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main {
    box-shadow: none;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__thumbs {
    gap: 7px;
    padding: 9px 0 2px;
    scroll-padding: 10px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__thumb {
    flex-basis: 86px;
    height: 60px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-overview-grid {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    grid-template-columns: none !important;
    margin-bottom: 0;
    min-width: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-price-card {
    order: -1;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-price-card,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs-card {
    padding: 17px 19px;
    border-radius: 12px;
    min-width: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .section-kicker {
    margin-bottom: 9px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-price-card__row {
    padding-block: 9px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-price-card__row strong {
    font-size: clamp(19px, 1.35vw, 24px);
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs > div {
    min-width: 0;
    padding: 8px 0;
    border-top: 1px solid #edf0f2;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs > div:nth-child(-n+3) {
    border-top: 1px solid #edf0f2;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs span {
    margin-bottom: 3px;
    font-size: 10px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs strong {
    font-size: 12px;
    line-height: 1.35;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-delivery-note {
    margin-top: 12px;
    padding: 10px 12px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-delivery-note strong {
    font-size: 12px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-delivery-note span {
    font-size: 11px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-archive-notice {
    margin: 0 0 13px;
  }

  /* Inspection, damage items, comments and market history intentionally
     remain normal full-width flow AFTER the visual/details layout. */
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-inspection,
  body.pmg-lot-stage:not(.lot-pdf-mode) .insurance-condition-section,
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-sold {
    clear: both;
  }
}

@media screen and (max-width: 1050px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual {
    position: static;
    top: auto;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide {
    height: clamp(290px, 50vh, 560px) !important;
    max-height: none !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-overview-grid {
    gap: 13px;
  }
}
@media screen and (max-width: 700px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .nav {
    height: 62px;
    min-height: 62px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero {
    padding: 13px 0 15px !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-title-actions h1 {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.15 !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-info-row,
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-info-row--insurance,
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-info-row--insurance:has(.lot-insurance-status-summary) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-score-summary {
    max-width: none;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-score-bars {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-hero-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-action-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 39px;
    padding: 7px;
    font-size: 10px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-action-btn--participate {
    grid-column: 1 / -1;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-container {
    width: calc(100% - 20px);
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide {
    height: clamp(260px, 43vh, 440px) !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__thumb {
    flex-basis: 72px;
    height: 50px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-price-card,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs-card {
    padding: 15px;
  }
}
@media screen and (max-width: 430px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-title-actions h1 {
    font-size: 25px !important;
  }
  /* R5.6: keep 2 columns on narrow phones; labels and values retain R5.5 font sizes. */
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-information .lot-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-hero__meta > span > strong {
    font-size: 11px;
  }
}
/* Stage 34.6.11 visual refinement R3: photo-first 75/25 layout.
   The sharp foreground image is always fully visible; a softened copy of
   that SAME photograph fills any letterbox space. No black side bars,
   no cropping of the vehicle, and no network image-generation step. */
@media screen {
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #dce1e5;
    border-radius: 12px;
    isolation: isolate;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    background: #dce1e5;
    border-radius: inherit;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide::before {
    content: "";
    position: absolute;
    inset: -34px;
    z-index: 0;
    pointer-events: none;
    background-image: var(--pmg-gallery-backdrop, none);
    background-size: cover;
    background-position: center center;
    filter: blur(28px) brightness(.83);
    opacity: .88;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: transparent !important;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow {
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 58px;
    border: 1px solid rgba(255, 102, 0, .46);
    border-radius: 10px;
    background: rgba(0, 0, 0, .78);
    color: #ff6600;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow:hover,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow:focus-visible {
    background: rgba(0, 0, 0, .95);
    color: #ff811e;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow:focus-visible {
    outline: 2px solid #ff6600;
    outline-offset: 3px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow--prev {
    left: 12px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow--next {
    right: 12px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-counter {
    z-index: 3;
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 102, 0, .35);
    border-radius: 9px;
    background: rgba(0, 0, 0, .8);
    color: #ff6600;
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__thumb {
    background: #e8ecef;
  }
}
@media screen and (max-width: 700px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow {
    width: 38px;
    height: 48px;
    font-size: 31px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow--prev {
    left: 8px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-arrow--next {
    right: 8px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .gallery-counter {
    right: 9px;
    bottom: 9px;
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* Stage 34.6.11 visual refinement R4: reduce the main photo area
   height by 20% on desktop (4:3 -> 5:3) without changing left/right
   grid tracks, sidebar size, thumb controls or full-image object-fit.
   Gallery width remains unchanged to avoid an oversized empty column. */
@media screen and (min-width: 1051px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main {
    aspect-ratio: 5 / 3;
  }
}

/* PMG 34.6.11 R5 — approved desktop-only gallery cover layout.
   Keep the R4 sidebar track and gallery controls; match the header container.
   Tablet/mobile and PDF keep their existing behavior. */
@media screen and (min-width: 1051px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .lot-api-container {
    width: min(calc(100% - 40px), var(--max));
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout:not(.pmg-lot-stage-layout--no-gallery) {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide::before {
    content: none;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__slide img {
    object-fit: cover;
    object-position: center;
  }
}

/* PMG 34.6.11 R5.2 — absolutely centered desktop gallery chevrons.
   Fix glyph baseline offset in R5.1; leave button footprint and click handlers intact.
   Desktop only: no mobile/tablet, lightbox or PDF changes. */
@media screen and (min-width: 1051px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    display: block;
    font-size: 0;
    line-height: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: 0;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    pointer-events: none;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow--prev::after {
    transform: translate(-50%, -50%) rotate(-135deg);
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow--next::after {
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

/* PMG 34.6.11 R5.3 — desktop lot-page header navigation containment.
   Header and gallery already share the 1240px container. The old menu overflows
   its header by 48px at viewport 1480; do not shift the correct gallery.
   Scope to lot pages and desktop only; leave other pages unchanged. */
@media screen and (min-width: 1051px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .site-header .nav {
    gap: 16px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .site-header .main-nav {
    gap: 2px;
    min-width: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .site-header .main-nav > .nav-link,
  body.pmg-lot-stage:not(.lot-pdf-mode) .site-header .main-nav > .nav-item > .nav-link {
    padding-inline: 6px;
  }
}
@media screen and (min-width: 1051px) and (max-width: 1270px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .site-header .brand__text {
    display: none;
  }
}

/* PMG 34.6.11 R5.4 — mobile-only gallery chevrons, truly centered.
   Existing gallery arrows, counter, thumbs and JS behavior are preserved. */
@media screen and (max-width: 700px) {
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 48px;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    pointer-events: none;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow--prev::after {
    transform: translate(-50%, -50%) rotate(-135deg);
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .lot-gallery__main > .gallery-arrow--next::after {
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

/* PMG 34.6.11 R5.5 — two independent desktop columns with responsive
   reading order. No PDF changes; gallery image/counter/buttons unchanged. */
@media screen {
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual > .lot-comments,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual > .lot-inspection {
    margin-top: 22px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual .section-head h2 {
    font-size: clamp(26px, 2.6vw, 37px);
    line-height: 1.1;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-r55-market-overview {
    padding: 17px 19px;
    border: 1px solid #d7dce0;
    border-radius: 12px;
    background: #fff;
    min-width: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-r55-market-overview .section-kicker {
    margin-bottom: 9px;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-r55-market-note {
    margin: 0 0 13px;
    color: #6d767f;
    font-size: 11px;
    line-height: 1.4;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-r55-market-overview .market-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-r55-market-overview .market-summary > div {
    min-width: 0;
    padding: 10px 9px;
    border: 1px solid #e6e9ec;
    border-radius: 8px;
    background: #f7f8f9;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-r55-market-overview .market-summary span {
    font-size: 10px;
    line-height: 1.3;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-r55-market-overview .market-summary strong {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}
@media screen and (min-width: 1051px) {
  /* A sticky gallery parent must not trap long inspections below the photo. */
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-visual {
    position: static;
    top: auto;
  }
}
@media screen and (max-width: 1050px) {
  /* Flatten wrappers for the semantic mobile sequence:
     gallery -> pricing/specs -> comments/inspection -> market overview. */
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout:not(.pmg-lot-stage-layout--no-gallery) > .pmg-lot-stage-visual,
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout:not(.pmg-lot-stage-layout--no-gallery) > .pmg-lot-stage-information {
    display: contents;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout > .pmg-lot-stage-visual > .lot-gallery {
    order: 10;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout > .pmg-lot-stage-information > .lot-archive-notice {
    order: 15;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout > .pmg-lot-stage-information > .lot-overview-grid {
    order: 20;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout > .pmg-lot-stage-visual > .lot-comments {
    order: 30;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout > .pmg-lot-stage-visual > .lot-inspection {
    order: 40;
  }
  body.pmg-lot-stage:not(.lot-pdf-mode) .pmg-lot-stage-layout > .pmg-lot-stage-information > .pmg-r55-market-overview {
    order: 50;
  }
}

@media print {
  body.pmg-lot-stage .pmg-lot-stage-layout,
  body.pmg-lot-stage .pmg-lot-stage-visual,
  body.pmg-lot-stage .pmg-lot-stage-information {
    display: block !important;
    position: static !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
