
/* ===========================================
   tab_Facility_onlyimg - 탭 + 이미지 갤러리 자체 스킨
   PC: 왼쪽 세로탭 + 우측 이미지 갤러리
   모바일: 가로 스크롤 탭 + 하단 이미지
=========================================== */

/* ===== 타이틀 (sub_stit) - tab_left 내부 배치 ===== */
.tab_Facility_onlyimg .sub_stit {
  width: 100%;
  font-size: calc(var(--tit-md-size, 28px) * 0.8);
  font-weight: 700;
  line-height: 130%;
  margin-bottom: clamp(15px, calc(1.17vw + 11.25px), 30px);
  text-align: center;
  color: #000 !important;
}

/* ===== 최상위 래퍼 ===== */
.tab_Facility_onlyimg {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* ===== PC: 그리드 레이아웃 ===== */
@media only all and (min-width: 768px) {

  .tab_Facility_onlyimg .tab_layout {
    width: 100%; float: left;
    display: grid;
    grid-template-columns: clamp(180px, 20vw, 300px) auto;
    gap: clamp(20px, calc(1.56vw + 15px), 40px);
  }

  .tab_Facility_onlyimg .tab_left {
    width: 100%; float: left;
  }

  .tab_Facility_onlyimg .tabs_wrapper {
    width: 100%;
    background-color: #f7f7f7;
    border-radius: 30px;
    padding: clamp(30px, calc(1.56vw + 25px), 50px) clamp(20px, calc(0.78vw + 17.5px), 30px) clamp(20px, calc(0.78vw + 17.5px), 30px);
  }

  .tab_Facility_onlyimg .tabs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, calc(0.78vw + 7.5px), 20px);
    overflow: visible;
  }

  .tab_Facility_onlyimg .tabs .tab {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, calc(0.658vw + 7.368px), 20px) 15px;
    background: #fff;
    border: none;
    border-radius: 50px;
    font-size: calc(var(--tit-mds-size, 18px) * 0.7);
    font-weight: 500;
    color: #111;
    letter-spacing: -2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
  }

  .tab_Facility_onlyimg .tabs .tab:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.03);
  }

  .tab_Facility_onlyimg .tabs .tab.on {
    background-color: var(--primary, #1a3a6c);
    color: #fff;
    font-weight: 500;
  }

  .tab_Facility_onlyimg .tab_panels {
    width: 100%; float: left;
    min-width: 0;
    align-self: stretch;
  }

  .tab_Facility_onlyimg .tab-content {
    display: none;
    width: 100%;
  }

  .tab_Facility_onlyimg .tab-content.active {
    display: block;
  }
}

