/**
 * OM Banner Modal - Frontend Styles
 */

.om-banner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.om-banner-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.om-banner-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
    animation: omModalFadeIn 0.3s ease;
}

@keyframes omModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.om-banner-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.om-banner-modal-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.om-banner-modal-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.om-banner-modal-link {
    display: block;
}

.om-banner-modal-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .om-banner-modal-content {
        max-width: 95%;
    }

    .om-banner-modal-close {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .om-banner-modal-image {
        max-height: 70vh;
    }
}
