.pvv-trigger {
  position: absolute;
  z-index: 32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid rgba(244, 241, 234, .22);
  border-radius: 999px;
  background: rgba(10, 10, 14, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F4F1EA;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .24);
  font-size: 13px;
}

.pvv-trigger:hover { background: rgba(23, 63, 58, .82); }
.pvv-trigger:focus-visible { outline: 2px solid #8FB3A8; outline-offset: 3px; }
.pvv-trigger-property { top: calc(env(safe-area-inset-top) + 14px); right: 16px; }
.pvv-trigger-feed { top: calc(env(safe-area-inset-top) + 62px); right: 16px; }
.pvv-trigger-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pvv-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #000;
  color: #F4F1EA;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.pvv-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease;
}

.pvv-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 70px) 64px calc(env(safe-area-inset-bottom) + 70px);
  touch-action: none;
  user-select: none;
}

.pvv-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  transition: opacity .15s ease;
}

.pvv-image.is-loading { opacity: .25; }
.pvv-image.is-entering { animation: pvv-image-enter .2s ease both; }

@keyframes pvv-image-enter {
  from { opacity: .35; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.pvv-control {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 241, 234, .2);
  border-radius: 50%;
  background: rgba(23, 63, 58, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F4F1EA;
  font-size: 17px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.pvv-control:hover { background: rgba(47, 111, 99, .9); border-color: rgba(244, 241, 234, .4); }
.pvv-control:focus-visible { outline: 2px solid #8FB3A8; outline-offset: 3px; }
.pvv-close { top: calc(env(safe-area-inset-top) + 16px); right: 18px; }
.pvv-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pvv-next { right: 16px; top: 50%; transform: translateY(-50%); }
.pvv-prev:active, .pvv-next:active { transform: translateY(-50%) scale(.95); }

.pvv-counter {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translateX(-50%);
  min-width: 58px;
  padding: 7px 12px;
  border: 1px solid rgba(244, 241, 234, .16);
  border-radius: 999px;
  background: rgba(10, 10, 14, .68);
  color: rgba(244, 241, 234, .82);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (max-width: 560px) {
  .pvv-stage { padding-right: 10px; padding-left: 10px; }
  .pvv-control { width: 42px; height: 42px; }
  .pvv-prev { left: 10px; }
  .pvv-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .pvv-overlay, .pvv-control { transition: none; }
  .pvv-image.is-entering { animation: none; }
}
