header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.hero img {
    width: 100%;
    height: auto;
}

.gallery {
    padding: 20px;
    text-align: center;
}

.gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Larger minimum size */
    gap: 20px; /* More space between each container */
}

.gallery .grid .item {
    display: flex;
    flex-direction: column;
}

.gallery .grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    cursor: pointer; /* Change cursor to hand on hover */
}

.gallery .grid .item .description {
    font-size: .8em; /* Smaller font size */
    padding: 5px;
    text-align: left;
    text-transform: uppercase; /* Uppercase text */
}

.gallery .grid .item.landscape {
    grid-row: span 8;
}

.gallery .grid .item.portrait {
    grid-row: span 12;
}

.gallery .grid .item.square {
    grid-row: span 10;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#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;
}

#modal img {
    max-width: 90%;
    max-height: 90%;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#close-modal:hover,
#close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .gallery .grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Slightly smaller minimum size */
    }
}
