/* Vital Bridge — modal overlay
   Reusable lightweight modal for sub-content (nutrition facts, etc.).
   Activated by JS: any element with [data-vb-modal-open="ID"] opens
   the .vb-modal[data-vb-modal="ID"] target. */

.vb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 15, 22, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 24px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.vb-modal.is-open {
    display: flex;
    opacity: 1;
}

.vb-modal__box {
    position: relative;
    background: #ffffff;
    color: #1a1a1a;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 32px 28px;
    transform: translateY(16px);
    transition: transform 220ms ease;
}

.vb-modal.is-open .vb-modal__box {
    transform: translateY(0);
}

.vb-modal__title {
    font-family: "Red Rose", "Lato", serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 18px 0;
    text-align: center;
    letter-spacing: 0.02em;
}

.vb-modal__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.vb-modal__image-wrap {
    margin: 0 0 8px 0;
}

.vb-modal__caption {
    margin: 14px 0 0 0;
    text-align: center;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.vb-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f3f3;
    color: #1a1a1a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease;
    padding: 0;
}

.vb-modal__close:hover,
.vb-modal__close:focus {
    background: #e6e6e6;
    outline: none;
}

@media (max-width: 480px) {
    .vb-modal {
        padding: 16px;
    }
    .vb-modal__box {
        padding: 26px 18px;
        border-radius: 10px;
    }
    .vb-modal__title {
        font-size: 22px;
    }
}

/* Lock scroll on body when modal is open */
body.vb-modal-open {
    overflow: hidden;
}

/* Hide the legacy "nutritional information" section (sec fbccc46) in
   post 180 — the content now lives inside the modal. The Elementor
   hide-on-* settings are also applied at the JSON level, but this
   class enforces it as a defense-in-depth in case the JSON is
   restored from a backup without the hide flags. */
body.page-id-180 .elementor-element-fbccc46 {
    display: none !important;
}
