/* Vesper — shared UI shell
   The one image overlay used by every photo on the site: stream posts,
   galleries, albums, profile tiles and group tiles. Photos never open the
   WordPress attachment page ( white theme ) any more — they open here, over a
   translucent black backdrop, and albums / carousels page left and right. */

.vp-lb {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 9, 11, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: vp-lb-in .16s ease both;
  overscroll-behavior: contain;
}
.vp-lb[hidden] { display: none; }

.vp-lb__stage {
  position: relative;
  max-width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-lb__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: #0C0D0F;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
  border: 1px solid rgba(255, 255, 255, .08);
}

.vp-lb__x {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #F10000;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
}
.vp-lb__x:hover { background: #fff; color: #F10000; }
.vp-lb__x:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.vp-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border: 0;
  background: rgba(12, 13, 15, .72);
  color: #EDEBE6;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.vp-lb__nav:hover { background: #F10000; color: #fff; }
.vp-lb__nav[hidden] { display: none; }
.vp-lb__nav--prev { left: 8px; }
.vp-lb__nav--next { right: 8px; }

.vp-lb__count {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  color: rgba(237, 235, 230, .78);
  font: 600 13px/1 "Oswald", Impact, sans-serif;
  letter-spacing: .16em;
}

@keyframes vp-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* the page behind an open overlay never scrolls */
html.vp-lb-open, html.vp-lb-open body { overflow: hidden; }

@media (max-width: 600px) {
  .vp-lb { padding: 12px; }
  .vp-lb__img { max-height: calc(100vh - 120px); }
  .vp-lb__nav { width: 38px; height: 54px; font-size: 24px; }
  .vp-lb__x { top: -8px; right: -6px; width: 36px; height: 36px; font-size: 22px; }
}
