.carousel {
    margin-top: 28px;
}

.carousel-viewport {
    position: relative;
    max-width: 480px;
    margin-inline: auto;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    border-radius: 20px;
    background: #e7e1d5;
}

.carousel-track {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform .4s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

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

.carousel-slide .info-image-placeholder {
    width: 100%;
    height: 100%;
    font-size: 13px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

button.carousel-arrow,
button.carousel-arrow:hover,
button.carousel-arrow:focus,
button.carousel-arrow:active {
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    width: 40px;
    height: 40px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #2d3947;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

button.carousel-arrow:hover {
    background: white;
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.carousel-dots button.is-active {
    width: 22px;
    background: white;
}

@media (max-width: 640px) {
    .carousel-viewport {
        max-width: 100%;
    }
}
