/* krittersitters client overrides (Run 74). Agent-authored additions only; every rule here
 * is a measured difference from live. */

/* 1px-gap photo gallery on a phone: live sizes the strip at Enfold's own 100.4% (captured
 * `.av-masonry-container{width:100.4%}`), so a one-up tile is 391.5px wide and 313.2px tall,
 * not 390 by 312. The shared static grid uses 100%, which left the home gallery 22px short
 * over 18 tiles. Phone widths only. Fifth fleet run with this rule (63, 64, 66, 72). */
@media only screen and (max-width: 480px) {
#top .av-masonry.av-1px-gap:not(.av-mini-columns-overwrite) { overflow: hidden; }
#top .av-masonry.av-1px-gap:not(.av-mini-columns-overwrite) .av-masonry-container { width: 100.4% !important; }
}

/* Blog shells (/blog and /blog/<slug>), built by 08-blog-migration/build-blog-widget.py.
 * The post body loads after the shell, so a screen of space is held while it is still empty
 * (otherwise the share box and footer jump down when it arrives). */
.ym-seo-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ym-blog-status { text-align: center; padding: 40px 0; }
#blog-pagination[hidden] { display: none; }
#post-figure[hidden] { display: none; }
#post-content:empty { min-height: 100vh; }

/* The blog shows each post's ONE featured image. WordPress cut two crops of it (767x423 for
 * the post's lead photo, a square for the list thumbnail); the same centred crops are made
 * here in CSS, so a new post needs no crops prepared. */
#post-image { aspect-ratio: 767 / 423; object-fit: cover; }
#blog-list a.small-preview img { aspect-ratio: 1 / 1; object-fit: cover; }

/* WordPress photo galleries inside a post. WordPress prints these rules in a <style> block in
 * the post body (gallery_shortcode() in wp-includes/media.php) as `#gallery-1 …`; the blog feed
 * stores the body without it, so the three thumbnails stacked one per row (275px, live 81).
 * Same values at the SAME specificity (`:is(#ym-g, .gallery)` weighs as one id, like
 * `#gallery-1`), so Enfold's own gallery rules still win where they win on live (80px tiles,
 * 1px gap). A heavier selector here measured 9px taller than live. */
:where(#post-content) :is(#ym-g, .gallery) { margin: auto; }
:where(#post-content) :is(#ym-g, .gallery) .gallery-item { float: left; margin-top: 10px; text-align: center; width: 33%; }
:where(#post-content) :is(#ym-g, .gallery):where(.gallery-columns-1) .gallery-item { width: 100%; }
:where(#post-content) :is(#ym-g, .gallery):where(.gallery-columns-2) .gallery-item { width: 50%; }
:where(#post-content) :is(#ym-g, .gallery):where(.gallery-columns-4) .gallery-item { width: 25%; }
:where(#post-content) :is(#ym-g, .gallery):where(.gallery-columns-5) .gallery-item { width: 20%; }
:where(#post-content) :is(#ym-g, .gallery) img { border: 2px solid #cfcfcf; }
:where(#post-content) :is(#ym-g, .gallery) .gallery-caption { margin-left: 0; }

/* Quote Request form: the "Service Requested" dropdown. Live replaces the <select> with the
 * form plugin's scripted dropdown (select2): a 38px white bar, no border, 18px Open Sans, a
 * chevron in a 38px box on the right, and no gap below it. Without that script the browser's
 * own control showed (grey, bordered, 20px lower margin: every row under it sat 20px low).
 * The native <select> is kept (it works with no script) and dressed to live's measured values. */
#top #forminator-module-405 select.forminator-select--field {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 38px; margin: 0; padding: 0 38px 0 8px;
  border: 0; border-radius: 0; box-shadow: none;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 5.5l5 5 5-5' fill='none' stroke='%23777771' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 16px 16px;
  font: 400 18px/22px "Open Sans", Helvetica, Arial, sans-serif; color: #55606e;
}
