.home-slider-block {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-top: var(--mt-mobile, 0);
	padding-bottom: var(--mb-mobile, 0);
	--home-slider-beige: var(--wp--preset--color--beige, var(--wp--preset--color--background));
	--home-slider-red: var(--wp--preset--color--bordeau);
    min-height: 100vh;
}

@media (min-width: 851px) {
	.home-slider-block {
		padding-top: var(--mt-desktop, 0);
		padding-bottom: var(--mb-desktop, 0);
	}
}

.home-slider-categories {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	padding: 1rem 0;
	background: var(--wp--preset--color--blanc);
}

.home-slider-category-wrap {
	padding: 0.5rem 2rem;
	border-left: 1px solid var(--home-slider-red);
}

.home-slider-category-wrap:last-child {
	border-right: 1px solid var(--home-slider-red);
}

.home-slider-category {
	position: relative;
	display: inline-flex;
	padding-bottom: 0.5rem;
	color: var(--home-slider-red);
	font-size: var(--wp--preset--font-size--size-16);
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.home-slider-category::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--home-slider-red);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 240ms ease;
}

.home-slider-category-wrap:hover .home-slider-category::before,
.home-slider-category.active::before {
	transform: scaleX(1);
	transform-origin: left;
}

.home-slider-category.active {
	font-family: 'Gotham Medium', sans-serif;
}

.home-slider-frise {
	display: flex;
	width: 100%;
	height: 6px;
	background-repeat: repeat;
	background-position: center;
	background-size: auto;
}

.home-slider-content-wrapper {
	position: relative;
	display: flex;
	align-items: stretch;
	flex: 1;
	width: 100%;
	background: var(--home-slider-beige);
	overflow: hidden;
}

.home-slider-description,
.home-slider-content {
	display: flex;
	flex: 0 0 50%;
	width: 50%;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	min-width: 0;
	position: relative;
	z-index: 1;
	transition: opacity 240ms ease, transform 240ms ease;
	will-change: opacity, transform;
	color: var(--wp--preset--color--bordeau);
}

.home-slider-description {
	text-align: left;
    gap: 0;
	padding-left: var(--gutters);
	padding-right: 200px;
}

.home-slider-content {
	align-items: flex-end;
	padding-right: var(--gutters);
	background-color: var(--wp--preset--color--blanc);
	padding-left: 200px;
}

.home-slider-description > *:first-child,
.home-slider-content > *:first-child {
	margin: 0;
}
.home-slider-description p{
    margin: 0;
}
.home-slider-description p:nth-child(2){
    margin-bottom: 1rem;
}
.home-slider-description > *:last-child,
.home-slider-content > *:last-child {
	margin-bottom: 0;
}

.home-slider-title,
.home-slider-subtitle,
.home-slider-homepage-text,
.home-slider-link-wrap {
	opacity: 1;
	transition: opacity 500ms ease-in-out;
	will-change: opacity;
    
}
.home-slider-title{
    font-family: "Kalufonia Regular", cursive;
    font-size: var(--wp--preset--font-size--size-35);
}
.home-slider-title span,
.home-slider-subtitle span{
    color: var(--wp--preset--color--bordeau)!important;
}
.home-slider-title h1,
.home-slider-title h2,
.home-slider-title h3,
.home-slider-title p,
.home-slider-subtitle h1,
.home-slider-subtitle h2,
.home-slider-subtitle h3,
.home-slider-subtitle p,
.home-slider-homepage-text p {
	margin-top: 0;
}

.home-slider-title h1,
.home-slider-title h2,
.home-slider-title h3,
.home-slider-title p {
	margin-bottom: 0;
	line-height: 0.95;
}

.home-slider-subtitle {
	padding-bottom: 1rem;
	text-transform: uppercase;
}

.home-slider-homepage-text {
	max-width: 24rem;
	padding-bottom: 1.5rem;
}

.home-slider-link-wrap.is-disabled {
	pointer-events: none;
	opacity: 0.45;
}

