.primeur-slider-block {
    position: relative;
    padding-top: var(--mt-mobile, 0);
    padding-bottom: var(--mb-mobile, 0);
}
@media (min-width: 851px) {
    .primeur-slider-block {
        padding-top: var(--mt-desktop, 0);
        padding-bottom: var(--mb-desktop, 0);
    }
}
.primeur-frise{
    display: flex;
    width: 100%;
    height: 6px;
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
}
.primeur-categories{
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 1rem 0;
}
.primeur-category{
    display: flex;
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--size-16);
    color: var(--wp--preset--color--bordeau);
    overflow: hidden;
    position: relative;
    padding-bottom: 0.5rem;
    text-decoration: none;
}
.primeur-category::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--wp--preset--color--bordeau);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.primeur-category-wrap:hover {
    cursor: pointer;
}
.primeur-category-wrap:hover .primeur-category::before{
    transform: scaleX(1);
    transform-origin: left;
}
.primeur-category.active::before{
    transform: scaleX(1);
}
.primeur-category-wrap:hover .primeur-category::before{
    transform-origin: left;
}
.primeur-category-wrap{
    border-left: solid 1px var(--wp--preset--color--bordeau);
    padding: 0.5rem 2rem;
}
.primeur-category-wrap:last-child{
    border-right: solid 1px var(--wp--preset--color--bordeau);
}
.primeur-category.active{
    font-family:'Gotham Medium', sans-serif;
}
.primeur-content-wrapper{
    display: flex;
    width: 100%;
    background-color: var(--wp--preset--color--background);
    padding: 2rem var(--gutters);
    justify-content: space-between;
}
.primeur-content{
    display: flex;
    flex-direction: column;
    width: 50%;
}
.primeur-description,
.primeur-assembly,
.primeurs-dates,
.primeur-comments {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 240ms ease, transform 240ms ease;
    will-change: opacity, transform;
}
.primeur-content h3{
    margin: 0;
}
.primeur-images-wrapper{
    display: flex;
    width: 40%;
    justify-content: center;
}
.primeur-images{
    display: flex;
    width: 100%;
    position: relative;
    clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 8%);
    height: 600px;
    max-width: 450px;
    overflow: hidden;
}
.primeur-description, .primeur-assembly, .primeur-terroir{
    border-bottom: 1px solid var(--wp--preset--color--bordeau);
    margin-bottom: 1rem;
}
.primeur-bottle{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 400px;
    opacity: 1;
    transition: opacity 260ms ease, transform 260ms ease;
    will-change: opacity, transform;
}
.primeur-bottle img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.primeur-bkg-img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.primeur-bkg-img img{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: opacity 260ms ease, width 260ms ease, height 260ms ease;
    will-change: opacity, width, height;
}

.primeur-bkg-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 500ms ease-in-out;
}

.primeur-bkg-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primeur-bkg-layer.is-current {
    opacity: 1;
    z-index: 2;
}

.primeur-arrow{
    display: none;
    border: 0;
    border-color: none;
    border-radius: 0;
    background: transparent;
    color: transparent;
    line-height: 1;
    padding: 0;
}
.primeur-mobile-nav{
    display: none;
    justify-content: center;
    margin-top: 2rem;
}
.primeur-mobile-modal{
    display: none;
}
.primeur-category-wrap:nth-child(4), .primeur-category-wrap:nth-child(2){
    display: none;
}
.primeur-category-wrap:nth-child(3){
    border-right: solid 1px var(--wp--preset--color--bordeau);
}
@media (max-width: 850px) {
    .primeur-category{
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .primeur-categories{
        display: none;
    }
    .primeur-content{
        display: none;
    }
    .primeur-bkg-img{
        width: 70%;
        height: 90%;
        overflow: hidden;
        clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 8%);
    }
    .primeur-images-wrapper{
        width: 100%;
        flex-direction: column;
    }
    .primeur-images{
        height: 400px;
        max-width: none;
    }
    .primeur-arrow{
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        z-index: 5;
    }
    .primeur-arrow-prev{
        left: 0;
        background-image: url(../../../assets/svg/arrow-left.svg);
    }
    .primeur-arrow-next{
        right: 0;
        background-image: url(../../../assets/svg/arrow-right.svg);
    }
    .primeur-content-wrapper{
        background-color: transparent;
    }
    .primeur-mobile-nav{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .primeur-mobile-cuvee-name{
        text-transform: uppercase;
        font-size: 15px;
        font-weight: 500;
        line-height: 17px;
        letter-spacing: 1.5px;
        margin-bottom: 1rem;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 240ms ease, transform 240ms ease;
        will-change: opacity, transform;
    }
    .primeur-mobile-modal{
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background-color: rgba(11, 11, 11, 0.9);
        z-index: 0;
        padding: 2rem var(--gutters);
        opacity: 0;
        transition: opacity 240ms ease-in-out;
        pointer-events: none;
        min-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-items: center;
    }
    .primeur-mobile-modal.is-open{
        opacity: 1;
        pointer-events: all;
        z-index: 999;
    }
    html.primeur-mobile-modal-open,
    body.primeur-mobile-modal-open{
        overflow: hidden;
    }
    .primeur-mobile-bkg-image{
        width: 100%;
    }
    .primeur-mobile-bkg-image img{
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .primeur-mobile-bkg-image{
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    .primeur-mobile-bkg-image img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .primeur-description, .primeur-assembly, .primeurs-dates, .primeur-comments {
        border-bottom: 1px solid var(--wp--preset--color--background);
        color: var(--wp--preset--color--background)!important;
        width: 100%;
    }
    .primeur-description *, .primeur-assembly *, .primeurs-dates *, .primeur-comments * {
        color: var(--wp--preset--color--background)!important;
    }
    .primeur-mobile-modal-close{
        border: 0;
        border-color: none;
        border-radius: 0;
        background: transparent;
        color: var(--wp--preset--color--background);
        line-height: 1;
        padding: 0;
        padding-bottom: 0.5rem;
        border-bottom: solid 1px var(--wp--preset--color--background);
        width: fit-content;
        margin-bottom: 1rem;
    }
    .primeur-mobile-bkg-image::after{
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(11, 11, 11, 0.5);
    }
}