:root {
    --wine: #560e1a;
    --wine-dark: #360912;
    --wine-bright: #792434;
    --ink: #322319;
    --gold: #a8752e;
    --gold-light: #ebd193;
    --rule: #c8a772;
    --ivory: #fbf1db;
    --paper: url("../images/popierius.webp");
    --ribbon: linear-gradient(180deg, #742334 0, #550e1c 38%, #460c18 76%, #601827 100%);
    --gilding: linear-gradient(90deg, #9d6627, #ecd298 19%, #a87936 45%, #f8dda0 72%, #a16f2a);
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #bca27b url("../images/wrap_bg.jpg") repeat center top;
    color: var(--ink);
    font: 16px/1.53 Arial, Helvetica, sans-serif;
    overflow-wrap: break-word;
    -webkit-text-size-adjust: 100%;
}
button, input, select, textarea, .ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: Arial, Helvetica, sans-serif;
}
button, input, select, textarea { font-size: inherit; }
button, summary { cursor: pointer; }
a { color: var(--wine); text-decoration-skip-ink: auto; }
a:hover { color: #861f32; }
:focus-visible { outline: 3px solid #995722; outline-offset: 3px; }
img { max-width: 100%; }
[hidden], dialog:not([open]) { display: none !important; }
.skip-link { position: absolute; z-index: 20; left: 12px; top: -90px; padding: 10px 16px; background: var(--ivory); }
.skip-link:focus { top: 10px; }
.page-width { width: min(1112px, calc(100% - 64px)); margin: 0 auto; }
.masthead { display: grid; place-items: center; min-height: 144px; }
.wordmark {
    display: grid;
    place-items: center;
    width: min(520px, 100%);
    padding: 8px 26px 12px;
}
.wordmark img { display: block; width: min(100%, 408px); height: auto; }
.ribbon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    margin: 0 0 10px;
    padding: 5px 79px;
    border: 2px solid #c49851;
    border-radius: 6px;
    background: var(--ribbon);
    color: #ffebbb;
}
.ribbon::before, .ribbon::after {
    content: "";
    position: absolute;
    left: 6px; right: 6px; height: 1px;
    background: var(--gilding);
    pointer-events: none;
}
.ribbon::before { top: 2px; }
.ribbon::after { bottom: 2px; }
.nav-flourish {
    position: absolute; top: 50%; width: 49px; height: 18px; pointer-events: none;
    background: url("../images/aukso-sakele.webp") no-repeat center / contain;
}
.flourish-left { left: 15px; transform: translateY(-50%); }
.flourish-right { right: 15px; transform: translateY(-50%) scaleX(-1); }
.ribbon-links { display: flex; align-items: center; gap: 8px; }
.ribbon-link, .ribbon-phone {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px;
    color: #ffe6ad;
    font-weight: 700;
    text-decoration: none;
}
.ribbon-link { padding: 6px 16px; font-size: 13px; letter-spacing: .035em; text-transform: uppercase; }
.ribbon-link[aria-current], .ribbon-link:hover {
    color: #461019;
    background: linear-gradient(#fff4d8, #eacb8b);
    border-radius: 2px;
    outline: 1px solid #b38543;
}
.ribbon-phone { gap: 9px; white-space: nowrap; font-size: 18px; }
.ribbon-phone:hover, .footer-meta a:hover { color: #fff9e6; }
.phone-icon {
    width: 1em;
    height: 1em;
    flex: none;
    display: inline-block;
    background: url("../images/telefonas.svg") no-repeat center / contain;
}
.paper-sheet {
    position: relative;
    background-color: var(--ivory);
    background-image: linear-gradient(105deg, rgba(255,249,230,.38), rgba(251,241,219,.58)), var(--paper);
    border: 3px double #a77a38;
    padding: 28px 30px 35px;
}
.paper-sheet::before { content: ""; position: absolute; pointer-events: none; inset: 4px; border: 1px solid #d5b887; }
.paper-corner,
.lot-name:not(.lot-name--framed)::before, .lot-name:not(.lot-name--framed)::after,
.lot-action::before, .lot-action::after {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    background: url("../images/kampas.webp") no-repeat top left / contain;
}
.paper-corner {
    --corner-inset: 4px;
    width: 32px;
    height: 28px;
}
.corner-tl { top: var(--corner-inset); left: var(--corner-inset); }
.corner-tr { top: var(--corner-inset); right: var(--corner-inset); transform: scaleX(-1); }
.corner-bl { bottom: var(--corner-inset); left: var(--corner-inset); transform: scaleY(-1); }
.corner-br { bottom: var(--corner-inset); right: var(--corner-inset); transform: scale(-1); }
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 24%, 260px);
    grid-template-areas: "main categories" "main extras";
    grid-template-rows: min-content 1fr;
    column-gap: 22px;
    align-items: start;
}
.main-column { grid-area: main; min-width: 0; min-height: 100%; padding-right: 22px; border-right: 1px solid var(--rule); }
.category-menu { grid-area: categories; min-width: 0; }
.side-extras { grid-area: extras; min-width: 0; }
.horse-banner {
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #b99a66;
    background: #ad977c;
    text-decoration: none;
    color: #ffe5a0;
    container-type: inline-size;
}
.horse-banner img { display: block; width: 100%; height: auto; }
.horse-inscription {
    position: absolute;
    inset: 50% 0 auto;
    transform: translateY(-50%);
    display: block;
    padding: .18em .15em;
    color: #ffe1a0;
    text-align: center;
    font-size: clamp(16px, 2.4vw, 35px);
    font-size: clamp(15px, 4.65cqw, 37px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    white-space: nowrap;
    background: linear-gradient(90deg, transparent, rgba(42,22,12,.54) 25% 75%, transparent);
    -webkit-text-stroke: 1.9px #28180d;
    paint-order: stroke fill;
}
.horse-inscription b { font-weight: 700; }
.gold-divider { height: 62px; margin: 5px 1px 0; background: url("../images/v.png") no-repeat center / 100% 100%; }
.section-title, .side-heading, .subheading, .contact-fields legend {
    color: var(--wine);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.section-title, .side-heading, .subheading {
    position: relative; margin: 0 0 13px; padding: 0 0 9px;
    background: linear-gradient(90deg, #ac7c39 0, #d6b982 53%, rgba(185,147,84,.42)) no-repeat left bottom / 100% 1px;
}
.section-title { font-size: clamp(23px, 2.1vw, 29px); }
.side-heading { font-size: 21px; }
.subheading { font-size: 18px; }
.category-menu summary { list-style: none; padding-right: 28px; }
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu summary::after {
    content: ""; position: absolute; right: 4px; top: .36em; width: 8px; height: 8px;
    border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.category-menu[open] summary::after { top: .55em; transform: rotate(225deg); }
.category-links, .recommendation-list { list-style: none; padding: 0; margin: 0; }
.category-links a {
    display: flex; align-items: baseline; gap: 8px; padding: 3px 4px;
    color: #50141b; font-size: 12.5px; font-weight: 700; line-height: 1.33;
    text-decoration: none; text-transform: uppercase; letter-spacing: .027em;
}
.category-links a::before { content: "»"; color: #9c722e; }
.category-links a:hover, .category-links a[aria-current] { background: #f0dfbb; color: #57101b; }
.catalog-content, .catalog-content > #dle-content {
    --lot-gap: 13px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px var(--lot-gap);
    align-items: stretch;
    align-content: start;
}
.catalog-content > :not(.lot-card), .catalog-content > #dle-content > :not(.lot-card) { grid-column: 1 / -1; min-width: 0; }
.catalog-content > #dle-content { grid-column: 1 / -1; }
/* Older DLE pages group cards in flex rows and set per-photo weights. */
.catalog-content .lot-row { display: contents; }
.catalog-content .lot-row::after,
.catalog-content .lot-card::before, .catalog-content .lot-card::after { content: none; }
.catalog-content .lot-card,
.catalog-content .lot-row > .lot-card {
    --lot-corner-width: 27px;
    display: flex;
    box-sizing: border-box;
    flex: none;
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 1px solid #c8a670;
    background: linear-gradient(135deg, #fffaed, #f8ead0);
}
.lot-link { min-width: 0; width: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--wine); }
.catalog-content .lot-name {
    --corner-inset: 1px;
    --title-pad-top: 24px;
    --title-pad-bottom: 7px;
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
    height: calc(var(--title-pad-top) + 2.44em + var(--title-pad-bottom));
    margin: 0;
    padding: var(--title-pad-top) 10px var(--title-pad-bottom);
    overflow: hidden;
    background: none;
    font-size: clamp(15px, 1.22vw, 18px);
    font-weight: 700;
    line-height: 1.22;
    color: #4a1820;
}
.lot-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.lot-heading-corner {
    display: block;
    position: absolute;
    width: var(--lot-corner-width);
    height: auto;
    pointer-events: none;
}
.lot-name--framed::before, .lot-name--framed::after { content: none; }
/* DLE may serve a cached shortstory without the two decorative images. */
.lot-name:not(.lot-name--framed)::before, .lot-name:not(.lot-name--framed)::after {
    content: "";
    top: var(--corner-inset);
    width: var(--lot-corner-width);
    aspect-ratio: 29 / 24;
}
.lot-name:not(.lot-name--framed)::before { left: var(--corner-inset); }
.lot-name:not(.lot-name--framed)::after { right: var(--corner-inset); transform: scaleX(-1); }
.catalog-content .lot-photo {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f2e9d8;
}
.catalog-content .lot-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: scale-down;
    object-position: center;
}
/* The preceding templates left these elements around or on the item photograph. */
.catalog-content .lot-photo > .lot-print { display: contents; }
.catalog-content .lot-photo .photo-corner { display: none; }
.lot-action, .wine-button {
    display: inline-flex;
    align-items: center; justify-content: center; gap: 10px;
    border: 1px solid #ae8242;
    background: var(--ribbon);
    color: #fff3da;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.25;
}
.lot-action {
    position: relative;
    overflow: hidden;
    min-height: 37px;
    border-width: 1px 0 0;
    font-size: 14px;
    white-space: nowrap;
}
.lot-action::before, .lot-action::after {
    content: "";
    bottom: 1px;
    width: min(12%, var(--lot-corner-width));
    aspect-ratio: 29 / 24;
    filter: brightness(1.12);
}
.lot-action::before { left: 1px; transform: scaleY(-1); }
.lot-action::after { right: 1px; transform: scale(-1); }
.chevron { width: .44em; height: .44em; border-style: solid; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.lot-card:hover, .lot-card:focus-within { border-color: #89602c; }
.lot-card:hover .lot-action, .wine-button:hover { color: white; background: #702033; }
.wine-button { padding: 9px 15px; min-height: 42px; border-radius: 3px; }
.book-panel {
    display: grid;
    grid-template-columns: minmax(0, .74fr) minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    border-block: 1px solid var(--rule);
    padding: 17px 0;
    margin: 17px 0 22px;
}
.book-cover { display: block; align-self: center; }
.book-cover img { display: block; width: 100%; height: auto; }
.book-copy h2 { font-size: 17px; color: var(--wine); line-height: 1.15; margin: 4px 0 8px; }
.book-copy p { margin: 0; font-size: 13px; line-height: 1.45; }
.book-copy .book-author { font-size: 12px; color: #66503a; }
.book-button { grid-column: 1 / -1; font-size: 14px; }
.porcelain { display: block; width: min(100%, 229px); height: auto; margin: 14px auto 16px; }
.recommended-lot a { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; border-top: 1px solid #dac495; }
.recommended-lot img { display: block; flex-shrink: 0; object-fit: contain; background: #f0e5d3; }
.recommended-lot strong { display: block; font-size: 14px; line-height: 1.3; }
.recommended-lot small { display: block; margin-top: 3px; color: #635039; font-size: 13px; }
.page-numbers { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; justify-content: center; border-top: 1px solid var(--rule); padding: 16px 0 0; margin-top: 6px; font-size: 14px; }
.page-numbers > a, .page-numbers > span { display: inline-grid; place-items: center; min-width: 31px; min-height: 34px; padding: 0 5px; text-decoration: none; }
.page-numbers > span { border: 1px solid var(--rule); font-weight: 700; }
.page-numbers > .nav_ext, .page-numbers > span:has(> span) { border-color: transparent; color: #806b50; }
.page-numbers a:hover { background: #f0dfb9; }
.crumbs { margin: 0 0 18px; color: #604b39; font-size: 13px; line-height: 1.5; }
.crumbs a { color: #69252b; text-underline-offset: 3px; }
.product-column { display: flex; flex-direction: column; }
.product-column::after {
    content: ""; flex: 1; min-height: 100px; margin-top: 16px;
    background: url("../images/dvar.png") no-repeat center 65% / min(84%, 565px) auto;
}
.product-lead { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); grid-template-areas: "photo title" "photo copy" "gallery gallery"; grid-template-rows: min-content 1fr auto; align-items: start; column-gap: 22px; }
.product-copy { grid-area: copy; min-width: 0; }
.product-stage {
    --photo-max-width: 328px;
    --photo-max-height: 348px;
    grid-area: photo;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    min-width: 0;
}
.main-photo {
    display: block;
    position: relative;
    min-width: 0;
    max-width: min(100%, var(--photo-max-width));
    cursor: zoom-in;
    text-decoration: none;
}
.main-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(var(--photo-max-height), 55vh);
    object-fit: contain;
    border: 0;
}
.main-photo.is-placeholder { cursor: default; }
.zoom-mark {
    position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center;
    width: 31px; height: 31px; color: #4b1b1b; border: 1px solid #c2a472; background: #fff5dc; border-radius: 50%;
}
.zoom-mark::before { content: "+"; font: bold 22px/1 Arial, sans-serif; }
.product-title { grid-area: title; margin: 0 0 15px; color: var(--wine); font-size: clamp(23px, 2.1vw, 31px); line-height: 1.12; letter-spacing: -.035em; }
.product-facts { margin: 0 0 19px; }
.product-facts:empty { display: none; }
.product-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid #cfb587; padding: 7px 0; }
.product-facts dt { font-size: 13px; font-weight: 700; color: #674d37; }
.product-facts dd { margin: 0; font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.product-facts .product-price { font-size: 21px; font-weight: 700; color: var(--wine); }
.description-block h2 { margin: 0 0 7px; color: var(--wine); font-size: 17px; }
.edition-text { font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.edition-text :where(p, div, span, font, li, strong, em, b, u, i, a, td, th, h2, h3, h4) {
    font-family: Arial, Helvetica, sans-serif !important;
    background-color: transparent !important;
    white-space: normal !important;
    letter-spacing: normal !important;
}
.edition-text :where(p, div, span, font, li, strong, em, b, u, i, td, th) { font-size: inherit !important; color: inherit !important; line-height: inherit !important; }
.edition-text p { margin: 0 0 .72em; }
.edition-text :last-child { margin-bottom: 0; }
.edition-text img { max-width: 100% !important; height: auto !important; }
.edition-text table { max-width: 100%; display: block; overflow-x: auto; }
.edition-text iframe, .edition-text video { max-width: 100%; }
.purchase-call { width: 100%; margin-top: 16px; gap: 13px; text-align: left; }
.purchase-call .phone-icon { width: 23px; height: 23px; }
.purchase-call small, .purchase-call strong { display: block; }
.purchase-call small { font-size: 11px; font-weight: 400; letter-spacing: .05em; }
.purchase-call strong { font-size: clamp(16px, 1.6vw, 21px); white-space: nowrap; }
.product-gallery { grid-area: gallery; margin-top: 23px; }
.thumb-strip, .gallery-source .xfieldimagegallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px;
    margin: 0; padding: 0; list-style: none;
}
.gallery-source .xfieldimagegallery li { float: none; margin: 0; padding: 0; }
.thumb-strip button, .gallery-source .xfieldimagegallery a {
    display: block; width: 100%; padding: 2px; border: 1px solid transparent; background: transparent;
}
.thumb-strip button[aria-current="true"] { border-color: var(--gold); }
.thumb-strip button:hover { border-color: var(--wine); }
.thumb-strip img, .gallery-source .xfieldimagegallery li img {
    display: block; width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; border: 0; border-radius: 0;
    margin: 0; padding: 0; box-shadow: none; background: #ece1cc;
}
.product-tags, .product-edit { margin-top: 20px; font-size: 13px; }
.product-tags span { margin-left: 6px; }
.photo-viewer {
    width: min(1050px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 30px);
    overflow: auto; padding: 0; border: 1px solid #b99861; background: #231916; color: #fff2d6;
}
.photo-viewer::backdrop { background: rgba(25, 16, 15, .91); }
.viewer-open { overflow: hidden; }
.viewer-toolbar { display: flex; align-items: center; gap: 14px; padding: 6px 10px 6px 16px; border-bottom: 1px solid #6e563c; }
.viewer-toolbar strong { flex: 1; min-width: 0; font-size: 15px; }
.viewer-count { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.viewer-close, .viewer-prev, .viewer-next {
    display: grid; place-items: center; padding: 0; width: 44px; height: 44px;
    border: 1px solid #937952; background: rgba(49, 29, 24, .93); color: #fff2d6; font: 28px/1 Arial, sans-serif; border-radius: 2px;
}
.viewer-canvas { display: grid; place-items: center; position: relative; min-height: 220px; height: min(75vh, 750px); }
.viewer-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: scale-down; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 8px; }
.viewer-next { right: 8px; }
.contact-phone { display: inline-flex; align-items: center; gap: 10px; margin: 5px 0 18px; font-weight: 700; font-size: 22px; text-decoration: none; }
.contact-phone .phone-icon { width: 22px; height: 22px; }
.contact-fields { display: grid; gap: 6px; padding: 0; border: 0; margin: 0; min-width: 0; max-width: 600px; }
.contact-fields legend { margin-bottom: 10px; font-size: 20px; }
.contact-fields label { font-size: 14px; font-weight: 700; margin-top: 8px; }
.contact-fields :is(input, select, textarea) { width: 100%; border: 1px solid #bf9f71; background: #fffaf0; padding: 10px 12px; color: var(--ink); border-radius: 2px; }
.contact-fields label select { display: block; margin-top: 6px; }
.contact-fields textarea { resize: vertical; }
.contact-fields .wine-button { justify-self: start; margin-top: 10px; }
.contact-captcha { margin-top: 12px; overflow-x: auto; }
.catalog-content form, .catalog-content fieldset, .catalog-content textarea, .catalog-content input, .catalog-content select { min-width: 0; max-width: 100%; }
.catalog-content .allblock img { max-width: 100%; height: auto; }
.estate-footer { margin-top: auto; color: #f5dfb1; background: #460d19 url("../images/damastas.webp") repeat; border-top: 3px double #c49a59; }
.carriage-frieze { width: 100%; aspect-ratio: 1672 / 64; min-height: 64px; background: url("../images/karieta.webp") center / cover no-repeat; }
.footer-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding: 8px 16px 12px; background: rgba(48, 7, 15, .77); color: #f3dfb9; font-size: 12px; }
.footer-meta a { color: #f5e3bf; text-decoration: none; }
.site-counter img { display: block; }
.site-counter:not(:has(img:not([hidden]))) { display: none; }
.offline-page { width: min(540px, 94%); margin: 12vh auto; padding: 28px; text-align: center; background: var(--ivory); color: var(--ink); }
.offline-page img { width: min(350px, 100%); padding: 12px; }
@media (min-width: 761px) and (max-width: 1000px) {
    .page-width { width: calc(100% - 32px); }
    .paper-sheet { padding: 22px 18px; }
    .page-layout { grid-template-columns: minmax(0, 1fr) 205px; column-gap: 16px; }
    .main-column { padding-right: 16px; }
    .catalog-content, .catalog-content > #dle-content { --lot-gap: 8px; gap: 12px var(--lot-gap); }
    .product-lead { grid-template-columns: 1fr; grid-template-areas: "title" "photo" "gallery" "copy"; grid-template-rows: auto; gap: 12px; }
    .product-title, .product-gallery { margin: 0; }
}
@media (max-width: 760px) {
    .page-width { width: calc(100% - 16px); }
    .masthead { min-height: 0; }
    .wordmark { width: min(365px, 86%); padding: 7px 14px; }
    .nav-flourish, .product-column::after { display: none; }
    .ribbon { margin-bottom: 6px; min-height: 43px; padding: 2px 6px; gap: 4px; }
    .ribbon-links { gap: 1px; }
    .ribbon-link { font-size: 11px; letter-spacing: 0; padding: 6px; min-height: 36px; }
    .ribbon-phone { font-size: 14px; gap: 5px; padding-inline: 3px; }
    .paper-sheet { padding: 15px 13px 22px; }
    .paper-corner { width: 21px; height: 19px; }
    .page-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "categories" "main" "extras"; }
    .main-column { border-right: 0; padding-right: 0; }
    .category-menu { margin-bottom: 13px; }
    .category-menu summary {
        margin: 0; min-height: 43px; display: flex; align-items: center; padding: 7px 35px 7px 13px;
        border: 1px solid #b1874b; border-radius: 2px; background: var(--ribbon); color: #fff0cf; font-size: 16px; letter-spacing: 0;
    }
    .category-menu summary::after { top: 15px; right: 16px; border-color: #f5d894; }
    .category-menu[open] summary::after { top: 19px; }
    .category-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 0; }
    .category-links a { min-height: 41px; padding: 8px 5px; align-items: center; font-size: 12px; }
    .gold-divider { height: 43px; margin-top: 3px; }
    .section-title { font-size: 22px; margin-bottom: 10px; padding-bottom: 7px; }
    .catalog-content, .catalog-content > #dle-content {
        --lot-gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px var(--lot-gap);
    }
    .catalog-content .lot-card, .catalog-content .lot-row > .lot-card { --lot-corner-width: 24px; }
    .catalog-content .lot-name { --title-pad-top: 21px; --title-pad-bottom: 6px; font-size: 15px; padding-inline: 8px; }
    .lot-action { min-height: 36px; font-size: 13px; }
    .book-panel { grid-template-columns: 90px minmax(0, 1fr); column-gap: 16px; margin: 20px 0; }
    .book-cover { grid-row: span 2; }
    .book-copy h2 { font-size: 19px; }
    .book-button { grid-column: 2; justify-self: start; min-height: 38px; }
    .recommendations { display: flow-root; }
    .porcelain { width: min(44%, 195px); float: left; margin: 0 16px 10px 0; }
    .recommendation-list { overflow: hidden; }
    .recommended-lot img { width: 44px; height: 44px; }
    .recommended-lot a { gap: 7px; }
    .product-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "photo" "gallery" "copy"; grid-template-rows: auto; gap: 12px; }
    .product-gallery { margin: 0; }
    .product-stage { --photo-max-width: 300px; --photo-max-height: 300px; }
    .product-title { margin: 0; font-size: 25px; }
    .product-facts { margin-bottom: 15px; }
    .purchase-call strong { font-size: 19px; }
    .purchase-call { width: auto; min-width: 210px; }
    .photo-viewer { width: calc(100% - 10px); }
    .viewer-canvas { height: 70vh; height: 70dvh; }
    .viewer-prev { left: 3px; }
    .viewer-next { right: 3px; }
    .gallery-source .xfieldimagegallery, .thumb-strip { grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 5px; }
    .footer-meta { column-gap: 14px; }
    .carriage-frieze { min-height: 54px; }
}
@media (max-width: 370px) {
    .ribbon-link { font-size: 10px; padding-inline: 4px; }
    .ribbon-phone { font-size: 12px; }
    .paper-sheet { padding-inline: 10px; }
    .catalog-content .lot-name { font-size: 14px; }
    .lot-action { font-size: 12px; gap: 5px; }
    .category-links a { letter-spacing: 0; }
}
