.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85%;
    width: 85%;
    max-width: 1200px;
    position: relative;
}

.modal-content img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 10px;
}

.modal-content img.show {
    opacity: 1;
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--corfundo);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--coralt1);
    transform: rotate(90deg);
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-btn {
    background-color: rgba(119, 132, 112, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-btn:hover {
    background-color: var(--corbase);
    opacity: 1;
    transform: scale(1.1);
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 80%;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}