
/* =========================================
   PROCESS OF WORKING SECTION
========================================= */

/* SECTION INNER */
.weblodge-agency-how-we-do-section .wla-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* BADGE SPACING */
.weblodge-agency-how-we-do-section .wla-badge-wrap {
  margin-bottom: 20px;
}

/* =========================================
   SECTION HEADING
========================================= */

/* Layout only - text style and span color come from
   the global .wla-big-text class */
.weblodge-agency-how-we-do-heading {
  width: 100%;
  margin: 0 0 40px;
  padding: 0;
  text-align: center;
}

/* =========================================
   CARDS GRID
========================================= */

.weblodge-agency-how-we-do-card-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* =========================================
   CARD
========================================= */

.weblodge-agency-how-we-do-section-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 270px;
  min-width: 0;
  box-sizing: border-box;

}


/* =========================================
   LOTTIE / IMAGE
========================================= */

.weblodge-agency-how-we-do-section-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.weblodge-agency-how-we-do-section-card-image dotlottie-wc {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* DESKTOP LOTTIE HOVER */
.weblodge-agency-how-we-do-section-card:hover
.weblodge-agency-how-we-do-section-card-image {
  transform: translateY(-10%);
  opacity: 0.04;
}

/* =========================================
   TAP TO VIEW BUTTON
========================================= */

.weblodge-agency-how-we-do-tap-to-view {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 5;

  display: none;
  align-items: center;
  justify-content: center;

  width: max-content;
  max-width: calc(100% - 30px);

  transform: translateX(-50%);
}

.weblodge-agency-how-we-do-tap-to-view .wla-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* =========================================
   CARD CONTENT OVERLAY

   THE HEADING, SUBTITLE AND DESCRIPTION
   ARE ONE CENTERED VERTICAL GROUP
========================================= */

.weblodge-agency-how-we-do-section-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 25px 22px;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* SHOW OVERLAY ON DESKTOP HOVER */
.weblodge-agency-how-we-do-section-card:hover
.weblodge-agency-how-we-do-section-card-content {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================
   HEADING, SUBTITLE AND DESCRIPTION

   KEEP NATURAL HEIGHTS SO FLEXBOX CAN
   CENTER THEIR COMBINED TOTAL HEIGHT
========================================= */



/* CARD HEADING - layout only; style from global .wla-card-big-text */
.weblodge-agency-how-we-do-section-card-content h3 {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  overflow-wrap: break-word;
  margin: 0 0 12px;
}

/* CARD SUBTITLE - layout only; style from global .wla-card-medium-text */
.weblodge-agency-how-we-do-section-card-content .home-page-service-subtitle {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  overflow-wrap: break-word;
  margin: 0 0 10px;
}

/* CARD DESCRIPTION - layout only; style from global .wla-card-description-text */
.weblodge-agency-how-we-do-section-card-content .home-page-service-description {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  overflow-wrap: break-word;
  margin: 0;
}

/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) and (max-width: 1024px) {

  .weblodge-agency-how-we-do-heading {
    margin-bottom: 30px;
  }

  .weblodge-agency-how-we-do-card-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .weblodge-agency-how-we-do-section-card {
    height: 270px;
  }

  .weblodge-agency-how-we-do-tap-to-view {
    display: flex;
  }

  /* DISABLE HOVER OPENING ON TOUCH-SIZED SCREENS */
  .weblodge-agency-how-we-do-section-card:hover
  .weblodge-agency-how-we-do-section-card-content {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .weblodge-agency-how-we-do-section-card:hover
  .weblodge-agency-how-we-do-section-card-image {
    transform: none;
    opacity: 1;
  }

  /* OPEN CARD WHEN TAPPED */
  .weblodge-agency-how-we-do-section-card.is-open
  .weblodge-agency-how-we-do-section-card-content {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .weblodge-agency-how-we-do-section-card.is-open
  .weblodge-agency-how-we-do-section-card-image {
    transform: translateY(-10%);
    opacity: 0.04;
  }

  .weblodge-agency-how-we-do-section-card.is-open
  .weblodge-agency-how-we-do-tap-to-view {
    display: none;
  }

  .weblodge-agency-how-we-do-section-card-content {
    padding: 22px 18px;
  }

  /* Card text sizes now come from the global file */
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

  .weblodge-agency-how-we-do-heading {
    margin-bottom: 25px;
  }

  .weblodge-agency-how-we-do-card-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .weblodge-agency-how-we-do-section-card {
    height: 270px;
  }

  .weblodge-agency-how-we-do-tap-to-view {
    display: flex;
    bottom: 18px;
  }

  /* DISABLE HOVER OPENING ON MOBILE */
  .weblodge-agency-how-we-do-section-card:hover
  .weblodge-agency-how-we-do-section-card-content {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .weblodge-agency-how-we-do-section-card:hover
  .weblodge-agency-how-we-do-section-card-image {
    transform: none;
    opacity: 1;
  }

  /* OPEN CARD WHEN TAPPED */
  .weblodge-agency-how-we-do-section-card.is-open
  .weblodge-agency-how-we-do-section-card-content {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .weblodge-agency-how-we-do-section-card.is-open
  .weblodge-agency-how-we-do-section-card-image {
    transform: translateY(-10%);
    opacity: 0.04;
  }

  .weblodge-agency-how-we-do-section-card.is-open
  .weblodge-agency-how-we-do-tap-to-view {
    display: none;
  }

  .weblodge-agency-how-we-do-section-card-content {
    padding: 22px 18px;
  }

  /* Card text sizes now come from the global file */
}
