/* xscroll mobile */
.xscroll {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto !important;
	min-height: 100dvh;
	padding: 0;
	overflow: hidden;
}

.xscroll > article:nth-child(1) {
	width: 100%;
	padding: 3rem 1.25rem 1.5rem;
	display: block;
}

.xscroll > article:nth-child(2) {
	position: relative;
	width: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.xscroll ul {
	position: relative;
	inset: auto;
	display: flex;
	width: 100%;
	height: 78dvh;
	margin: 0;
	padding: 0 1.25rem;
	gap: .75rem;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	cursor: grab;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.xscroll ul::-webkit-scrollbar {
	display: none;
}

.xscroll .xscroll-track {
	display: contents;
}

.xscroll li {
	position: relative;
	flex: 0 0 82%;
	height: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: rgb(var(--n) / .3);
	aspect-ratio: auto;
	border-radius: .5rem;
	scroll-snap-align: center;
}

.xscroll figure {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

.xscroll img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xscroll li dl {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 3rem 1.5rem;
	color: rgb(var(--b) / 1);
	z-index: 2;
}

.xscroll li dl dt h2 {
	font-size: 1.7rem;
	text-transform: uppercase;
}

.xscroll li dl dt h4 {
	font-size: 1.15rem;
}

.xscroll li dl dd {
	position: absolute;
	width: calc(100% - 1rem);
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	color: rgb(var(--b) / 1);
	border-radius: 1rem;
}

.xscroll li dl dd span {
	font-weight: 800;
}

.xscroll .xscroll-ui {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 0;
	padding: 0 1rem;
	pointer-events: none;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.xscroll .xscroll-prev,
.xscroll .xscroll-next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	font-family: icomoon;
	font-size: 1.6rem;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	cursor: pointer;
	pointer-events: auto;
	transition: opacity 0.25s ease;
}

.xscroll .xscroll-prev {
	left: .5rem;
}

.xscroll .xscroll-next {
	right: .5rem;
	transform: rotate(270deg);
}

.xscroll .xscroll-prev::before,
.xscroll .xscroll-next::before {
	content: "\e900";
}

.xscroll .xscroll-prev::before {
	transform: rotate(90deg);
}

.xscroll .xscroll-prev.is-hidden,
.xscroll .xscroll-next.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.xscroll .xscroll-indicator {
	position: absolute;
	left: 1.25rem;
	bottom: 1rem;
	font-size: .8rem;
	letter-spacing: .08em;
	color: rgb(var(--b) / 1);
	opacity: 1;
	z-index: 10;
}

.xscroll .xscroll-hint {
	position: relative;
	left: auto;
	top: auto;
	margin: 1rem 1.25rem 0;
	font-size: .9rem;
	color: rgb(var(--b) / 1);
	text-align: left;
	white-space: normal;
	opacity: 1;
	pointer-events: none;
	z-index: 10;
}

/* xscroll nav mobile */
.xscroll > article:nth-of-type(1) nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: .75rem;
	width: 100%;
	height: auto;
	text-align: left;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.xscroll > article:nth-of-type(1) nav::-webkit-scrollbar {
	display: none;
}

.xscroll > article:nth-of-type(1) nav a {
	display: block;
	flex: 0 0 auto;
	width: fit-content;
	max-width: none;
	cursor: pointer;
	text-align: left;
	white-space: nowrap;
}

.xscroll > article:nth-of-type(1) nav a.is-active {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: .25em;
}
