/* Swiper - only loaded on product template via @auto */
@import url('https://cdn.jsdelivr.net/npm/swiper@12/swiper-bundle.min.css');

.main {
    height: 100%;
}

.sui {
    display: flex;
    flex-direction: column-reverse;
    gap: .667rem;
    
    .first-row,
    .second-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1.339rem;
    }

    h1 {
        display: inline;
        margin: 0;
        text-wrap: pretty;
    }

    .image-counter {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Product carousel (Swiper) */
.product-carousel {
    width: 100%;
    height: 100%;
    padding-top: 1.339rem;
}

.product-carousel-single img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.product-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-swiper-slide-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: calc(100% - 2.678rem);
    max-height: 100%;
}

.product-swiper-slide-img-wrapper {
    display: block;
    line-height: 0;
}

.product-swiper .swiper-slide img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-swiper-slide-image .credits {
    margin-top: 0.667rem;
    text-transform: uppercase;
    font-size: 0.667rem;
}

.product-swiper-prev,
.product-swiper-next {
    position: absolute;
    z-index: 10;
    top: 0;
    width: 50%;
    height: 100%;
    appearance: none;
    background: none;
    border: none;
}

.product-swiper-prev {
    left: 0;
    cursor: url('../../images/fletxa-esquerra.svg') 0 7, pointer;
}

.product-swiper-next {
    right: 0;
    cursor: url('../../images/fletxa.svg') 24 7, pointer;
}

@media (pointer: coarse) {
    .product-swiper-prev,
    .product-swiper-next {
        display: none;
    }
}

@media (min-width: 80rem) {
    .sui {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 96rem) {
    .sui .first-row,
    .sui .second-row {
        gap: 2.678rem;
    }
}