/* CSS for the 3D flip gallery */

.flip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    perspective: 1000px; /* For 3D effect */
}

.flip-modal.active {
    display: flex;
}

.flip-content {
    width: 80vw; /* Adjust size as needed */
    height: 80vh;
    position: relative;
    transform-style: preserve-3d;
}

.flip-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back of the element */
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.flip-front {
    transform: rotateY(0deg);
}

.flip-back {
    transform: rotateY(180deg);
}

.flip-close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.flip-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    user-select: none;
}

.flip-prev-arrow {
    left: 15px;
}

.flip-next-arrow {
    right: 15px;
}

@media (max-width: 768px) {
    .flip-content {
        width: 95vw;
        height: 95vh;
    }

    .flip-close-button {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .flip-nav-arrow {
        display: none;
    }

    .flip-prev-arrow {
        left: 10px;
    }

    .flip-next-arrow {
        right: 10px;
    }
}
