/* CSS for Tiny Portrait Screens (e.g. iPhone 5, Galaxy Note 3) */
@media only screen and (min-width: 300px) {
  .treatments_page_2_container {
    height: 92vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-auto-rows: auto;
    grid-template-areas:
      "bacial_card bacial_card bacial_card"
      "glow_card glow_card glow_card"
      "rejuvenate_card rejuvenate_card rejuvenate_card";
    row-gap: 3vh;
    margin-top: 5.5vh;
  }

  @supports (-webkit-overflow-scrolling: touch) {
    /* CSS specific to iOS devices */
    .treatments_page_2_container {
      margin-top: 10vh;
    }
  }
}

/* CSS for Small Portrait Screens (e.g. iPhone 6/7/8, iPhone X) */
@media only screen and (min-width: 360px) {
  .treatments_page_2_container {
    row-gap: 3.5vh;
    margin-top: 2vh;
  }
}

/* Additional CSS for Mobile Phones with Even Smaller Heights */
@media only screen and (min-width: 360px) and (max-device-height: 700px) {
  .treatments_page_2_container {
    row-gap: 4.5vh;
    margin-top: 12.5vh;
  }
}

/*CSS for Small Portrait Phones Phones with Smaller Heights */
@media only screen and (min-width: 360px) and (max-device-height: 650px) {
  @supports not (-webkit-overflow-scrolling: touch) {
    /* CSS for other than iOS devices */
    .treatments_page_2_container {
      row-gap: 4.5vh;
      margin-top: 17vh;
    }
  }
}

/* Additional CSS for Mobile Phones with Smaller Heights */
@media only screen and (min-width: 360px) and (min-device-height: 701px) {
  .treatments_page_2_container {
    row-gap: 5vh;
    margin-top: 9vh;
  }
}

/* CSS for Pixel 4, Galaxy Note 9 */
@media only screen and (min-width: 360px) and (min-device-height: 740px) {
  @supports not (-webkit-overflow-scrolling: touch) {
    /* CSS for other than iOS devices */
    .treatments_page_2_container {
      row-gap: 5vh;
      margin-top: 11vh;
    }
  }
}

/* CSS for Small Portrait Screens (e.g. iPhone 6/7/8, iPhone X) */
@media only screen and (min-width: 375px) {
  .treatments_page_2_container {
    row-gap: 3.5vh;
    margin-top: 1.9vh;
  }
}

/* Additional CSS for Small Portrait Screens with Smaller Heights */
@media only screen and (min-width: 375px) and (max-device-height: 700px) {
  .treatments_page_2_container {
    row-gap: 5vh;
    margin-top: 12vh;
  }

  @supports (-webkit-overflow-scrolling: touch) {
    /* CSS specific to iOS devices */
    .treatments_page_2_container {
      margin-top: 15vh;
    }
  }
}

/* Additional CSS for Mobile Phones with Slightly Larger Heights */
@media only screen and (min-width: 375px) and (min-device-height: 801px) {
  @supports (-webkit-overflow-scrolling: touch) {
    /* CSS specific to iOS devices */
    .treatments_page_2_container {
      row-gap: 3.5vh;
      margin-top: 5vh;
    }
  }
}

/* CSS for Average Portrait Screens (e.g. iPhone 11) */
@media only screen and (min-width: 410px) {
  .treatments_page_2_container {
    row-gap: 1.5rem;
    margin-top: 0rem;
  }
}

/* Additional CSS for Mobile Phones with Smaller Heights */
@media only screen and (min-width: 410px) and (max-device-height: 800px) {
  .treatments_page_2_container {
    row-gap: 4vh;
    margin-top: 6vh;
  }
}

/* Additional CSS for iPhones 6+, 6s+, 7+, 8+ */
@media only screen and (min-width: 410px) and (min-device-height: 700px) and (max-device-height: 800px) {
  @supports (-webkit-overflow-scrolling: touch) {
    .treatments_page_2_container {
      margin-top: 8.8vh;
    }
  }
}

/* iPhone 11 */
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) {
  @supports (-webkit-overflow-scrolling: touch) {
    .treatments_page_2_container {
      margin-top: 0.2vh;
      row-gap: 3vh;
    }
  }
}

/* iPhone XS Max */
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {
  @supports (-webkit-overflow-scrolling: touch) {
    .treatments_page_2_container {
      margin-top: 0vh;
      row-gap: 2.5vh;
    }
  }
}

/* Google Pixel 4XL */
@media screen and (device-width: 480px) and (device-height: 1014px) {
  @supports not (-webkit-overflow-scrolling: touch) {
    .treatments_page_2_container {
      row-gap: 4vh;
    }
  }
}

/* CSS for Tablet Portrait / Mobile Landscape */
@media only screen and (min-width: 600px) {
  .treatments_page_2_container {
    height: 85vh;
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    grid-template-areas:
      "bacial_card bacial_card bacial_card glow_card glow_card glow_card"
      "bacial_card bacial_card bacial_card glow_card glow_card glow_card";
    margin-left: 1.6rem;
    margin-right: 1.6rem;
    margin-top: 6rem;
  }
}

/* CSS for Tablets in Portrait Mode */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .treatments_page_2_container {
    height: 50vh;
    grid-template-columns: repeat(auto-fit, minmax(10%, 1fr));
    margin-top: -2.8rem;
  }
}

/* CSS for Larger Tablets in Portrait Mode */
@media only screen and (min-width: 1024px) and (max-device-height: 1400px) {
  .treatments_page_2_container {
    margin-top: -3.5rem;
  }
}

/* CSS for laptops and regular-sized desktops */
@media only screen and (min-width: 1200px) {
  .treatments_page_2_container {
    height: 28.6666667vh;
    grid-template-columns: repeat(auto-fit, minmax(33.35%, 1fr));
    grid-template-areas:
      "glow_card glow_card rejuvenate_card rejuvenate_card quench_card quench_card"
      "glow_card glow_card rejuvenate_card rejuvenate_card quench_card quench_card";
    margin-left: 1.6rem;
    margin-right: 1.6rem;
    margin-top: 1.5rem;
    row-gap: 0;
  }
}

/* CSS for Slightly Smaller Medium Laptops (e.g. Chromebook) */
@media only screen and (min-width: 1360px) and (max-width: 1399px) and (max-device-height: 800px) {
  .treatments_page_2_container {
    grid-template-columns: repeat(auto-fit, minmax(25.28%, 1fr));
    margin-top: 10vh;
  }
}

/* CSS for Medium Laptops */
@media only screen and (min-width: 1400px) {
  .treatments_page_2_container {
    grid-template-columns: repeat(auto-fit, minmax(15%, 1fr));
    margin-top: 1rem;
  }

  /* Safari 7.1+ */

  _::-webkit-full-page-media,
  _:future,
  .treatments_page_2_container {
    grid-template-columns: repeat(auto-fit, minmax(33.35%, 1fr));
  }
}

/* CSS for Medium Laptops */
@media only screen and (min-width: 1400px) and (max-width: 1500px) and (max-device-height: 900px) {
  .treatments_page_2_container {
    grid-template-columns: repeat(auto-fit, minmax(33.35%, 1fr));
  }
}

/* CSS for Big Desktops */
@media only screen and (min-width: 1800px) {
  .treatments_page_2_container {
    margin-top: 0.4rem;
  }

  /* Safari Only */
  @media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
      .treatments_page_2_container {
        margin-top: 0rem;
      }
    }
  }
}

/* CSS for Huge Desktops */
@media only screen and (min-width: 2200px) {
  .treatments_page_2_container {
    margin-top: 0rem;
    row-gap: 1.5rem;
  }
}
