/* BM016 — Operations Gallery */

.bm-operations {
    background: #fff;
}

.bm-operations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.bm-operations-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4eae5;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,.055);
}

.bm-gallery-open {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: #edf3ee;
    cursor: zoom-in;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.bm-gallery-open img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.bm-gallery-open:hover img {
    transform: scale(1.035);
}

.bm-gallery-open:focus-visible {
    outline: 4px solid #008b3d;
    outline-offset: -4px;
}

.bm-gallery-expand {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: 22px;
}

.bm-operations-card-content {
    padding: 23px 25px 26px;
}

.bm-operations-card-content h3 {
    margin: 0 0 9px;
    color: #173f2b;
    font-size: 21px;
}

.bm-operations-card-content p {
    margin: 0;
    color: #647077;
    line-height: 1.6;
}

.bm-operations-footer {
    margin-top: 36px;
    text-align: center;
}

/* Full image lightbox */

.bm-gallery-dialog {
    width: min(1100px, 94vw);
    max-width: none;
    max-height: 92vh;
    padding: 20px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0,0,0,.3);
}

.bm-gallery-dialog::backdrop {
    background: rgba(8,20,13,.86);
}

.bm-gallery-full {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(92vh - 40px);
    object-fit: contain;
    margin: auto;
    border-radius: 8px;
}

.bm-gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #163c28;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .bm-operations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bm-operations-card-content {
        padding: 20px;
    }

    .bm-operations-card-content h3 {
        font-size: 19px;
    }

    .bm-gallery-dialog {
        padding: 10px;
    }

    .bm-gallery-full {
        max-height: calc(92vh - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-gallery-open img {
        transition: none;
    }
}
