.bp-gallery-image {
    display: block;
    max-width: 100%;
    max-height: 230px;
    margin: 0 auto;
    object-fit: contain;
    cursor: zoom-in;
}

    .bp-gallery-image:focus-visible,
    .bp-gallery-lightbox button:focus-visible {
        outline: 3px solid #28b8d8;
        outline-offset: 3px;
    }

.bp-gallery-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    background: rgba(8, 20, 31, .88);
}

    .bp-gallery-lightbox[hidden] {
        display: none;
    }

.bp-gallery-lightbox__dialog {
    position: relative;
    display: flex;
    width: min(100%, 1100px);
    max-height: 100%;
    padding: 60px 24px 24px;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: #102638;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

/* Stage holds the image area plus the prev/next buttons */
.bp-gallery-lightbox__stage {
    position: relative;
    width: 100%;
}

.bp-gallery-lightbox__image-wrap {
    display: flex;
    width: 100%;
    height: min(66vh, 620px);
    overflow: auto;
    border-radius: 8px;
    background: #fff; /* logos are JPGs on white - keep them legible */
}

.bp-gallery-lightbox__image {
    display: block;
    /* Sized from JS so small logos are scaled UP to fill the viewer */
    max-width: none;
    max-height: none;
    margin: auto; /* safe centering: stays scrollable when zoomed */
    cursor: zoom-in;
}

    .bp-gallery-lightbox__image.is-zoomed {
        cursor: zoom-out;
    }

.bp-gallery-lightbox__caption {
    max-width: 100%;
    margin: 18px 0 0;
    color: #fff;
    font-size: 15px;
    text-align: center;
}

.bp-gallery-lightbox__counter {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.bp-gallery-lightbox__controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.bp-gallery-lightbox button {
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

    .bp-gallery-lightbox button:hover:not(:disabled) {
        background: rgba(255, 255, 255, .2);
    }

    .bp-gallery-lightbox button:disabled {
        opacity: .35;
        cursor: default;
    }

.bp-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 46px;
    height: 56px;
    transform: translateY(-50%);
    background: rgba(16, 38, 56, .75) !important;
}

.bp-gallery-lightbox__nav--prev {
    left: 8px;
}

.bp-gallery-lightbox__nav--next {
    right: 8px;
}

@media (max-width: 600px) {
    .bp-gallery-lightbox {
        padding: 12px;
    }

    .bp-gallery-lightbox__dialog {
        padding: 58px 14px 18px;
    }

    .bp-gallery-lightbox__image-wrap {
        height: 60vh;
    }

    .bp-gallery-lightbox__nav {
        width: 38px;
        height: 48px;
    }
}
