/* Gallery carousel styles for catalog product pages. */

.nero-catalog-product__gallery {
    display: block;
    position: relative;
    min-width: 0
}

.nero-catalog-product__gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    border-radius: 0px
}

.nero-catalog-product__gallery-track::-webkit-scrollbar {
    display: none
}

.nero-catalog-product__gallery-item {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 16px 28px rgba(9,29,74,.08);
    aspect-ratio: 1 / .74;
    scroll-snap-align: start;
    scroll-snap-stop: always
}

.nero-catalog-product__gallery-item a {
    display: block;
    width: 100%;
    height: 100%
}

.nero-catalog-product__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.nero-catalog-product__gallery-controls:not([hidden]) {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none
}

.nero-catalog-product__gallery-arrow {
    display: inline-flex;
    width: 48px;
    height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 52px;
    line-height: 1;
    pointer-events: auto;
    text-shadow: 0 1px 6px rgba(0,0,0,.65);
    transition: opacity .2s ease, transform .2s ease
}

.nero-catalog-product__gallery-arrow:hover:not(:disabled) {
    opacity: .78;
    transform: scale(1.08)
}

.nero-catalog-product__gallery-arrow:disabled {
    cursor: default;
    opacity: .4
}

.nero-catalog-product__gallery-dots {
    position: absolute;
    right: 0;
    bottom: -28px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    pointer-events: auto
}

.nero-catalog-product__gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b9c3ca;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease
}

.nero-catalog-product__gallery-dot[aria-current="true"] {
    background: var(--nero-blue, #034051);
    transform: scale(1.25)
}

.nero-catalog-product__gallery-arrow:focus-visible,
.nero-catalog-product__gallery-dot:focus-visible,
.nero-catalog-product__gallery-track:focus-visible {
    outline: 3px solid var(--nero-blue, #034051);
    outline-offset: 3px
}

@media (prefers-reduced-motion: reduce) {
    .nero-catalog-product__gallery-track {
        scroll-behavior: auto
    }
}
