/* Container */

.e-production-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px;
}


/* Hero Section */

.e-production-hero {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.e-production-description {
    flex: 1;
}

.e-production-description h2 {
    margin-bottom: 15px;
}

.e-production-description p {
    line-height: 1.6;
}

.video-wrapper {
    flex: 1;
}

.video-wrapper video {
    width: 100%;
    border-radius: 6px;
}


/* Galleries */
.e-production-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 40px 60px;
}
.e-production-gallery {
    margin-bottom: 80px;
}

.e-production-gallery h3 {
    margin-bottom: 20px;
}


/* Image Grid (2x2) */

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.image-grid img {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.image-grid img:hover {
    transform: scale(1.02);
}


/* Animatic + Final */

.e-production-duo-videos {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

.video-block {
    flex: 1;
}

.video-block h1 {
    margin-bottom: 15px;
}


/* Modal */

.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal.active {
    display: block;
}

.image-modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 85vh;
}

#imageModalClose {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}


/* Responsive */

@media (max-width: 900px) {

    .e-production-hero {
        flex-direction: column;
    }

    .e-production-duo-videos {
        flex-direction: column;
    }

}

.e-production-duo-videos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 20px 120px;
}

/* The Gallery Container */
.e-production-gallery {
    display: flex;             /* Side-by-side layout */
    gap: 40px;                 /* Space between title and images */
    align-items: center;       /* Vertically centers the title with the grid */
    max-width: 1200px;
    margin: 0 auto 80px;       /* Centers the section and adds bottom spacing */
    padding: 40px;             /* Reduced top padding */
}

/* Left side (Title) */
.e-production-title-side {
    flex: 0 0 30%;             /* Takes up 30% of the width */
}

.e-production-title-side h3 {
    margin: 0;                 /* Removes extra spacing */
    font-size: 1.8rem;
    line-height: 1.2;
}

/* Right side (Images) */
.e-production-gallery .image-grid {
    flex: 0 0 70%;             /* Takes up 70% of the width */
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 2 images per row */
    gap: 20px;
}

/* Mobile Responsive: Stack them vertically on small screens */
@media (max-width: 768px) {
    .e-production-gallery {
        flex-direction: column; 
        align-items: flex-start; /* Aligns title to left on mobile */
    }
    
    .e-production-title-side, 
    .e-production-gallery .image-grid {
        flex: 0 0 100%;
        width: 100%;
    }
}
