/* Увеличенная neo-карусель только для товара «Локальный AI-чат». */
body.postid-24671 .ts-p-page .ts-p-hero > .wp-block-column.ts-p-gallery {
    flex: 1.12 1 0 !important;
    min-width: 0;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-large-image {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px !important;
    border: 2px solid #16243a !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, #f7faff, #eaf0fa) !important;
    box-shadow: 8px 8px 0 #16243a, 0 16px 34px rgb(20 37 62 / 14%) !important;
    box-sizing: border-box !important;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-large-image__container,
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-large-image__wrapper,
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-large-image__image {
    width: 100% !important;
    max-width: none !important;
    border-radius: 10px !important;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-thumbnails {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 2px 2px 8px !important;
    box-sizing: border-box !important;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-thumbnails__scrollable {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #f28a24 #e5eaf2;
    padding: 4px 4px 10px !important;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-thumbnails__thumbnail {
    flex: 0 0 clamp(112px, 22vw, 148px) !important;
    width: clamp(112px, 22vw, 148px) !important;
    scroll-snap-align: start;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    border: 2px solid #d8e0eb !important;
    border-radius: 13px !important;
    background: #f4f7fc !important;
    box-shadow: 4px 4px 0 #d8e0eb !important;
    object-fit: cover !important;
    opacity: 1 !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
    border-color: #f28a24 !important;
    box-shadow: 4px 4px 0 #16243a !important;
    transform: translate(-1px, -1px);
}
body.postid-24671 .ts-p-gallery .wc-block-product-gallery-thumbnails__thumbnail__image:hover {
    border-color: #16243a !important;
    transform: translate(-1px, -1px);
}
body.postid-24671 .ts-p-gallery .wc-block-next-previous-buttons button {
    width: 48px !important;
    height: 48px !important;
    border: 2px solid #16243a !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 4px 4px 0 #16243a !important;
}
body.postid-24671 .ts-p-gallery .wc-block-next-previous-buttons button:not(:disabled):hover {
    background: #fff1df !important;
    transform: translate(-1px, -1px);
}
@media (max-width: 760px) {
    body.postid-24671 .ts-p-gallery .wc-block-product-gallery { gap: 14px !important; }
    body.postid-24671 .ts-p-gallery .wc-block-product-gallery-large-image {
        padding: 7px !important;
        border-radius: 15px !important;
        box-shadow: 5px 5px 0 #16243a, 0 12px 24px rgb(20 37 62 / 13%) !important;
    }
    body.postid-24671 .ts-p-gallery .wc-block-product-gallery-thumbnails__thumbnail {
        flex-basis: 116px !important;
        width: 116px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.postid-24671 .ts-p-gallery * { transition: none !important; }
}
