.result-media img,
.result-image img,
.kit-preview img,
.asset-preview img {
  cursor: zoom-in;
}

.mz-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  visibility: hidden;
  opacity: 0;
  background: rgba(18, 18, 23, .58);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
  backdrop-filter: blur(28px) saturate(125%);
  transition: opacity .22s ease, visibility .22s ease;
}

.mz-preview-modal.open { visibility: visible; opacity: 1; }
.mz-preview-glass {
  width: min(1500px, 96vw);
  height: min(920px, 94vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 28px;
  color: #1d1d1f;
  background: rgba(248, 248, 250, .93);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .34);
  transform: translateY(14px) scale(.985);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.mz-preview-modal.open .mz-preview-glass { transform: translateY(0) scale(1); }
.mz-preview-topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px 0 28px;
  border-bottom: 1px solid rgba(29, 29, 31, .09);
  background: rgba(255, 255, 255, .72);
}
.mz-preview-topbar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mz-preview-topbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.mz-preview-topbar span { color: #86868b; font-size: 12px; white-space: nowrap; }
.mz-preview-actions a,
.mz-preview-actions button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.mz-preview-actions a { padding: 0 18px; color: #fff; background: #6e5cff; font-size: 13px; text-decoration: none; }
.mz-preview-actions button { width: 38px; color: #3b3b3f; background: #ededf0; font-size: 25px; line-height: 1; }
.mz-preview-stage { position: relative; height: calc(100% - 112px); display: grid; place-items: center; padding: 30px 80px 12px; }
.mz-preview-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 18px 54px rgba(24, 24, 29, .16); }
.mz-preview-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(29, 29, 31, .08);
  border-radius: 50%;
  color: #1d1d1f;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 30px rgba(20, 20, 25, .1);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}
.mz-preview-arrow.previous { left: 20px; }
.mz-preview-arrow.next { right: 20px; }
.mz-preview-modal.single .mz-preview-arrow { display: none; }
.mz-preview-hint { height: 36px; text-align: center; color: #8a8a90; font-size: 11px; }
.mz-preview-error { display: none; max-width: 420px; color: #a04b54; text-align: center; line-height: 1.7; }
.mz-preview-modal.image-error .mz-preview-stage img { display: none; }
.mz-preview-modal.image-error .mz-preview-error { display: block; }

@media (max-width: 760px) {
  .mz-preview-modal { padding: 8px; }
  .mz-preview-glass { width: 100%; height: 96vh; border-radius: 20px; }
  .mz-preview-topbar { height: 66px; padding: 0 12px 0 16px; }
  .mz-preview-topbar strong { max-width: 38vw; font-size: 13px; }
  .mz-preview-actions a { padding: 0 12px; }
  .mz-preview-stage { height: calc(100% - 102px); padding: 20px 12px 70px; }
  .mz-preview-arrow { top: auto; bottom: 12px; transform: none; }
  .mz-preview-arrow.previous { left: calc(50% - 58px); }
  .mz-preview-arrow.next { right: calc(50% - 58px); }
}
