.age-gallery {
	--age-gap: 30px;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.age-gallery .swiper-wrapper {
	align-items: flex-start;
}

.age-gallery__slide {
	width: auto !important;
	flex-shrink: 0;
	margin-right: var(--age-gap);
}

.age-gallery__slide:last-child {
	margin-right: 0;
}

.age-gallery__figure {
	margin: 0;
	width: max-content;
	max-width: none;
}

.age-gallery__link {
	display: block;
	width: max-content;
	max-width: none;
}

.age-gallery__image {
	display: block;
	width: auto !important;
	max-width: none !important;
	object-fit: contain;
	object-position: center;
}

.age-gallery__caption {
	max-width: min(100%, 700px);
	font-size: 14px;
	line-height: 1.5;
}

.age-gallery__button {
	position: absolute;
	z-index: 5;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 180ms ease, transform 180ms ease;
}

.age-gallery__button:hover {
	transform: translateY(-50%) scale(1.05);
}

.age-gallery__button--prev {
	left: 18px;
}

.age-gallery__button--next {
	right: 18px;
}

.age-gallery__button.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.age-gallery__pagination {
	position: relative !important;
	bottom: auto !important;
	margin-top: 18px;
}

.age-gallery__empty {
	padding: 24px;
	border: 1px dashed #b7b7b7;
	text-align: center;
}

@media (max-width: 767px) {
	.age-gallery__button {
		width: 40px;
		height: 40px;
	}

	.age-gallery__button--prev {
		left: 10px;
	}

	.age-gallery__button--next {
		right: 10px;
	}
}


@media (max-width: 767px) {
	/*
	 * Each mobile slide is at least one gallery-width wide, so a portrait
	 * image is isolated and centered. A landscape image is allowed to make
	 * its slide wider than the viewport so the image can keep the exact same
	 * fixed height and natural aspect ratio without being resized shorter.
	 */
	.age-gallery--mobile-single .age-gallery__slide {
		width: auto !important;
		min-width: 100%;
		margin-right: 0;
		display: flex;
		justify-content: center;
		overflow: visible;
	}

	.age-gallery--mobile-single .age-gallery__figure,
	.age-gallery--mobile-single .age-gallery__link {
		width: max-content;
		max-width: none;
		display: flex;
		flex-direction: column;
		align-items: center;
		flex-shrink: 0;
	}

	.age-gallery--mobile-single .age-gallery__image {
		width: auto !important;
		height: var(--age-image-height, 360px) !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: contain;
		flex-shrink: 0;
	}

	.age-gallery--mobile-single .age-gallery__caption {
		width: 100%;
		max-width: 100vw;
		text-align: center;
	}
}
