#skolexNewsPopup {
    position: fixed;
    inset: 0;
    width: min(760px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100% - 28px);
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #1d2124;
    font-family: Roboto, Arial, sans-serif;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    overflow: auto;
    overscroll-behavior: contain;
}

#skolexNewsPopup::backdrop {
    background: rgba(18, 17, 23, 0.68);
}

#skolexNewsPopup .newsPopupHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 8px clamp(20px, 5vw, 36px);
}

#skolexNewsPopup .newsPopupClose {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d9d6d2;
    border-radius: 50%;
    background: #f6f4f1;
    color: #1d2124;
    box-shadow: none;
}

#skolexNewsPopup .newsPopupClose::before,
#skolexNewsPopup .newsPopupClose::after {
    content: "";
    grid-area: 1 / 1;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

#skolexNewsPopup .newsPopupClose::before {
    transform: rotate(45deg);
}

#skolexNewsPopup .newsPopupClose::after {
    transform: rotate(-45deg);
}

#skolexNewsPopup .newsPopupImage,
#skolexNewsPopup .newsPopupImage img {
    display: block;
    width: 100%;
}

#skolexNewsPopup .newsPopupImage {
    background: #17151c;
}

#skolexNewsPopup .newsPopupImage img {
    max-height: 45vh;
    object-fit: contain;
}

#skolexNewsPopup .newsPopupText {
    padding: clamp(20px, 5vw, 36px);
}

#skolexNewsPopup .newsPopupCategory {
    color: #a50010;
    font: 700 13px/1.3 Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#skolexNewsPopup h2 {
    margin: 8px 0 12px;
    color: inherit;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.12;
}

#skolexNewsPopup p {
    max-width: 60ch;
    margin: 0 0 18px;
    color: #41484e;
    font-size: 16px;
    line-height: 1.5;
}

#skolexNewsPopup .newsPopupMore {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: 999px;
    background: #b00017;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

#skolexNewsPopup :is(button, a):focus-visible {
    outline: 2px solid #d0121a;
    outline-offset: 3px;
}

#skolexNewsPopup .newsPopupImage:focus-visible {
    outline-offset: -5px;
}
