/* about.preview.html — Clinic 공간 → kowonglobal.com/en/about/tour ‘Gallery by space’ 방식 (2026-10-20) · 모서리 전부 직각
   바탕 · 머리 · 진료 범위 안내는 css/p-batch-about.css(.bp-clinic) 그대로. 동작 js/p-r2-gallery.js
   큰 사진(PC 1200:508 · 모바일 4:3): 겹쳐 바뀜 1.2초 · 천천히 확대 1→1.07 7초 · 이름은 16px 아래에서 떠오름 .9초. 필름 띠: 6칸 · 진행 막대 5.5초(금색). */
.bp-gal { --gal-dwell: 5.5s; --e2: cubic-bezier(.16, 1, .3, 1); }
.bp-gal__hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.bp-gal__count { flex: none; display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; font-size: 15px; color: #9a9184; }
.bp-gal__count b { font-size: 44px; line-height: 1; font-weight: 200; letter-spacing: -0.02em; color: #a9843e; font-variant-numeric: tabular-nums; }
.bp-gal__stage { position: relative; margin-top: 56px; aspect-ratio: 1200 / 508; overflow: hidden; background: #e4ddd1; box-shadow: 0 40px 80px -50px rgba(60,40,20,.55); outline: none; }
.bp-gal__stage:focus-visible { outline: 2px solid #a9843e; outline-offset: 4px; }
.bp-gal__sl { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.bp-gal__sl.is-on { opacity: 1; z-index: 1; }
.bp-gal__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transform-origin: 55% 50%; }
.bp-gal__sl.is-on .bp-gal__img { transform: scale(1.07); transition: transform 7s linear; }
.bp-gal__sl.is-tall .bp-gal__img { position: relative; object-fit: contain; }
.bp-gal__blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(36px) brightness(.8); transform: scale(1.1); }
.bp-gal__stage::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,12,10,.55) 0%, rgba(14,12,10,.1) 45%, rgba(14,12,10,0) 70%), linear-gradient(0deg, rgba(14,12,10,.35), rgba(14,12,10,0) 42%); }
.bp-gal__cap { position: absolute; z-index: 3; left: 52px; bottom: 44px; color: #fff; pointer-events: none; }
.bp-gal__idx { font-size: 14px; letter-spacing: .1em; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.bp-gal__idx b { font-size: 18px; font-weight: 500; color: #fff; }
.bp-gal__en { margin-top: 10px; font-size: clamp(40px, 22px + 2.4vw, 62px); line-height: 1.05; font-weight: 200; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.bp-gal__ko { margin-top: 12px; font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: -0.02em; color: #e8d6ae; }
.bp-gal__en.is-in, .bp-gal__ko.is-in { animation: bpGalIn .9s var(--e2) both; }
.bp-gal__ko.is-in { animation-delay: .08s; }
@keyframes bpGalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bp-gal__arr { position: absolute; z-index: 3; top: 50%; width: 54px; height: 54px; margin-top: -27px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.18); cursor: pointer; transition: background-color .25s, border-color .25s; }
.bp-gal__arr--prev { left: 22px; }
.bp-gal__arr--next { right: 22px; }
.bp-gal__arr svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-gal__arr:hover { background: #a9843e; border-color: #a9843e; }
.bp-gal__arr:focus-visible { outline: 2px solid #e2c27f; outline-offset: 3px; }
.bp-gal__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.bp-gal__th { display: flex; flex-direction: column; gap: 9px; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; opacity: .5; transition: opacity .35s; }
.bp-gal__th:hover { opacity: .85; }
.bp-gal__th.is-on { opacity: 1; }
.bp-gal__th:focus-visible { outline: 2px solid #a9843e; outline-offset: 3px; }
.bp-gal__thi { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e4ddd1; }
.bp-gal__thi img { width: 100%; height: 100%; object-fit: cover; }
.bp-gal__thn { overflow: hidden; font-size: 14px; line-height: 1.3; font-weight: 500; color: #2a2724; white-space: nowrap; text-overflow: ellipsis; }
.bp-gal__bar { position: relative; display: block; height: 2px; background: rgba(60,40,20,.14); overflow: hidden; }
.bp-gal__bar i { position: absolute; inset: 0; background: #a9843e; transform: scaleX(0); transform-origin: 0 50%; }
.bp-gal__th.is-on .bp-gal__bar i { transform: scaleX(1); }
.bp-gal.is-run .bp-gal__th.is-on .bp-gal__bar i { animation: bpGalBar var(--gal-dwell) linear both; }
@keyframes bpGalBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bp-gal .bp-clinic__note { margin-top: 56px; }
@media (max-width: 1023px) {
  .bp-gal__hd { gap: 16px; }
  .bp-gal__count b { font-size: 34px; }
  .bp-gal__count { font-size: 13px; padding-bottom: 4px; }
  .bp-gal__stage { margin-top: 32px; aspect-ratio: 4 / 3; }
  .bp-gal__cap { left: 22px; bottom: 22px; right: 112px; }
  .bp-gal__en { font-size: 26px; letter-spacing: .05em; }
  .bp-gal__ko { margin-top: 8px; font-size: 15px; }
  .bp-gal__arr { top: auto; bottom: 18px; margin-top: 0; width: 40px; height: 40px; }
  .bp-gal__arr--prev { left: auto; right: 64px; }
  .bp-gal__arr--next { right: 18px; }
  .bp-gal__arr svg { width: 16px; height: 16px; }
  .bp-gal__strip { display: flex; gap: 8px; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .bp-gal__strip::-webkit-scrollbar { display: none; }
  .bp-gal__strip li { flex: 0 0 104px; scroll-snap-align: center; }
  .bp-gal__thn { font-size: 12.5px; }
  .bp-gal .bp-clinic__note { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-gal__sl { transition: none; }
  .bp-gal__sl.is-on .bp-gal__img { transform: none; transition: none; }
  .bp-gal__en.is-in, .bp-gal__ko.is-in { animation: none; }
}
