@import '../components/cart.css';

.carousel{
    display: flex;
    height:100%;
    width: 100%;
    max-width: 100%; 
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content:space-around;

}

.carousel-track{
    width: 100%;
    display: none;
    transition: transform 0.4s ease;    
    position:relative;
    height:100%;
}

.carousel-track.visible {
    display: flex; 
}


.carousel-slide {
    display: flex;
    flex-direction: row;
    height: calc(75vh - 2.55vh);
    flex: 0 0 33.3333%; 
    transform: translate(0, 0);
}


.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-slide figcaption.caption{
    position:absolute;
    bottom:0;
    color:var(--color-fourth);
    right:0;
    width:cacl(100% - 4vh);
    padding:2vh;
    text-align:right;
    z-index:10;
}

.carousel-slide figcaption.credit{
    position:absolute;
    bottom:0;
    color:var(--color-fourth);
    left:2vh;
    width:cacl(100% - 4vh);
    padding:2vh;
    text-align:right;
    z-index:10;
    transform: rotate(-90deg);
    transform-origin: left;
    font-size:var(--text-small-d);
}


.carousel-button {
    position: absolute;
    top: 50%;
    height:100%;
    transform: translateY(-50%);
    font-size: var(--text-big-d);
    padding: 0.5rem 1rem;
    z-index: 10;
    border: none;
    background-color: pink;
}

.carousel-button.prev {
    left: 0px;
    color:transparent;
}

.carousel-button.next {
    right: 0px;
    color:var(--color-main);
    cursor: pointer;
    mix-blend-mode: normal;
}


.editions-filter-menu{
    margin-bottom:1vh;
    display:flex;
    gap:var(--spacing-small-w);
    height:1.55vh;
    z-index:11;
}

.editions-filter-menu p{
    cursor:pointer;
    text-transform: uppercase;
}

.editions-filter-menu p:hover{
    color:var(--color-second);
}

.filter-button.active {
    position:relative;
}

.filter-button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background-color: var(--color-main);
}

.filter-button.active:hover::after {
    background-color: var(--color-second);
}

@media screen and (max-width: 1080px) {

    section{
        width:calc(100vw - 5vw);
        padding: 4vh 2.5vw 0 2.5vw;
    }

    .carousel {
        position: relative;
        justify-content: flex-start;
        overflow: hidden;
        height: calc(100% - calc(var(--real-vh, 1vh) * 4));
    }

    .carousel-slide {
        min-width: 100%;
        min-height:100%;
        flex: 0 0 100%; 
        transform: translate(0, 0);
        transition: transform 0.4s ease;
    }

    .bloc-image img {
        object-fit: cover;
    }

    .pop-up table{
        width:70vw;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {

    .carousel-slide {
        min-width: 50%;
        flex: 0 0 50%; 
    }   

}