/* BadgerCrafts.pl — Pro Lightbox */

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

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

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

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

.bc-lightbox__close,
.bc-lightbox__prev,
.bc-lightbox__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-lightbox__close {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    line-height: 1;
}

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

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

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

.bc-lightbox__prev {
    left: 18px;
}

.bc-lightbox__next {
    right: 18px;
}

.bc-lightbox__prev:hover,
.bc-lightbox__next:hover,
.bc-lightbox__close:hover {
    background: rgba(243, 239, 230, 0.16);
}

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

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

.bc-lightbox__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.bc-lightbox__thumb {
    width: 72px;
    height: 54px;
    flex: 0 0 auto;
    border: 1px solid rgba(243, 239, 230, 0.22);
    background: transparent;
    padding: 3px;
    opacity: 0.52;
    cursor: pointer;
}

.bc-lightbox__thumb.is-active {
    opacity: 1;
    border-color: #f3efe6;
}

.bc-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-tile a {
    cursor: zoom-in;
}

.photo-tile a:hover img {
    transform: scale(1.025);
}

.photo-tile img {
    transition: transform 0.25s ease;
}

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

    .bc-lightbox__stage {
        padding: 12px 10px;
    }

    .bc-lightbox__image {
        max-height: calc(100vh - 185px);
    }

    .bc-lightbox__prev,
    .bc-lightbox__next {
        width: 46px;
        height: 58px;
        top: auto;
        bottom: 92px;
        transform: none;
        background: rgba(8, 8, 8, 0.5);
    }

    .bc-lightbox__prev {
        left: 14px;
    }

    .bc-lightbox__next {
        right: 14px;
    }

    .bc-lightbox__bottom {
        padding: 12px 14px 14px;
    }

    .bc-lightbox__caption {
        font-size: 0.95rem;
    }

    .bc-lightbox__thumb {
        width: 60px;
        height: 46px;
    }
}
