.carousel {
    width: 95%;
    overflow-x: auto;
    margin: 3em auto;
    display: flex;
    gap: 1em;
    background-color: var(--photoBkg-color);
    anchor-name: --carousel;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
}

.carousel::scroll-marker-group{
    display: flex;
    justify-content: center;
    gap: .5em;
}

@supports(scroll-marker-group: after){
    .carousel::-webkit-scrollbar{
        display: none;
    }
}

.carousel::scroll-button(right), .carousel::scroll-button(left){
    content: '⮕';
    border: none;
    font-family: Consolas;
    font-size: 2rem;
    color: silver;
    height: 40px;
    width:40px;
    border-radius: 50%;
    background-color: #000;
    padding-bottom: .05em;
    cursor:pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -50%;
}

.carousel::scroll-button(left){
    content: '⬅';
    position-area: left center;
    translate: 50%;
}

.carousel::scroll-button(right):disabled, .carousel::scroll-button(left):disabled{
    opacity: 0.5;
    cursor: auto;
}
.card{
    scroll-snap-align: start;
    flex: 9 9 20em;
    height: 30rem;
    background-color: #000;
    padding: 1em;
    border-radius: .5em;
    text-align: center;
    align-content: center;
    scroll-snap-stop: always; 
}

.card::scroll-marker{
    content: '';
    height: 1em;
    width: 1em;
    background-color: blue;
    border-radius: 50%;
}

.card::scroll-marker:target-current{
    background-color: red;
}

@media(max-width: 500px){
    .card {
        flex: 0 0 100%
    }
}
