.my_grid {
  display: grid;
  grid-gap: 16px;
  grid-template-columns: repeat(8, calc((100% - 16px * 7) / 8));
  grid-auto-flow: dense;
  justify-content: center;
}
@media screen and (max-width: 1230px) {
  .my_grid {
    grid-template-columns: repeat(6, calc((100% - 16px * 5) / 6));
  }
}
@media screen and (max-width: 1025px) {
  .my_grid {
    grid-template-columns: repeat(5, calc((100% - 16px * 4) / 5));
  }
}
@media screen and (max-width: 768px) {
  .my_grid {
    grid-template-columns: repeat(3, calc((100% - 8px * 2) / 3));
    grid-gap: 8px;
  }
}
@media screen and (max-width: 400px) {
  .my_grid {
    margin-top: 2.5vw;
    grid-template-columns: repeat(2, calc((100% - 2vw) / 2));
    grid-gap: 2vw;
  }
}
.grid_item {
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #e2e2e2;
  transition: border-color 1s;
  padding: 2px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.grid_item .grid_icon {
  display: flex;
  position: relative;
  height: 0;
  overflow: hidden;
  padding-bottom: 60%;
  border-radius: 5px 5px 0 0;
}
.grid_item .grid_icon img {
  position: absolute;
  top: 0;
  width: 100%;
}
.grid_item .grid_title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #434343;
  font-size: 12px;
  text-align: center;
  margin: 5px;
}
.grid_item .grid_title span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media screen and (max-width: 400px) {
  .grid_item {
    border-radius: 1.25vw;
    border-width: 0.25vw;
    padding: 0.5vw;
  }
  .grid_item .grid_icon {
    border-radius: 1.25vw 1.25vw 0 0;
  }
  .grid_item .grid_title {
    font-size: 3vw;
    margin: 1.25vw;
  }
}
.grid_item:hover {
  border-color: #a3a3a3;
}
