/* Image Gallery */
.image_gallery-header {
	margin-bottom: 48px;
}

.image_gallery-title {
	line-height: 1.35;
	color: var(--color-white);
}

/* Row of three squares. */
.image_gallery-item {
	position: relative;
	flex: 0 0 calc((100% - 48px) / 3);
	min-width: 0;
	border-radius: var(--radius-6);
}

.image_gallery-image {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.image_gallery-item:hover .image_gallery-image {
	transform: scale(1.03);
}

/* Row of two wide images (816 + 600 on a 1440 container). */
.image_gallery-item:nth-child(5n + 4) {
	flex-basis: calc((100% - 24px) * 816 / 1416);
}

.image_gallery-item:nth-child(5n + 5) {
	flex-basis: calc((100% - 24px) * 600 / 1416);
}

.image_gallery-item:nth-child(5n + 4) .image_gallery-image {
	aspect-ratio: 816 / 466;
}

.image_gallery-item:nth-child(5n + 5) .image_gallery-image {
	aspect-ratio: 600 / 466;
}

@media (max-width: 1024px) {
	.image_gallery-image {
		aspect-ratio: 293 / 320;
	}

	.image_gallery-item:nth-child(5n + 4),
	.image_gallery-item:nth-child(5n + 5) {
		flex-basis: calc((100% - 24px) / 2);
	}

	.image_gallery-item:nth-child(5n + 4) .image_gallery-image,
	.image_gallery-item:nth-child(5n + 5) .image_gallery-image {
		aspect-ratio: 452 / 360;
	}
}

@media (max-width: 767px) {
	.image_gallery-header {
		margin-bottom: 24px;
	}

	.image_gallery-list {
		gap: 16px;
	}

	.image_gallery-item,
	.image_gallery-item:nth-child(5n + 4),
	.image_gallery-item:nth-child(5n + 5) {
		flex-basis: 100%;
	}

	.image_gallery-image {
		aspect-ratio: 342 / 180;
	}

	.image_gallery-item:nth-child(5n + 4) .image_gallery-image,
	.image_gallery-item:nth-child(5n + 5) .image_gallery-image {
		aspect-ratio: 342 / 220;
	}
}
