/* ==========================================================
   Blogsite v2.1.13 — Lightbox global do Blog
   Corrige imagens de posts que abriam modal preso no artigo.
   ========================================================== */

.blog-lightbox-v2113{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(5,10,20,.92);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  box-sizing:border-box;
}

.blog-lightbox-v2113.is-open{
  display:flex !important;
}

.blog-lightbox-v2113-dialog{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  max-width:1600px;
  max-height:calc(100vh - 56px);
}

.blog-lightbox-v2113-image{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:calc(100vw - 80px) !important;
  max-height:calc(100vh - 80px) !important;
  object-fit:contain !important;
  margin:auto !important;
  border-radius:14px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  cursor:zoom-out !important;
}

.blog-lightbox-v2113-close{
  position:fixed;
  top:18px;
  right:22px;
  z-index:2147483001;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.28);
  border-radius:12px;
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}

.blog-lightbox-v2113-close:hover{
  background:#fff;
  color:#0f172a;
}

.blog-lightbox-v2113-caption{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  max-width:min(900px,calc(100vw - 100px));
  padding:8px 13px;
  border-radius:999px;
  background:rgba(15,23,42,.76);
  color:#fff;
  font-size:12px;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

html.blog-lightbox-open-v2113,
body.blog-lightbox-open-v2113{
  overflow:hidden !important;
}

/* Imagens do conteúdo deixam claro que podem ser ampliadas. */
.post-page .blog-content img{
  max-width:100%;
  height:auto;
}

.post-page .blog-content img:not(.blog-lightbox-v2113-image){
  cursor:zoom-in;
}

/* Os modais antigos são desativados; o JS global assume o clique. */
.post-page .blog-content #imgModal{
  display:none !important;
}

@media(max-width:700px){
  .blog-lightbox-v2113{
    padding:12px;
  }

  .blog-lightbox-v2113-image{
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100vh - 80px) !important;
    border-radius:10px;
  }

  .blog-lightbox-v2113-close{
    top:10px;
    right:10px;
    width:40px;
    height:40px;
  }

  .blog-lightbox-v2113-caption{
    bottom:10px;
    max-width:calc(100vw - 24px);
    font-size:10px;
  }
}
