body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.image-container {
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 200px;
    height: 200px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close-button,
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button {
    right: 35px;
}

.prev-button {
    left: 35px;
}

.next-button {
    right: 70px;
}

.close-button:hover,
.close-button:focus,
.nav-button:hover,
.nav-button:focus {
    color: #bbb;
    text-decoration: none;
}
