/* Site-specific rules supplied after 2.2.3. Rules already present in the
   plugin (animations, responsive grids, image sizing and FAQ title) are not
   duplicated here. */

:root:root:root body .loa-video-section__media-column {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  padding: 0 32px;
  text-align: center;
}

:root:root:root body .loa-columns-section.loa-has-section-background {
  margin-top: 50px !important;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

:root:root:root body :is(
  .loa-footer-content,
  .loa-edge-image-content,
  .loa-video-section,
  .loa-columns-section
) {
  margin-top: 50px !important;
}

:root:root:root body .loa-intro__inner {
  margin-top: 50px !important;
}

:root:root:root body .loa-background-columns.loa-has-section-background {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

:root:root:root body .loa-two-column:not(.loa-edge-image-content) .loa-two-column__media {
  padding-right: 23px !important;
}

:root:root:root body .loa-two-column:not(.loa-edge-image-content) .loa-two-column__media img {
  border-radius: 12px;
}

:root:root:root body .loa-intro h2.loa-intro-item-motion {
  width: 740px;
  max-width: 100%;
  font-weight: 600;
}

:root:root:root body .loa-testimonials {
  overflow: hidden;
}

@media (max-width: 1000px) {
  :root:root:root body .loa-background-columns__header {
    max-width: 628px;
    margin: 0 auto 30px;
    padding: 0 !important;
  }

  :root:root:root body .loa-intro h2.loa-intro-item-motion {
    width: auto;
  }
}

/* General Hero remains two columns on tablet. This matches the specificity
   of the global responsive contract and is loaded after it. */
@media (min-width: 601px) and (max-width: 900px) {
  :root:root:root body .loa-general-hero.loa-general-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 0 !important;
  }

  :root:root:root body .loa-general-hero.loa-general-hero.loa-image-column-sized {
    grid-template-columns: var(--loa-sized-image-tracks) !important;
  }
}

:root:root:root body .loa-roof-types__item--bg-transparent {
  background: transparent !important;
}

/* Roof Type items control their own optional gray background. The section
   and the empty/default state remain transparent. */
:root:root:root body .loa-roof-types,
:root:root:root body .loa-roof-types__items,
:root:root:root body .loa-roof-types__item--bg-transparent {
  background-color: transparent !important;
}

:root:root:root body .loa-roof-types__items {
  gap: 0 !important;
  row-gap: 0 !important;
}

:root:root:root body .loa-roof-types__item-shell {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

:root:root:root body .loa-roof-types__header:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Items remain joined on the website, but are visually separated in the
   block canvas so editors can identify each repeater entry. */
:root:root:root body .editor-styles-wrapper .loa-editor.loa-roof-types .loa-roof-types__items {
  gap: 24px !important;
  row-gap: 24px !important;
}

:root:root:root body .editor-styles-wrapper .loa-editor.loa-roof-types .loa-roof-types__item-shell {
  overflow: hidden;
  border: 1px solid #dcdcde !important;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06) !important;
}

/* Roof Type is intentionally outside .loa-auto-colors. Its default is
   charcoal, while valid manual controls still override each color group. */
:root:root:root body .loa-roof-types,
:root:root:root body .loa-roof-colors .loa-roof-types {
  color: var(--loa-roof-body-color, #231f20) !important;
}

:root:root:root body .loa-roof-types :is(p, li, blockquote, td, th),
:root:root:root body .loa-roof-colors .loa-roof-types :is(p, li, blockquote, td, th) {
  color: var(--loa-roof-body-color, #231f20) !important;
}

:root:root:root body .loa-roof-types :is(h1, h2, h3, [class$="__title"]),
:root:root:root body .loa-roof-colors .loa-roof-types :is(h1, h2, h3, [class$="__title"]) {
  color: var(--loa-title-color, #231f20) !important;
}

:root:root:root body .loa-roof-types :is(h4, [class*="__subtitle"], [class*="__eyebrow"]),
:root:root:root body .loa-roof-colors .loa-roof-types :is(h4, [class*="__subtitle"], [class*="__eyebrow"]) {
  color: var(--loa-subtitle-color, #231f20) !important;
}

/* Image Links: canonical layout and hover. */
:root:root:root body .loa-image-links > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 64px 24px !important;
  width: min(calc(100% - 40px), 1300px) !important;
  max-width: 1300px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

:root:root:root body .loa-image-links .loa-image-links__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 9px;
  text-decoration: none;
}

:root:root:root body .loa-image-links .loa-image-links__card img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 1.78 / 1;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

:root:root:root body .loa-image-links .loa-image-links__card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform: translateY(100%);
  background: rgb(0 0 0 / .75) !important;
  content: "";
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

:root:root:root body .loa-image-links .loa-image-links__card::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 60%);
  color: #fff;
  content: attr(data-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

:root:root:root body .loa-image-links .loa-image-links__card:hover::after,
:root:root:root body .loa-image-links .loa-image-links__card:focus-visible::after {
  transform: translateY(0);
}

:root:root:root body .loa-image-links .loa-image-links__card:hover::before,
:root:root:root body .loa-image-links .loa-image-links__card:focus-visible::before {
  transform: translate(-50%, -50%);
  opacity: 1;
}

:root:root:root body .loa-image-links .loa-image-links__card:hover img,
:root:root:root body .loa-image-links .loa-image-links__card:focus-visible img {
  transform: scale(1.03);
}

:root:root:root body .loa-image-links .loa-image-links__title {
  display: block;
  margin-top: 16px;
  color: #231f20 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  text-decoration: none;
}

@media (max-width: 650px) {
  :root:root:root body .loa-image-links > div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }
}

/* General Hero: optional small title above the main heading. */
.loa-general-hero__small-title {
  max-width: 550px;
  margin: 0 0 12px;
  color: var(--loa-subtitle-color, #fff) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
}

/* Video Gallery: large 16:9 videos stacked like the supplied reference. */
:root:root:root body .loa-video-gallery.loa-video-gallery--stacked {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
  background: #fff !important;
}

/* A gallery can be much taller than the viewport. Never leave it hidden while
   waiting for a section-wide reveal threshold that it cannot reach. */
:root:root:root body .loa-video-gallery.loa-reveal-ready {
  opacity: 1 !important;
  transform: none !important;
}

:root:root:root body .loa-video-gallery--stacked .loa-video-gallery__title {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 28px !important;
  padding-right: var(--loa-column-padding, 50px) !important;
  padding-left: var(--loa-column-padding, 50px) !important;
  color: #231f20;
  font-size: clamp(42px, 4vw, 64px) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
}

:root:root:root body .loa-video-gallery--stacked .loa-video-gallery__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: none !important;
}

:root:root:root body .loa-video-gallery--stacked .loa-video-gallery__item {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

:root:root:root body .loa-video-gallery--stacked .loa-video-gallery__player,
:root:root:root body .editor-styles-wrapper .loa-editor.loa-video-gallery--stacked video {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

:root:root:root body .loa-video-gallery--stacked figcaption {
  display: none !important;
}

@media (max-width: 782px) {
  :root:root:root body .loa-video-gallery.loa-video-gallery--stacked {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  :root:root:root body .loa-video-gallery--stacked .loa-video-gallery__title {
    margin-bottom: 20px !important;
    font-size: clamp(34px, 9vw, 46px) !important;
  }
}

/* Gallery grid: two supplied images remain large and centered, matching the
   two-card reference on desktop and tablet. */
:root:root:root body .loa-gallery--grid.loa-gallery--count-2 .loa-gallery__track {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 36px !important;
  width: 100% !important;
  max-width: 1600px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow: visible !important;
}

:root:root:root body .loa-gallery--grid.loa-gallery--count-2 .loa-gallery__item {
  min-width: 0 !important;
  border-radius: 12px;
}

:root:root:root body .loa-gallery--grid.loa-gallery--count-2 .loa-gallery__item img {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 1.72 / 1 !important;
  border-radius: 12px;
  object-fit: cover !important;
}

@media (max-width: 900px) and (min-width: 601px) {
  :root:root:root body .loa-gallery--grid.loa-gallery--count-2 .loa-gallery__track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  :root:root:root body .loa-gallery--grid.loa-gallery--count-2 .loa-gallery__item img {
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 600px) {
  :root:root:root body .loa-gallery--grid.loa-gallery--count-2 .loa-gallery__track {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
}

/* Gallery carousel: 3 cards on desktop, 2 on tablet and 1 below 768px. */
:root:root:root body .loa-gallery--carousel .loa-gallery__inner {
  position: relative !important;
  overflow: visible !important;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__viewport {
  width: 100%;
  overflow: hidden;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__track {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
  touch-action: pan-y;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1) !important;
  will-change: transform;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__track.is-resizing {
  transition: none !important;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__item,
:root:root:root body .loa-gallery--carousel .loa-gallery__item.is-hidden {
  display: block !important;
  flex: 0 0 calc((100% - 40px) / 3) !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 10px;
  background: #e9edf2;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__item img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 1.42 / 1 !important;
  border-radius: 10px;
  object-fit: cover !important;
  user-select: none;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__arrow {
  position: absolute !important;
  z-index: 4 !important;
  top: 50% !important;
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 0 5px !important;
  transform: translateY(-50%) !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 40px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

:root:root:root body .loa-gallery--carousel .loa-gallery__arrow--prev {
  left: calc(var(--loa-column-padding, 50px) - 24px) !important;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__arrow--next {
  right: calc(var(--loa-column-padding, 50px) - 24px) !important;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 8px;
  margin-top: 10px;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__dot {
  display: block;
  width: 6px;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8c8c8;
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}

:root:root:root body .loa-gallery--carousel .loa-gallery__dot.is-active {
  width: 12px;
  background: #231f20;
}

:root:root:root body .loa-gallery--carousel.loa-gallery--static .loa-gallery__arrow,
:root:root:root body .loa-gallery--carousel.loa-gallery--static .loa-gallery__dots {
  display: none !important;
}

@media (max-width: 1099px) and (min-width: 768px) {
  :root:root:root body .loa-gallery--carousel .loa-gallery__item,
  :root:root:root body .loa-gallery--carousel .loa-gallery__item.is-hidden {
    flex-basis: calc((100% - 20px) / 2) !important;
  }
}

@media (max-width: 767px) {
  :root:root:root body .loa-gallery--carousel .loa-gallery__item,
  :root:root:root body .loa-gallery--carousel .loa-gallery__item.is-hidden {
    flex-basis: 100% !important;
  }

  :root:root:root body .loa-gallery--carousel .loa-gallery__arrow {
    width: 42px !important;
    height: 42px !important;
    font-size: 34px !important;
  }

  :root:root:root body .loa-gallery--carousel .loa-gallery__arrow--prev {
    left: calc(var(--loa-column-padding, 20px) - 21px) !important;
  }

  :root:root:root body .loa-gallery--carousel .loa-gallery__arrow--next {
    right: calc(var(--loa-column-padding, 20px) - 21px) !important;
  }

  :root:root:root body .loa-gallery--carousel .loa-gallery__dots {
    display: flex;
  }
}

/* Two Column Section: optional small title above the main heading. */
:root:root:root body .loa-two-column__small-title,
:root:root:root body .editor-styles-wrapper .loa-editor .loa-two-column__small-title {
  margin: 0 0 12px !important;
  color: var(--loa-subtitle-color, #264a9e) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

:root:root:root body .loa-auto-colors .loa-two-column__small-title:not([style*="color"]) {
  color: var(--loa-subtitle-color, #264a9e) !important;
}

/* Optional per-block radius for foreground images. Backgrounds and the Home
   Hero poster remain edge-to-edge because they are section backgrounds. */
:root:root:root body .loa-has-image-border-radius img:not(.loa-home-hero__poster),
:root:root:root body .loa-has-image-border-radius video[poster],
:root:root:root body .loa-editor-has-image-border-radius .loa-editor img:not(.loa-home-hero__poster),
:root:root:root body .loa-editor-has-image-border-radius .loa-editor video[poster] {
  border-radius: var(--loa-image-border-radius, 0) !important;
}

:root:root:root body .loa-has-image-border-radius :is(
  .loa-general-hero__visual,
  .loa-two-column__media,
  .loa-roof-types__media,
  .loa-image-links__card,
  .loa-gallery__item,
  .loa-gallery__open,
  .loa-team__photo,
  .loa-image-faq__image,
  .loa-edge-image-content__image,
  .loa-image-content-cta__image
),
:root:root:root body .loa-editor-has-image-border-radius .loa-editor :is(
  .loa-general-hero__visual,
  .loa-two-column__media,
  .loa-roof-types__media,
  .loa-image-links__card,
  .loa-gallery__item,
  .loa-gallery__open,
  .loa-team__photo,
  .loa-image-faq__image,
  .loa-edge-image-content__image,
  .loa-image-content-cta__image
) {
  border-radius: var(--loa-image-border-radius, 0) !important;
}

:root:root:root body .loa-has-image-border-radius .loa-image-links__card::before,
:root:root:root body .loa-has-image-border-radius .loa-image-links__card::after,
:root:root:root body .loa-editor-has-image-border-radius .loa-editor .loa-image-links__card::before,
:root:root:root body .loa-editor-has-image-border-radius .loa-editor .loa-image-links__card::after {
  border-radius: inherit !important;
}

/* Testimonial arrows use the original LOA theme asset. */
:root:root:root body .loa-testimonials__arrow {
  overflow: hidden !important;
  text-indent: -9999px !important;
}

:root:root:root body .loa-testimonials__arrow::before {
  position: absolute;
  inset: 0;
  display: block;
  background: url("https://www.loaconstruction.com/wp-content/themes/loaconstruction/assets/img/1679598090-arrow-right.svg") center / contain no-repeat;
  content: "";
  text-indent: 0;
}

:root:root:root body .loa-testimonials__arrow--prev::before {
  transform: rotate(180deg);
}

/* Trust Two Columns Home ---------------------------------------------- */
:root:root:root body .loa-trust-home {
  position: relative;
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden;
  background-color: #231f20;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

:root:root:root body .loa-trust-home:not(.loa-editor) {
  width: var(--loa-viewport-width, 100%) !important;
  max-width: none !important;
  margin-right: calc((100% - var(--loa-viewport-width, 100%)) / 2) !important;
  margin-left: calc((100% - var(--loa-viewport-width, 100%)) / 2) !important;
}

:root:root:root body .loa-trust-home__shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(620px, 47vw, 760px);
  margin: 0 auto;
  overflow: hidden;
  background-color: #231f20;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

:root:root:root body .loa-trust-home--contained {
  background-color: transparent !important;
  background-image: none !important;
}

:root:root:root body .loa-trust-home--contained .loa-trust-home__shell {
  width: min(100%, var(--loa-trust-home-contained-width, 1200px));
  background-image: var(--loa-section-background-image);
}

:root:root:root body .loa-trust-home__column {
  position: relative;
  z-index: 0;
  display: flex;
  min-width: 0;
  padding: clamp(48px, 5.2vw, 96px) clamp(30px, 4.8vw, 88px);
  flex-direction: column;
  justify-content: center;
}

:root:root:root body .loa-trust-home__left-inner,
:root:root:root body .loa-trust-home__right-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
}

:root:root:root body .loa-trust-home__subtitle {
  margin: 0 0 30px !important;
  color: var(--loa-subtitle-color, #ffffff) !important;
  font-size: clamp(22px, 2vw, 38px) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

:root:root:root body .loa-trust-home__title {
  margin: 0 !important;
  color: var(--loa-title-color, #ffffff) !important;
  font-size: clamp(44px, 4.15vw, 78px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
}

:root:root:root body .loa-trust-home__divider {
  display: block;
  width: 150px;
  height: 1px;
  margin-top: clamp(42px, 5vw, 72px);
  background: currentColor;
  content: "";
}

:root:root:root body .loa-trust-home__left-content {
  margin-top: 28px;
}

:root:root:root body .loa-trust-home__left-content > :first-child,
:root:root:root body .loa-trust-home__right-content > :first-child {
  margin-top: 0 !important;
}

:root:root:root body .loa-trust-home__left-content > :last-child,
:root:root:root body .loa-trust-home__right-content > :last-child {
  margin-bottom: 0 !important;
}

:root:root:root body .loa-trust-home__right-overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  pointer-events: none;
}

:root:root:root body .loa-trust-home__right-content {
  margin: auto;
  color: #ffffff;
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 400;
  line-height: 1.78;
}

:root:root:root body .loa-trust-home :is(.loa-trust-home__left-content, .loa-trust-home__right-content) :is(p, li, blockquote, h1, h2, h3, h4, h5, h6):not([style*="color"]) {
  color: inherit !important;
}

@media (max-width: 900px) {
  :root:root:root body .loa-trust-home__shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  :root:root:root body .loa-trust-home__column {
    min-height: 430px;
    padding: 56px max(30px, var(--loa-column-padding, 30px));
  }

  :root:root:root body .loa-trust-home__left-inner,
  :root:root:root body .loa-trust-home__right-content {
    max-width: none;
  }
}

@media (max-width: 650px) {
  :root:root:root body .loa-trust-home__column {
    min-height: 0;
    padding: 48px 24px;
  }

  :root:root:root body .loa-trust-home__right {
    min-height: 420px;
  }

  :root:root:root body .loa-trust-home__subtitle {
    margin-bottom: 20px !important;
  }

  :root:root:root body .loa-trust-home__divider {
    margin-top: 34px;
  }
}

/* Content Section: full viewport or centered contained canvas. */
:root:root:root body .loa-content-section {
  background-color: var(--loa-content-background, #ffffff) !important;
}

:root:root:root body .loa-content-section--full .loa-content-section__inner {
  width: 100% !important;
  max-width: none !important;
}

:root:root:root body .loa-content-section--contained {
  width: min(100%, var(--loa-content-contained-width, 1200px)) !important;
  max-width: var(--loa-content-contained-width, 1200px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

:root:root:root body .loa-content-section--contained:not(.loa-editor) {
  width: min(var(--loa-viewport-width, 100%), var(--loa-content-contained-width, 1200px)) !important;
  margin-right: calc((100% - min(var(--loa-viewport-width, 100%), var(--loa-content-contained-width, 1200px))) / 2) !important;
  margin-left: calc((100% - min(var(--loa-viewport-width, 100%), var(--loa-content-contained-width, 1200px))) / 2) !important;
}

@media (max-width: 650px) {
  :root:root:root body .loa-content-section--contained {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Work Showcase Home -------------------------------------------------- */
:root:root:root body .loa-work-home {
  position: relative;
  box-sizing: border-box;
  padding: clamp(56px, 6vw, 92px) 0 !important;
  overflow: hidden;
  background-color: var(--loa-work-home-background, #ffffff) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #231f20;
}

:root:root:root body .loa-work-home:not(.loa-editor) {
  width: var(--loa-viewport-width, 100%) !important;
  max-width: none !important;
  margin-right: calc((100% - var(--loa-viewport-width, 100%)) / 2) !important;
  margin-left: calc((100% - var(--loa-viewport-width, 100%)) / 2) !important;
}

:root:root:root body .loa-work-home__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-right: var(--loa-column-padding, 50px);
  padding-left: var(--loa-column-padding, 50px);
}

:root:root:root body .loa-work-home__header {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto clamp(54px, 5vw, 78px);
  text-align: center;
}

:root:root:root body .loa-work-home__eyebrow {
  margin: 0 0 10px !important;
  color: var(--loa-subtitle-color, var(--loa-auto-color, #536075)) !important;
  font-size: clamp(16px, 1.2vw, 20px) !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

:root:root:root body .loa-work-home__title {
  margin: 0 0 24px !important;
  color: var(--loa-title-color, var(--loa-auto-color, #231f20)) !important;
  font-size: clamp(38px, 3.2vw, 58px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}

:root:root:root body .loa-work-home__button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #264a9e !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .25s ease, background-color .25s ease;
}

:root:root:root body .loa-work-home__button:hover,
:root:root:root body .loa-work-home__button:focus-visible {
  transform: translateY(-2px);
  background: #1d3c87 !important;
}

:root:root:root body .loa-work-home__projects {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  gap: clamp(12px, 1.4vw, 24px);
  align-items: stretch;
}

:root:root:root body .loa-work-home__project {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--loa-image-border-radius, 8px);
  background: #e8ebf0;
  color: #231f20;
  cursor: zoom-in;
  flex: 1 1 0;
  text-decoration: none !important;
}

:root:root:root body .loa-work-home__project img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 1.55 / 1;
  margin: 0 !important;
  border-radius: inherit;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}

:root:root:root body .loa-work-home__project:hover img,
:root:root:root body .loa-work-home__project:focus-visible img {
  transform: scale(1.055);
  filter: brightness(.88);
}

:root:root:root body .loa-work-home__project-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:root:root:root body .loa-work-home__project--empty {
  display: grid;
  min-height: 220px;
  padding: 24px;
  place-items: center;
  text-align: center;
}

:root:root:root body .loa-work-home__side-label {
  display: flex;
  width: clamp(68px, 5vw, 92px);
  min-width: clamp(68px, 5vw, 92px);
  align-items: center;
  justify-content: center;
  color: #231f20;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

:root:root:root body .loa-editor .loa-work-home__side-label {
  flex-direction: column;
}

:root:root:root body .loa-work-home--motion:not(.loa-work-home--visible) .loa-work-home__header > * {
  opacity: 0;
  transform: translateY(24px);
}

:root:root:root body .loa-work-home--motion:not(.loa-work-home--visible) .loa-work-home__project,
:root:root:root body .loa-work-home--motion:not(.loa-work-home--visible) .loa-work-home__side-label {
  opacity: 0;
  transform: translateY(34px) scale(.97);
}

:root:root:root body .loa-work-home--motion.loa-work-home--visible .loa-work-home__header > * {
  animation: loa-work-home-rise .7s cubic-bezier(.22, 1, .36, 1) both;
}

:root:root:root body .loa-work-home--motion.loa-work-home--visible .loa-work-home__header > :nth-child(2) {
  animation-delay: .1s;
}

:root:root:root body .loa-work-home--motion.loa-work-home--visible .loa-work-home__header > :nth-child(3) {
  animation-delay: .2s;
}

:root:root:root body .loa-work-home--motion.loa-work-home--visible .loa-work-home__project,
:root:root:root body .loa-work-home--motion.loa-work-home--visible .loa-work-home__side-label {
  animation: loa-work-home-card .8s cubic-bezier(.22, 1, .36, 1) calc(.28s + var(--loa-project-index, 0) * .09s) both;
}

:root:root:root body .loa-work-home--motion.loa-work-home--visible .loa-work-home__side-label {
  --loa-project-index: 4;
}

@keyframes loa-work-home-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loa-work-home-card {
  from { opacity: 0; transform: translateY(34px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.loa-work-home-transition {
  position: fixed;
  z-index: 2147483646;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #111;
  cursor: zoom-out;
  transition: top .7s cubic-bezier(.76, 0, .24, 1), right .7s cubic-bezier(.76, 0, .24, 1), bottom .7s cubic-bezier(.76, 0, .24, 1), left .7s cubic-bezier(.76, 0, .24, 1), width .7s cubic-bezier(.76, 0, .24, 1), height .7s cubic-bezier(.76, 0, .24, 1), border-radius .7s ease;
}

.loa-work-home-transition.is-expanded {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

.loa-work-home-transition img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
}

.loa-work-home-transition__close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .8);
  border-radius: 50%;
  background: rgb(0 0 0 / .45);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  place-items: center;
  transition: opacity .25s ease .5s;
}

.loa-work-home-transition.is-expanded .loa-work-home-transition__close {
  opacity: 1;
}

html.loa-work-home-preview-open,
html.loa-work-home-preview-open body {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  :root:root:root body .loa-work-home__projects {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  :root:root:root body .loa-work-home__project img {
    aspect-ratio: 1.6 / 1;
  }

  :root:root:root body .loa-work-home__side-label {
    width: 100%;
    min-width: 0;
    padding-top: 4px;
  }
}

@media (max-width: 650px) {
  :root:root:root body .loa-work-home {
    padding: 48px 0 !important;
  }

  :root:root:root body .loa-work-home__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  :root:root:root body .loa-work-home__header {
    margin-bottom: 42px;
  }

  :root:root:root body .loa-work-home__project img {
    aspect-ratio: 1.45 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root:root:root body .loa-work-home--motion :is(.loa-work-home__header > *, .loa-work-home__project, .loa-work-home__side-label) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .loa-work-home-transition {
    transition-duration: .01ms !important;
  }
}
