* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: serif;
    background-color: darkgrey;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
    padding: 20px 0;
}

.header-text {
    font-family: times, serif;
    font-size: 12px;
    color: black;
    margin-bottom: 20px;
    text-align: left;
    padding: 70px 30% 70px 30%; 
}

a {
text-decoration: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px; 
    row-gap: 30px; 
    width: 95%;
    max-width: 1200px;
    margin: 10px 0;
    justify-items: center; 
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    min-width: 200px; 
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    flex-direction: column;
}

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

.portrait img {
    height: auto;
    width: 75%;
    object-fit: contain;
}

.portrait-caption {
    margin-top: 5px;
    font-size: 10px;
    color: black;
    text-align: left;
    width: 75%;
}

.landscape-caption {
    margin-top: 5px;
    font-size: 10px;
    color: black;
    text-align: left;
    width: 100%;
    max-width: 300px;
}

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

.modal img {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
}
@media screen and (max-width: 944px) {
    .header-text {
            padding: 70px 15% 70px 15%; 
    }
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 393px) {
    .header-text {
            padding: 10px; 
    }
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }
    .landscape-caption {
        max-width: none;
        width: 100%;
    }
    
}