/* Shared Modal/Overlay Base */

/* Modal Overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    display: none;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    align-items: center;
    display: flex;
    justify-content: center;
    opacity: 1;
}

/* Prevent body scroll when any modal/lightbox is open */
body.modal-open {
    overflow: hidden;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.modal {
    position: relative;
}

.modal-button {
    align-items: center;
    background-color: var(--wp--preset--color--primary);
    border: none;
    border-radius: 0.4rem;
    color: var(--wp--preset--color--white);
    cursor: pointer;
    display: flex;
    font-size: 36px;
    height: 50px;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s;
    width: 50px;
}

.modal-button:hover {
    color: var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--secondary);
}


/* Tablets and larger phones (768px and up) */
@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        max-height: 80vh;
    }
}

/* Small phones (480px and down) */
@media (max-width: 480px) {
    .modal {
        border-width: 5px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
    }
    
    .modal-button {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}