body.project-dialog-open { overflow: hidden; }

.project-dialog {
  width: min(1060px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #333;
  background: #eeeef0;
  color: #272727;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.project-dialog::backdrop { background: rgba(12, 12, 12, .78); }
.project-dialog[open] { animation: project-dialog-in .28s ease-out both; }
.project-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  height: min(700px, calc(100dvh - 48px));
}
.project-dialog-visual { position: relative; min-width: 0; margin: 0; background: #343434; overflow: hidden; }
.project-dialog-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-dialog-visual figcaption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(22, 22, 22, .62);
  font-size: 9px;
  letter-spacing: .12em;
}
.project-dialog-content { min-width: 0; overflow-y: auto; padding: 72px 58px 112px; overscroll-behavior: contain; }
.project-dialog-kicker { display: block; color: #666; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.project-dialog h2 { max-width: 520px; margin: 28px 0 14px; font-size: clamp(29px, 2.9vw, 42px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.project-dialog-location { margin: 0; color: #656565; font-size: 13px; }
.project-dialog-rule { height: 1px; margin: 35px 0 29px; background: #a4a4a4; }
.project-dialog-description { max-width: 520px; margin: 0; font-size: 17px; line-height: 1.6; }
.project-dialog-notes { margin-top: 40px; }
.project-dialog-notes h3 { margin: 0 0 14px; color: #696969; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.project-dialog-notes ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bcbcbc; }
.project-dialog-notes li { padding: 11px 0; border-bottom: 1px solid #bcbcbc; font-size: 13px; line-height: 1.45; }
.project-dialog-source-link { position: absolute; z-index: 2; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 55%; min-height: 62px; box-sizing: border-box; padding: 0 58px; background: #333; color: #fff; font-size: 13px; text-decoration: none; }
.project-dialog-source-link:hover { background: #222; }
.project-dialog-source-link b { font-weight: 400; }
.project-dialog-close { position: absolute; z-index: 2; top: 19px; right: 19px; display: flex; align-items: center; gap: 15px; min-height: 36px; padding: 0 13px; border: 1px solid #333; background: #333; color: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.project-dialog-close-mark { position: relative; display: block; width: 14px; height: 14px; }
.project-dialog-close-mark::before, .project-dialog-close-mark::after { content: ''; position: absolute; top: 6px; left: 0; width: 14px; height: 1px; background: currentColor; transform: rotate(45deg); }
.project-dialog-close-mark::after { transform: rotate(-45deg); }
.project-register a[aria-haspopup='dialog'] { cursor: pointer; }
@keyframes project-dialog-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 767px) {
  .project-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .project-dialog-layout { grid-template-columns: 1fr; grid-template-rows: minmax(170px, 31dvh) minmax(0, 1fr); height: calc(100dvh - 20px); }
  .project-dialog-visual figcaption { left: 12px; bottom: 12px; font-size: 8px; }
  .project-dialog-content { padding: 31px 25px 105px; }
  .project-dialog h2 { margin-top: 18px; font-size: clamp(25px, 6.7vw, 32px); }
  .project-dialog-rule { margin: 24px 0 20px; }
  .project-dialog-description { font-size: 15px; line-height: 1.55; }
  .project-dialog-notes { margin-top: 30px; }
  .project-dialog-close { top: 12px; right: 12px; }
  .project-dialog-source-link { width: 100%; min-height: 58px; padding: 0 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-dialog[open] { animation: none; }
}
