/*
 * Product detail (views/product.html, templates/product.html.twig):
 * docs/design/2026-10-public-refresh/screens/03-product-detail.html as classes.
 * Tokens come from site.css (:root --pp-*). Loaded after site.css; every rule
 * is scoped to the product page (#page-wrapper gets the state name as a class).
 */

#page-wrapper.product { padding: 0 0 56px; background: #fff; }

/* ---------- Breadcrumb row: crumbs left, Prev / Back to list / Next right ---------- */

.product .product-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 56px;
    border-bottom: 1px solid var(--pp-line-2);
}

.product .breadcrumb-trail ol {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--pp-muted);
}
.product .breadcrumb-trail li { display: inline; float: none; margin: 0; padding: 0; }
.product .breadcrumb-trail li + li::before { content: "/"; padding: 0 8px; color: var(--pp-muted); }
.product .breadcrumb-trail a { text-decoration: none; }
.product .breadcrumb-trail a:hover { text-decoration: underline; }
.product .breadcrumb-trail li[aria-current] { color: var(--pp-text); }

.product .product-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.product .product-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d0d0d0;
    border-radius: var(--pp-radius);
    color: var(--pp-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.product .product-nav a:hover,
.product .product-nav a:focus { border-color: var(--pp-red); color: var(--pp-red); }

/* ---------- Summary: gallery left, title + price box right ---------- */

.product .product-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    padding: 40px 56px;
}

.product .product-gallery {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product .product-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--pp-line-2);
    border-radius: var(--pp-radius-card);
    background: #fff;   /* product photos are shot on white */
}
.product .product-main img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;   /* the whole machine, never cropped */
    padding: 12px;
}
.product .product-main > a { display: block; height: 100%; cursor: zoom-in; }
.product .product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9a9a9a;
    background: #f2f2f0;
}

.product .product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.product .product-thumbs button {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: var(--pp-radius);
    background: #fff;
    cursor: pointer;
}
.product .product-thumbs button:hover { border-color: var(--pp-red); }
.product .product-thumbs .product-thumb.active { border: 2px solid var(--pp-red); }
.product .product-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.product .product-buy {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product .product-eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pp-red);
}
.product h1.pageHeader {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--pp-heading);
}

/* ---------- Price box (#productConfigPrice): one of today's four states ---------- */

.product #productConfigPrice { margin-top: 8px; }
.product #productConfigPrice .price-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border: 1px solid #e2e2e0;
    border-radius: var(--pp-radius-card);
    background: var(--pp-panel);
}
.product #productConfigPrice .price-box + .price-box { margin-top: 12px; }
.product #productConfigPrice h2,
.product #productConfigPrice h4 { margin: 0; line-height: 1.2; }
.product #productConfigPrice .price-box-price { display: flex; flex-direction: column; gap: 2px; }
.product #productConfigPrice .price-box-price h4 { font-size: 13px; font-weight: 400; color: var(--pp-muted); }
.product #productConfigPrice .price-box-price h2 { font-size: 32px; font-weight: 600; color: var(--pp-heading); }
.product #productConfigPrice .price-box-price h2 a { font-size: 20px; }
.product #productConfigPrice .price-box-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product #productConfigPrice .price-box-actions .btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    font-weight: 600;
}
.product #productConfigPrice .price-box-parent a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Not priced (email for pricing / awaiting approval / log in): the mockup's sign-in box. */
.product #productConfigPrice .price-box-muted {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: var(--pp-heading);
}
.product #productConfigPrice .price-box-muted svg { flex: 0 0 auto; }
.product #productConfigPrice .price-box-muted h2 { font-size: 17px; font-weight: 600; }
.product #productConfigPrice .price-box-muted a { text-decoration: none; }

/* ---------- Tabs: underline tabs (uib-tabset) ---------- */

.product > .row { margin: 0; padding: 0 56px; }
.product > .row > .tabs-container { padding: 0; }
.product .product-hint { margin: 0 0 12px; font-size: 13px; color: var(--pp-muted); }

