.project {
    max-width: 100%;
    margin: 3rem auto;
    /* padding: 0 2rem; */
}

.video-container {
    padding:56.25% 0 0 0;
    position:relative;

    width: 80%;
    height: 80%;
    margin: -20px auto;
}

.video-description {
    font-family: "Helvetica", sans-serif;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    margin-top: -2rem; /* controls how much closer the descriptioin is to the video*/
    margin-bottom: 2rem;
}

.photo-gallery {
    margin: 0 auto;
    padding: clamp(5px, 2vw, 20px);  /* Responsive padding */
    columns: auto clamp(200px, 30vw, 300px);  /* Responsive column width */
    column-gap: clamp(5px, 1vw, 20px);  /* Responsive gap */
}

.photo {
    break-inside: avoid;
    margin-bottom: clamp(5px, 1vw, 20px);
    position: relative;  /* For positioning the overlay */
}

.photo img {
    width: 100%;
    display: block;
    transition: filter 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  /* Dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;  /* Hidden by default */
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
}

.photo:hover .photo-overlay,
.photo:active .photo-overlay {
    opacity: 1;  /* Show overlay on hover and touch */
}

.photo:hover img,
.photo:active img {
    filter: brightness(0.7);  /* Darkens the image on hover and touch */
}

.photo-location {
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 0 0.5em 0;
}

.photo-date {
    font-family: monospace;
    font-size: 0.9em;
    margin: 0;
}

/* Make it responsive for smaller screens */
@media (max-width: 768px) {
    .video-description {
        max-width: 80%;
        margin: 0 auto;
        text-align: center;
        margin-top: -1rem;
        margin-bottom: 2rem;
    }
    
    .photo-gallery {
        columns: 1;  /* Force single column on mobile */
        padding: 5px;
    }
    
    .photo {
        margin-bottom: 5px;
    }

    /* Hide overlay on mobile */
    .photo-overlay {
        display: none;  /* Completely removes the overlay */
    }
    
    /* Remove hover effects on mobile since overlay is hidden */
    .photo:hover img,
    .photo:active img {
        filter: none;
    }
}

/* App Project Styling */
.app-project {
    margin: 3rem 0;
    padding: 0 1rem;
}

.app-title {
    font-family: "Helvetica", sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.app-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-gallery .gallery-item {
    flex: 0 1 300px;
    margin: 0;
    text-align: center;
}

.app-gallery img {
    max-width: 100%;
    height: 50vh;
    border-radius: 8px;

}

.app-gallery .gallery-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.app-description {
    font-family: "Helvetica", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.app-description p {
    text-indent: 3em;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-gallery {
        gap: 1rem;
    }

    .app-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .app-description p {
        text-indent: 2em;
        margin-bottom: 0.5rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;  /* Reduced to leave space for caption */
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 1rem 0.5rem;
    font-family: monospace;
    margin-top: 1rem;  /* Space between image and caption */
    position: static;  /* Remove absolute positioning */
}

.lightbox-location {
    font-size: 1.2em;
    margin: 0;
    font-weight: bold;
}

.lightbox-date {
    font-size: 0.9em;
    margin: 0.2em 0 0 0;
}

/* Prevent scrolling when lightbox is open */
body.lightbox-open {
    overflow: hidden;
} 