:root {
  --mask-color: rgb(255 255 255 / 70%);
  --mask-filter: blur(16px);
}

.modal-open {
  overflow: hidden;
}

#recent-work-focused {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 56px 24px 24px;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  background: transparent;
  overflow-y: auto;
}

#recent-work-focused[open] {
  display: flex;
  justify-content: center;
  align-items: safe center;
}

#recent-work-focused::backdrop {
  background: var(--mask-color);
  backdrop-filter: var(--mask-filter);
}

#recent-work-focused .dialog-content {
  width: min(600px, 100%);
}

#recent-work-focused .work-spotlight {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(0deg, var(--theme-color-shadow-0), transparent), url("../assets/images/bg_noise.jpg") repeat;
}

.dialog-close {
  position: fixed;
  top: 12px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--theme-color);
  border-radius: 50%;
  background: var(--bg-color-0);
  font-size: 24px;
  cursor: pointer;
}
