/* Additions for the static (WordPress-free) version of the site. */

/* Contact form replacing WPForms. */
.contact-form { margin: 1.5em 0 2.5em; max-width: 40em; }
.contact-form fieldset { border: 0; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4%; }
.contact-form legend, .contact-form label { display: block; font-weight: 700; margin-bottom: .3em; }
.contact-form legend { padding: 0; width: 100%; }
.contact-form .contact-form-half { flex: 1 1 48%; min-width: 12em; }
.contact-form .sublabel { font-weight: 400; font-size: 87.5%; margin-top: .3em; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; box-sizing: border-box; }
.contact-form .required { color: #d63637; }
.contact-form-hp { position: absolute !important; left: -10000px; height: 1px; overflow: hidden; }

/* Responsive video/audio embeds (replaces jQuery FitVids). */
.wp-block-embed iframe { max-width: 100%; }
.wp-block-embed.wp-has-aspect-ratio iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.wp-embed-aspect-21-9 iframe { aspect-ratio: 21 / 9 !important; }
.wp-embed-aspect-18-9 iframe { aspect-ratio: 18 / 9 !important; }
.wp-embed-aspect-4-3 iframe { aspect-ratio: 4 / 3 !important; }
.wp-embed-aspect-1-1 iframe { aspect-ratio: 1 / 1 !important; }
.wp-embed-aspect-9-16 iframe { aspect-ratio: 9 / 16 !important; }
.wp-embed-aspect-1-2 iframe { aspect-ratio: 1 / 2 !important; }

/* Comment form (submissions go to the form API for moderation). */
.comment-form .contact-form-hp { position: absolute !important; left: -10000px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; box-sizing: border-box; }

/* Search results page. */
#search-results { margin-top: 2em; }
.search-count { font-style: italic; }
