.ae-work-open {
  position: absolute;
  z-index: 8;
  inset-inline-end: 16px;
  bottom: 16px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: #121212;
  font: 600 13px/1.4 "Readex Pro", "Tajawal", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 22px #0003;
}
.ae-work-open:hover, .ae-work-open:focus-visible { background: #f6e016; outline: 2px solid #111; outline-offset: 2px; }
.ae-work-open-row { position: static; justify-self: end; padding: 6px 10px; font-size: 12px; box-shadow: none; }
.ae-work-dialog {
  position: fixed;
  inset: 0;
  width: min(1100px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #111;
  color: #fff;
  overflow: auto;
  box-shadow: 0 30px 100px #0008;
}
.ae-work-dialog::backdrop { background: #000b; backdrop-filter: blur(6px); }
.ae-work-dialog-inner { position: relative; }
.ae-work-dialog video { display: block; width: 100%; max-height: min(72dvh, 690px); aspect-ratio: 16/9; object-fit: contain; background: #050505; }
.ae-work-close { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #111; font: 28px/1 system-ui; cursor: pointer; }
.ae-work-caption { padding: 16px 20px 20px; font: 14px/1.6 "Readex Pro", "Tajawal", system-ui, sans-serif; }
.ae-work-caption h2 { margin: 0 0 4px; font-size: 20px; }
.ae-work-caption p { margin: 0; opacity: .65; }
@media (max-width: 700px) {
  .ae-work-open { inset-inline-end: 10px; bottom: 10px; padding: 8px 11px; font-size: 11px; }
  .ae-work-open-row { bottom: auto; }
}
