/* Page popup ("Vyskakovací okno"), a native <dialog> independent of the template CSS */

.sol-popup {
    width: min(560px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-top: 4px solid #f14d4d;
    border-radius: 4px;
    background: #fff;
    color: #272d2f;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    overflow: auto;
}

.sol-popup:not([open]) {
    display: none;
}

.sol-popup::backdrop {
    background: rgba(39, 45, 47, .7);
}

html:has(.sol-popup[open]) {
    overflow: hidden;
}

.sol-popup__inner {
    position: relative;
    padding: 36px 32px 32px;
}

.sol-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7275;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.sol-popup__close:hover,
.sol-popup__close:focus-visible {
    background: #f2f2f2;
    color: #272d2f;
}

.sol-popup__title {
    margin: 0 32px 16px 0;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #272d2f;
    text-transform: none;
}

.sol-popup__body {
    font-size: 16px;
    line-height: 1.6;
}

.sol-popup__body > :first-child {
    margin-top: 0;
}

.sol-popup__body > :last-child {
    margin-bottom: 0;
}

.sol-popup__body img {
    max-width: 100%;
    height: auto;
}

.sol-popup__body a {
    color: #f14d4d;
    text-decoration: underline;
}

.sol-popup__button {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    border-radius: 3px;
    background: #f14d4d;
    color: #fff;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
}

.sol-popup__button:hover,
.sol-popup__button:focus-visible {
    background: #d93a3a;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .sol-popup__inner {
        padding: 32px 20px 24px;
    }

    .sol-popup__title {
        font-size: 24px;
    }
}

/* Style "Otevřený dopis": pink and black like /otevrenydopis, Anton headline over the hero render, centred */
@font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/anton-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/anton-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.sol-popup--dopis {
    border: 6px solid #000;
    border-radius: 0;
    background: linear-gradient(rgba(232, 53, 122, .86), rgba(232, 53, 122, .86)), #e8357a url(../images/popup-otevrenydopis.jpg) center / cover;
    color: #000;
    text-align: center;
}

.sol-popup--dopis .sol-popup__inner {
    padding: 44px 36px 36px;
}

.sol-popup--dopis .sol-popup__close {
    color: #000;
}

.sol-popup--dopis .sol-popup__close:hover,
.sol-popup--dopis .sol-popup__close:focus-visible {
    background: rgba(0, 0, 0, .12);
    color: #000;
}

.sol-popup--dopis .sol-popup__title {
    margin: 0 16px 18px;
    font-family: "Anton", "Roboto Condensed", sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #000;
}

.sol-popup--dopis .sol-popup__body {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    color: #000;
}

.sol-popup--dopis .sol-popup__body p {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.sol-popup--dopis .sol-popup__body a {
    color: #000;
}

.sol-popup--dopis .sol-popup__button {
    margin-top: 26px;
    padding: 10px 38px 12px;
    border-radius: 0;
    background: #000;
    color: #e8357a;
    font-family: "Anton", "Roboto Condensed", sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: .04em;
}

.sol-popup--dopis .sol-popup__button:hover,
.sol-popup--dopis .sol-popup__button:focus-visible {
    background: #fff;
    color: #000;
}

@media (max-width: 480px) {
    .sol-popup--dopis .sol-popup__inner {
        padding: 40px 20px 28px;
    }

    .sol-popup--dopis .sol-popup__title {
        font-size: 30px;
    }

    .sol-popup--dopis .sol-popup__body {
        font-size: 17px;
    }
}
