body {
    background-color: rgb(5, 8, 19);
}

.gallery {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.gallery-item {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100%);
}

.gallery-item img {
    height: 360px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.caption {
    text-align: center;
    margin-top: 6px;
    font-size: 0.9rem;
    color: #555;
}

@media (max-width: 600px) {
    .gallery-item img {
        height: 120px;
    }
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    padding: 20px;
    cursor: zoom-out;
}

.image-modal.open {
    display: flex;
}

.image-modal-img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    cursor: inherit;
}

.image-modal-img {
    transition: transform 1s ease-in-out;
}

.image-modal.open .image-modal-img {
    transform: scale(1);
}