body, html {
    margin: 0;
    background-color: black;
}

*, *::after, *::before {
    box-sizing: border-box;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide {
    position: absolute;
    opacity: 0;
    inset: 0;
    transition: 300ms opacity ease-in-out;
}
.slide[data-active] {
    opacity: 1;
    z-index: 1;
}
.slide img {
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit:contain;
    object-position: center;
}
.carousel-button {
    position: absolute;
    z-index: 2;
    font-size: 5rem;
    background: none;
    border: none;
    font-family: math;
    top: 50vh;
    width: 6rem;
    height: 6rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 50%;
    padding: 0 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
}
.carousel-button:hover,
.carousel-button:focus {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);;
}
.carousel-button.next {
    right: 1rem;
}    
.carousel-button.prev {
    left: 1rem;
}    
