.bcb-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    cursor: zoom-in;
}

.bcb-photo-link > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.bf-gallery-card .bcb-photo-link {
    height: clamp(205px, 24vw, 280px);
    background: #edf4f9;
    border-radius: 12px;
}

.bcb-photo-link:focus-visible {
    outline: 3px solid #07519b;
    outline-offset: -4px;
}

.bcb-photo-viewer {
    position: fixed;
    inset: 0;
    margin: auto;
    border: 1px solid #3a668a;
    border-radius: 14px;
    width: min(95vw, 1200px);
    max-width: 95vw;
    max-height: 94vh;
    padding: 12px;
    background: #062f55;
    color: #fff;
    overflow: auto;
}

.bcb-photo-viewer::backdrop {
    background: rgba(3, 23, 40, .86);
}

.bcb-photo-viewer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.bcb-photo-caption {
    margin: 0;
    overflow-wrap: anywhere;
}

.bcb-photo-viewer button {
    flex: 0 0 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid #7395af;
    border-radius: 50%;
    background: #133f65;
    color: #fff;
    font-size: 27px;
    cursor: pointer;
}

.bcb-photo-viewer > img {
    display: block;
    width: 100%;
    height: min(74vh, 850px);
    object-fit: contain;
    object-position: center;
}
