.horizontal-list-wrap {
  position: relative;
}

.horizontal-list-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.horizontal-list-arrow[data-dir="left"] {
  left: 0;
}

.horizontal-list-arrow[data-dir="right"] {
  right: 0;
}

.horizontal-list-arrow-icon {
  width: 18px;
  height: 34px;
  display: block;
}

.horizontal-list-arrow[data-dir="right"] .horizontal-list-arrow-icon {
  transform: rotate(180deg);
}

.horizontal-list-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.horizontal-list {
  display: flex;
  align-items: stretch;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 24px 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.horizontal-list li {
  flex: 0 0 200px;
  overflow: hidden;
  scroll-snap-align: start;
}

.horizontal-list li a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.horizontal-list-thumb {
  position: relative;
  width: 194px;
  height: 133px;
  border-radius: 10px;
  overflow: hidden;
}

.horizontal-list-thumb::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: 25px;
  pointer-events: none;
}

/* .section-b .horizontal-list-thumb::after {
  background: url("../img/picfrm_b194.7ca5592fcbbb.png") no-repeat left bottom / cover;
  background-size: 194px 25px;
}

.section-o .horizontal-list-thumb::after {
  background: url("../img/picfrm_o194.8509f2caaacd.png") no-repeat left bottom / cover;
  background-size: 194px 25px;
} */

.horizontal-list li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.horizontal-list li a:hover,
.horizontal-list li a:focus {
  transform: translateY(-2px);
}

.horizontal-list li a span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-list .article-title {
  font-size: 20px;
}

.horizontal-list .article-intro {
  min-height: 45px;
}

.horizontal-list .article-date {
  color: #0e1b4266;
}

.horizontal-list .empty {
  flex: 1 0 auto;
  text-align: center;
  padding: 24px;
  color: #666;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 12px;
}

@media (min-width: 768px) and (max-width: 1023px), (max-width: 574px) {
  .horizontal-list {
    gap: 16px;
  }

  .horizontal-list-thumb {
    width: 139px;
    height: 110px;
  }

  .section-b .horizontal-list-thumb::after {
    background: url("../img/picfrm_b139.fd6086279140.png") no-repeat left bottom / cover;
    background-size: 139px 25px;
  }

  .section-o .horizontal-list-thumb::after {
    background: url("../img/picfrm_o139.62d5f8dfd6f7.png") no-repeat left bottom / cover;
    background-size: 139px 25px;
  }

  .horizontal-list a  > div:nth-of-type(3) {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px){
  .horizontal-list li {
    flex: 0 0 145px;
  }

  .horizontal-list .article-title {
    width: 145px;
  }
}

@media (min-width: 575px) and (max-width: 767px) {
  .horizontal-list {
    flex-direction: column;
    gap: 16px;
    overflow-x: visible;
  }

  .horizontal-list li {
    flex: 0 0 auto;
  }

  .horizontal-list li a {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 16px;
    row-gap: 6px;
  }

  .horizontal-list li a > div:nth-of-type(1) {
    grid-row: 1 / span 3;
  }

  .horizontal-list li a > div:nth-of-type(2),
  .horizontal-list li a > div:nth-of-type(3),
  .horizontal-list li a > div:nth-of-type(4) {
    grid-column: 2;
  }
}

@media (max-width: 574px) {
  .horizontal-list-arrow {
    display: none;
  }

  .horizontal-list {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .horizontal-list li {
    flex: 0 0 142px;
  }

  .horizontal-list .article-title {
    font-size: 16px;
  }

  .horizontal-list .article-date {
    font-size: 12px;
  }
}
