* {
    box-sizing: border-box;
}

.carousel {
    position: relative;
    line-height: 0;
}

img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.carousel-item {
    display: none;
}

.visible {
    display: block;
    margin: auto;
    animation: slide 0.3s ease-in forwards;
}

@keyframes slide {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: 1rem;
}

button {
    border-radius: 50%;
    border-style: unset;
    height: 2rem;
    width: 2rem;
    background-color: white;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition-duration: 0.3s;
}

button:hover {
    background-color: black;
    color: white;
}