@charset "utf-8";

/* 탭 네비게이션 스타일 */
.tl_latest_tab nav {}
.tl_latest_tab ul {
  list-style: none; 
  padding-bottom: 50px; 
  margin: 0 auto; 
  max-width: 400px;
  display: flex;
  flex-wrap: wrap;
}
.tl_latest_tab ul li {
  display: flex;
  text-align: center; 
  border-left: 1px solid #555; 
  margin-left: -1px;
}
.tl_latest_tab ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 16px;
  color: #333; 
  opacity: 0.8; 
  padding: 5px 0;
}
.tl_latest_tab ul li a.on {
  color: #333; 
  font-weight: 600;
}

/* 탭 너비 설정 */
.tl_latest_tab.ts2 li { width: 50%; }
.tl_latest_tab.ts3 li { width: 33.3333%; }
.tl_latest_tab.ts4 li { width: 25%; }
.tl_latest_tab.ts5 li { width: 20%; }
.tl_latest_tab.ts6 li { width: 33.3333%; margin-top: -1px; }
.tl_latest_tab.ts7 li { width: 14.2857%; }
.tl_latest_tab.ts8 li { width: 12.5%; }
.tl_latest_tab.ts9 li { width: 11.1111%; }
.tl_latest_tab.ts10 li { width: 10%; }

/* 첫번째 항목의 왼쪽 테두리 제거 */
.tl_latest_tab.ts2 li:nth-child(2n+1) { border-left: 0; }
.tl_latest_tab.ts3 li:nth-child(3n+1) { border-left: 0; }
.tl_latest_tab.ts4 li:nth-child(4n+1) { border-left: 0; }
.tl_latest_tab.ts5 li:nth-child(5n+1) { border-left: 0; }
.tl_latest_tab.ts6 li:nth-child(3n+1) { border-left: 0; }

/* 새글 스킨 (latest) */
.pic_tab_lt {
  position: relative;
  margin-bottom: 20px; 
  display: none; 
  transition: all 0.4s; 
  opacity: 0.5; 
  transform: translateY(20px);
  width: 100%;
}
.pic_tab_lt.on {
  display: block; 
  opacity: 1; 
  transform: translateY(0px);
}
.pic_tab_lt .lat_title {
  display: block;
  line-height: 45px;
  font-size: 1.2em;
  color: #253dbe;
}
.pic_tab_lt .lat_title a {
  color: #000;
  display: inline-block;
  position: relative;
}

.pic_tab_lt .lt_more {
  position: absolute;
  top: 11px;
  right: 10px;
  display: block;
  width: 25px;
  line-height: 25px;
  color: #aaa;
  border-radius: 3px;
  text-align: center; 
  display: none;
}
.pic_tab_lt .lt_more:hover {
  color: #777;
}

/* 썸네일 그리드 컨테이너 */
.pic_tab_lt ul {
  margin: 0; 
  background-color: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 썸네일 아이템 */
.pic_tab_lt li {
  width: calc((100% - 60px) / 4); /* 4개 칼럼에 20px gap */
  margin-bottom: 50px;
  overflow: hidden;
}

/* 이미지 컨테이너 */
.pic_tab_lt li .lt_img {
  margin: 0;
  display: block; 
  overflow: hidden; 
  position: relative; 
  width: 100%;
  aspect-ratio: 285 / 215; /* 원래 썸네일의 가로세로 비율 유지 */
}

/* 이미지 */
.pic_tab_lt li .lt_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  border-radius: 10px; 
  overflow: hidden;
}
.pic_tab_lt li .lt_img img:hover {
  transform: scale(1.1);
}

/* 제목 */
.pic_tab_lt li a {
  font-size: 22px; 
  margin: 20px 0 10px 0; 
  text-align: center; 
  font-weight: bold; 
  display: block; 
  color: #333; 
  border-radius: 10px;
}

/* 아이콘 스타일 */
.pic_tab_lt li .fa-heart { color: #ff0000; }
.pic_tab_lt li .fa-lock {
  display: inline-block;
  line-height: 14px;
  width: 16px;
  font-size: 0.833em;
  color: #4f818c;
  background: #cbe3e8;
  text-align: center;
  border-radius: 2px;
  font-size: 12px;
  border: 1px solid #cbe3e8;
  vertical-align: middle;
}
.pic_tab_lt li .new_icon {
  display: inline-block;
  width: 16px;
  line-height: 16px;
  font-size: 0.833em;
  color: #23db79;
  background: #b9ffda;
  text-align: center;
  border-radius: 2px;
  margin-left: 2px;
  font-weight: bold;
  vertical-align: middle;
}
.pic_tab_lt li .hot_icon {
  display: inline-block;
  width: 16px;
  line-height: 16px;
  font-size: 0.833em;
  color: #ff0000;
  background: #ffb9b9;
  text-align: center;
  border-radius: 2px;
  vertical-align: middle;
  padding-top: 0;
}
.pic_tab_lt li .fa-caret-right { color: #bbb; }
.pic_tab_lt li .fa-download {
  display: inline-block;
  width: 16px;
  line-height: 16px;
  font-size: 0.833em;
  color: #daae37;
  background: #ffefb9;
  text-align: center;
  border-radius: 2px;
  vertical-align: middle;
}
.pic_tab_lt li .fa-link {
  display: inline-block;
  width: 16px;
  line-height: 16px;
  font-size: 0.833em;
  color: #b451fd;
  background: #edd3fd;
  text-align: center;
  border-radius: 2px;
  vertical-align: middle;
}

/* 콘텐츠 한 줄 제한 */
.pic_tab_lt li .lt_content {
  line-height: 1.4em; 
  height: 1.4em; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  text-align: center; 
  font-size: 18px; 
  color: #555; 
  opacity: 0.8; 
  width: 85%; 
  margin: 0 auto;
}

/* 댓글 */
.pic_tab_lt .lt_cmt {
  background: #e9eff5;
  color: #3a8afd;
  font-size: 11px;
  height: 16px;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  vertical-align: middle;
}

/* 작성자, 날짜 정보 */
.lt_info {
  padding: 10px 0; 
  display: none;
}
.lt_info .lt_nick {}
.lt_info .lt_date { color: #888; }

/* 빈 리스트 */
.pic_tab_lt .empty_li {
  width: 100%;
  line-height: 145px;
  color: #666;
  text-align: center;
  padding: 0;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
  .pic_tab_lt li {
    width: calc((100% - 40px) / 3); /* 3개 칼럼에 20px gap */
  }
  
  /* 3번째마다 margin-right 0 */
  .pic_tab_lt li:nth-child(3n) {
    margin-right: 0;
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .pic_tab_lt ul {
    gap: 15px;
  }
  
  .pic_tab_lt li {
    width: calc((100% - 15px) / 2); /* 2개 칼럼에 15px gap */
  }
  
  .pic_tab_lt li a {
    font-size: 18px;
    margin: 15px 0 8px 0;
  }
  
  .pic_tab_lt li .lt_content {
    font-size: 16px;
  }
}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
  .pic_tab_lt ul {
    gap: 10px;
  }
  
  .pic_tab_lt li {
    margin-bottom: 30px;
  }
  
  .pic_tab_lt li a {
    font-size: 16px;
    margin: 10px 0 5px 0;
  }
  
  .pic_tab_lt li .lt_content {
    font-size: 14px;
  }
}