/* V141 — simple one-click certificate enlargement.
   Deliberately does NOT fit the full portrait document into the viewport.
   It enlarges to the device width so detailed certificate text is readable. */
body.certificate-lightbox-v141-open{overflow:hidden!important}
#certificate-lightbox-v141{
  position:fixed!important;
  inset:0!important;
  z-index:2147483647!important;
  display:none;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  background:rgba(7,6,5,.97)!important;
  color:#fff;
}
/* The product viewer hides every direct body child except itself while open.
   Keep this nested certificate viewer visible and interactive above it. */
body.piece-open > #certificate-lightbox-v141{
  visibility:visible!important;
  pointer-events:auto!important;
}
#certificate-lightbox-v141.is-open{display:block!important}
#certificate-lightbox-v141 .certificate-lightbox-v141-bar{
  position:sticky;
  top:0;
  z-index:5;
  min-height:64px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 18px;
  padding-top:max(10px,env(safe-area-inset-top));
  background:rgba(10,9,8,.94);
  border-bottom:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
#certificate-lightbox-v141 .certificate-lightbox-v141-title{
  min-width:0;
  font:600 10px/1.2 Arial,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#fff;
}
#certificate-lightbox-v141 .certificate-lightbox-v141-title small{
  display:block;
  margin-top:5px;
  font:400 9px/1.25 Arial,sans-serif;
  letter-spacing:.02em;
  text-transform:none;
  color:rgba(255,255,255,.62);
}
#certificate-lightbox-v141 .certificate-lightbox-v141-close{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.25)!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#111!important;
  font:400 28px/1 Arial,sans-serif!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#certificate-lightbox-v141 .certificate-lightbox-v141-stage{
  width:100%;
  min-height:calc(100% - 64px);
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:24px 32px 48px;
}
#certificate-lightbox-v141 .certificate-lightbox-v141-image{
  display:block!important;
  width:min(1100px,calc(100vw - 64px))!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  flex:0 0 auto!important;
  object-fit:contain!important;
  object-position:top center!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 18px 70px rgba(0,0,0,.42)!important;
  transform:none!important;
  cursor:default!important;
  user-select:none;
  -webkit-user-select:none;
}
.piece-main-media.is-certificate{cursor:zoom-in!important}
.piece-main-media.is-certificate *{cursor:zoom-in!important}
@media(max-width:780px){
  #certificate-lightbox-v141 .certificate-lightbox-v141-bar{
    min-height:58px;
    padding-left:12px;
    padding-right:10px;
  }
  #certificate-lightbox-v141 .certificate-lightbox-v141-title{font-size:8px}
  #certificate-lightbox-v141 .certificate-lightbox-v141-title small{font-size:8px}
  #certificate-lightbox-v141 .certificate-lightbox-v141-close{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    font-size:26px!important;
  }
  #certificate-lightbox-v141 .certificate-lightbox-v141-stage{
    min-height:calc(100% - 58px);
    width:max-content;
    min-width:100%;
    justify-content:flex-start;
    padding:8px 8px 32px;
  }
  #certificate-lightbox-v141 .certificate-lightbox-v141-image{
    /* A detailed portrait report must open beyond a phone-width fit view to be readable. */
    width:max(680px,calc(100vw - 16px))!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
  }
}
