#gallery {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.gallery-section {
    margin-bottom: 20px;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

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

.gallery-section .images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
}

.gallery-section .images img:hover {
    transform: scale(1.05);
}

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

.modal.shown {
    display: block;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 90vw;
    position: relative;
    overflow: hidden;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.modal-content.show {
    opacity: 1;
}

.modal-thumbnail {
    display: none;
    position: absolute !important;
    object-fit: contain;
    filter: blur(5px);
    background-color: black;
}

.modal-thumbnail,
#modal-image {
    width: 100%;
    z-index: 9;
    position: relative;
    display: block;
    border-radius: 10px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 100px;
}

.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 9999;
}

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

.prev,
.next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
    z-index: 9999
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 600px) {
    .modal-content {
        width: 90%;
    }

    .prev,
    .next {
        font-size: 20px;
        padding: 10px;
    }

    #caption {
        font-size: 14px;
    }

    .close {
        font-size: 30px;
    }
}

.gallery-section .images img {
    width: 100%;
    height: 100%;
}

.gallery-section .images .image-container {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 200px;
    height: 200px;
}

.gallery-section .images .image-container.loaded {
    opacity: 1;
}

.content-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-title {
    display: block;
}