#oa-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#oa-modal-wrapper.oa-modal-show {
    opacity: 1;
    visibility: visible;
}

.oa-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.oa-modal-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#oa-modal-wrapper.oa-modal-show .oa-modal-content {
    transform: scale(1);
}

.oa-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.oa-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.oa-modal-close:hover {
    transform: scale(1.1);
    color: #f1f1f1;
}

@media (max-width: 768px) {
    .oa-modal-close {
        top: -45px;
        right: 0;
        font-size: 35px;
    }
}
