.emf-lightbox {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.emf-lightbox-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .emf-lightbox {
        align-items: flex-end;
    }

    .emf-lightbox-content {
        width: 100%;
        max-width: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 90vh;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .emf-lightbox-content {
        max-height: 85vh;
    }
}