.project-header img {
    width: 100%;
    height: auto;
    padding-top: 0;
}

.project-description {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-description h2 {
    font-size: 3rem;
}


.project-description p,
.project-description h2 {
    width: 70%;
}

@media (max-width: 768px) {
    .project-description h2 {
        font-size: 2rem;
    }
    .project-description p,
    .project-description h2 {
        width: 90%;
    }
}



/* 5px padding on mobile */
.project-description, .project-gallery {
    font-family: "Spectral", serif;
    font-size: 1.5rem;
    padding: 5px;
}

/*  20px on tablet */
@media (min-width: 768px) {
    .project-description, .project-gallery {
        padding: 20px;
    }
}

/* and 50px on desktop */
@media (min-width: 1024px) {
    .project-description, .project-gallery {
        padding: 0 50px 50px 50px;
    }
}


.project-description {
    margin: 0 20px 20px 20px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#fullscreen-pdf {
    width: 70%;
    height: 80%;
}

#fullscreen-overlay img, #fullscreen-pdf {
    max-width: 90%;
    max-height: 80%;
}

#fullscreen-caption {
    color: white;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

#fullscreen-caption-text {
    width: 55vw;
    text-align: center;
}

@media (max-width: 768px) {
    #fullscreen-caption-text {
        width: 90%;
    }
}

#close-overlay {
    position: absolute;
    top: 0;
    right: 0;
    margin: 20px;
    padding: 10px 20px;
    color: white;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

#close-overlay:hover, .nav-icon:hover {
    text-decoration: underline;
}


.nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 768px) {
    .nav-icon {
        top: 95%;
        transform: translateY(-95%);
    }
}

#prev-image {
    left: 20px;
}

#next-image {
    right: 20px;
}