/* v1.3.1c Article Lightbox Gallery */

.article-lightbox-trigger {
    cursor: zoom-in;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.article-lightbox-trigger:hover {
    transform: scale(1.012);
    box-shadow: 0 0 0 2px rgba(217,178,106,.35);
    opacity: .95;
}

body.lightbox-open {
    overflow: hidden;
}

.article-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.article-lightbox.is-open {
    display: block;
}

.article-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(6px);
}

.article-lightbox-stage {
    position: absolute;
    inset: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-lightbox-image {
    max-width: calc(100vw - 180px);
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(217,178,106,.35);
    box-shadow: 0 30px 90px rgba(0,0,0,.85);
    background: #060606;
}

.article-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(217,178,106,.5);
    background: rgba(7,7,7,.85);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.article-lightbox-close:hover,
.article-lightbox-arrow:hover {
    background: rgba(162,88,1,.85);
}

.article-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 78px;
    border: 1px solid rgba(217,178,106,.45);
    background: rgba(7,7,7,.72);
    color: #fff;
    font-size: 58px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.article-lightbox-prev {
    left: 0;
}

.article-lightbox-next {
    right: 0;
}

.article-lightbox-caption {
    position: absolute;
    left: 74px;
    right: 74px;
    bottom: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    border: 1px solid rgba(217,178,106,.35);
    background: rgba(7,7,7,.82);
    color: #fff;
}

.article-lightbox-title {
    color: #f0e7d5;
    overflow-wrap: anywhere;
}

.article-lightbox-count {
    color: #d9b26a;
    font-weight: 900;
    white-space: nowrap;
}

@media(max-width: 760px) {
    .article-lightbox-stage {
        inset: 14px;
    }

    .article-lightbox-image {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 150px);
    }

    .article-lightbox-arrow {
        width: 44px;
        height: 58px;
        font-size: 42px;
        background: rgba(7,7,7,.85);
    }

    .article-lightbox-prev {
        left: 4px;
    }

    .article-lightbox-next {
        right: 4px;
    }

    .article-lightbox-caption {
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
