/* EMRY Effects comparison carousel */

.feature-effects-visual {
  width: 100%;
  min-width: 0;
}

.effect-carousel {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: calc(100% + 18px);
  margin-right: -18px;
  padding: 0 18px 12px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.effect-carousel::-webkit-scrollbar {
  display: none;
}

.effect-card {
  flex: 0 0 80%;
  width: 80%;
  max-width: 330px;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 23px;
  background: #e6dbd0;
  border: 1px solid rgba(61, 51, 45, .10);
  box-shadow: 0 20px 46px rgba(70, 51, 38, .12);
}

.effect-card .effect-compare {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #d8cec4;
}

.effect-card-label {
  padding: 14px 16px 16px;
  text-align: center;
  color: #493b32;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.effect-carousel.is-comparing {
  scroll-snap-type: none;
  overflow-x: hidden;
}

@media (max-width: 380px) {
  .effect-carousel {
    gap: 12px;
  }

  .effect-card {
    flex-basis: 82%;
    width: 82%;
  }
}

@media (min-width: 720px) {
  .effect-carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: start;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 24px;
    overflow: visible;
  }

  .effect-card {
    width: 220px;
    max-width: 220px;
  }
}

@media (min-width: 1080px) {
  .feature-effects-visual {
    max-width: 540px;
  }

  .effect-carousel {
    grid-template-columns: repeat(2, 228px);
    gap: 28px;
  }

  .effect-card {
    width: 228px;
    max-width: 228px;
    border-radius: 20px;
  }
}
