/**
 * community.css - 공지사항, 전후사진
 */

.board-wrap .bo-content.con_inner {
  padding: 60px 20px 80px;
  max-width: 1350px;
  margin: 0 auto;
}

/* 커뮤니티 서브 탭 (공지사항 | 전후사진) */
.community-sub-tab {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  padding: 0 20px;
  list-style: none;
  border-bottom: 1px solid #aea094;
  max-width: 1350px;
}

.community-sub-tab li a {
  display: block;
  padding: 16px 32px;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.community-sub-tab li a:hover,
.community-sub-tab li a.on {
  color: #1a1a1a;
  border-bottom-color: #aea094;
}

/* 전후사진 분류 탭 #bo_cate */
#bo_cate {
  margin: 0 auto 115px;
}

#bo_cate h2 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

#bo_cate ul {
  display: flex;
  background: #fcf9f4;
  margin: 0 auto -1px;
  border-top: 1px solid #8b7e71;
  border-bottom: 1px solid #8b7e71;
  justify-content: space-between;
  align-items: center;
}

#bo_cate li {
  display: inline-block;
  flex: 1;
  margin: 0;
  text-align: center;
  border-bottom: 0;
}

#bo_cate a {
  position: relative;
  width: 100%;
  display: block;
  padding: 14px 0;
  border-bottom: 0;
  color: #464646;
  background-color: transparent !important;
  font-size: 18px;
  border-radius: 0;
  font-weight: 500;
  text-align: center;
}

#bo_cate #bo_cate_on {
  border-bottom: 0;
  color: #000;
  background-color: #f1e9df !important;
  font-weight: 600;
  transition: 0.3s;
}

#bo_cate a:hover {
  border-bottom: 0;
  color: #000;
  background-color: #f1e9df !important;
  font-weight: 500;
  transition: 0.3s;
}

/* 전후사진 안내 문구 */
.af_wd {
  background: #eeebe5;
  width: 795px;
  max-width: 100%;
  height: auto;
  min-height: 112px;
  margin: 80px auto 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  box-sizing: border-box;
}

.af_wd p {
  margin: 0;
  font-size: 14px;
  color: #777777;
  line-height: 25px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0;
}

/* 공지사항 상세 */
.board-wrap .bo-v-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 32px;
  border-top: 1px solid #b3b3b1;
  border-bottom: 1px solid #b3b3b1;
  margin: 0;
  text-align: center;
}

.board-wrap .bo-v-tit {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}

.board-wrap .bo-v-date {
  font-size: 15px;
  color: #606060;
  flex-shrink: 0;
}

.board-wrap .bo-v-con {
  padding: 40px 0;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

.board-wrap .bo-v-con p {
  margin: 0 0 20px;
}

.board-wrap .bo-v-con p:last-child {
  margin-bottom: 0;
}

.board-wrap .bo-v-con img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.board-wrap .bo-v-btns {
  padding: 24px 0;
  text-align: center;
}

.board-wrap .btn-list {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #aea094;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.board-wrap .btn-list:hover {
  background: #aea094;
  color: #fff;
}

.board-wrap #bo_v_atc_title.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 갤러리 목록 */
.board-wrap .bbs-bar {
  width: 100%;
  margin: 60px 0 20px;
}

/* 전후사진 포토 갤러리 */
ul.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 47px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

ul.photo-gallery li {
  width: calc(50% - 24px);
}

ul.photo-gallery .photo-item {
  display: block;
  overflow: hidden;
}

ul.photo-gallery .thumb-wrap {
  display: flex;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

ul.photo-gallery .thumb {
  position: relative;
  width: 50%;
  aspect-ratio: 1;
  overflow: hidden;
}

ul.photo-gallery .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

ul.photo-gallery .thumb img:hover {
  transform: scale(1.05);
}

ul.photo-gallery .thumb .badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

ul.photo-gallery .photo-caption {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

#bo_cate + .photo-gallery {
  margin-top: 0;
}

/* 전후사진: 비로그인 시 썸마다 블러 + 가운데 안내 문구 */
ul.photo-gallery .thumb-wrap--locked {
  position: relative;
}

ul.photo-gallery .thumb-wrap--locked .thumb img {
  filter: blur(10px);
  opacity: 0.65;
}

ul.photo-gallery .thumb-wrap--locked .thumb img:hover {
  transform: none;
}

.thumb-wrap-lock-msg {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

@media (max-width: 768px) {
  .thumb-wrap-lock-msg {
    font-size: 14px;
  }
}

.board-wrap .bbs-bar::after {
  content: '';
  display: block;
  clear: both;
}

.board-wrap .board-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid #aea094;
  border-bottom: 1px solid #aea094;
  color: #1a1a1a;
  line-height: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.board-wrap .board-list-th {
  margin: 0;
  box-sizing: border-box;
}

.board-wrap .board-list-th:nth-child(1) {
  width: 11%;
  text-align: center;
}

.board-wrap .board-list-th:nth-child(2) {
  width: 62%;
  padding: 0 4%;
  text-align: center;
}

.board-wrap .board-list-th:nth-child(3) {
  width: 20%;
  text-align: center;
}

.board-wrap .board-list-th:nth-child(4) {
  width: 13%;
  text-align: center;
}

.board-wrap table.board-list {
  width: 100%;
  border-top: 1px solid #aea094;
  word-break: break-all;
  text-align: center;
}

.board-wrap table.board-list th {
  color: #1a1a1a;
  border-bottom: 1px solid #aea094;
  line-height: 50px;
}

.board-wrap #bo_gall #gall_ul {
  margin: 0;
  padding: 0;
  list-style: none;
  zoom: 1;
}

.board-wrap #bo_gall #gall_ul::after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}

.board-wrap #bo_gall .gall-li {
  float: left;
  margin: 0;
  padding: 2% 0;
  border-bottom: 1px solid #cbcbcb;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.board-wrap #bo_gall .gall-li:nth-of-type(2n) {
  margin-right: 0;
}

.board-wrap #bo_gall .gall-con {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-wrap .gall-nember {
  width: 11%;
  text-align: center;
}

