/* BadgerCrafts.pl — Global Image Viewer, no hero */

.bc-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background: rgba(8, 8, 8, 0.96);
    color: #f3efe6;
    touch-action: none;
}

.bc-image-viewer.is-open {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.bc-image-viewer__top {
    min-height: 64px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(243, 239, 230, 0.16);
}

.bc-image-viewer__counter {
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.14em;
    color: rgba(243, 239, 230, 0.72);
    font-size: 0.95rem;
}

.bc-image-viewer__close,
.bc-image-viewer__prev,
.bc-image-viewer__next {
    border: 1px solid rgba(243, 239, 230, 0.28);
    background: rgba(243, 239, 230, 0.06);
    color: #f3efe6;
    font-family: "Courier New", Courier, monospace;
    cursor: pointer;
}

.bc-image-viewer__close {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    line-height: 1;
}

.bc-image-viewer__stage {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 20px 78px;
    overflow: hidden;
}

.bc-image-viewer__image {
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 210px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 18px 80px rgba(0, 0, 0, 0.55);
}

.bc-image-viewer__prev,
.bc-image-viewer__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 70px;
    font-size: 2rem;
}

.bc-image-viewer__prev { left: 18px; }
.bc-image-viewer__next { right: 18px; }

.bc-image-viewer__prev:hover,
.bc-image-viewer__next:hover,
.bc-image-viewer__close:hover {
    background: rgba(243, 239, 230, 0.16);
}

.bc-image-viewer__bottom {
    border-top: 1px solid rgba(243, 239, 230, 0.16);
    padding: 14px 22px 18px;
}

.bc-image-viewer__caption {
    min-height: 1.4em;
    margin: 0;
    color: rgba(243, 239, 230, 0.82);
    font-size: 1rem;
    line-height: 1.45;
}

.snapshot-photo img,
.snapshot-detail-photo img,
.post-photo img,
.post-cover img,
.series-photo img,
.series-cover img,
.gallery-cover img,
.gallery-hero img,
.photo-tile img,
.about-photo img {
    cursor: zoom-in;
}

@media (max-width: 760px) {
    .bc-image-viewer__top {
        min-height: 58px;
        padding: 12px 14px;
    }

    .bc-image-viewer__stage {
        padding: 12px 10px;
    }

    .bc-image-viewer__image {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 155px);
    }

    .bc-image-viewer__prev,
    .bc-image-viewer__next {
        width: 46px;
        height: 58px;
        top: auto;
        bottom: 70px;
        transform: none;
        background: rgba(8, 8, 8, 0.5);
    }

    .bc-image-viewer__prev { left: 14px; }
    .bc-image-viewer__next { right: 14px; }

    .bc-image-viewer__bottom {
        padding: 12px 14px 14px;
    }

    .bc-image-viewer__caption {
        font-size: 0.95rem;
    }
}
