/**
 * yh.swiper.css - 공용 Swiper 슬라이더 필수 구조 스타일
 * --------------------------------------------------
 * @version 1.0.0 (2026-08-05)
 * @require yh.swiper.js 와 함께 로드 (swiper.css 다음 순서)
 * --------------------------------------------------
 * 접근성/구조 유지에 필요한 스타일만 포함합니다.
 * 색상, 크기 등 디자인 스타일은 프로젝트 CSS 에서 정의하세요.
 */

/* ==================================================
	기본 구조
================================================== */
.slider .swiper-slide {width:100%;}
.slider .swiper-slide > a {display:block;}
.slider .swiper-slide img {display:block; max-width:100%;}

/* ==================================================
	fix-scroll : 키보드 초점 진입 시 스크롤 가능한 일반 목록으로 전환 (웹접근성)
	- yh.swiper.js 가 키보드 초점 감지 시 그룹에 .fix-scroll 부여
================================================== */
.fix-scroll .swiper-container {display:block; position:relative;}
.fix-scroll .swiper-wrapper {display:block !important; transform:none !important; -webkit-transform:none !important; height:100% !important; overflow:auto; white-space:nowrap;}
.fix-scroll .swiper-wrapper li {display:inline-block !important; vertical-align:top; transform:none !important; -webkit-transform:none !important; opacity:1 !important;}
.fix-scroll .swiper-wrapper li a {display:block;}
/* 초점 표시 : 가상요소(:before/:after)는 디자인용으로 사용되는 경우가 많아 초점 표시에 사용 금지.
   box-shadow inset 방식으로 요소 "안쪽"에 라인 표시 (overflow:hidden 잘림 방지, IE9+ 지원)
   outline transparent 는 고대비 모드(Windows HCM)에서 초점 표시 보장용 */
.fix-scroll .swiper-wrapper li a:focus,
.fix-scroll .swiper-wrapper li button:focus {outline-offset:-2px;}
.fix-scroll .swiper-slide-duplicate {display:none !important;} /* loop 복제 슬라이드는 스크롤 목록에서 제외 (중복 노출 방지) */

/* ==================================================
	yhGrid : 재그룹핑 슬라이드 내부 목록 초기화
	- 아이템 배치(열 갯수 등)는 프로젝트 CSS 에서 정의
================================================== */
.swiper-slide.yh-grid-slide > ul {display:block; margin:0; padding:0; list-style:none; height:100%;}

/* ==================================================
	yhPagination 프리셋 구조
================================================== */
/* bullet : 버튼형 (색/모양은 프로젝트 정의) */
.pager .swiper-pagination-bullet {display:inline-block; vertical-align:middle; cursor:pointer;}

/* fraction / progress : 0 - 0 구조 */
.pager .swiper-pagination-current,
.pager .swiper-pagination-total {display:inline-block; vertical-align:middle;}
.pager .bar {display:inline-block; position:relative; vertical-align:middle; overflow:hidden;}

/* progress : bar 내부 fill 이 autoplay delay 에 맞춰 차오름 */
.pager.yh-progress .bar .fill {display:block; position:absolute; top:0; left:0; bottom:0; width:0;}
.pager.yh-progress.active-loading .bar .fill {width:100%;
	/* 애니메이션 필수 속성 -- */
	transition-property:width; -webkit-transition-property:width;
	transition-timing-function:linear; -webkit-transition-timing-function:linear;
	/* -- 애니메이션 필수 속성 */
}

/* page-progress : 현재 페이지 위치만큼 차오르는 막대
   - Swiper 네이티브 progressbar(transform scaleX) 대신 width 방식으로 직접 처리
   - transform 을 쓰지 않으므로 bar/fill 에 border-radius, 끝 dot(.fill:after) 등 장식 요소가 깨지지 않음
   - 막대 안에 숨김 텍스트로 "N / 총 페이지" 를 함께 제공 (스크린리더 대응) */
.pager.yh-page-progress .bar {display:inline-block; position:relative; vertical-align:middle; overflow:hidden;}
.pager.yh-page-progress .bar .fill {display:block; position:absolute; top:0; left:0; bottom:0; width:0;
	transition:width .3s; -webkit-transition:width .3s;}

/* 레거시 .ani-progress-bar 마크업 하위호환 */
.ani-progress-bar .bar {display:block; position:absolute; top:0; left:0; bottom:0; width:0;}
.ani-progress-bar.active-loading .bar {width:100%;
	transition-property:all; -webkit-transition-property:all;
	transition-timing-function:linear; -webkit-transition-timing-function:linear;
}

/* ==================================================
	전체보기 팝업 기본 구조 (디자인은 프로젝트 정의)
================================================== */
.popup-slide-view {display:none; position:fixed; top:0; left:0; right:0; bottom:0; z-index:1000; background:rgba(0,0,0,.75);}
.popup-slide-view:focus {outline:none;} /* 프로그램 초점용 컨테이너 - 내부 요소 초점 시각화는 유지 */
.popup-slide-view .popup {position:absolute; top:0; left:0; right:0; bottom:0; overflow:auto; -webkit-overflow-scrolling:touch;}

/* ==================================================
	컨트롤로 돌아가기 (키보드 사용자용 숨김 링크)
================================================== */
.goto-control {display:block; position:absolute; width:100%; height:0; overflow:hidden; bottom:0; left:0; right:0; z-index:-1000; background:#2292e9; text-align:center; color:#fff !important; opacity:0; box-sizing:border-box;}
.goto-control:focus {z-index:9999; opacity:1; height:auto; padding:10px;}
