.ig-popup {
    --ig-popup-width: 600px;
    position: fixed;
    width: min(var(--ig-popup-width), calc(100vw - 4rem));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.ig-popup::backdrop {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ig-popup__box {
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    overflow: auto;
    background: #fff;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.ig-popup__image img,
.ig-popup__image svg {
    display: block;
    width: 100%;
    height: auto;
}

.ig-popup__link {
    display: block;
}

.ig-popup__content {
    padding: 1.5rem;
}

.ig-popup__title {
    margin-top: 0;
}

.ig-popup__text > :last-child {
    margin-bottom: 0;
}

.ig-popup__close {
    position: absolute;
    z-index: 1;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: inherit;
    font-size: 25px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

.ig-popup__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ig-popup__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
