.cms-image-thumb { display: block; position: relative; cursor: zoom-in; }
.cms-image-plus, .cms-image-bar button {
  display: grid;
  place-items: center;
  line-height: 1;
  border-radius: 50%;
  color: #fff;
  background: #252a27;
}
.cms-image-plus {
  position: absolute;
  inset: auto 8px 8px auto;
  width: 32px;
  height: 32px;
  border: 1px solid white;
  font-size: 22px;
}
#cms-image-dialog {
  box-sizing: border-box;
  width: min(84vw, 1640px);
  max-width: 84vw;
  max-height: 84dvh;
  margin: auto;
  padding: 0;
  border: 0;
  background: white;
  color: #222;
}
#cms-image-dialog::backdrop { background: rgb(15 18 16 / 78%); }
html:has(#cms-image-dialog[open]) { overflow: hidden; }
.cms-image-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 4px 12px 4px 16px;
  gap: 12px;
}
.cms-image-bar form { margin: 0; }
.cms-image-bar button { width: 44px; height: 44px; font: 28px/1 sans-serif; border: 0; cursor: pointer; }
.cms-image-scroll { overflow: auto; max-height: calc(84dvh - 64px); overscroll-behavior: contain; }
.cms-image-scroll img { display: block; width: 100%; min-width: 660px; max-width: none; height: auto; }
