/* EmbedPress Preview Modal Styles */
.mfp-content .embedpress-preview-modal,
.embedpress-preview-modal {
    background: #fff;
    border-radius: 4px;
    max-width: 1200px;
    width: 95vw;
    max-height: 90vh;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
    margin-top: 0 !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
}

/* Only center the document modal, not all popups */
.mfp-embedpress-preview .mfp-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 100vh;
}

.embedpress-preview-modal .modal-header {
    display: block;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
    background: transparent;
    position: relative;
    height: 0;
}

.embedpress-preview-modal .modal-header .mfp-close {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #1070d0;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    opacity: 1;
    z-index: 10;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 22px !important;
    font-family: Roboto !important;
}

.embedpress-preview-modal .modal-header .mfp-close:hover {
    background: #1885f2;
    color: #fff;
}

.embedpress-preview-modal .modal-header h3 {
    display: none;
}

.embedpress-preview-modal .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.embedpress-preview-modal .loading-content {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.embedpress-preview-modal .loading-content p {
    margin: 0;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
    .embedpress-preview-modal {
        max-width: 98vw;
        width: 98vw;
    }
}

@media (max-width: 768px) {
    .embedpress-preview-modal {
        max-width: 100vw;
        width: 100vw;
    }
    .embedpress-preview-modal .modal-header .mfp-close {
        top: 8px;
        right: 8px;
    }
    .embedpress-preview-modal .modal-body {
        padding: 0 10px 10px 10px;
    }
} 