/* Estilos do Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: -100px;
    width: 100%;
    height: 120%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: auto;
    width: auto;
    max-width: 30%;
    max-height: 100%;
}

.modal-body {
    position: relative;
    padding: 0;
}

.modal-body img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #ccc;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .modal-content {
        max-width: 80%;
    }

    .close {
        top: 10px;
        right: 10px;
        font-size: 24px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
}

/* Media Query for Large Desktops */
@media (min-width: 1600px) {
    .modal-content {
        max-width: 25%;
    }
}