/* CMS-safe additions for the supplied template. */
.cms-empty {
    box-sizing: border-box;
    float: none !important;
    width: 100% !important;
    padding: 28px 0;
    color: #999;
    text-align: center;
}

.cms-post-summary {
    max-width: 1100px;
    margin: -10px auto 24px;
    color: #888;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

.cms-subsection-title {
    margin-top: 24px;
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
    line-height: 36px;
}

.cms-lazy-image {
    opacity: .15;
    transition: opacity .45s ease, transform .3s linear, filter .3s linear;
}

.cms-lazy-image.cms-image-loaded {
    opacity: 1;
}

.main .content video {
    display: block;
}

.main .cms-content-description {
    clear: both;
    margin-top: 32px;
}

.post-link h2 {
    overflow: hidden;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-icon li svg {
    width: 32px;
    color: currentColor;
}

.cms-modal-open {
    overflow: hidden;
}

.cms-announcement {
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .9);
}

.cms-announcement::backdrop {
    background: rgba(8, 8, 12, .78);
}

.cms-announcement-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: #272633;
    box-shadow: 0 20px 56px rgba(0, 0, 0, .48);
}

.cms-announcement-header {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 12px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.cms-announcement-header h2 {
    flex: 1;
    margin: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.4;
}

.cms-announcement-close {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .68);
    cursor: pointer;
}

.cms-announcement-close:hover,
.cms-announcement-close:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #ffbf00;
}

.cms-announcement-close:focus-visible {
    outline: 2px solid #ffbf00;
    outline-offset: 1px;
}

.cms-announcement-close svg {
    width: 22px;
    height: 22px;
}

.cms-announcement-content {
    box-sizing: border-box;
    max-height: min(52vh, 420px);
    padding: 24px;
    overflow: auto;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: pre-wrap;
}

.cms-announcement-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 24px 20px;
}

.cms-announcement-actions button {
    min-width: 96px;
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 3px;
    background: #ffbf00;
    color: rgba(0, 0, 0, .82);
    font: inherit;
    cursor: pointer;
}

.cms-announcement-actions button:hover,
.cms-announcement-actions button:focus-visible {
    background: #ffd24c;
}

.cms-announcement-actions button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media screen and (max-width: 760px) {
    .cms-post-summary {
        width: 92%;
        font-size: 14px;
    }

    .cms-subsection-title {
        margin-top: 18px;
        font-size: 16px;
    }

    .cms-announcement {
        width: calc(100vw - 24px);
        max-height: calc(100svh - 24px);
    }

    .cms-announcement-header {
        min-height: 58px;
        padding-left: 18px;
    }

    .cms-announcement-header h2 {
        font-size: 19px;
    }

    .cms-announcement-content {
        max-height: 55svh;
        padding: 20px 18px;
        font-size: 15px;
    }

    .cms-announcement-actions {
        padding: 10px 18px 18px;
    }

    .cms-announcement-actions button {
        width: 100%;
    }
}
