html.is-contact-open,
html.is-contact-open body { overflow: hidden; overscroll-behavior: none; }

.contact-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms ease;
}
.contact-modal[open] { display: grid; place-items: center; }
.contact-modal.is-open { opacity: 1; }
.contact-modal::backdrop { background: transparent; }
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 690px, calc(100vw - 48px), calc((100dvh - 48px) * 690 / 551));
  transform: translateY(18px) scale(.96);
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.contact-modal.is-open .contact-modal__panel { transform: translateY(0) scale(1); }
.contact-modal__panel img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, .46));
  user-select: none;
}
.contact-modal__close {
  position: absolute;
  top: 14.7%;
  left: 90.3%;
  transform: translate(-50%, -50%);
  width: clamp(44px, 7.54%, 52px);
  height: clamp(44px, 9.44%, 52px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.contact-modal__close:hover { background: transparent; }
.contact-modal__close:focus-visible { outline: 2px solid #f8f2dd; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .contact-modal, .contact-modal__panel { transition: none; }
}
