/* 100 Medals Custom Responsive Popup */
.om-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.om-popup-overlay.om-show {
    display: flex;
    opacity: 1;
}

.om-popup-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: omPopScale 0.3s ease-out;
}

/* Close Button */
.om-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    background-color: #ff5722;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 10;
}

.om-popup-close:hover {
    background-color: #e64a19;
    transform: scale(1.1);
}

/* Image Container */
.om-popup-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.om-popup-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
}

/* Modal Animation */
@keyframes omPopScale {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles for Mobile */
@media (max-width: 576px) {
    .om-popup-close {
        top: -12px;
        right: -12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .om-popup-img {
        max-width: 92vw;
        max-height: 75vh;
    }
}