.eg-ps-frame { position: relative; }
.eg-ps-enlarge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(40, 49, 88, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #4D5560;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease;
}
.eg-ps-frame:hover .eg-ps-enlarge,
.eg-ps-enlarge:focus-visible { opacity: 1; }
.eg-ps-enlarge:hover { color: #1237DF; }
.eg-ps-enlarge:focus-visible { outline: 2px solid #1237DF; outline-offset: 2px; }
/* No hover to reveal it on touch, so it simply stays. */
@media (hover: none) {
  .eg-ps-enlarge { opacity: 1; }
}

.eg-ps-enlarge-back {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(18, 22, 25, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}
.eg-ps-enlarge-panel { max-width: 100%; }
.eg-ps-enlarge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #fff;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.eg-ps-enlarge-scale {
  margin-left: 8px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 400;
  opacity: 0.72;
}
.eg-ps-enlarge-close {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.eg-ps-enlarge-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.eg-ps-enlarge-view {
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
/* Wider than the viewport: drag it, the same gesture the website's own lightbox
   uses on a zoomed image. This is what a phone gets instead of a crop. */
.eg-ps-enlarge-pannable { overflow: auto; cursor: grab; -webkit-overflow-scrolling: touch; }
.eg-ps-enlarge-pannable:active { cursor: grabbing; }

