@charset "utf-8";

/* 새글 스킨 (latest) */
.pic_lt {
  position: relative;
  margin-bottom: 20px;
  background: transparent;
}
.pic_lt .lat_title {
  display: block;
  line-height: 45px;
  font-size: 1.2em;
  color: #253dbe;
}
.pic_lt .lat_title a {
  color: #000;
  display: inline-block;
  position: relative;
}

.pic_lt .lt_more {
  position: absolute;
  top: 11px;
  right: 10px;
  display: block;
  width: 25px;
  line-height: 25px;
  color: #aaa;
  border-radius: 3px;
  text-align: center;
}
.pic_lt .lt_more:hover {
  color: #777;
}
.pic_lt ul:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
.pic_lt ul {
  margin: 0 -10px;
}
.pic_lt li {
  float: left;
  width: 25%;
  padding: 0 10px;
}
.pic_lt li.galley_li:nth-child(4n + 1) {
  clear: both !important;
}
.pic_lt li .lt_img {
  margin: 5px 0;
  display: block;
}
.pic_lt li .lt_img img,
.pic_lt li .lt_img video {
  width: 100%;
  height: auto;
}
.pic_lt li a:hover {
  color: #a22121;
}
.pic_lt li .fa-heart {
  color: #ff0000;
}
.pic_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_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_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;
}
.pic_lt li .fa-caret-right {
  color: #bbb;
}
.pic_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_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_lt .profile_img img {
  border-radius: 50%;
}

.lt_info {
  padding: 10px 0;
}
.lt_info .lt_nick {
}
.lt_info .lt_date {
  color: #888;
}

.pic_lt .empty_li {
  line-height: 145px;
  color: #666;
  text-align: center;
  padding: 0;
}
.pic_lt .empty_li:before {
  background: none;
  padding: 0;
}

.pic_lt .lt_cmt {
  background: #e9eff5;
  color: #3a8afd;
  font-size: 11px;
  height: 16px;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  vertical-align: middle;
}
.pic_lt .lt_more {
  position: absolute;
  top: 11px;
  right: 0;
  display: block;
  width: 40px;
  line-height: 25px;
  color: #3a8afd;
  border-radius: 3px;
  text-align: center;
}
.pic_lt .lt_more:hover {
  color: #777;
}

/* Masonry 레이아웃을 위한 스타일 */
.masonry-grid {
  column-count: 1;
  column-gap: 1rem;
  margin: 0 -0.5rem;
}

/* 기본 아이템 스타일 */
.item {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 346px; /* 고정 높이로 설정 */
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
  transition: transform 0.2s ease; /* 부드러운 전환 효과 */
}

.item:hover {
  transform: translateY(-2px); /* 호버 시 살짝 위로 이동 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); /* 호버 시 그림자 강화 */
}

/* 강조된 아이템은 2배 높이 */
.item.highlight {
  width: 100%;
  height: 692px; /* 2배 높이 (300px × 2) */
}

/* 강조된 게시글의 이미지는 컨테이너에 맞게 조정 */
.item.highlight .lt_img {
  width: 100%;
  height: 100%;
  display: block;
}

.item.highlight .lt_img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 이미지를 컨테이너에 꽉 채움 */
  object-position: center; /* 중앙 정렬 */
  image-rendering: -webkit-optimize-contrast; /* 웹킷 브라우저 최적화 */
  image-rendering: crisp-edges; /* 이미지 선명도 개선 */
  backface-visibility: hidden; /* 렌더링 최적화 */
  transform: translateZ(0); /* 하드웨어 가속 활성화 */
  will-change: transform; /* 변환 최적화 */
}

/* 이미지 컨테이너 스타일 */
.lt_img {
  width: 100%;
  height: 100%;
  display: block;
}

.lt_img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 이미지를 컨테이너에 꽉 채움 */
  object-position: center; /* 중앙 정렬 */
  border-radius: 0.5rem;
  image-rendering: -webkit-optimize-contrast; /* 웹킷 브라우저 최적화 */
  image-rendering: crisp-edges; /* 이미지 선명도 개선 */
  backface-visibility: hidden; /* 렌더링 최적화 */
  transform: translateZ(0); /* 하드웨어 가속 활성화 */
  will-change: transform; /* 변환 최적화 */
}

/* 반응형 컬럼 수 조정 */
@media (min-width: 640px) {
  /* sm */
  .masonry-grid {
    column-count: 2;
    column-gap: 1.5rem; /* 열 간격 증가 */
  }
}

@media (min-width: 768px) {
  /* md */
  .masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  /* lg */
  .masonry-grid {
    column-count: 4;
    column-gap: 1.5rem;
  }
}
