.cdr-product-gallery .cdr-gallery-label {
    margin: 14px 0 6px;
    color: #10476a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}
.cdr-product-gallery .images-additional.cdr-gallery-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
    gap: 8px;
    align-items: start;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 4px;
    margin: 0;
    overflow: visible;
    float: none;
}
.cdr-product-gallery .cdr-gallery-thumbs > a.thumbnail {
    display: block;
    position: relative;
    box-sizing: border-box;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 3px;
    border: 2px solid #8099a6;
    border-radius: 6px;
    background: #fff;
    cursor: zoom-in;
}
.cdr-product-gallery .cdr-gallery-thumbs > a.thumbnail img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    object-fit: contain;
    background: #fff;
}
.cdr-product-gallery .cdr-gallery-thumbs > a.thumbnail:hover,
.cdr-product-gallery .cdr-gallery-thumbs > a.thumbnail[aria-current="true"] {
    border-color: #175e89;
    background: #ebf5fa;
}
.cdr-product-gallery .cdr-gallery-thumbs > a.thumbnail[aria-current="true"] {
    box-shadow: inset 0 0 0 1px #175e89;
}
.cdr-product-gallery .cdr-gallery-thumbs > a[aria-current="true"]::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #175e89;
    color: #fff;
    font: bold 14px/1 Arial, sans-serif;
}
.cdr-product-gallery a.main-image:focus-visible,
.cdr-product-gallery .cdr-gallery-thumbs > a:focus-visible {
    outline: 3px solid #10476a;
    outline-offset: 1px;
}
@media (max-width: 767px) {
    .cdr-product-gallery .cdr-gallery-thumbs:has(> a:nth-child(5)) {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: clamp(104px, 35%, 148px);
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
    .cdr-product-gallery .cdr-gallery-thumbs:has(> a:nth-child(5)) > a {
        scroll-snap-align: start;
    }
}
