/*!
 * ex-lightbox — 성공사례(ex) 본문 이미지 라이트박스
 * 원복: 이 파일 + ex-lightbox.js + view.head/tail의 EX_LIGHTBOX 블록 제거
 */

/* 가로 썸네일 스트립 (가운데 정렬, 넘치면 좌우 스크롤) */
#bo_v.ex-lb-thumbs .ex-lb-strip-host,
#bo_v.ex-lb-thumbs #bo_v_img.ex-lb-strip-host {
  display: flex !important;
  justify-content: center;
  margin: 18px 0 22px !important;
  padding: 0 !important;
  overflow: visible !important;
}
#bo_v.ex-lb-thumbs .ex-lb-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 6px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,110,90,.45) transparent;
}
#bo_v.ex-lb-thumbs .ex-lb-strip::-webkit-scrollbar { height: 8px; }
#bo_v.ex-lb-thumbs .ex-lb-strip::-webkit-scrollbar-thumb {
  background: rgba(120,110,90,.4);
  border-radius: 999px;
}
#bo_v.ex-lb-thumbs .ex-lb-strip::-webkit-scrollbar-track {
  background: rgba(0,0,0,.04);
  border-radius: 999px;
}

/* 반투명 유리 액자 */
#bo_v.ex-lb-thumbs .ex-lb-frame {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px;
  max-width: 380px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.55);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.42) 0%,
    rgba(255,255,255,.18) 45%,
    rgba(255,255,255,.28) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -1px 0 rgba(255,255,255,.2),
    0 8px 24px rgba(20, 24, 40, .12),
    0 1px 2px rgba(20, 24, 40, .06);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  scroll-snap-align: start;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
#bo_v.ex-lb-thumbs .ex-lb-frame:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.52) 0%,
    rgba(255,255,255,.24) 50%,
    rgba(255,255,255,.34) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 12px 28px rgba(20, 24, 40, .16);
}
#bo_v.ex-lb-thumbs .ex-lb-frame__media {
  display: block;
  line-height: 0;
  cursor: zoom-in;
}
#bo_v.ex-lb-thumbs .ex-lb-frame a.view_image {
  display: block;
  line-height: 0;
  border: 0;
  text-decoration: none;
  background: transparent;
}
#bo_v.ex-lb-thumbs .ex-lb-frame img.ex-lb-thumb {
  display: block !important;
  width: auto !important;
  max-width: 320px !important;
  height: 280px !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.12) !important;
  background: rgba(255,255,255,.35);
  cursor: zoom-in;
}
#bo_v.ex-lb-thumbs .ex-lb-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 34px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(40, 55, 80, .18);
  border-radius: 6px;
  background: rgba(255,255,255,.72);
  color: #2c3a4f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
#bo_v.ex-lb-thumbs .ex-lb-zoom-btn:hover {
  background: #fff;
  border-color: rgba(40, 55, 80, .3);
  color: #111;
}

#bo_v.ex-lb-thumbs #bo_v_con .ex-lb-moved-away {
  display: none !important;
}

/* 오버레이 */
html.ex-lb-open { overflow: hidden; }
.ex-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}
.ex-lb.is-open { display: flex !important; }
.ex-lb__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: zoom-out;
}
.ex-lb__panel {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 1200px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex-lb__img {
  max-width: min(90vw, 1120px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
  background: #111;
  user-select: none;
  -webkit-user-drag: none;
}
.ex-lb__close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.ex-lb__close:hover { background: rgba(255,255,255,.28); }
.ex-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.ex-lb__nav:hover { background: rgba(255,255,255,.3); }
.ex-lb__prev { left: -56px; }
.ex-lb__next { right: -56px; }
.ex-lb__counter {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
@media (max-width: 768px) {
  .ex-lb__prev { left: 8px; }
  .ex-lb__next { right: 8px; }
  .ex-lb__counter { bottom: 12px; }
  #bo_v.ex-lb-thumbs .ex-lb-frame {
    max-width: 280px;
    padding: 10px;
  }
  #bo_v.ex-lb-thumbs .ex-lb-frame img.ex-lb-thumb {
    max-width: 240px !important;
    height: 220px !important;
  }
}
