/* Basic styles */
body,
html {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
    background-color: white;
    color: black;
    width: 100%;
    overflow-x: hidden;
}



/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Semi-transparent black */
    z-index: 2;
    /* Below interactive elements */
    pointer-events: none;
    /* Allow interaction with underlying elements */
    display: none;
    /* Hidden by default */
}


/* Work Page */
.work-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    /* Ensure it's above the overlay */
}



.overlay.show {
    display: block;

}


/* Project Detail Page */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    /* Ensure white background for the main content area */
}


/* Title Section */
.project-title {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    margin-top: 50px;
    /* Adjust space above */
    text-transform: uppercase;


}

.project-title h1 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    color: black;
    text-transform: uppercase;


}

.project-title .project-description {
    font-size: 18px;
    color: black;
    text-transform: uppercase;

}

/* Content Section */
.project-content .content-block {
    margin-bottom: 40px;
    text-transform: uppercase;

}

.project-content .content-block img {
    width: 100%;
}

.project-content .text-block {
    padding: 20px;
    text-align: left;
    color: black;
}

.project-content .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.project-content .image-grid img {
    width: 100%;
}

.project-content .video-block iframe {
    width: 100%;
    height: 500px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .project-title h1 {
        font-size: 28px;
    }

    .project-title .project-description {
        font-size: 16px;
    }

    .project-content .video-block iframe {
        height: 300px;
    }
}



.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.nav-buttons {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

.nav-buttons .prev,
.nav-buttons .next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
}

/* Hover Effect for Images */
.hover-effect {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Smooth zoom and brightness */
    cursor: pointer;
    /* Indicate interactivity */
}

.hover-effect:hover {
    transform: scale(1.05);
    /* Slightly enlarge the image */
    filter: brightness(0.8);
    /* Darken the image a bit */
}


.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.nav-buttons {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

.nav-buttons .prev,
.nav-buttons .next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 1);
    /* Add text shadow for better visibility */

}


.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.full-size-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Content Section */
.project-content {
    margin: 20px 0;
}

/* Text Block Styling */
.text-block {
    margin-bottom: 20px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Responsive columns */
    gap: 20px;
    /* Space between videos */
}

/* Video Styling */
video {
    width: 100%;
    /* Full width of grid cell */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 0px;
    /* Optional: Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Optional: Shadow effect */
    transition: transform 0.3s ease;
}

/* Hover Effect */
video:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
}


/* Fix for the row layout */
.row {
    display: flex;
    flex-wrap: wrap;
    /* Ensure wrapping on smaller screens */
    gap: 20px;
    align-items: flex-start;
    /* Align items at the top */
    justify-content: space-between;
    /* Distribute space */
    width: 100%;
    box-sizing: border-box;
    /* Prevent width overflow */
    overflow: hidden;
    /* Ensure no child elements overflow */
    margin: 0 auto;
    /* Center-align content */
}

/* Text and image blocks in row */
.row .text-block,
.row img {
    flex: 1 1 50%;
    /* Allow each to take up 50% of the width */
    max-width: 100%;
    /* Prevent overflow */
    min-width: 0;
    /* Allow shrinking */
    box-sizing: border-box;
    /* Include padding/border in width */
}

/* Specific fix for images */
.row img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Center the image */
}

/* Mobile-specific fix */
@media screen and (max-width: 768px) {
    .row {
        flex-direction: column;
        /* Stack items vertically */
        align-items: center;
        /* Center-align content */
    }

    .row .text-block,
    .row img {
        flex: 1 1 100%;
        /* Each item takes full width */
        max-width: 100%;
        /* Prevent overflow */
    }
}
