.slider {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    outline: none;
}

.viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background: #064b8a;
    box-shadow:
        0 28px 55px rgba(0, 22, 43, 0.3);
    touch-action: pan-y;
}

.track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.slide {
    display: flex;
    height: 100%;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    background: #064b8a;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
}

.slide_contain img {
    object-fit: contain;
    object-position: center bottom;
}

/* Setas */

.arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 39, 73, 0.72);
    box-shadow: 0 8px 24px rgba(0, 17, 33, 0.24);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(9px);
    transform: translateY(-50%);
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.arrow svg {
    width: 19px;
    height: 19px;
}

.arrow:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: #fff;
    color: #002f5d;
}

.arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Indicadores */

.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 36, 69, 0.68);
    backdrop-filter: blur(8px);
    transform: translateX(-50%);
}

.dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition:
        width 0.2s ease,
        border-radius 0.2s ease,
        background-color 0.2s ease;
}

.dots button[aria-current="true"] {
    width: 20px;
    border-radius: 999px;
    background: #fff;
}

.arrow:focus-visible,
.dots button:focus-visible,
.slider:focus-visible {
    outline: 2px solid #82c9ff;
    outline-offset: 3px;
}

.slider_status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {

    .track,
    .arrow,
    .dots button {
        transition: none;
    }
}

@media (max-width: 600px) {
    .viewport {
        border-radius: 15px;
        box-shadow: 0 18px 38px rgba(0, 22, 43, 0.24);
    }

    .arrow {
        width: 36px;
        height: 36px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}
