/* FINAL PRODUCT SLIDER LAYOUT
   Goal:
   [ left arrow ]  [ image ]  gap  [ text ]  [ right arrow ]
   Balanced, centered, no text pushed into arrow.
*/

body .products-section {
  display: block !important;
  width: 100% !important;
  background: #a0a0a0 !important;
  padding: 34px 0 58px !important;
  margin: 0 !important;
  text-align: center !important;
  overflow: hidden !important;
  min-height: 560px !important;
}

body .products-section > h2 {
  color: #000 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 34px !important;
  padding: 0 !important;
}

body .products-section .slideshow-container {
  position: relative !important;
  width: 1240px !important;
  max-width: calc(100vw - 140px) !important;
  height: 420px !important;
  min-height: 420px !important;
  max-height: 420px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* All slides stay mounted and fade. No blink. */
body .products-section .slide {
  position: absolute !important;
  inset: 0 !important;

  display: grid !important;
  grid-template-columns: 520px 420px !important;
  column-gap: 46px !important;

  justify-content: center !important;
  align-items: center !important;

  width: 100% !important;
  height: 420px !important;
  min-height: 420px !important;
  max-height: 420px !important;

  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;

  transition: opacity 520ms ease-in-out, visibility 520ms ease-in-out !important;
}

body .products-section .slide.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

/* Image block: large but bounded */
body .products-section .product-slide-image-frame {
  width: 520px !important;
  height: 380px !important;
  min-width: 520px !important;
  min-height: 380px !important;
  max-width: 520px !important;
  max-height: 380px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;
  border-radius: 7px !important;
  background: transparent !important;

  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

body .products-section .product-slide-image-frame img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 7px !important;
  background: transparent !important;

  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

/* Text block: fixed width, centered, not stretching into arrow */
body .products-section .slide .text {
  width: 420px !important;
  min-width: 420px !important;
  max-width: 420px !important;

  height: 380px !important;
  min-height: 380px !important;
  max-height: 380px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #000 !important;
  text-align: center !important;

  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

body .products-section .slide .text h2 {
  color: #000 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

body .products-section .slide .text p {
  color: #000 !important;
  width: 100% !important;
  max-width: 420px !important;
  font-size: 15.5px !important;
  line-height: 1.42 !important;
  margin: 5px 0 !important;
  padding: 0 !important;
}

body .products-section .button-container {
  margin-top: 22px !important;
}

body .products-section .view-products-button {
  display: inline-block !important;
  padding: 12px 24px !important;
  background: #2f5db8 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Arrows: balanced on both sides of the whole slideshow container */
body .products-section .product-slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  z-index: 80 !important;

  width: 44px !important;
  height: 64px !important;

  display: grid !important;
  place-items: center !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  color: #fff !important;
  font-size: 54px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55) !important;

  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body .products-section .product-slider-arrow.prev {
  left: -72px !important;
  right: auto !important;
}

body .products-section .product-slider-arrow.next {
  right: -72px !important;
  left: auto !important;
}

body .products-section .product-slider-arrow:hover {
  background: rgba(0, 0, 0, 0.22) !important;
  border-radius: 4px !important;
}

/* Laptop */
@media (max-width: 1250px) {
  body .products-section .slideshow-container {
    width: 1060px !important;
    max-width: calc(100vw - 110px) !important;
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
  }

  body .products-section .slide {
    grid-template-columns: 480px 370px !important;
    column-gap: 42px !important;
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
  }

  body .products-section .product-slide-image-frame {
    width: 480px !important;
    height: 350px !important;
    min-width: 480px !important;
    min-height: 350px !important;
    max-width: 480px !important;
    max-height: 350px !important;
  }

  body .products-section .slide .text {
    width: 370px !important;
    min-width: 370px !important;
    max-width: 370px !important;
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
  }

  body .products-section .slide .text p {
    max-width: 370px !important;
    font-size: 14.5px !important;
  }

  body .products-section .product-slider-arrow.prev {
    left: -56px !important;
  }

  body .products-section .product-slider-arrow.next {
    right: -56px !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  body .products-section {
    min-height: 0 !important;
    padding: 28px 0 48px !important;
  }

  body .products-section .slideshow-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 660px !important;
    min-height: 660px !important;
    max-height: none !important;
  }

  body .products-section .slide {
    grid-template-columns: 1fr !important;
    row-gap: 20px !important;
    height: 660px !important;
    min-height: 660px !important;
    max-height: none !important;
    align-content: center !important;
  }

  body .products-section .product-slide-image-frame {
    width: min(92vw, 560px) !important;
    height: min(92vw, 560px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: min(92vw, 560px) !important;
    max-height: min(92vw, 560px) !important;
    margin: 0 auto !important;
  }

  body .products-section .slide .text {
    width: min(92vw, 560px) !important;
    min-width: 0 !important;
    max-width: min(92vw, 560px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
  }

  body .products-section .slide .text p {
    max-width: min(92vw, 560px) !important;
  }

  body .products-section .product-slider-arrow.prev {
    left: 8px !important;
  }

  body .products-section .product-slider-arrow.next {
    right: 8px !important;
  }
}

/* ==========================================================
   OBJECT POSITION FIX
   Force exact positions:
   arrow | image | gap | text | arrow
   ========================================================== */

body .products-section .slideshow-container {
  width: 1220px !important;
  max-width: calc(100vw - 120px) !important;
  height: 430px !important;
  min-height: 430px !important;
  max-height: 430px !important;
}

/* Stop grid from spreading objects apart */
body .products-section .slide,
body .products-section .slide.visible {
  position: absolute !important;
  inset: 0 !important;

  display: block !important;
  width: 100% !important;
  height: 430px !important;
  min-height: 430px !important;
  max-height: 430px !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;

  transition: opacity 520ms ease-in-out, visibility 520ms ease-in-out !important;
}

body .products-section .slide.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

/* IMAGE: move right from the far-left */
body .products-section .product-slide-image-frame {
  position: absolute !important;
  left: 130px !important;
  top: 25px !important;

  width: 560px !important;
  height: 380px !important;

  min-width: 560px !important;
  min-height: 380px !important;
  max-width: 560px !important;
  max-height: 380px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
  border-radius: 7px !important;
  background: transparent !important;
}

/* Keep the current old-site-style image fill */
body .products-section .product-slide-image-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 7px !important;
}

/* TEXT: move left, closer to image */
body .products-section .slide .text {
  position: absolute !important;
  left: 760px !important;
  top: 25px !important;

  width: 390px !important;
  min-width: 390px !important;
  max-width: 390px !important;

  height: 380px !important;
  min-height: 380px !important;
  max-height: 380px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;

  margin: 0 !important;
  padding: 0 !important;

  text-align: center !important;
  color: #000 !important;
}

body .products-section .slide .text h2 {
  font-size: 28px !important;
  font-weight: 800 !important;
  margin: 0 0 24px !important;
}

body .products-section .slide .text p {
  width: 100% !important;
  max-width: 390px !important;
  font-size: 15px !important;
  line-height: 1.42 !important;
  margin: 5px 0 !important;
}

/* ARROWS: push away from objects */
body .products-section .product-slider-arrow.prev {
  left: 30px !important;
  right: auto !important;
}

body .products-section .product-slider-arrow.next {
  right: 30px !important;
  left: auto !important;
}

/* Laptop */
@media (max-width: 1250px) {
  body .products-section .slideshow-container {
    width: 1040px !important;
    max-width: calc(100vw - 100px) !important;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
  }

  body .products-section .slide,
  body .products-section .slide.visible {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
  }

  body .products-section .product-slide-image-frame {
    left: 95px !important;
    top: 25px !important;
    width: 500px !important;
    height: 350px !important;
    min-width: 500px !important;
    min-height: 350px !important;
    max-width: 500px !important;
    max-height: 350px !important;
  }

  body .products-section .slide .text {
    left: 640px !important;
    top: 25px !important;
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
  }

  body .products-section .slide .text p {
    max-width: 340px !important;
    font-size: 14.5px !important;
  }

  body .products-section .product-slider-arrow.prev {
    left: 20px !important;
  }

  body .products-section .product-slider-arrow.next {
    right: 20px !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  body .products-section .slideshow-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 660px !important;
    min-height: 660px !important;
  }

  body .products-section .slide,
  body .products-section .slide.visible {
    height: 660px !important;
    min-height: 660px !important;
  }

  body .products-section .product-slide-image-frame {
    position: absolute !important;
    left: 50% !important;
    top: 20px !important;
    transform: translateX(-50%) !important;

    width: min(92vw, 560px) !important;
    height: min(92vw, 560px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: min(92vw, 560px) !important;
    max-height: min(92vw, 560px) !important;
  }

  body .products-section .slide .text {
    position: absolute !important;
    left: 50% !important;
    top: calc(min(92vw, 560px) + 45px) !important;
    transform: translateX(-50%) !important;

    width: min(92vw, 560px) !important;
    min-width: 0 !important;
    max-width: min(92vw, 560px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body .products-section .product-slider-arrow.prev {
    left: 8px !important;
  }

  body .products-section .product-slider-arrow.next {
    right: 8px !important;
  }
}
