@charset "utf-8";

/*
 * PC: 좌우 버튼은 배너 세로 중앙·가장자리에 반쯝 걸침(left/right 0 + translate ±50%).
 * 모바일: 버튼은 이미지 안쪽 유지.
 */
.wr-title-widget-outer {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wr-title-widget {
	--wr-title-ar-w: 990;
	--wr-title-ar-h: 204;
	--wr-title-nav-size: 34px;
	--wr-title-nav-icon: 13px;
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: 10px;
	overflow: hidden;
	background: #2a1d14;
	-webkit-box-shadow: 5px 5px 8px rgb(197 192 249 / 20%);
	-moz-box-shadow: 5px 5px 8px rgb(197 192 249 / 20%);
	box-shadow: 5px 5px 8px rgb(197 192 249 / 20%);
	margin-left: 0;
	margin-right: 0;
}

.wr-title-widget::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 85% 45%, rgba(212, 168, 120, 0.12) 0%, transparent 55%);
	z-index: 0;
	border-radius: 10px;
}

.wr-title-inner {
	position: relative;
	border-radius: 10px;
}

.wr-title-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	border-radius: 10px;
}

.wr-title-track {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: nowrap;
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.wr-title-slide {
	flex: 0 0 100%;
	min-width: 0;
	box-sizing: border-box;
}

.wr-title-slide__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: #1f1510;
	aspect-ratio: var(--wr-title-ar-w) / var(--wr-title-ar-h);
}

.wr-title-widget[data-wr-title-h="pct"] .wr-title-slide__media {
	aspect-ratio: calc(100 / var(--wr-title-h-pct-num));
}

@supports not (aspect-ratio: 1) {
	.wr-title-widget[data-wr-title-h="px"] .wr-title-slide__media,
	.wr-title-widget:not([data-wr-title-h]) .wr-title-slide__media {
		height: 0;
		padding-bottom: calc(100% * var(--wr-title-ar-h) / var(--wr-title-ar-w));
	}
	.wr-title-widget[data-wr-title-h="pct"] .wr-title-slide__media {
		height: 0;
		padding-bottom: var(--wr-title-padding-bottom);
	}
	.wr-title-slide__media img,
	.wr-title-img-link {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
	}
}

.wr-title-slide__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	vertical-align: top;
}

.wr-title-img-link {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.wr-title-img-link img {
	height: 100%;
}

/* 불투명 단색 원형 버튼 — 위치·transform 은 미디어쿼리에서 지정 */
.wr-title-nav {
	position: absolute;
	top: 50%;
	z-index: 6;
	width: var(--wr-title-nav-size);
	height: var(--wr-title-nav-size);
	padding: 0;
	border: 1px solid #c0c0c0;
	border-radius: 50%;
	background-color: #fff;
	color: #4a4a4a;
	box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.wr-title-nav__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.wr-title-nav__svg {
	width: var(--wr-title-nav-icon);
	height: var(--wr-title-nav-icon);
	display: block;
}

.wr-title-nav:hover:not(:disabled) {
	background-color: #fff;
	color: #222222;
	border-color: #a8a8a8;
	box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wr-title-nav:active:not(:disabled) {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
}

/* 비활성도 완전 불투명 — 흐리게만 표현 */
.wr-title-nav:disabled {
	opacity: 1;
	cursor: default;
	background-color: #fff;
	color: #9a9a9a;
	border-color: #cfcfcf;
	box-shadow: none;
}

.wr-title-empty {
	border-radius: 10px;
	border: 1px dashed rgba(0, 0, 0, 0.15);
}

/* PC: 배너 좌우 가장자리 중앙 — 원의 절반이 밖으로(참고 이미지와 동일) */
@media (min-width: 768px) {
	.wr-title-widget {
		overflow: visible;
	}

	.wr-title-inner {
		overflow: visible;
	}

	.wr-title-nav--prev {
		left: 3px;
		transform: translate(-50%, -50%);
	}

	.wr-title-nav--next {
		right: 3px;
		transform: translate(50%, -50%);
	}
}

/* 모바일: 배너 안쪽(현재 유지) */
@media (max-width: 767.98px) {
	.wr-title-widget {
		overflow: hidden;
		--wr-title-nav-size: 30px;
		--wr-title-nav-icon: 12px;
	}

	.wr-title-inner {
		overflow: hidden;
	}

	.wr-title-nav--prev {
		left: 11px;
		transform: translateY(-50%);
	}

	.wr-title-nav--next {
		right: 11px;
		transform: translateY(-50%);
	}
}
