html,
body {
    max-width: 100%;
}

body:has(.carousel) {
    overflow: hidden;
    height: 100vh;
    width: 100%;
}

.carousel {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 72px 1% 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    display: flex;
    align-items: center;
    width: max-content;
}

.carousel-slide {
    flex: none;
    margin-right: 48px;
    scroll-snap-align: center;
}

.carousel-slide a {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.carousel-slide .image-container {
    position: relative;
}

.carousel-slide img {
    width: auto;
    height: calc(100vh - 120px);
    max-width: none;
    object-fit: contain;
    display: block;
    transition: opacity 0.35s ease;
}

.carousel-slide a:hover img {
    opacity: 0.35;
}

.carousel-slide a:hover .overlay {
    opacity: 1;
}

.carousel-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 28px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.carousel-arrow:hover {
    opacity: 1;
}

.carousel-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

.carousel-arrow svg {
    width: 12px;
    height: 22px;
    fill: none;
}

.carousel-arrow path {
    stroke: #111;
    stroke-width: 1.8;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.carousel-arrow .arrow-glow {
    stroke: #fff;
    stroke-width: 3.4;
}

.carousel-arrow-prev {
    left: 0.35rem;
}

.carousel-arrow-next {
    right: 0.35rem;
}

@media screen and (max-width: 768px) {
    header {
        height: 56px;
    }

    .carousel {
        padding: 64px 3% 12px;
    }

    .carousel-slide {
        margin-right: 20px;
    }

    .carousel-slide img {
        height: calc(100vh - 108px);
        max-width: 88vw;
    }

    .carousel-arrow {
        width: 24px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 10px;
        height: 18px;
    }
}