.board-wrap .gall-nember > p {
  color: #1a1a1a;
  margin: 0;
  font-weight: 600;
}

.board-wrap #bo_gall .gall-href a:link,
.board-wrap #bo_gall .gall-href a:focus,
.board-wrap #bo_gall .gall-href a:hover {
  text-decoration: none;
}

.board-wrap #bo_gall .gall-href strong,
.board-wrap #bo_gall .gall-href span {
  display: inline-block;
  text-align: center;
}

.board-wrap #bo_gall .gall-href {
  position: relative;
  margin: 0;
  width: 62%;
  padding: 0 4%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.board-wrap #bo_gall .gall-href > a {
  display: flex;
  gap: 70px;
  padding-left: 36px;
  justify-content: flex-start;
  align-items: center;
}

.board-wrap #bo_gall .gall-href a {
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.06em;
  color: #1a1a1a;
  line-height: 1.3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.board-wrap #bo_gall .gall-href a > .img-wrap {
  margin-right: 25px;
}

.board-wrap #bo_gall .gall-href a > p,
.board-wrap #bo_gall .gall-href a > .fx-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: auto;
  margin: 0;
}

.board-wrap .img-wrap {
  overflow: hidden;
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.board-wrap .img-wrap img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-wrap .gall-datetime {
  position: relative;
  width: 13%;
  text-align: center;
}

.board-wrap .gall-datetime02 {
  width: 20%;
  text-align: center;
}

.board-wrap .gall-datetime > p,
.board-wrap .gall-datetime02 > p {
  color: #1a1a1a;
  margin: 0;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .board-wrap .img-wrap {
    display: none;
  }
  .board-wrap .bo-content.con_inner {
    padding: 40px 20px 60px;
  }
  .board-wrap .board-list thead {
    display: none;
  }
  .board-wrap .board-list-header {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 13px;
  }
  .board-wrap .board-list-th:nth-child(1) {
    width: 10%;
    min-width: 32px;
    padding: 0;
  }
  .board-wrap .board-list-th:nth-child(2) {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }
  .board-wrap .board-list-th:nth-child(3) {
    width: auto;
    flex-shrink: 0;
    padding: 0;
  }
  .board-wrap .board-list-th:nth-child(4) {
    width: auto;
    flex-shrink: 0;
    padding: 0;
  }
  .board-wrap .gall-con {
    flex-wrap: nowrap;
    padding: 12px 0;
    gap: 8px;
  }
  .board-wrap .gall-nember {
    width: 10%;
    min-width: 32px;
    flex-shrink: 0;
    font-size: 13px;
  }
  .board-wrap #bo_gall .gall-href {
    width: auto;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }
  .board-wrap #bo_gall .gall-href > a {
    flex-direction: row;
    gap: 12px;
    padding-left: 0;
  }
  .board-wrap #bo_gall .gall-href .img-wrap {
    display: none;
  }
  .board-wrap #bo_gall .gall-href a > p,
  .board-wrap #bo_gall .gall-href a > .fx-subject {
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: 14px;
  }
  .board-wrap .gall-datetime02,
  .board-wrap .gall-datetime {
    width: auto;
    flex-shrink: 0;
    font-size: 12px;
  }
  .board-wrap .gall-datetime > p,
  .board-wrap .gall-datetime02 > p {
    font-size: 12px;
  }
  #bo_cate {
    margin: 0 auto 40px;
    max-width: 100%;
  }
  #bo_cate ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  #bo_cate a {
    width: auto;
    min-width: 20%;
    padding: 10px 8px;
    font-size: 14px;
  }
  ul.photo-gallery {
    gap: 15px;
  }
  ul.photo-gallery li {
    width: 100%;
    max-width: 100%;
  }
  ul.photo-gallery .thumb .badge {
    font-size: 13px;
    padding: 6px 12px;
  }
  ul.photo-gallery .photo-caption {
    font-size: 14px;
  }
  .af_wd {
    margin: 40px 20px 0;
    width: auto;
    padding: 20px 16px;
  }
  .af_wd p {
    font-size: 13px;
    line-height: 22px;
  }
  .board-wrap .bo-v-title {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .board-wrap .bo-v-tit {
    font-size: 16px;
  }
  .board-wrap .bo-v-con {
    padding: 30px 0;
    font-size: 15px;
  }
  .board-wrap .btn-list {
    padding: 10px 24px;
    font-size: 14px;
  }
  .community-sub-tab {
    margin-top: 24px;
    padding: 0 20px;
  }
  .community-sub-tab li a {
    padding: 12px 20px;
    font-size: 14px;
  }
}
