@media screen and (max-width: 2500px){
  .ch-wallpapers {
    grid-template-columns: repeat(5, calc((100% - (20px * 4)) / 5));
  }
}

@media screen and (max-width: 2000px){
  .ch-wallpapers {
    grid-template-columns: repeat(4, calc((100% - (20px * 3)) / 4));
  }
}

@media screen and (max-width: 1600px){
  .ch-wallpapers {
    grid-template-columns: repeat(3, calc((100% - (20px * 2)) / 3));
  }
}

@media screen and (max-width: 1200px){
  .ch-wallpapers {
    grid-template-columns: repeat(2, calc((100% - (20px * 1)) / 2));
  }
}

@media screen and (max-width: 900px){
  body.ch-dialog--opened {
    padding-right: 0;
  }

  .ch-slider {
    height: 500px;
  }

  .ch-wallpapers {
    grid-template-columns: repeat(2, calc((100% - 5px) / 2));
    grid-gap: 5px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ch-catalog-filter {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
    /*display: none;*/
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
  }

  .ch-catalog-filter--opened {
    /*display: flex;*/
    visibility: visible;
    opacity: 1;
  }

  .ch-custom-select__found-info {
    /*display: none!important;*/
  }

  .ch-catalog-filter .ch-button-icon {
    display: flex;
    justify-content: center;
  }

  .ch-catalog-filter__actions {
    padding-left: 20px;
    padding-right: 20px;
    justify-content: space-between;
  }

  .ch-catalog-filter__c-btn {
    display: flex;
  }

  .ch-catalog-filter__c-selects {
    padding-left: 20px;
    padding-right: 20px;

    display: grid;
    grid-template-columns: repeat(2, calc((100% - 10px) / 2));
    grid-gap: 10px;
  }

  .ch-catalog {
    display: flex;
    flex-direction: column;
  }

  .ch-catalog__header {
    padding: 10px;
    align-items: center;
    column-gap: 10px;
  }

  .ch-catalog__header .ch-button {
    display: flex;
  }

  .ch-catalog__sort-items {
    justify-content: center;
  }

  .ch-catalog-pagination {
    padding: 40px 10px;
  }

  .ch-wallpapers__swiper-button-next.swiper-button-next,
  .ch-wallpapers__swiper-button-prev.swiper-button-prev {
    display: none;
  }

  .ch-dropdown__list {
    right: 0;
    left: auto;
  }

  .points-of-sale {
    flex-direction: column;
  }

  .ch-map {
    width: 100%;
    min-height: 445px;
    height: calc(100dvh - 63px - 123px);
    max-height: 600px;
  }

  .ch-points-filter-container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ch-points-filter .ch-select__body .ch-button-icon {
    display: flex;
  }

  .ch-search {
    display: flex;
    position: relative;
  }

  .ch-search::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    border-bottom: 1px solid var(--ch-select-option-selected-bg);
  }

  .ch-select__wrapper {
    border: 1px var(--ch-select-option-selected-bg) solid;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .ch-select__body {
    padding: 15px 10px;
    background-color: var(--ch-white);
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
  }

  .ch-points-filter .ch-button {
    display: flex;
    align-self: center;
  }

  .ch-points-filter .ch-select--opened .ch-select__options {
    z-index: 2;
    max-height: 100%;
  }

  .ch-points-filter .ch-select__body {
    transform: translateX(-100%);
    transition: transform .2s linear;
  }

  .ch-select.ch-select--opened .ch-select__body {
    transform: translateX(0);
  }

  .ch-points-filter .ch-select.ch-select--opened {
    display: flex;
  }

  body.ch-select--opened {
    overflow: hidden;
  }

}

@media screen and (max-width: 600px){
  .ch-slider {
    height: 300px;
  }

  .ch-catalog__header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 20px;
  }

  .ch-catalog__sort-items {
    justify-content: space-between;
    grid-row-start: 2;
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .ch-catalog__sort-btn {
    justify-self: end;
  }

  .ch-catalog__header .ch-button {
    width: fit-content;
  }

  .ch-wallpapers__item-info {
    row-gap: 10px;
    justify-content: center;
  }

  .ch-wallpapers__item-hr {
    margin-top: 3px;
    margin-bottom: 3px;
  }
}

@media screen and (max-width: 500px){
  .ch-wallpapers {
    grid-template-columns: 100%;
  }

  .ch-catalog-filter__c-selects {
    display: flex;
    flex-direction: column;
  }
}