.popup-backdrop {
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: #0b0b0b;
    opacity: 0.85;
    cursor: pointer;
}
.popup-content-wrapper {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    max-width: 934px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.popup-content {
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
}

.popup-iframe-scaler {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
}

.popup-iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: black;
}

.gjs-popup-close {
    z-index: 99999;
    margin-left: auto;
    margin-bottom: 12px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
    transition: 0.3s ease;
}

.gjs-popup-close:hover {
  opacity: 0.7;
}

.enter-popup .popup-content-wrapper {
    transform: translate(-50%, -50%) scale(1);
    animation: popupBounce 0.3s ease;
}

.enter-popup .gjs-popup-wrapper {
    transform: translateX(-50%) scale(1);
    animation: globalPopupBounce 0.3s ease;
}

.exit-popup .gjs-popup-wrapper,
.exit-popup .popup-content-wrapper {
    opacity: 0;
    transform: translate(-50%, -150%) !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes popupBounce {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes globalPopupBounce {
    0% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}