.product .tabs-container .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    border-bottom: 1px solid #e2e2e0;
}
.product .tabs-container .nav-tabs::before,
.product .tabs-container .nav-tabs::after { display: none; }
.product .tabs-container .nav-tabs > li { float: none; margin: 0; }
.product .tabs-container .nav-tabs > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--pp-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}
.product .tabs-container .nav-tabs > li > a:hover,
.product .tabs-container .nav-tabs > li > a:focus { background: none; border: 0; outline: 0; color: var(--pp-heading); }
.product .tabs-container .nav-tabs > li > a:focus-visible { outline: 2px solid var(--pp-red); outline-offset: 2px; }
.product .tabs-container .nav-tabs > li.active > a,
.product .tabs-container .nav-tabs > li.active > a:hover,
.product .tabs-container .nav-tabs > li.active > a:focus {
    border: 0;
    background: none;
    color: var(--pp-heading);
    font-weight: 600;
    box-shadow: inset 0 -3px 0 var(--pp-red);
}
.product .tabs-container .nav-tabs > li.disabled > a { color: #9a9a9a; }
.product .tabs-container .nav-tabs .tab-count {
    padding: 2px 7px;
    border-radius: 10px;
    background: #efefed;
    color: var(--pp-text-2);
    font-size: 12px;
    font-weight: 600;
}
.product .tabs-container .tab-content > .tab-pane > .panel-body,
.product .edit-cart-options {   /* edit-cart: the Options form without the tabs */
    padding: 32px 0 0;
    border: 0;
    background: none;
}

/* ---------- Options tab: labelled fields, option cards, −/+ stepper ---------- */

.product #product_options h3 { margin: 0 0 24px; font-size: 22px; font-weight: 600; color: var(--pp-heading); }
.product .options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px 32px;
}
.product .options-grid > .option-row { display: contents; }
.product .options-grid .option-hidden { display: none; }

.product .option-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.product .option-label {
    display: block;
    width: auto;
    margin: 0 0 -2px;
    padding: 0;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pp-text);
}
.product .option-label a,
.product .option-card a { color: #6b6b6b; }
.product .option-label .option-price { margin-left: 4px; font-weight: 400; color: var(--pp-muted); }

.product .option-field .form-control {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--pp-input);
    border-radius: var(--pp-radius);
    box-shadow: none;
    font-size: 15px;
    color: var(--pp-heading);
}
.product .option-field select.form-control { background-color: #fff; }
.product .option-field .option-control-short { max-width: 140px; }
.product .option-field .form-control:focus,
.product .option-card input:focus-visible,
.product .option-step:focus-visible {
    outline: 2px solid var(--pp-red);
    outline-offset: 1px;
    border-color: var(--pp-red);
}

.product #product_form .option-card {   /* beats style.min.css's #product_form label{display:block} */
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: var(--pp-radius);
    background: #fff;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}
.product #product_form .option-card:hover { border-color: #b8b8b8; }
.product .option-card input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--pp-red);
}
.product .option-card-body { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.product .option-card-title { flex: 1 1 auto; min-width: 0; }
.product .option-card .option-price { flex: 0 0 auto; margin-left: auto; font-size: 14px; color: var(--pp-muted); }
.product #product_form .option-card-single { align-items: flex-start; padding: 14px 16px; border-color: #e2e2e0; }
.product .option-card-single input { margin-top: 2px; }
.product .option-card-single .option-card-body { align-items: flex-start; }
/* A lone checkbox has no label above it: start its card where the selects
   beside it start (label line-height + its -2px margin + the field's 8px gap). */
.product #product_form .option-field > .option-card-single:first-child { margin-top: calc(14px * 1.4 + 6px); }

/* Superadmin line items: below the options, flush with them (it was a
   Bootstrap .row, whose -15px margins pulled the button left). */
.product .product-line-items { margin-top: 24px; }
.product .product-line-items-add { margin-bottom: 16px; }
.product .option-card-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.product .option-card-desc { font-size: 13px; color: var(--pp-muted); }
.product #product_form .option-card.is-selected { border-color: var(--pp-tint-border); background: var(--pp-tint); }

.product .option-stepper {
    display: flex;
    align-items: stretch;
    width: 160px;
    height: 44px;
    overflow: hidden;
    border: 1px solid var(--pp-input);
    border-radius: var(--pp-radius);
}
.product .option-stepper .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    text-align: center;
    -moz-appearance: textfield;
}
.product .option-stepper .form-control::-webkit-inner-spin-button,
.product .option-stepper .form-control::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product .option-step {
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    background: var(--pp-band);
    color: var(--pp-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}
.product .option-step:hover { background: #ececea; }
.product .option-step[disabled] { color: #b0b0b0; background: var(--pp-band); cursor: not-allowed; }
.product .option-hint { font-size: 13px; color: var(--pp-muted); }

/* ---------- Options summary bar: sticky at the bottom of the Options tab ---------- */

.product .options-summary {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px 32px;
    margin-top: 8px;
    padding: 20px 24px;
    border-radius: var(--pp-radius-card);
    background: var(--pp-bar);
    color: #fff;
}
.product .options-summary + .options-summary { margin-top: 12px; }
.product .options-summary-total { display: flex; flex-direction: column; margin-right: auto; }
.product .options-summary-label { font-size: 12px; color: #cfcfcf; }
.product .options-summary-price { font-size: 24px; font-weight: 600; line-height: 1.2; }
.product .options-summary a:not(.btn) { color: #fff; font-weight: 600; }
.product #product_form .options-summary-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}
.product .options-summary-qty select.form-control {
    width: auto;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #5a5a5a;
    border-radius: var(--pp-radius);
    background: #333;
    color: #fff;
}
.product .options-summary .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-weight: 600;
}
.product .options-summary-muted {
    position: static;
    justify-content: flex-start;
    background: var(--pp-band);
    color: var(--pp-text-2);
}
.product .options-summary-muted a:not(.btn) { color: var(--pp-red); }

/* ---------- Accessories, Stock, Media and staff tabs ---------- */

.product .tab-lead { margin: 0 0 16px; font-size: 15px; color: var(--pp-text-2); }
.product .staff-heading { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--pp-heading); }

/* Accessories: one card per part */
.product .accessory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}
.product a.accessory-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius-card);
    background: #fff;
    color: var(--pp-text);
    text-decoration: none;
}
.product a.accessory-card:hover { border-color: var(--pp-tint-border); background: var(--pp-tint); }
.product a.accessory-card:focus-visible { outline: 2px solid var(--pp-red); outline-offset: 2px; }
.product .accessory-thumb {
    flex: 0 0 56px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: var(--pp-band);
    color: #9a9a9a;
}
.product .accessory-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; }
.product .accessory-go { flex: 0 0 auto; color: #9a9a9a; }

/* Tables: Stock, Purchasing, Lids */
.product .pp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius-card);
    background: #fff;
}
.product .pp-table-wrap.staff-narrow { max-width: 760px; }
.product .pp-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.product .stock-table { min-width: 760px; }
.product .pp-table > thead > tr > th {
    padding: 12px 16px;
    border: 0;
    background: var(--pp-band);
    color: var(--pp-text-2);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}
