@charset 'UTF-8';

.related-page-block {
  display: block;
  margin: 64px auto;
  background-color: #F3F3F3;
  border-radius: 8px;
  padding: 48px;
  color: black !important;
  width: calc(100% - 80px);
  max-width: 832px;
}

.l-single__container .related-page-block {
  width: 100%;
}

.related-page-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.related-thumb {
  width: 48%;
  aspect-ratio: 19 / 10;
  max-height: 220px;
  overflow: hidden;
  border-radius: 8px;
}

.related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  margin-left: auto;
  transition-duration: 0.2s;
  background: #FFF;
  object-fit: cover;
}

.related-thumb::after{
  background-color: #FFF;
}

@media (any-hover: hover) {
  a.related-page-block:hover {
    text-decoration: none !important;
  }

  .related-page-block:hover .related-title {
    text-decoration: underline;
  }

  .related-page-block:hover .related-thumb::before {
    opacity: 0.2;
  }

  .related-page-block:hover .related-thumb img {
    transform: scale(1.1);
  }
}

.related-content {
  width: calc(52% - 24px);
}

.related-title {
  font-size: 18px !important;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 32px !important;
}

.related-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
  .related-page-block {
    padding: 48px;
    margin: 32px auto;
    width: calc(100% - 28px);
  }

  .related-page-inner {
    flex-direction: column;
    gap: 24px;
  }

  .related-thumb,
  .related-content {
    width: 100%;
  }

  .related-thumb img {
    width: 100%;
    margin-left: 0;
  }

}
