.index-page {
  background-color: #ececf1;
}

.main {
  display: flex;
  justify-content: center;
}

.detail-list {
  max-width: 798px;
  display: grid;
  gap: 15px 20px;
  grid-template-columns: repeat(2, 1fr);
}
.detail-list .item {
  background-color: #fff;
  box-shadow: 0 10px 10px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  color: unset;
}
@media screen and (min-width: 640px) {
  .detail-list .item.first-card {
    grid-column: span 2;
    display: flex;
  }
  .detail-list .item.first-card h2 {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    width: 35%;
    flex-shrink: 0;
    height: auto;
  }
  .detail-list .item.first-card img {
    aspect-ratio: 492 / 274;
    max-width: 492px;
  }
}
.detail-list .item:hover h2 {
  text-decoration: underline;
}
.detail-list .item img {
  aspect-ratio: 492 / 274;
  width: 100%;
}
.detail-list .item h2 {
  font-size: 18px;
  padding: 15px;
  font-weight: unset;
  margin: 0;
  height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.right-module {
  width: 352px;
  margin-left: 20px;
  background-color: #fff;
  padding: 26px;
}
.right-module .detail-list .item h2 {
  padding: 0;
  height: 70px;
}

.pagination {
  margin: 30px 0;
}

@media screen and (max-width: 1170px) {
  .right-module {
    display: none;
  }
}
@media screen and (max-width: 640px) {
  .detail-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