.product .pp-table > tbody > tr > td {
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--pp-line-2);
    vertical-align: middle;
    color: var(--pp-text);
}
.product .pp-table > thead > tr > th.num,
.product .pp-table > tbody > tr > td.num { text-align: right; }
.product .pp-table .stock-id { font-variant-numeric: tabular-nums; }
.product .pp-table .stock-price { font-weight: 600; white-space: nowrap; }
.product .pp-table .sold-flag { color: var(--pp-red); }

.product .stock-table .stock-row { cursor: pointer; }
.product .stock-table .stock-row:hover > td { background: var(--pp-panel); }
.product .stock-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pp-heading);
    font: 600 14px/1.4 var(--pp-font);
    text-align: left;
    cursor: pointer;
}
.product .stock-toggle svg { flex: 0 0 auto; transition: transform .15s; }
.product .stock-row.is-expanded .stock-toggle svg { transform: rotate(90deg); }
.product .stock-toggle:focus-visible { outline: 2px solid var(--pp-red); outline-offset: 2px; }
.product .pp-table > tbody > tr > td.stock-actions { padding-top: 8px; padding-bottom: 8px; text-align: right; }
.product .stock-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.product .pp-table > tbody > tr.stock-options > td,
.product .pp-table > tbody > tr > td.staff-subrow { padding: 0 16px 16px; border-top: 0; }
.product .stock-options-box {
    padding: 12px 16px;
    border-radius: var(--pp-radius);
    background: var(--pp-panel);
    font-size: 13px;
    line-height: 1.7;
    color: var(--pp-text-2);
}
.product .stock-options-box strong,
.product .stock-options-box h4 { color: var(--pp-text); }
.product .stock-options-box h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }

