/* malé náhledy v galerii */
#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#gallery .gallery-image {
    max-width: 180px;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#gallery .gallery-image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

section#gallery {
    flex-wrap: wrap;
    padding: 50px 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.gallery-image {
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    height: 100%;
    max-width: 45%;
    max-height: 400px;
    max-width: 180px;
    align-self: flex-start;
}

.gallery-image:hover {
    transition: all 0.2s ease-in-out;
    transform: scale(1.04);
}

section#modal-container {
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

img#modal-image {
    border-radius: 12px;
    width: auto;
    height: auto;
    max-height: 80%;
    max-width: 80%;
}

.small-gallery-img {
    cursor: pointer;
    border-radius: 4px;
    transition: transform .15s ease, box-shadow .15s ease;
    max-width: 100px !important;
    max-height: 100px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    object-position: top;
}
