/*Topix */
.up-d_topix-wrapper,
[data-element-id] .up-d_topix-wrapper > div[data-collection-list-content] {
  display: flex;
  max-width:1170px;
  flex-wrap: wrap;
  gap: 16px;
}

.up-d_topix-wrapper > .-w-more_btn.-w-more_btn_bottom {
  margin: 1rem auto 4rem;
}

.up-d_topix-content {
  width: calc(25% - 12px);
  list-style: none;
}

.up-d_topix-content a {
  text-decoration: none;
  color: #1c0f08;
}

.up-d_topix-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.up-d_topix-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

.up-d_pagination {
  margin-top: 60px;
}

.up-d_pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-family: Arial, sans-serif;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.up-d_pagination-item {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.up-d_pagination-item > a,
.up-d_pagination-item > span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.up-d_pagination-item:hover {
  background-color: #f5f5f5;
}

.up-d_pagination-item.is-current {
  background-color: #333;
  border-color: #333;
  cursor: default;
  pointer-events: none;
}

.up-d_pagination-item.is-current > span {
  color: #fff;
}

.up-d_pagination-item.up-d_pagination-prev > a,
.up-d_pagination-item.up-d_pagination-next > a {
  font-weight: bold;
}

@media (max-width: 768px) {
  .up-d_topix-content {
    width: calc(50% - 8px);
  }
}



/*Topix-detail */
.up-d_tpx-dtl-wrapeer {
  max-width: 1170px;
  margin: 56px 0;
}

.up-d_tpx-dtl-main {
  max-width: 800px;
  margin: 0 auto 32px;
}

.up-d_tpx-dtl-mainTtl {
  font-size: 2.5rem;
  font-weight: 700;
}
.up-d_tpx-dtl-img {
  margin: 20px auto 40px;
}

.up-d_tpx-dtl-mainText {
  text-align: justify;
  margin: 20px 0;
}

.up-d_tpx-dtl-connection-ttl p {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
  border-bottom: 3px solid #e58551;
}

.up-d_tpx-dtl-connection {
  display: flex;
  max-width: 1170px;  
  flex-wrap: wrap;
  gap: 16px;
}

.up-d_tpx-dtl-box {
  max-width: calc(25% - 12px); 
  list-style: none;
}

.up-d_tpx-dtl-box a {
  text-decoration: none;
  color: #1c0f08;
}

.up-d_tpx-dtl-conImg {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.up-d_tpx-dtl-conImg img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

@media (max-width: 768px) {
  .up-d_tpx-dtl-box {
    max-width: calc(100% - 8px);
    margin-bottom: 16px;
  }
}