/* Media: photo galleries, videos, downloads */
.product .media-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: start;
}
.product .media-group { display: flex; flex-direction: column; gap: 12px; }
.product .media-group > h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pp-muted);
}
.product a.media-item,
.product .media-files {
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius-card);
    background: #fff;
}
.product a.media-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    color: var(--pp-text);
    text-decoration: none;
    cursor: pointer;
}
.product a.media-item:hover { border-color: var(--pp-tint-border); background: var(--pp-tint); }
.product a.media-item:focus-visible,
.product .media-files a:focus-visible { outline: 2px solid var(--pp-red); outline-offset: 2px; }
.product .media-thumb {
    flex: 0 0 88px;
    height: 60px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--pp-line);
}
.product .media-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product .media-photo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.product .media-photo-row a {
    width: 88px;
    height: 66px;
    border: 1px solid var(--pp-line);
    border-radius: 3px;
    background: #f2f2f0;
    overflow: hidden;
}
.product .media-photo-row a:hover { border-color: var(--pp-red); }
.product .media-photo-row img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.product .media-thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-bar);
    color: #fff;
}
.product .media-item-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.product .media-item-text strong { font-size: 15px; color: var(--pp-text); }
.product .media-item-meta { font-size: 13px; color: var(--pp-muted); overflow-wrap: anywhere; }
.product a.media-file { padding: 14px 16px; }
.product .media-file-icon { flex: 0 0 auto; color: var(--pp-red); }
.product .media-file-get { flex: 0 0 auto; color: var(--pp-muted); }
.product .media-files-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pp-line-2);
}
.product .media-files a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 10px 54px;
    font-size: 14px;
    color: var(--pp-red);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.product .media-files a:hover { background: var(--pp-panel); color: var(--pp-red-link-hover); }

/* ---------- Phone ---------- */

@media (max-width: 700px) {
    .product .product-topbar { padding: 16px; }
    .product .product-summary { gap: 24px; padding: 24px 16px; }
    .product .product-gallery,
    .product .product-buy { flex-basis: 100%; }
    .product h1.pageHeader { font-size: 28px; }
    .product > .row { padding: 0 16px; }
    .product .tabs-container .nav-tabs { gap: 0 20px; }
    .product .options-grid { grid-template-columns: minmax(0, 1fr); }
    .product #product_form .option-field > .option-card-single:first-child { margin-top: 0; }
    .product .options-summary { gap: 12px 16px; padding: 16px; }
    .product .options-summary-total { flex-basis: 100%; }
    .product .options-summary .btn { flex: 1 1 auto; justify-content: center; }
    .product .media-groups,
    .product .accessory-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Photo viewer (Media tab): near-opaque dark backdrop, the photo fitted to
   the screen, thumbnails underneath. A click on the backdrop closes it. */
.photo-viewer {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 56px 24px 20px;
    background: rgba(12, 12, 12, .92);
    cursor: zoom-out;
}
.photo-viewer-stage { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 0; flex: 1 1 auto; }
.photo-viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: calc(100% - 128px); max-height: 100%; cursor: default; }
.photo-viewer figure img { display: block; max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.photo-viewer figcaption { margin-top: 10px; color: #ddd; font-size: 14px; text-align: center; }
.photo-viewer figure video { display: block; width: 960px; max-width: 100%; max-height: calc(100vh - 240px); background: #000; border-radius: 4px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.photo-viewer-download { margin-top: 6px; color: #bbb; font-size: 13px; text-decoration: underline; }
.photo-viewer-download:hover, .photo-viewer-download:focus { color: #fff; }
.photo-viewer.is-video .photo-viewer-thumbs button { display: flex; align-items: center; justify-content: center; color: #333; }
.photo-viewer-close {
    position: absolute; top: 12px; right: 16px;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer;
}
.photo-viewer-step {
    flex: 0 0 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}
.photo-viewer-close:hover, .photo-viewer-step:hover { background: rgba(255, 255, 255, .22); }
.photo-viewer-thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; flex: 0 0 auto; }
.photo-viewer-thumbs button {
    flex: 0 0 auto; width: 72px; height: 54px; padding: 0;
    border: 2px solid transparent; border-radius: 4px; background: #fff; opacity: .6; cursor: pointer;
}
.photo-viewer-thumbs button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-viewer-thumbs button:hover { opacity: .9; }
.photo-viewer-thumbs button.active { opacity: 1; border-color: var(--pp-red); }
@media (max-width: 600px) {
    .photo-viewer { padding: 52px 8px 12px; }
    .photo-viewer figure { max-width: calc(100% - 88px); }
    .photo-viewer-step { flex-basis: 36px; height: 36px; font-size: 26px; }
}
