

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow: hidden;
}

body {
  display: flex;
  flex-wrap: wrap;
  background-color: #f0eeef;
  height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  overflow-y: auto;
  min-width: 260px;
}

.list {
  flex-basis: 100%;
  flex-grow: 0;
  height: 200px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.list h2 {
  flex: 0 0 100%;
  height: 15%;
  max-height: 15%;
  text-align: center;
  color: #f2f2f2;
  background-color: #e71144;
  display: flex;
  justify-content: center;
  align-items: center;
}
.list .items_ {
  /*Is scrolling Zone. It's about 70% Sharing Vertical size with "List" and "emptyvertical space". And it takes 100% width */
  flex: 0 0 100%;
  height: 70%;
  max-height: 70%;
  width: 100%;
  align-self: flex-end;
  /*
      display:grid;
      grid-template-columns: repeat(auto-fill,minmax(200px,auto));
      grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
      grid-auto-rows: 100%;
      grid-auto-flow: column;
      */
  display: flex;
  grid-gap: 3%;
  overflow-x: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.list .items_ li {
  list-style-type: none;
}
.list .items_ .item {
  flex: 0 0 29.5%;
}
.list .items_ .item:first-child {
  margin-left: 3%;
}
.list .items_ .item:last-child {
  margin-right: 3%;
}
.list .items_ .item a {
  height: 100%;
  max-height: 100%;
  background-color: orange;
  background-color: #f0eeef;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 29.5%;
  max-width: 100%;
  overflow: clip;
  text-decoration: none;
}
.list .items_ .item a .item_image {
  flex: 0 0 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 80%;
  /*! padding: 0 calc(11.7% + 0.7px); */
}
.list .items_ .item a .item_image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
}
.list .items_ .item a .item_text {
  flex: 0 0 20%;
  height: 20%;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: black;
  word-break: break-word;
  font-size: xx-large;
  /* padding-top: 2%; */
  padding-top: 3%;
}

@media screen and (min-width: 450px) and (max-width: 600px) {
  .list {
    height: 160px;
    height: 250px;
  }
  .list h2 {
    font-size: 1.3rem;
  }

  .list .items_ .item a .item_text {
    /* flex: 0 0 20%;
    height: 20%;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: black; */
    word-break: break-word;
    font-size: x-large;
    /* padding-top: 2%; */
    padding-top: 2%;
  }
}
@media screen and (min-width: 601px) and (max-width: 1021px) {
  .list {
    height: 364px;
  }
  .list h2 {
    font-size: 1.3rem;
  }
}
@media screen and (min-width: 200px) and (max-width: 449px) {
  .list {
    height: 160px;
  }
  .list .items_ .item a .item_text {
    font-size: 0.8rem;
    font-size: 1rem;
  }
}
@media screen and (min-width: 1022px) {
  .list {
    height: 289px;
  }
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
  /* Safari only styles */
  .list h2 {
    font-size: 1rem; /* increase font size for h2 */
  }}