.steves-popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, .9);
}

.steves-popup-overlay.active {
    display: block;
    min-width: 100%;
}

.steves-popup-modal {
    padding: 0px 10px;
    border: 1px solid #888;
    width: 900px;
    max-width: 100%;
    border-radius: 5px;
    position: relative;
    top: 10%;
    left: 50%;
    margin-bottom: 50px;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, .9);
}

.steves-popup-modal:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.steves-popup-close {
    color: #fff;
    background: darkorange;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 33px;
    line-height: 0px;
    text-align: center;
    border-radius: 6px;
    position: absolute;
    z-index: 9999;
    right: 28px;
    top: 5px;
}

.steves-popup-close:hover,
.steves-popup-close:focus {
    color: #000;
    text-decoration: none;
    outline: 2px solid #444;
}

.steves-popup-content {
    padding: 20px 0;
}

button.steves-popup-trigger {
    width: auto;
}

.steves-popup-content iframe,
.steves-popup-content video {
    width: 100%;
    height: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .steves-popup-modal {
        width: 90%;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
    }
}


.steves-popup-overlay.steves-popup-drawer {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.steves-popup-overlay.steves-popup-drawer.active {
    opacity: 1;
    visibility: visible;
}

.steves-popup-overlay.steves-popup-drawer .steves-popup-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: var(--wp--preset--color--background, #fff);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.steves-popup-overlay.steves-popup-drawer.active .steves-popup-modal {
    transform: translateX(0);
}

.steves-popup-overlay.steves-popup-drawer .steves-popup-close {
    position: static;
    display: block;
    margin: 0 0 10px auto;
}

.steves-popup-overlay.steves-popup-drawer .steves-popup-content {
    padding:4px;
}
