/* News and gallery detail pages. */

/* Editorial detail pages */
.bk-detail-section {
    position: relative;
    z-index: 1;
    padding: 52px 0 92px;
}

.bk-detail-container {
    width: calc(100% - 64px) !important;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
}

.bk-detail-toolbar,
.bk-news-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.bk-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.bk-detail-kicker {
    display: block;
    margin-bottom: 9px;
    color: #ff5863;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bk-detail-toolbar h2,
.bk-news-detail-head h2 {
    max-width: 900px;
    margin: 0 0 11px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(27px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.bk-detail-toolbar time,
.bk-news-detail-head time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    font-weight: 700;
}

.bk-detail-toolbar time i,
.bk-news-detail-head time i {
    color: #ed1c24;
}

.bk-detail-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: rgba(255, 255, 255, .76);
    background: rgba(38, 34, 101, .58);
    font-size: 11px;
    font-weight: 800;
}

.bk-detail-count i {
    color: #ed1c24;
}

.bk-detail-back {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: rgba(255, 255, 255, .84);
    background: rgba(38, 34, 101, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.bk-detail-back:hover,
.bk-detail-back:focus {
    border-color: #ed1c24;
    color: #fff;
    background: #ed1c24;
    transform: translateY(-2px);
}

.bk-gallery-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bk-gallery-detail-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: #171447;
    box-shadow: 0 18px 42px rgba(3, 2, 22, .28);
    aspect-ratio: 4 / 3;
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: auto 315px;
}

.bk-gallery-detail-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bk-gallery-detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.bk-gallery-detail-item:hover .bk-gallery-detail-media img {
    transform: scale(1.045);
}

.bk-gallery-detail-media::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, transparent 52%, rgba(8, 6, 34, .5));
    pointer-events: none;
}

.bk-gallery-detail-expand {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    /* Avoid creating a blur compositor layer for every photo in large albums. */
    background: rgba(12, 9, 48, .9);
}

.bk-detail-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    gap: 10px;
    padding: 36px;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 18px;
    color: rgba(255, 255, 255, .7);
    background: rgba(20, 17, 61, .62);
    text-align: center;
}

.bk-detail-empty i {
    color: #ed1c24;
    font-size: 28px;
}

.bk-detail-empty p {
    margin: 0;
}

.bk-news-detail-container {
    max-width: 1040px;
}

.bk-news-detail-card {
    overflow: hidden;
    padding: 34px 40px 46px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(31, 27, 78, .95), rgba(16, 14, 47, .96));
    box-shadow: 0 26px 70px rgba(3, 2, 22, .35);
}

.bk-news-detail-head {
    margin-bottom: 30px;
    padding-bottom: 26px;
}

.bk-news-detail-cover {
    position: relative;
    min-height: 260px;
    margin: 0 0 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: #171447;
    aspect-ratio: 16 / 9;
}

.bk-news-detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .3s ease;
}

.bk-news-detail-body {
    float: none;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .8);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.85;
}

.bk-news-detail-body p,
.bk-news-detail-body ul,
.bk-news-detail-body ol {
    margin: 0 0 20px;
    color: inherit;
    font: inherit;
}

.bk-news-detail-body h2,
.bk-news-detail-body h3,
.bk-news-detail-body h4 {
    margin: 32px 0 13px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    line-height: 1.2;
}

.bk-news-detail-body h2 {
    font-size: 29px;
}

.bk-news-detail-body h3 {
    font-size: 24px;
}

.bk-news-detail-body h4 {
    font-size: 20px;
}

.bk-news-detail-body a {
    color: #ff6570;
    text-decoration: underline;
    text-decoration-color: rgba(255, 101, 112, .45);
    text-underline-offset: 3px;
}

.bk-news-detail-body img,
.bk-news-detail-body video,
.bk-news-detail-body iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 12px;
}

.bk-news-detail-body blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 3px solid #ed1c24;
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, .9);
    background: rgba(237, 28, 36, .08);
}

@media (max-width: 800px) {
    .bk-gallery-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .bk-detail-section {
        padding: 34px 0 64px;
    }

    .bk-detail-container {
        width: calc(100% - 32px) !important;
    }

    .bk-detail-toolbar,
    .bk-news-detail-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .bk-detail-toolbar h2,
    .bk-news-detail-head h2 {
        font-size: clamp(26px, 8vw, 37px);
    }

    .bk-gallery-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .bk-gallery-detail-item {
        border-radius: 14px;
    }

    .bk-news-detail-card {
        padding: 24px 18px 32px;
        border-radius: 18px;
    }

    .bk-news-detail-cover {
        min-height: 0;
        margin-bottom: 26px;
        border-radius: 13px;
    }

    .bk-news-detail-body {
        font-size: 15px;
        line-height: 1.75;
    }
}
