/* ============================================================
   GALLERY IMAGE MODAL
============================================================ */

.gallery-clickable-image {
    cursor: pointer;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}


.gallery-clickable-image:hover {
    opacity: 0.9;

    transform: scale(1.03);
}


/* Modal */

.gallery-image-modal {
    padding: 20px;
}


/* Modal container */

.gallery-modal-wrapper {
    position: relative;

    width: auto;
    max-width: 1100px;

    max-height: 92vh;

    margin: auto;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    display: flex;
    flex-direction: column;
}


/* Image */

.gallery-modal-image-wrapper {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #111111;

    padding: 0px;

    max-height: 78vh;
}


.gallery-modal-image-wrapper img {
    display: block;

    max-width: 100%;
    max-height: 75vh;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* Close button */

.gallery-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 10;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: #10243a;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.gallery-modal-close:hover {
    background: #087a5b;

    color: #ffffff;

    transform: rotate(90deg);
}


/* Caption */

.gallery-modal-caption {
    padding: 18px 25px;

    color: #10243a;

    font-size: 15px;

    font-weight: 600;

    text-align: center;

    background: #ffffff;
}


/* ============================================================
   MOBILE
============================================================ */

@media screen and (max-width: 768px) {

    .gallery-image-modal {
        padding: 10px;
    }


    .gallery-modal-wrapper {
        width: 100%;

        max-height: 95vh;

        border-radius: 10px;
    }


    .gallery-modal-image-wrapper {
        padding: 0px;

        max-height: 82vh;
    }


    .gallery-modal-image-wrapper img {
        max-height: 78vh;
    }


    .gallery-modal-close {
        width: 38px;
        height: 38px;

        top: 10px;
        right: 10px;
    }


    .gallery-modal-caption {
        padding: 14px 18px;

        font-size: 13px;
    }

}