/* Additions to the compiled site stylesheet for the CMS-rendered page. */
.project-grid article[hidden] { display: none; }

.cms-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 2rem);
  max-width: 32rem;
  max-height: 90dvh;
  height: fit-content;
  overflow-y: auto;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.cms-dialog[open] { display: grid; }
.cms-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.cms-dialog h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.2; margin: 0; padding-right: 36px; }
.cms-dialog p { margin: 0; }
.cms-dialog .cms-dialog-desc { color: var(--muted-foreground); font-size: 14px; }
.cms-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cms-dialog-actions .button[hidden] { display: none; }
.cms-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--foreground);
  opacity: .7;
  cursor: pointer;
}
.cms-dialog-close:hover, .cms-dialog-close:focus-visible { opacity: 1; }
.cms-dialog video { border-radius: 5px; background: #000; }

.contact-form select.service-select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23abafa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}
.contact-form button[disabled] { opacity: .6; cursor: progress; }
