html:has(.ed-view[open]) {
  overflow: hidden;
}
.ed-view:not([open]) {
  display: none;
}
.ed-view[open] {
  display: block;
  position: fixed;
  inset: 0;
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  color: #fff;
  background: #191917;
  font-family: var(--p7-font, Arial, sans-serif);
}
.ed-view::backdrop {
  background: #191917;
}
.ed-shell,
.ed-stage,
.ed-stage picture {
  position: absolute;
  inset: 0;
}
.ed-stage {
  touch-action: pan-y pinch-zoom;
  overflow: hidden;
  user-select: none;
}
.ed-stage picture {
  opacity: 0;
  pointer-events: none;
}
.ed-stage picture.is-current {
  opacity: 1;
}
.ed-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--material-focus, 50% 50%);
}
.ed-stage[data-whole] img {
  object-fit: contain;
  object-position: center;
}
.ed-stage picture[data-cutout] { background:#f2f1ec; }
.ed-stage picture[data-cutout] img { object-fit:contain; padding:clamp(25px,12vw,170px); }
.ed-view button {
  appearance: none;
  font: inherit;
  border: 0;
  cursor: pointer;
  color: #191917;
  -webkit-tap-highlight-color: transparent;
}
.ed-close,
.ed-fit,
.ed-controls {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgb(249 249 245 / 90%);
  box-shadow: 0 2px 12px #0002;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.ed-view .ed-close,
.ed-view .ed-fit {
  top: max(22px, env(safe-area-inset-top));
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0;
}
.ed-view .ed-close {
  right: max(24px, env(safe-area-inset-right));
  width: 46px;
  font:
    300 29px/1 Arial,
    sans-serif;
}
.ed-view .ed-fit {
  left: max(24px, env(safe-area-inset-left));
  padding: 0 17px;
  font-size: 14px;
}
.ed-controls {
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  color: #191917;
  max-width: calc(100% - 24px);
}
.ed-controls button {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  background: transparent;
  transition: background 0.2s;
}
.ed-view button:focus-visible {
  outline: 3px solid #0096f7;
  outline-offset: 2px;
}
.ed-label {
  min-width: clamp(142px, 16vw, 216px);
  padding: 3px 9px;
  display: grid;
  text-align: center;
  gap: 2px;
}
.ed-label span {
  font-size: 11px;
  color: #51534e;
  font-variant-numeric: tabular-nums;
}
.ed-label strong {
  font: inherit;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
@media (hover: hover) {
  .ed-controls button:hover {
    background: rgb(0 0 0 / 9%);
  }
  .ed-view .ed-close:hover,
  .ed-view .ed-fit:hover {
    background: #fff;
  }
}
@media (max-width: 620px) {
  .ed-view .ed-close {
    right: 12px;
  }
  .ed-view .ed-fit {
    left: 12px;
  }
  .ed-view .ed-close,
  .ed-view .ed-fit {
    top: max(14px, env(safe-area-inset-top));
  }
  .ed-controls {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ed-view * {
    transition: none !important;
  }
}
@media print {
  .ed-view {
    display: none !important;
  }
}
