﻿:root {
    --gap: 5px;
    --auto-delay: 5;
    --transition-speed: 0.6;
    --arrow-size: 50px;
}


/* WRAPPER */
.carouselContainer {
    margin: 80px auto;
    overflow: hidden;
    position: relative;
}

.carouselTrack {
    display: flex;
    gap: var(--gap);
    cursor: grab;
    will-change: transform;
}

.carouselItem {
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #ddd;
}

    .carouselItem img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carouselVideoCover {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.carouselPlayBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.2);
    padding: 7px;
    border-radius: 15px;
}

    .carouselPlayBtn svg {
        width: 57px;
        height: 57px;
        filter: hue-rotate(140deg) saturate(257%);
    }

/* ARROWS */
.carouselNav {
    position: absolute;
    transform: translateY(-100%);
    color: var(--dark);
    display: flex;
    font-size: 25px;
    width: var(--arrow-size);
    height: var(--arrow-size);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.carouselPrev {
    left: 40%;
}

.carouselNext {
    right: 40%;
}




.carouselContainerHorizontal {
    width: min(1285px, 100%);
}

.carouselContainerVertical {
    width: min(1090px, 100%);
}



.carouselInstagram {
    width: 360px;
    height: 480px;
}

.carouselHorizontal {
    width: 640px;
    height: 360px;
}

.carouselVertical {
    width: 360px;
    height: 640px;
}









@media all and (max-width: 1400px) and (min-width: 600px) {
    .carouselContainerHorizontal {
        width: min(845px, 100%);
    }

    .carouselContainerVertical {
        width: min(725px, 100%);
    }



    .carouselInstagram {
        width: 360px;
        height: 480px;
    }

    .carouselHorizontal {
        width: 420px;
        height: 234px;
    }

    .carouselVertical {
        width: 396px;
        height: 704px;
    }
}

@media all and (max-width: 600px) and (min-width: 50px) {
    .carouselContainerHorizontal {
        width: min(320px, 100%);
    }

    .carouselContainerVertical {
        width: min(365px, 100%);
    }



    .carouselInstagram {
        width: 360px;
        height: 480px;
    }

    .carouselHorizontal {
        width: 320px;
        height: 180px;
    }

    .carouselVertical {
        width: 180px;
        height: 240px;
    }
}
