@charset "utf-8";

/* ------- 배지 스타일 ------- */
.badge-container {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.badge {
  background: crimson;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-p {
  background: purple;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ------- 댓글 카운트 스타일 ------- */
.comment-container {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-icon {
  font-size: 12px;
}

.comment-count {
  font-weight: 500;
}

/* ------- 갤러리 레이아웃 ------- */
.gall_b_lt {
  position: relative;
  text-align: center;
}

.gall_b_lt .lat_title {
  margin-bottom: 40px;
}

.gall_b_lt .lat_title a {
  font-size: 2.4em;
  text-align: left;
  padding-bottom: 10px;
  margin-bottom: 10px;
  position: relative;
}

.gall_b_lt ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* 👉 한 줄에 4개, 마지막 줄 왼쪽 정렬 */
  gap: 2%;                     /* 아이템 간 간격 */
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;           /* 중앙 정렬 최대 폭 */
}


.gall_b_lt li {
  width: 23%;               /* 100% / 4개 - 여백 고려 */
  margin-bottom: 40px;      /* 아래 여백 */
  box-sizing: border-box;
  text-align: center;
}

.gall_b_lt li .pic_inner {
  text-align: center;
}

.gall_b_lt li .lt_img {
  position: relative;
  margin-bottom: 7px;
  border-radius: 12px;
  display: block;
  overflow: hidden;
}

.gall_b_lt li .lt_img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.gall_b_lt li .lt_img .more {
  display: none;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 1.8em;
  line-height: 250px;
  border-radius: 50%;
  text-align: center;
}

.gall_b_lt li .all_b_tit {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #3464bc;
  font-size: 1.6em;
}

.gall_b_lt li .lat_detail {
  height: 25px;
  overflow: hidden;
  font-weight: 500;
  color: #000;
  font-size: 1.45em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gall_b_lt .empty_li {
  line-height: 145px;
  color: #666;
  text-align: center;
  padding: 0;
}

/* ------- 모바일 대응 ------- */
@media screen and (max-width: 768px) {
    .gall_b_lt .lat_title {
        margin-bottom: 0px;
    }

  .gall_b_lt ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
  }

  .gall_b_lt li {
    width: 45%;               /* 한 줄에 2개 */
    margin: 10px 5px;         /* 간격 조정 */
    box-sizing: border-box;
  }

  .gall_b_lt li .lt_img img {
    width: 100%;
    height: auto;
    border-radius: 12px;      /* 모바일에서는 둥근 네모 이미지 */
  }

  .gall_b_lt li .all_b_tit {
    font-size: 1.2em;
    line-height: 1.4em;
    margin-bottom: 3px;
  }

  .gall_b_lt li .lat_detail {
    font-size: 1em;
    line-height: 1.3em;
  }

  .gall_b_lt .lat_title a {
    font-size: 1.8em;
    text-align: center;
    display: block;
    margin-bottom: 0px;
  }
}
