.asg-gallery-block {
	width: 100%;
	margin: 0 auto;
	padding-block: 80px;
}

.asg-gallery-block * {
	box-sizing: border-box;
}

.asg-gallery__viewport {
	max-width: 1440px;
	margin: 0 auto;
	padding-inline: 40px;
	overflow: hidden;
}

@media (min-width: 1400px) {
	.asg-gallery__viewport {
		max-width: 1360px;
	}
}

.asg-gallery__track {
	align-items: flex-start;
}

.asg-gallery__slide {
	height: auto;
}

.asg-gallery__figure {
	margin: 0;
	display: grid;
	gap: 0.75rem;
}

.asg-gallery__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.asg-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.asg-gallery__caption {
	color: inherit;
	font-size: 0.95rem;
	line-height: 1.5;
}

.asg-gallery__controls {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 2rem;
}

.asg-gallery__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.asg-gallery__nav-group {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	flex-shrink: 0;
}

.asg-gallery__nav:hover,
.asg-gallery__nav:focus-visible {
	opacity: 0.75;
}

.asg-gallery__nav.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}

.asg-gallery__pagination {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-start;
	max-width: 24rem;
}

.asg-gallery__pagination .swiper-pagination-bullet {
	width: 7.5rem;
	height: 2px;
	margin: 0;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.15;
}

.asg-gallery__pagination .swiper-pagination-bullet-active {
	opacity: 1;
}

@media (max-width: 767px) {
	.asg-gallery__viewport {
		padding-inline: 1rem;
	}

	.asg-gallery__controls {
		align-items: center;
		gap: 1.25rem;
		margin-top: 1.25rem;
	}

	.asg-gallery__pagination {
		max-width: none;
	}

	.asg-gallery__pagination .swiper-pagination-bullet {
		width: 1rem;
	}
}
