.galleryTitle {
    text-align: center;
    margin: 10px auto;
    color: #fefadf;
    font-size: 1.4rem;
}

.galleryTags {
    text-align: center;
    margin-bottom: 20px;
}

.reelCont {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reelSprocket {
    width: 100%;
    height: 20px;
    background-image: url("../assets/img/sprocket.png");
    background-repeat: repeat-x;
    background-size: auto 20px;
    margin: 10px 0;
    transition: background-position 1s ease;
}

.frameWrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
    margin: 0 auto;
}

.filmCell {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #383035;
    border: 2px solid #fefadf;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.slideOut {
    animation: slideOut 1s ease forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-150%);
        opacity: 0;
    }
}

.slideOutR {
    animation: slideOutR 1s ease forwards;
}

@keyframes slideOutR {
     from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(150%);
        opacity: 0;
    }
}

.slideIn {
    animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slideInR {
    animation: slideInR 1s ease forwards;
}

@keyframes slideInR {
    from {
        transform: translateX(-150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.filmCell.flipped {
    transform: rotateY(180deg);
    transition: transform 0.4s ease;
}

.filmFront, .filmBack {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

#filmImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.filmBack {
    background-color: #383035;
    color: #fefadf;
    padding: 20px;
    transform: rotateY(180deg);
    overflow-y: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#filmDesc h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

#filmDesc p {
    font-size: 1.1rem;
}

.reelNav {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 100px;
}

.reelBtn {
    background-color: #383035;
    color: #fefadf;
    border: 2px solid #fefadf;
    padding: 5px 15px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2 ease;
}

.reelBtn:hover {
    background-color: #fefadf;
    color: #383035;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(56, 48, 53, 0.96);
    justify-content: center;
    align-items: center;
}

.modalContent {
    max-width: 90vw;
    max-height: 90vh;
    border: 2px solid #fefadf;
}

.modalClose {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fefadf;
    font-size: 2.5rem;
    box-shadow: 0 0 20px #383035;
    cursor: pointer;
}