.af-pg__outer {
	display: flex;
	width: 100%;
}

.af-pg {
	width: 100%;
}

.af-pg__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.af-pg__item {
	margin: 0;
	padding: 0;
}

.af-pg__item.is-sticky {
	position: sticky;
	z-index: 2;
}

.af-pg__figure {
	margin: 0;
}

.af-pg__media {
	position: relative;
	overflow: hidden;
	width: 100%;
	line-height: 0;
}

.af-pg__link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.af-pg__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	transition-property: transform, opacity, filter;
	transition-timing-function: ease;
}

.af-pg.hover-zoom .af-pg__item:hover .af-pg__img {
	transform: scale(1.04);
}

.af-pg.hover-zoom-out .af-pg__item:hover .af-pg__img {
	transform: scale(0.96);
}

.af-pg.hover-slide-up .af-pg__item:hover .af-pg__img {
	transform: translateY(-8px);
}

.af-pg__caption {
	margin: 10px 0 0;
	line-height: 1.4;
	font-size: 0.9rem;
}

.af-pg__index,
.af-pg__sale {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	pointer-events: none;
}

.af-pg__index {
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
}

.af-pg__sale {
	top: 12px;
	left: 12px;
	background: #b42318;
	color: #fff;
}

.af-pg--empty {
	padding: 24px;
	border: 1px dashed color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 12px;
	text-align: center;
	opacity: 0.75;
	font-size: 0.95rem;
}

.af-pg__stage {
	position: relative;
	width: 100%;
}

.af-pg__arrow {
	display: none;
}

@media (max-width: 767px) {
	.af-pg__item.is-sticky {
		position: static;
	}

	.af-pg.is-slider .af-pg__stage {
		border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
		border-radius: 8px;
		overflow: hidden;
		background: color-mix(in srgb, currentColor 3%, transparent);
	}

	.af-pg.is-slider .af-pg__list {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		/* Allow both page scroll (vertical) and slide swipe (horizontal). */
		touch-action: pan-x pan-y;
	}

	.af-pg.is-slider .af-pg__list.is-vscroll {
		overflow-x: hidden;
		touch-action: pan-y;
	}

	.af-pg.is-slider .af-pg__list.is-hscroll {
		touch-action: pan-x;
	}

	.af-pg.is-slider .af-pg__list::-webkit-scrollbar {
		display: none;
	}

	.af-pg.is-slider .af-pg__item {
		flex: 0 0 100%;
		min-width: 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
		display: flex;
		flex-direction: column;
	}

	.af-pg.is-slider .af-pg__figure {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		width: 100%;
		margin: 0;
	}

	.af-pg.is-slider .af-pg__media {
		position: relative;
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 1 1 auto;
		width: 100%;
		line-height: normal;
	}

	.af-pg.is-slider .af-pg__link {
		position: static !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: auto;
		min-height: 100%;
		align-self: stretch;
	}

	.af-pg.is-slider .af-pg__img {
		position: static !important;
		display: block !important;
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: none !important;
		object-fit: contain !important;
		object-position: center center !important;
		margin: auto !important;
		flex: 0 1 auto;
		align-self: center;
	}

	.af-pg.is-slider .af-pg__arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		z-index: 5;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.92);
		color: inherit;
		cursor: pointer;
		flex-shrink: 0;
		transform: translateY(-50%);
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	}

	.af-pg.is-slider .af-pg__arrow--prev {
		left: 10px;
	}

	.af-pg.is-slider .af-pg__arrow--next {
		right: 10px;
	}

	.af-pg.is-slider .af-pg__arrow::before {
		content: "";
		display: block;
		width: 8px;
		height: 8px;
		border-top: 2px solid currentColor;
		border-right: 2px solid currentColor;
	}

	.af-pg.is-slider .af-pg__arrow--prev::before {
		transform: rotate(-135deg) translate(-1px, 1px);
	}

	.af-pg.is-slider .af-pg__arrow--next::before {
		transform: rotate(45deg) translate(-1px, 1px);
	}

	.af-pg__nav {
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 12px;
	}

	.af-pg__dots {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	.af-pg__dot {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: color-mix(in srgb, currentColor 25%, transparent);
		cursor: pointer;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.af-pg__dot.is-active {
		transform: scale(1.25);
		background: currentColor;
	}
}

@media (min-width: 768px) {
	.af-pg__nav,
	.af-pg__arrow {
		display: none;
	}
}
