.riftfall-gallery {
	margin-top: 22px;
	min-width: 0;
}

.riftfall-gallery-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 520px;
	background: #08090d;
	overflow: hidden;
}

.riftfall-gallery-slide {
	position: absolute;
	inset: 0;
	display: block;
}

.riftfall-gallery [hidden] {
	display: none !important;
}

.riftfall-gallery-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.riftfall-gallery-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 10px 0;
}

.riftfall-gallery-caption {
	color: #f3d88b;
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.riftfall-gallery-controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.riftfall-gallery-controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 1px solid #434956;
	border-radius: 3px;
	background: #111722;
	color: #f3d88b;
	font-size: 14px;
	cursor: pointer;
}

.riftfall-gallery-controls button:hover {
	background: #252b35;
}

.riftfall-gallery button:focus-visible,
.riftfall-gallery-slide:focus-visible {
	outline: 2px solid #f3d88b;
	outline-offset: -3px;
}

.riftfall-gallery-count {
	min-width: 54px;
	text-align: center;
	color: #d5d8df;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
