@charset "UTF-8";

/* TOPICS slider: isolated styles for the top page WordPress posts. */

.topics-block {
  width: 100%;
  overflow: hidden;
}

.category-title#topics {
  text-align: center;
  letter-spacing: 3px;
  margin-top: 130px;
}

.category-title#topics img {
  width: auto;
  height: 15px;
}

.topics-slider-section {
  width: 100%;
  margin-bottom: 103px;
}

.topics-slider {
  position: relative;
  width: 100%;
  --topics-arrow-top: 0px;
}

.topics-slider__viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.topics-slides {
  display: flex;
  gap: var(--topics-gap);
  width: max-content;
  will-change: transform;
  transition: transform 800ms ease;
}

.topics-slides.is-dragging {
  transition: none;
}

.topic-item {
  flex: 0 0 var(--topics-item-width);
  width: var(--topics-item-width);
}

.topic-item a {
  display: block;
  color: #1b1b1b;
  text-decoration: none;
}

.topic-item a:visited {
  color: #1b1b1b;
}

.topic-item a:hover {
  color: #888;
}

.topic-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 77 / 86;
  object-fit: cover;
  border-radius: 0;
}

.topic-title-text {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.topics-arrow {
  position: absolute;
  z-index: 3;
  display: inline-block;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  background: #fff;
  opacity: 0.5;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.5s;
  top: var(--topics-arrow-top);
  transform: translateY(-50%);
}

.topics-arrow::before {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2.5px solid #999;
  border-right: 2.5px solid #999;
  transition: 0.5s;
}

.topics-arrow:hover {
  background: #fff;
  opacity: 0.75;
}

.topics-arrow:hover::before {
  border-color: #999;
}

.topics-arrow-left::before {
  top: 16px;
  left: 18px;
  transform: rotate(-135deg);
}

.topics-arrow-right::before {
  top: 16px;
  right: 18px;
  transform: rotate(45deg);
}

.topics-arrow:disabled {
  display: none;
}

.topics-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
}

.topics-pagination__button {
  display: block;
  width: 35px;
  height: 2px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  background: #ccc;
  border-radius: 0;
  cursor: pointer;
}

.topics-pagination__button.is-active {
  background: #838783;
}

.topics-loading,
.topics-error {
  width: 100vw;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
}

@media screen and (max-width: 480px) {
  .category-title#topics {
    margin-bottom: 48px;
  }

  .topics-slider {
    --topics-gap: 20px;
    --topics-item-width: 70vw;
  }

  .topics-slider-section {
    margin-bottom: 113px;
  }

  .topics-arrow-left {
    left: 10px;
  }

  .topics-arrow-right {
    right: 10px;
  }
}

@media screen and (min-width: 481px) and (max-width: 736px) {
  .category-title#topics {
    margin-bottom: 48px;
  }

  .topics-slider {
    --topics-gap: 30px;
    --topics-item-width: calc((80vw - 30px) / 2);
  }

  .topics-slider-section {
    margin-bottom: 113px;
  }

  .topics-arrow-left {
    left: 10px;
  }

  .topics-arrow-right {
    right: 10px;
  }
}

@media screen and (min-width: 737px) {
  .category-title#topics {
    margin-bottom: 75px;
  }

  .topics-slider {
    --topics-gap: 30px;
    --topics-item-width: calc((min(100vw, 1190px) - 60px) / 3);
  }

  .topics-slider-section {
    margin-bottom: 115px;
  }

  .topics-arrow-left {
    left: max(10px, calc((100vw - 1190px) / 2 + 10px));
  }

  .topics-arrow-right {
    right: max(10px, calc((100vw - 1190px) / 2 + 10px));
  }

  .topics-slider__viewport {
    max-width: 1190px;
    margin: 0 auto;
  }
}
