/*
 * Autozox — additions on top of the purchased template stylesheets.
 * Only what the removed jQuery plugins used to apply inline lives here.
 */

/* jquery.scrollUp injected these inline; the template CSS only skinned it. */
#scrollUp {
  position: fixed;
  z-index: 2147483647;
  display: block;
  cursor: pointer;
  border: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
#scrollUp.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Isotope masonry replacement: items keep their intrinsic aspect and wrap. */
.masonry-gallery-huge .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.masonry-gallery-huge .grid-item {
  flex: 0 1 auto;
  max-width: calc(100% - 30px);
}
.masonry-gallery-huge .grid-item .gallery-image {
  margin: 0;
}
.masonry-gallery-huge .grid-item img {
  display: block;
  max-width: 100%;
  height: auto;
}
.masonry-gallery-huge .grid-item a,
.masonry-gallery-huge .grid-item button.popup-image {
  display: block;
  cursor: zoom-in;
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
}

/*
 * magnific-popup replacement. Keep `display` on [open] only — a bare
 * `display: flex` here would beat the UA's `dialog:not([open]){display:none}`
 * and leave the backdrop covering the page.
 */
.az-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(11, 11, 11, 0.88);
  border: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.az-lightbox[open] {
  display: flex;
}
.az-lightbox:not([open]) {
  display: none;
}
.az-lightbox::backdrop {
  background: rgba(11, 11, 11, 0.88);
}
.az-lightbox__body {
  position: relative;
  width: 100%;
  max-width: 1000px;
  text-align: center;
}
.az-lightbox__body img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
}
.az-lightbox__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.az-lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.az-lightbox__close,
.az-lightbox__nav button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.az-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  font-size: 32px;
}
.az-lightbox__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.az-lightbox__nav button {
  font-size: 28px;
  padding: 4px 16px;
}
.az-lightbox__count {
  color: #fff;
  font-size: 14px;
}

/* wow.js replacement: hide until revealed, then run the animate.css class. */
/*
.wow:not(.animated) {
  visibility: hidden;
}
*/
@media (prefers-reduced-motion: reduce) {
  .wow:not(.animated) {
    visibility: visible;
  }
}

/*
 * meanmenu replacement. The plugin used <a> elements for its toggles; these are
 * real <button>s, so mirror the two skinned selectors from meanmenu.css.
 */
.mean-container .mean-nav ul.mean-hidden {
  display: none;
}
.mean-container button.meanmenu-reveal {
  border: 1px solid #002e5b;
  background: none;
  color: #002e5b;
  cursor: pointer;
  display: block;
  height: 22px;
  margin-top: -42px;
  padding: 8px 9px;
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
}
.mean-container button.meanmenu-reveal span {
  background: #002e5b;
  display: block;
  height: 3px;
  margin-top: 3px;
}
.mean-container button.meanmenu-reveal span:first-child {
  margin-top: 0;
}
.mean-container .mean-nav ul li button.mean-expand {
  background: rgba(255, 255, 255, 0.1);
  border-style: none none solid solid;
  border-width: 0 0 1px 1px;
  border-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.4);
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  height: 27px;
  line-height: 17px;
  margin-top: 1px;
  padding: 5px 12px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 26px;
  z-index: 2;
}
.mean-container .mean-nav ul li button.mean-expand:hover {
  background: #fff;
  color: #002e5b;
}

/* The template used anchors for these toggles too. */
.menu-tigger,
.menu-close {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
button.video-i {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.slider-bg button.video-i.popup-video {
  background: none;
}

/* Form feedback (server action results). */
.az-form-message {
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 15px;
}
.az-form-message--ok {
  background: #e7f7ed;
  color: #14603a;
}
.az-form-message--error {
  background: #fdeaec;
  color: #8c1622;
}
.az-field-error {
  display: block;
  margin-top: 6px;
  color: #e81c2e;
  font-size: 14px;
}

/* Search results page reuses blog list styling. */
.az-search-empty {
  padding: 40px 0;
}
