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

/* 1px-gap photo galleries 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 376.5px wide in a full-width
 * gallery (320 in a column), not 375 (318.8). The shared static grid uses 100%, which left
 * every tile about 1px short (4px and 7px over the two full-width galleries, 1px and 2px on
 * /tow-dollies/ and /motorcycle-trailers/). Phone widths only; galleries that set their own
 * phone column count already measure equal and are left alone. */
@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; }
}

/* Scrolled header: live's fixed header background is 95% opaque at desktop (the page shows
 * faintly through it). The shared rule forces 100% for glassy headers; this header is not
 * glassy. Same specificity plus #top so it wins. Measured: 0.95 at 1440 and 1024, 100% at 768
 * and on a phone. */
@media only screen and (min-width: 990px) {
#top #header:not(.av_header_transparency) .header_bg { opacity: 0.95 !important; }
}

/* "Trailers for Sale" photo strip (Enfold accordion slider): the theme ships every strip photo
 * and title at opacity 0 and its script reveals them once loaded. With the script gone the
 * strip was seven blank white tiles. js/accordion.js ports the hover behaviour. */
#top .aviaccordion-slide img,
#top .aviaccordion-preview-title-pos { opacity: 1; }

/* Slanted grey section edges (home, under the intro and under the storage tiles): Enfold only
 * draws them behind `.avia_transform`, a class its script puts on <html>. Restated behind
 * `.responsive` (already on <html>) so the specificity is the same as the theme's own rules.
 * Measured equal to live: 250px box, inner 110% wide, rotated 5 degrees either way. */
.responsive .av-extra-border-element { position: relative; width: 100%; overflow: visible; }
.responsive .av-extra-border-element .av-extra-border-outer { overflow: hidden; height: 100%; width: 100%; position: absolute; }
.responsive .av-extra-border-element.border-extra-diagonal { height: 250px; margin-top: -250px; }
.responsive .av-extra-border-element.border-extra-diagonal .av-extra-border-inner { top: 250px; right: 0; width: 110%; height: 100%; transform-origin: right top; transform: rotate(5deg); position: absolute; }
.responsive .av-extra-border-element.border-extra-diagonal.border-extra-diagonal-inverse .av-extra-border-inner { transform: rotate(-5deg); transform-origin: left top; right: auto; left: 0; }