.home-slider-images-wrapper {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	--home-slider-bottle-height: min(60vh, 700px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	width: 300px;
	transform: translate(-50%, -50%);
}

.home-slider-images {
	position: relative;
	z-index: 1;
	height: 55vh;
	max-height: 600px;
    width: 100%;
    max-width: 450px;
	overflow: hidden;
	clip-path: polygon(68% 0, 90% 20%, 100% 50%, 89% 84%, 66% 100%, 34% 100%, 12% 83%, 0 50%, 13% 19%, 35% 0);
}

.home-slider-bottle {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 3;
	width: 200px;
	height: var(--home-slider-bottle-height);
	transform: translate(-50%, -50%);
	opacity: 1;
	transition: opacity 500ms ease-in-out;
	will-change: opacity;
}

.home-slider-bottle img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.home-slider-bkg-img {
	position: absolute;
	inset: 0;
	z-index: 0;
}

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

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

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

.home-slider-images-nav {
	position: absolute;
	left: 50%;
	top: calc(50% + (var(--home-slider-bottle-height) / 2) + 2rem);
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	width: auto;
	transform: translateX(-50%);
}

.home-slider-nav-item {
	display: inline-flex;
	width: fit-content;
	position: relative;
	z-index: 0;
	isolation: isolate;
}
.home-slider-nav-item:nth-child(3) .home-slider-nav-btn, .home-slider-nav-item:nth-child(4) .home-slider-nav-btn{
	background-color: var(--wp--preset--color--blanc);
}


.home-slider-nav-btn {
	width: 16px;
	height: 20px;
	padding: 0;
	border: 0;
	background: unset;
	background-color: var(--home-slider-beige);
	background-image: linear-gradient(var(--home-slider-red), var(--home-slider-red));
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 100% 0%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
	transition: background-size 0.25s ease;
	border-radius: 0;
}

.home-slider-nav-btn-shape {
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
	background-color: var(--home-slider-red);
}

.home-slider-nav-btn.is-active + .home-slider-nav-btn-shape {
	background-color: var(--home-slider-red);
}

.home-slider-nav-btn.is-active {
	background-size: 100% 100%;
}
.home-slider-link{
    display: flex;
    font-family: "Montserrat", sans-serif;
    font-size: var(--wp--preset--font-size--size-14);
    font-weight: 500;
    color: var(--wp--preset--color--bordeau);
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
	width: fit-content;
}
.home-slider-link::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;
}
.home-slider-link:hover::before{
    transform: scaleX(1);
    transform-origin: left;
}
.home-slider-link:hover{
    cursor: pointer;
}
.home-slider-arrow{
    display: none;
}
.home-slider-mobile-nav{
    display: none;
}
.home-slider-mobile-modal{
    display: none;
}
@media (min-width: 1800px) {
	.home-slider-images-wrapper{
		width: 600px;
	}
	.home-slider-images{
		max-width: 500px;
	}
	.home-slider-content{
		padding-right: calc(var(--gutters) / 2);
	}
	.home-slider-description{
		padding-left: calc(var(--gutters) / 2);
	}
}

@media (max-width: 1200px) {
	.home-slider-description {
		padding-right: clamp(9rem, 18vw, 14rem);
	}

	.home-slider-content {
		padding-left: clamp(9rem, 18vw, 14rem);
	}
}
@media (max-width: 1024px) {
    .home-slider-images-wrapper{
        --home-slider-bottle-height: min(50vh, 600px);
    }
    .home-slider-images{
        height: 40vh;
        max-height: 500px;
    }
}

@media (max-width: 850px) {
    .home-slider-block{
        min-height: auto;
    }
	.home-slider-categories {
		display: none;
	}

	.home-slider-content-wrapper {
		display: flex;
		flex-direction: column;
        flex-direction: column-reverse;
		gap: 2rem;
		min-height: auto;
		padding: 2.5rem var(--gutters);
	}
    .home-slider-content{
        display: none;
    }
    .home-slider-description{
        text-align: center;
    }
    .home-slider-frise{
        margin: 1rem 0;
    }
	.home-slider-description,
	.home-slider-content {
		width: 100%;
		flex-basis: auto;
		padding: 0;
	}

	.home-slider-images-wrapper {
		position: relative;
		left: auto;
		top: auto;
		--home-slider-bottle-height: min(50vh, 500px);
		width: 100%;
		transform: none;
		order: -1;
	}
	.home-slider-images-nav {
		display: none;
	}
    .home-slider-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;
        border: 0;
        border-color: transparent;
        border-radius: 0;
        background-color: transparent;
        color: var(--wp--preset--color--blanc);
        line-height: 1;
        padding: 0;
    }
    .home-slider-arrow-prev{
        left: 1rem;
        background-image: url(../../../assets/svg/arrow-left.svg);
    }
    .home-slider-arrow-next{
        right: 1rem;
        background-image: url(../../../assets/svg/arrow-right.svg);
    }
    .home-slider-mobile-nav{
        display: flex;
        justify-content: center;
    }
    .home-slider-mobile-nav{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        background-color: var(--home-slider-beige);
        padding: 1rem 0 2rem;
    }
    .home-slider-mobile-cuvee-name{
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
        text-transform: uppercase;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.1;
        letter-spacing: 1.5px;
    }
}
@media (max-width: 576px) {
    .home-slider-content-wrapper{
        gap: 5rem;
    }
    .home-slider-images{
        width: 75%;
        max-width: 270px;
    }
    .home-slider-arrow-next{
        right: 0rem;
    }
    .home-slider-arrow-prev{
        left: 0rem;
    }
    .home-slider-images-wrapper {
        --home-slider-bottle-height: min(50vh, 450px);
    }
    .home-slider-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;
    }
    .home-slider-mobile-modal.is-open{
        opacity: 1;
        pointer-events: all;
        z-index: 999;
    }
    html.home-slider-mobile-modal-open,
    body.home-slider-mobile-modal-open{
        overflow: hidden;
    }
    .home-slider-mobile-bkg-image{
        width: 100%;
    }
    .home-slider-mobile-bkg-image img{
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .home-slider-mobile-bkg-image{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    .home-slider-mobile-bkg-image img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .home-slider-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;
    }
    .home-slider-mobile-bkg-image::after{
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(11, 11, 11, 0.5);
    }
    .home-slider-title{
        color: var(--wp--preset--color--background);
    }
    .home-slider-subtitle p{
        text-align: center;
    }
    .home-slider-subtitle p span{
        color: var(--wp--preset--color--background)!important;
    }
    .home-slider-homepage-text p{
        text-align: center;
    }
    .home-slider-homepage-text p span{
        color: var(--wp--preset--color--background)!important;
        
    }
    .home-slider-link{
        color: var(--wp--preset--color--background);
    }
}
