/* Responsive finishing rules; the reviewed theme and media stay intact. */
html { min-width: 0; }
body { min-width: 0 !important; overflow-wrap: break-word; }
main, .site, .wrap, .header-inner, .form-grid > *, .application-panels { min-width: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.site-header .mobile-nav a:hover { background: #e9edf1; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.submit-row button:disabled { cursor: wait; opacity: .65; }
.form-response { scroll-margin-top: 120px; }
#commercial .application-layout, #residential .application-layout { height: auto !important; }
#commercial .application-panels, #residential .application-panels { height: auto; align-self: start; }
#commercial .application-panel, #residential .application-panel {
  display: flex; flex-direction: column; align-items: stretch;
  height: auto !important; max-height: none; min-height: 0; gap: 20px;
}
/* The gallery must contribute its intrinsic height to the card. A zero flex
   basis in an auto-height panel let its image paint over the following copy. */
#commercial .gallery, #residential .gallery {
  display: block; flex: none; height: auto; min-height: 0;
}
#commercial .gallery-window, #residential .gallery-window {
  flex: none !important; height: auto; aspect-ratio: 2.15 / 1;
}
#commercial .gallery-track, #residential .gallery-track { position: absolute; inset: 0; height: 100%; }
#commercial .application-copy, #residential .application-copy {
  display: block; position: static; flex: none; height: auto; max-height: none;
  align-self: stretch; padding: 0;
}
#commercial .gallery-controls, #residential .gallery-controls {
  position: static; width: auto; height: 44px; flex: none;
}
#commercial .gallery-frame svg, #residential .gallery-frame svg { height: 100%; }
.application-item > h3 { margin: 0; }
@media (min-width:901px) {
  .application-item { display: contents; }
  .application-item > h3 { display: none; }
  #commercial .application-index, #residential .application-index { min-height: 440px; }
}
@media (max-width:900px) {
  .site-header .header-inner { max-width: none; }
  #commercial .application-index, #residential .application-index { display: none !important; }
  #commercial .application-panels, #residential .application-panels { height: auto; }
  #commercial .gallery-window, #residential .gallery-window { aspect-ratio: 1.9 / 1; }
  #commercial .mobile-application-trigger, #residential .mobile-application-trigger { padding-right: 0 !important; }
  .application-item > h3 { display: block; }
  .mobile-application-trigger { width: 100%; }
  #commercial .application-panel, #residential .application-panel { margin-bottom: 16px !important; }
}
@media (max-width:380px) {
  .wrap { width: calc(100% - 32px) !important; }
  h1 { overflow-wrap: normal; font-size: 34px !important; }
  h2 { font-size: 30px !important; }
  .actions { gap: 10px; }
  .actions .btn { padding-left: 14px; padding-right: 14px; }
}
