.film-gallery {
    padding: 20px;
    background-color: #EFEDE7;
    border-radius: 10px;
    overflow: hidden;
}

.film-gallery__carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.film-gallery__card {
    flex: 0 0 200px;
    background-color: #f3f3f3;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding-left: 10px;
    padding-right: 10px;
    transition: transform 0.3s ease;
}


.film-gallery__image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 14px;
    max-height: 300px;
}

.film-gallery__film-title,
.film-gallery__details {
    color: var(--noir, #000);
    font-family: var(--Raleway);
    font-size: 0.938rem;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    letter-spacing: 0.75px;
    align-items: left;
    padding-left: 3px;
    padding-right: 3px;
}

.carousel__controls {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.carousel__button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-radius: 30px;
}

.carousel__button--prev {
    transform: rotate(0.5turn);
}

#lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#lightbox img {
    max-width: 60%;
    max-height: 60%;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

dialog {
    border: 5px solid #777;
    border-radius: 25px;
    padding: 20px;
    overflow: visible;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

dialog[open] {
    opacity: 1;
    transform: scale(1);
}

dialog.entrée {
    animation: fadeIn 0.3s ease forwards;
}

dialog.sortie {
    animation: fadeOut 0.3s ease forwards;
}

dialog::before {
    display: flex;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    background-color: #2c3bc1;
    border-radius: 50%;
    place-content: center;
    vertical-align: middle;
    line-height: 40px;
    border: 5px solid #fff;
    cursor: pointer;
}

::backdrop {
    background-color: #a1cdf9;
    opacity: 0.5;
    transition: background-color 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}