/* ===== 모바일: 가로 스크롤 탭 ===== */
@media only all and (max-width: 767px) {

  .tab_Facility_onlyimg .tab_layout {
    width: 100%; float: left;
    display: flex;
    flex-direction: column;
  }

  .tab_Facility_onlyimg .tab_left {
    width: 100%; float: left;
    margin-bottom: 10px;
  }

  .tab_Facility_onlyimg .tabs_wrapper {
    width: auto;
    position: relative;
    margin-left: -15px;
    margin-right: -15px;
    padding: 0 0 10px;
  }

  .tab_Facility_onlyimg .tabs {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0;
    background-color: #f7f7f7;
    border-radius: 0;
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tab_Facility_onlyimg .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab_Facility_onlyimg .tabs .tab {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, calc(0.658vw + 7.368px), 20px) 16px;
    background: transparent;
    border: none;
    border-radius: 26px;
    font-size: calc(var(--tit-mds-size, 16px) * 0.6);
    font-weight: 500;
    color: #111;
    letter-spacing: -1px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-align: center;
  }

  .tab_Facility_onlyimg .tabs .tab.on {
    background-color: var(--primary, #1a3a6c);
    color: #fff;
    font-weight: 500;
  }

  .tab_Facility_onlyimg .tab_panels {
    width: 100%; float: left;
  }

  .tab_Facility_onlyimg .tab-content {
    display: none;
    width: 100%;
  }

  .tab_Facility_onlyimg .tab-content.active {
    display: block;
  }
}

/* ===== 포커스 스타일 제거 ===== */
.tab_Facility_onlyimg .tabs [role="tab"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.tab_Facility_onlyimg .tabs [role="tab"]:focus,
.tab_Facility_onlyimg .tabs [role="tab"]:focus-visible,
.tab_Facility_onlyimg .tabs [role="tab"]:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}


/* =============================================
   이미지 갤러리 (Facility1_onlyimg 기반)
============================================= */

/* 단일 이미지 */
.tab_Facility_onlyimg .single-img {
  width: 100%; float: left;
  overflow: hidden;
  border-radius: 8px;
}
.tab_Facility_onlyimg .single-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Swiper 초기화 전 레이아웃 */
.tab_Facility_onlyimg .main-swiper:not(.swiper-initialized) {
  overflow: hidden;
}
.tab_Facility_onlyimg .main-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
}
.tab_Facility_onlyimg .main-swiper:not(.swiper-initialized) .swiper-slide {
  flex-shrink: 0;
  width: 100%;
}
.tab_Facility_onlyimg .thumb-swiper:not(.swiper-initialized) {
  overflow: hidden;
}
.tab_Facility_onlyimg .thumb-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 8px;
}
.tab_Facility_onlyimg .thumb-swiper:not(.swiper-initialized) .swiper-slide {
  width: calc((100% - 56px) / 8);
  flex-shrink: 0;
}

/* 메인 이미지 래퍼 */
.tab_Facility_onlyimg .main-swiper-wrap {
  width: 100%;
  position: relative;
}

.tab_Facility_onlyimg .main-swiper {
  width: 100% !important;
}

/* 메인 좌우 화살표 */
.tab_Facility_onlyimg .main-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.tab_Facility_onlyimg .main-arr:hover {
  background: rgba(255, 255, 255, 0.95);
}
.tab_Facility_onlyimg .main-arr i {
  font-size: 24px;
  line-height: 1;
}
.tab_Facility_onlyimg .main-arr-prev { left: 12px; }
.tab_Facility_onlyimg .main-arr-next { right: 12px; }
.tab_Facility_onlyimg .main-arr.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

.tab_Facility_onlyimg .main-swiper .swiper-slide .wg_img_box {
  width: 100%; float: left;
  overflow: hidden;
  border-radius: 8px;
}
.tab_Facility_onlyimg .main-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* 썸네일 스트립 */
.tab_Facility_onlyimg .thumb-wrap {
  width: 100%;
  margin-top: 10px;
  position: relative;
}
.tab_Facility_onlyimg .thumb-wrap:not(.has-arrows) .thumb-swiper {
  width: 100%;
}
.tab_Facility_onlyimg .thumb-wrap.has-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab_Facility_onlyimg .thumb-wrap.has-arrows .thumb-swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* 썸네일 슬라이드 */
.tab_Facility_onlyimg .thumb-swiper .swiper-slide {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: 5px;
}
.tab_Facility_onlyimg .thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
}
.tab_Facility_onlyimg .thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.tab_Facility_onlyimg .thumb-swiper .swiper-slide .thumb-alt {
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 5px;
}
.tab_Facility_onlyimg .thumb-swiper .swiper-slide .thumb-alt img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

/* 썸네일 화살표 */
.tab_Facility_onlyimg .thumb-arr {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #999;
  transition: color 0.2s;
}
.tab_Facility_onlyimg .thumb-arr:hover { color: #333; }
.tab_Facility_onlyimg .thumb-arr i {
  font-size: 22px;
  line-height: 1;
}
.tab_Facility_onlyimg .thumb-arr.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

@media only all and (max-width: 767px) {
  .tab_Facility_onlyimg .thumb-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 18px) / 4);
  }
}
