/* Restore the live site's fixed crop boxes after image optimization added
   inline height:auto declarations. */
.audience-card-image img,
img.zoomable,
.transport-vehicle-media img {
  height: 100% !important;
}

/* Restore the live modal layer after the local export converted the dialogs
   into ordinary in-flow sections. */
.inline-form-section {
  position: fixed !important;
  inset: 0;
  z-index: 500;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px) !important;
  background: rgba(12, 30, 10, .75) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.inline-form-section.open {
  pointer-events: auto;
  opacity: 1;
}

.inline-form-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  margin: 0 !important;
  background: var(--cream);
  border-radius: 28px;
  padding: 0 0 40px;
  cursor: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.32, .72, 0, 1);
}

.inline-form-section.open .inline-form-panel {
  transform: translateY(0);
}

.inline-form-section .modal-close {
  min-width: 60px;
  min-height: 42px;
  padding: 8px 12px !important;
}

@media (prefers-reduced-motion: reduce) {
  .inline-form-section,
  .inline-form-panel {
    transition: none;
  }
}
