/* Imagens do corpo do post — clique para ampliar (Summernote inclui data:image) */
.post-body-html img {
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
}

.post-body-html img.post-img-zoomable {
    cursor: zoom-in;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
}

.post-body-html img.post-img-zoomable:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.post-body-html a.post-img-zoom-link {
    cursor: zoom-in;
    display: inline-block;
    max-width: 100%;
}

.post-img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.post-img-lightbox.is-open {
    display: flex;
}

.post-img-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
}

.post-img-lightbox-figure {
    position: relative;
    z-index: 2;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    margin: 0;
    text-align: center;
}

.post-img-lightbox-img {
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.post-img-lightbox-caption {
    margin-top: 0.65rem;
    color: #f1f5f9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.post-img-lightbox-btn {
    position: absolute;
    z-index: 3;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.post-img-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.post-img-lightbox-close {
    top: 1rem;
    right: 1rem;
}

.post-img-lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.post-img-lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.post-img-lightbox-counter {
    position: absolute;
    z-index: 3;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.45);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    .post-img-lightbox-prev,
    .post-img-lightbox-next {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.1rem;
    }
}

@media print {
    .post-img-lightbox {
        display: none !important;
    }
}
