/**
 * Lot 016 - galerie Masonry des realisations sur l'accueil.
 */

body.home .moliner-home-realizations-section {
  padding-top: clamp(42px, 4vw, 72px) !important;
  padding-bottom: clamp(62px, 6vw, 105px) !important;
}

body.home
  .moliner-home-realizations-section
  > .row_col_wrap_12 {
  display: block !important;
  width: 100% !important;
}

body.home
  .moliner-home-realizations-section
  > .row_col_wrap_12
  > .wpb_column:first-of-type {
  width: 100% !important;
  margin: 0 !important;
}

body.home .moliner-home-realizations-source {
  display: none !important;
}

body.home .moliner-home-realizations-section h2 {
  margin-bottom: 20px !important;
  font-size: clamp(36px, 3.2vw, 56px) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em;
}

body.home .moliner-home-realizations-section .nectar-cta {
  margin-top: 0 !important;
}

body.home .moliner-home-realizations-cta {
  display: flex;
  width: 100%;
  margin-top: clamp(32px, 3.5vw, 56px);
  align-items: center;
  justify-content: center;
}

body.home .moliner-home-realizations-cta .nectar-cta {
  width: auto !important;
  margin: 0 !important;
  text-align: center;
}

body.home .moliner-home-realizations-grid {
  width: 100%;
  margin-top: clamp(38px, 4vw, 68px);
  columns: 4;
  column-gap: 16px;
}

body.home .moliner-home-realizations-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  background: #ededed;
}

body.home .moliner-home-realizations-link,
body.home .moliner-home-realizations-image {
  display: block;
  width: 100%;
}

body.home .moliner-home-realizations-link {
  position: relative;
  color: #fff;
  overflow: hidden;
}

body.home .moliner-home-realizations-image {
  height: auto;
  margin: 0;
  transform: scale(1.001);
  transition: transform 450ms ease;
}

body.home .moliner-home-realizations-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 42%;
  padding: 18px;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.home .moliner-home-realizations-link:hover .moliner-home-realizations-image,
body.home .moliner-home-realizations-link:focus-visible .moliner-home-realizations-image {
  transform: scale(1.035);
}

body.home .moliner-home-realizations-link:hover .moliner-home-realizations-title,
body.home .moliner-home-realizations-link:focus-visible .moliner-home-realizations-title {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 1000px) {
  body.home .moliner-home-realizations-grid {
    columns: 3;
    column-gap: 13px;
  }

  body.home .moliner-home-realizations-cta {
    margin-top: 30px;
  }

  body.home .moliner-home-realizations-item {
    margin-bottom: 13px;
  }
}

@media only screen and (max-width: 690px) {
  body.home .moliner-home-realizations-section {
    width: 90vw !important;
    max-width: none !important;
    margin-right: calc(50% - 45vw) !important;
    margin-left: calc(50% - 45vw) !important;
    padding-top: 46px !important;
    padding-bottom: 64px !important;
  }

  body.home .moliner-home-realizations-section h2 {
    font-size: clamp(31px, 9vw, 38px) !important;
  }

  body.home .moliner-home-realizations-grid {
    margin-top: 35px;
    columns: 2;
    column-gap: 10px;
  }

  body.home .moliner-home-realizations-item {
    margin-bottom: 10px;
  }

  body.home .moliner-home-realizations-title {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .moliner-home-realizations-image,
  body.home .moliner-home-realizations-title {
    transition: none;
  }
}
