/* 기존 퍼블 레이아웃/텍스트를 유지하며 CSS 배경 사진을 실제 이미지로 표시한다. */
/* width:100%인 기존 이미지가 height 속성의 원본 픽셀 높이로 늘어나지 않게 한다.
   선택자 우선순위는 0: 기존 cover/고정 높이 규칙은 그대로 우선한다. */
:where(img[data-space-photo]) { height: auto; }
.space-photo-hero { position: relative; isolation: isolate; background-image: none !important; }
.space-photo-hero > .space-hero-picture { position: absolute; inset: 0; z-index: -1; display: block; }
.space-photo-hero > .space-hero-picture > .space-hero-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-hanok-detail_floor .space-floor-photo { margin: 0; position: relative; width: 100%; height: 100%; }
.space-gallery-photo { margin: 0; position: relative; }
.space-floor-photo figcaption, .space-gallery-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 14px; }
