.photo-gallery .slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.photo-gallery .slider-item {
    flex: 0 0 100%;
    min-width: 0;
}

.photo-gallery .slider-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (min-width: 48rem) {
    .photo-gallery .slider-item img {
        aspect-ratio: 16 / 9;
    }
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    place-items: center;
    border-radius: 50%;
    background: rgb(0 0 0 / 55%);
    color: white;
    cursor: pointer;
}

.gallery-arrow:hover {
    background: rgb(0 0 0 / 75%);
}

.gallery-pagination button {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
}

.gallery-pagination button::before {
    width: 0.55rem;
    height: 0.55rem;
    border: 1px solid white;
    border-radius: 50%;
    content: '';
}

.gallery-pagination button[aria-pressed="true"]::before {
    background: white;
}

.photo-gallery button:focus-visible {
    outline: 2px solid white;
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .photo-gallery .slider-track {
        transition: none;
    }
}
