/* 메뉴 스크롤 영역 */
.menu-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: thin;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 10px;
}

.menu-scroll::-webkit-scrollbar {
  height: 6px;
}
.menu-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.menu-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* 메뉴 리스트 */
.menu {
  display: inline-flex;
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

/* 메뉴 아이템 */
.menu-item {
  display: inline-block;
  margin-right: 8px;
  white-space: nowrap;
}

.menu-item a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.menu-item a.on,
.menu-item a:hover {
  background: #333;
  color: #fff;
}

/* Lightbox 스타일 */
.b-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  box-sizing: border-box;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90%;
  margin: 5% auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-header .wr_subject {
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

.lightbox-header .ca_name {
  background: #007bff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.lightbox-body {
  height: calc(100% - 70px);
  position: relative;
  overflow: hidden;
}

.lightbox-slider {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lightbox-slider li {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.lightbox-slider img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.b-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.b-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* bxSlider 커스텀 스타일 */
.bx-wrapper {
  height: 100% !important;
  margin: 0 !important;
}

.bx-viewport {
  height: 100% !important;
  left: 0 !important;
}

.bx-controls-direction {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.bx-prev {
  left: 20px;
}

.bx-next {
  right: 20px;
}

.bx-prev, .bx-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 50%;
  color: #fff !important;
  font-size: 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.bx-prev:hover, .bx-next:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1);
  color: #fff !important;
}

.bx-pager {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}

.bx-pager-item {
  display: inline-block;
  margin: 0 5px;
}

.bx-pager-item a {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: inline-block;
  text-indent: -9999px;
  transition: all 0.3s ease;
}

.bx-pager-item a:hover,
.bx-pager-item a.active {
  background: #fff;
  transform: scale(1.2);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
  }
  
  .lightbox-header {
    padding: 10px 15px;
  }
  
  .lightbox-header .wr_subject {
    font-size: 16px;
  }
  
  .b-close {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .bx-prev, .bx-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.board-x .sub_nav {
  text-align: left;
}
.board-x .menu {
  display: inline-flex;
  float:left;
}
.board-x .more{ float:right; }
.board-x .more a  {display:block; font-size:14px;  margin:0px auto; color:#555; line-height:40px; padding:5px 40px; transition: all 0.2s; background-image:url(../theme/onepage/img/arrow_latest.png); background-repeat:no-repeat; background-position: 122px center; cursor:pointer; }


.board-x .menu .menu-item {
  margin: 5px 5px 10px 0px;
}
.board-x .menu .menu-item .on { background-color:#167ac6; color:#fff; }
.board-x .menu .menu-item a {
  padding: 1px 10px;
  border: 0;
  display: inline-block;
  color: #555;
  border:1px solid #ddd;
}
.board-x .thumb_list {
  padding: 0;
  width: 100%;
}
.board-x .thumb_list ul {
  *zoom: 1;
  width: 100%;
  float: left;
  margin-left: 0;
  margin-right: 0;
}
.board-x .thumb_list ul:after {
  content: "";
  display: table;
  clear: both;
}
.board-x .thumb_list ul:hover li .desc,
.board-x .thumb_list ul:hover li.hovered .desc {
  -moz-transition: all 0.35s ease;
  -o-transition: all 0.35s ease;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  background-color: rgba(51, 51, 51, 0.3);
  top: 0;
}
.board-x .thumb_list ul:hover li .desc:hover,
.board-x .thumb_list ul:hover li.hovered .desc:hover {
  background-color: rgba(51, 51, 51, 0.9);
}
.board-x .thumb_list li {
  -moz-transition: all 0.35s ease-in;
  -o-transition: all 0.35s ease-in;
  -webkit-transition: all 0.35s ease-in;
  transition: all 0.35s ease-in;
  width: 47.36842%;
  float: left;
  position: relative;
  margin-bottom: 5.26316%;
  overflow: hidden;
}
.board-x .thumb_list li:nth-child(2n + 1) {
  margin-left: 0;
  margin-right: -100%;
  clear: both;
}
.board-x .thumb_list li:nth-child(2n + 2) {
  margin-left: 52.63158%;
  margin-right: -100%;
  clear: none;
}
.board-x .thumb_list img {
  width: 100%;
}
.board-x .desc {
  -moz-transition: all 0.35s ease;
  -o-transition: all 0.35s ease;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  color: #fff;
  position: absolute;
  top: -100%;
  left: 0;
  text-align: center;
  width: 100%;
  height: 100%;
}
.board-x .d_info {
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
}
.board-x .d_info h2 {
  color: #fff;
  font-size: 16px;
}
.board-x .d_info p {
  margin-bottom: 5px;
}
.board-x .readmore {
  font-size: 21px;
  margin-bottom: 0 !important;
  padding: 5px 0;
}
.board-x .readmore:after {
  font-family: "FontAwesome";
  content: "\f13a";
}
.board-x .selected-img {
  position: absolute;
  width: 90%;
  display: none;
  opacity: 1;
  transition: all 0.2s;
}
.board-x .selected-img.start {
  opacity: 0;
}

.pg {
  text-align: center;
  clear: both;
}
.pg a {
  display: inline-block;
  width: 30px;
  height: 5px;
  margin-left: 5px;
  margin-right: 5px;
  padding: 0;
  background-color: #ddd;
  font-size: 10px;
  text-indent: -9999px;
}
.pg a.on,
.pg a:hover {
  background-color: #167ac6;
}
/*
@media (min-width: 680px) {
.board-x .thumb_list li {
	float: left;
	width: 18.91892%;
}
.board-x .thumb_list li:nth-child(3n + 1) {
	margin-left: 40.54054%;
	margin-right: -100%;
	clear: both;
}
.board-x .thumb_list li:nth-child(3n + 2) {
	margin-left: 60.81081%;
	margin-right: -100%;
	clear: none;
}
.board-x .thumb_list li:nth-child(3n + 3) {
	margin-left: 81.08108%;
	margin-right: -100%;
	clear: none;
}
.board-x .selected-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 38.91%;
	display: block;
}
}
*/
@media (min-width: 680px) {
  .board-x .thumb_list {
    padding-right: 0;
  }
  .board-x .thumb_list li {
    width: 31.03448%;
    float: left;
    margin-bottom: 3.44828%;
  }
  .board-x .thumb_list li:nth-child(3n + 1) {
    margin-left: 0;
    margin-right: -100%;
    clear: both;
  }
  .board-x .thumb_list li:nth-child(3n + 2) {
    margin-left: 34.48276%;
    margin-right: -100%;
    clear: none;
  }
  .board-x .thumb_list li:nth-child(3n + 3) {
    margin-left: 68.96552%;
    margin-right: -100%;
    clear: none;
  }
}
@media (min-width: 980px) {
  .board-x .thumb_list li {
    width: 24.05063%;
    float: left;
    margin-bottom: 20px;
  }
  .board-x .thumb_list li:nth-child(4n + 1) {
    margin-left: 0;
    margin-right: -100%;
    clear: both;
  }
  .board-x .thumb_list li:nth-child(4n + 2) {
    margin-left: 25.31646%;
    margin-right: -100%;
    clear: none;
  }
  .board-x .thumb_list li:nth-child(4n + 3) {
    margin-left: 50.63291%;
    margin-right: -100%;
    clear: none;
  }
  .board-x .thumb_list li:nth-child(4n + 4) {
    margin-left: 75.94937%;
    margin-right: -100%;
    clear: none;
  }
}
/*@media (min-width: 1280px) {
  .board-x .thumb_list li {
    width: 18.91892%;
    float: left;
  }
  .board-x .thumb_list li:nth-child(5n + 1) {
    margin-left: 0;
    margin-right: -100%;
    clear: both;
  }
  .board-x .thumb_list li:nth-child(5n + 2) {
    margin-left: 20.27027%;
    margin-right: -100%;
    clear: none;
  }
  .board-x .thumb_list li:nth-child(5n + 3) {
    margin-left: 40.54054%;
    margin-right: -100%;
    clear: none;
  }
  .board-x .thumb_list li:nth-child(5n + 4) {
    margin-left: 60.81081%;
    margin-right: -100%;
    clear: none;
  }
  .board-x .thumb_list li:nth-child(5n + 5) {
    margin-left: 81.08108%;
    margin-right: -100%;
    clear: none;
  }
}
*/

/* Magnific Popup 커스텀 스타일 */
.mfp-bg {
  background: rgba(0, 0, 0, 0.9);
}

.mfp-img {
  padding: 20px;
}

.mfp-figure figure {
  margin: 0;
}

.mfp-bottom-bar {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px;
  text-align: center;
}

.mfp-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.mfp-title small {
  font-size: 12px;
  color: #ccc;
  font-weight: normal;
}

.mfp-counter {
  color: #ccc;
  font-size: 12px;
}

.mfp-arrow {
  width: 60px;
  height: 60px;
  opacity: 0.8;
  margin-top: -30px;
}

.mfp-arrow:hover {
  opacity: 1;
}

.mfp-arrow:before {
  font-size: 24px;
  line-height: 60px;
}

.mfp-close {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  opacity: 0.8;
  border-radius: 50%;
  right: 15px;
  top: 15px;
}

.mfp-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .mfp-arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
  
  .mfp-arrow:before {
    font-size: 18px;
    line-height: 44px;
  }
  
  .mfp-close {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
    right: 10px;
    top: 10px;
  }
}