/* Mobile-safe fullscreen Latest Posts viewer. Isolated from the page layout. */
.selena-post-grid img{
  cursor:zoom-in;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

.selena-photo-viewer{
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  z-index:2147483000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100vh!important;
  box-sizing:border-box!important;
  padding:max(18px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))!important;
  background:rgba(0,0,0,.97)!important;
  overscroll-behavior:none!important;
  touch-action:manipulation!important;
}

.selena-photo-viewer__image{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:calc(100dvh - 36px)!important;
  object-fit:contain!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-user-drag:none!important;
  pointer-events:auto!important;
}

.selena-photo-viewer__close{
  position:absolute!important;
  top:max(14px,env(safe-area-inset-top))!important;
  right:max(14px,env(safe-area-inset-right))!important;
  z-index:2147483001!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:999px!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background:rgba(24,24,26,.94)!important;
  color:#fff!important;
  font:300 29px/1 Arial,sans-serif!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}

html.selena-photo-viewer-open,
body.selena-photo-viewer-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
