/* CVC LIGHTBOX V1 */
body.single-post .entry-content figure.wp-block-image,
body.single-post .entry-content figure.wp-caption{
 background:#fff;border:1px solid #e7e3e1;border-radius:13px;
 box-shadow:0 7px 22px rgba(24,20,20,.09);margin:26px auto;
 overflow:hidden;position:relative
}
body.single-post .entry-content figure.wp-block-image img,
body.single-post .entry-content figure.wp-caption img{
 border-radius:12px 12px 0 0;cursor:zoom-in;display:block;
 height:auto;margin:0;max-width:100%;width:100%
}
body.single-post .entry-content figure figcaption,
body.single-post .entry-content figure .wp-caption-text{
 background:#fff;border-top:1px solid #ece8e6;color:#626268;
 font-size:13px;line-height:1.4;margin:0;padding:11px 14px;text-align:left
}
.cvc-zoom{cursor:zoom-in;display:block;position:relative}
.cvc-zoom:after{
 align-items:center;background:rgba(18,18,22,.78);border:1px solid #ffffff73;
 border-radius:50%;color:#fff;content:'↗';display:flex;font:700 18px Arial;
 height:38px;justify-content:center;pointer-events:none;position:absolute;
 right:10px;top:10px;width:38px
}
.cvc-viewer{
 align-items:center;background:rgba(5,5,8,.97);display:none;inset:0;
 justify-content:center;padding:58px 12px 70px;position:fixed;z-index:2147483000
}
.cvc-viewer.open{display:flex}.cvc-lock{overflow:hidden}
.cvc-viewer img{max-height:100%;max-width:100%;object-fit:contain;user-select:none}
.cvc-viewer button{
 align-items:center;background:#19191ed9;border:1px solid #ffffff59;
 border-radius:50%;color:#fff;cursor:pointer;display:flex;font:30px Arial;
 height:46px;justify-content:center;position:absolute;width:46px;z-index:2
}
.cvc-x{right:12px;top:12px}.cvc-prev{left:10px;top:50%}.cvc-next{right:10px;top:50%}
.cvc-viewer .cvc-count{color:#ddd;font:700 13px Arial;left:14px;position:absolute;top:22px}
.cvc-cap{bottom:20px;color:#eee;font:13px/1.4 Arial;left:60px;
 max-width:calc(100% - 120px);position:absolute;text-align:center}
@media(max-width:680px){.cvc-prev,.cvc-next{bottom:12px;top:auto}}

/* CVC LIGHTBOX CENTERED IMAGES V2 */
.cvc-zoom::after {
    content: none !important;
    display: none !important;
}

body.single-post .entry-content .cvc-zoom {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 100%;
}

body.single-post .entry-content .cvc-zoom img {
    display: block;
    height: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: auto !important;
}

/* CVC LIGHTBOX LINK CENTER V3 */
body.single-post .entry-content figure.wp-block-image {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
}

body.single-post .entry-content figure.wp-block-image > a {
    align-items: center;
    display: flex !important;
    justify-content: center;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
    width: 100% !important;
}

body.single-post .entry-content figure.wp-block-image > a > .cvc-zoom {
    align-items: center;
    display: flex !important;
    justify-content: center;
    width: 100% !important;
}

/* CVC LIGHTBOX FIT PHOTO CARD V4 */
body.single-post .entry-content figure.wp-block-image {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: fit-content !important;
}

body.single-post .entry-content figure.wp-block-image > a,
body.single-post .entry-content figure.wp-block-image > a > .cvc-zoom {
    max-width: 100% !important;
    width: fit-content !important;
}

body.single-post .entry-content figure.wp-block-image img {
    max-width: 100% !important;
    width: auto !important;
}

/* CVC LIGHTBOX FINAL SAFETY V6 */
.cvc-viewer button[hidden] {
    display: none !important;
}

body.cvc-lock ins.adsbygoogle,
body.cvc-lock .google-auto-placed,
body.cvc-lock [id^="google_ads_iframe"],
body.cvc-lock iframe[name^="google_ads"],
body.cvc-lock [id^="google_ads"] {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* CVC LIGHTBOX MOBILE CENTERED ARROWS V7 */
@media (max-width: 680px) {
    .cvc-viewer .cvc-prev,
    .cvc-viewer .cvc-next {
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%);
    }

    .cvc-viewer .cvc-prev {
        left: 8px;
    }

    .cvc-viewer .cvc-next {
        right: 8px;
    }
}


/* =============================================================
   CVC LIGHTBOX STABLE VIEWPORT V8
   Visor completo, controles estables y centrado móvil.
   ============================================================= */

html.cvc-lock,
body.cvc-lock {
    overflow: hidden !important;
}

body.single-post .cvc-viewer {
    bottom: auto !important;
    box-sizing: border-box !important;
    height: 100vh !important;
    height: 100dvh !important;
    left: calc((100% - 100vw) / 2) !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 100vh !important;
    padding: 58px 12px 70px !important;
    position: fixed !important;
    right: auto !important;
    top: 0 !important;
    transform: none !important;
    width: 100vw !important;
}

body.single-post .cvc-viewer.open {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    visibility: visible !important;
}

body.single-post .cvc-viewer > img {
    display: block !important;
    height: auto !important;
    margin: auto !important;
    max-height: calc(100dvh - 128px) !important;
    max-width: calc(100vw - 24px) !important;
    object-fit: contain !important;
    width: auto !important;
}

body.single-post .cvc-viewer button:not([hidden]) {
    align-items: center !important;
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

body.single-post .cvc-viewer button[hidden] {
    display: none !important;
}

body.single-post .cvc-viewer .cvc-x {
    bottom: auto !important;
    position: absolute !important;
    right: 12px !important;
    top: 12px !important;
    transform: none !important;
}

body.single-post .cvc-viewer .cvc-prev,
body.single-post .cvc-viewer .cvc-next {
    bottom: auto !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

body.single-post .cvc-viewer .cvc-prev {
    left: 10px !important;
    right: auto !important;
}

body.single-post .cvc-viewer .cvc-next {
    left: auto !important;
    right: 10px !important;
}

body.single-post .cvc-viewer .cvc-count {
    display: block !important;
    left: 14px !important;
    opacity: 1 !important;
    top: 22px !important;
    visibility: visible !important;
}

@media (max-width: 680px) {
    body.single-post .cvc-viewer {
        height: 100svh !important;
        min-height: 100svh !important;
    }

    body.single-post .cvc-viewer > img {
        max-height: calc(100svh - 128px) !important;
    }

    body.single-post .cvc-viewer .cvc-prev,
    body.single-post .cvc-viewer .cvc-next {
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}
