/**
 * bs-article-zoom.css — click-to-zoom modal for article content figures.
 * Loaded on single blog posts (see inc/assets.php is_singular('post')).
 * Paired with assets/js/bs-article-zoom.min.js.
 */

/* affordance: only images the JS marked as zoomable */
.elementor-widget-theme-post-content figure img.bs-zoomable,
.entry-content figure img.bs-zoomable {
    cursor: zoom-in;
}

/* full-screen overlay */
.bs-az-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    animation: bsAzFade 0.2s ease-in;
}

@keyframes bsAzFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bs-az-fig {
    margin: 0;
    max-width: 96%;
    max-height: 94%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bs-az-fig img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.bs-az-fig figcaption {
    margin-top: 12px;
    max-width: 820px;
    color: #EDEDED;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.bs-az-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.bs-az-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
    .bs-az-overlay { padding: 12px; }
    .bs-az-fig img { max-height: 80vh; }
}
