/* Image gallery — media grid with fixed-ratio crops and overlay captions.
   Ratios and caption treatment measured from the reference image-gallery +
   media-lightbox components (66.67% → 56.25% padding hack, #0000008c strip). */

.image-gallery { position: relative; }

.image-gallery .grid--cols-2 {
	grid-template-columns: repeat(2, 1fr);
	grid-row-gap: var(--grid-row-gutter);
}

.image-gallery__item {
	border-radius: 0;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.image-gallery__media {
	height: 100%;
	margin: 0;
	overflow: hidden;
	padding-bottom: 66.6666666667%;
	position: relative;
}
@media screen and (min-width: 1280px) {
	.image-gallery__media { padding-bottom: 56.25%; }
}
.image-gallery__media img {
	border-radius: 0;
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
	transition: transform var(--transition-time) var(--transition-easing);
}
.image-gallery__item:hover .image-gallery__media img { transform: scale(var(--scale-size)); }

.image-gallery__caption {
	background: #0000008c;
	border-radius: 0;
	bottom: 0;
	color: var(--color-soft-white);
	display: flex;
	font-style: normal;
	justify-content: space-between;
	margin: 0;
	padding: 7px 12px;
	position: absolute;
	text-align: left;
	width: 100%;
	z-index: 1;
}
@media screen and (min-width: 768px) {
	.image-gallery__caption { padding-bottom: 8px; padding-top: 8px; }
}
