/* ----------
  TOPICS
------------*/

/* TOP */
.top-topics-grey {
  background-color: #f7f7f7;
  padding: 60px 60px 80px;
}
@media screen and (max-width: 768px) {
  .top-topics-grey {
    padding: 32px 40px 36px;
  }
}
.top-topics-lead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-topics-text {
  line-height: 2;
}
.top-topics-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
}

.top-topic-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.top-topic-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 12px;
}

.top-topic-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.top-topic-card__date {
  display: block;
  font-family: "Lato", serif;
  color: #747d81;
  font-size: 14px;
  font-weight: 300;
}

.top-topic-card__title {
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
  font-size: 16px;
}

@media screen and (max-width: 980px) {
  .top-topic-card__title {
    font-size: 14px;
  }
}
@media screen and (max-width: 768px) {
  .top-topic-card__title {
    padding-bottom: 1em;
  }
}

/* hover */
.top-topic-card a:hover .top-topic-card__img {
  transform: scale(1.1);
}
.top-topic-card a:hover .top-topic-card__title {
  text-decoration: underline;
}

/* SP */
@media screen and (max-width: 768px) {
  .top-topics-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .top-topics-list .top-topic-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .top-topics-list .top-topic-card:first-child {
    margin-left: 0;
  }
}

/* Archive */
.topics-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 48px;
  column-gap: 32px;
  max-width: 844px;
  margin-inline: auto;
  margin-bottom: 32px;
}
@media screen and (max-width: 767px) {
  .topics-list {
    grid-template-columns: 1fr;
    row-gap: 48px;
    column-gap: 0;
    width: 80%;
  }
}

.topics-list article > a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.topics-list article a:hover .topic-card__img {
  transform: scale(1.1);
}
.topics-list article a:hover .topic-card__title {
  text-decoration: underline;
}

.topic-card__img {
  transition: transform 0.25s ease-in-out;
}
.topic-card__title {
  transition: text-decoration-color 0.25s ease-in-out;
}

.topic-card__thumb {
  margin: 0 0 10px;
}
.topic-card__date {
  display: block;
  font-family: "Lato", serif;
  color: #747d81;
  font-size: 14px;
  font-weight: 300;
}
.topic-card__title {
  margin: 0;
  font-weight: 400;
}
.topic-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.topic-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Single */
.single-topics__content h2 {
  color: #1a1a1a;
  padding-bottom: 24px;
}
.single-topics__content h4 {
  margin-block: 32px 20px;
}

.single-topics__content ul {
  margin-top: 24px;
}
.single-topics__content li {
  margin-block: 1em;
  list-style: none;
  position: relative;
  padding-left: 14px;
}
.single-topics__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: #747d81;
  border-radius: 50%;
}
.single-topics__content .wp-caption {
  display: block;
  max-width: 100%;
}
.single-topics__content .wp-caption-text {
  margin-block: 10px 40px;
  font-size: 12px;
  color: #747d81;
}

.single-topics__content a {
  position: relative;
}
.single-topics__content a::after {
  position: absolute;
  content: "▶";
  display: block;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
}
.single-topics__content a[target="_blank"]::after {
  content: "";
  background: no-repeat center/contain url(assets/img/icon-link.svg);
  display: inline-block;
  width: 1em;
  height: 1em;
}
.single-topics__content .box {
  margin-block: 40px;
  padding: 32px;
  background-color: #f7f7f7;
}
@media screen and (max-width: 767px) {
  .single-topics__content .box {
    margin-block: 32px;
    padding: 20px;
  }
}
.single-topics__content .box > :first-child {
  margin-top: 0;
}

.single-topics__content .box > :last-child {
  margin-bottom: 0;
}

.pb120 {
  padding-bottom: 120px;
}
