.dodd-project-gallery {
	--dodd-gallery-gap: 16px;
	--dodd-gallery-radius: 6px;
	--dodd-gallery-tile-height: 250px;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
	grid-auto-rows: var(--dodd-gallery-tile-height);
	gap: var(--dodd-gallery-gap);
}

.dodd-project-gallery--featured-right {
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.dodd-project-gallery__link,
.dodd-project-gallery__item {
	min-width: 0;
	min-height: 0;
}

.dodd-project-gallery__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.dodd-project-gallery__link:first-child,
.dodd-project-gallery__item:first-child,
.dodd-project-gallery__link.is-featured {
	grid-row: span 2;
}

.dodd-project-gallery--featured-right .dodd-project-gallery__link:first-child,
.dodd-project-gallery--featured-right .dodd-project-gallery__item:first-child,
.dodd-project-gallery--featured-right .dodd-project-gallery__link.is-featured {
	grid-column: 3;
}

.dodd-project-gallery__item {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: var(--dodd-gallery-radius);
	background: #6d6f71;
}

.dodd-project-gallery__item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.dodd-project-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 320ms ease;
}

.dodd-project-gallery__link:hover .dodd-project-gallery__item img,
.dodd-project-gallery__item:hover img {
	transform: scale(1.045);
}

.dodd-project-gallery__link:hover .dodd-project-gallery__item::before,
.dodd-project-gallery__item:hover::before {
	opacity: 0.66;
}

.dodd-project-gallery--placeholder .dodd-project-gallery__item {
	border: 1px dashed rgba(35, 31, 32, 0.22);
}

@media (max-width: 767px) {
	.dodd-project-gallery,
	.dodd-project-gallery--featured-right {
		grid-template-columns: 1fr;
	}

	.dodd-project-gallery__link:first-child,
	.dodd-project-gallery__item:first-child,
	.dodd-project-gallery__link.is-featured,
	.dodd-project-gallery--featured-right .dodd-project-gallery__link:first-child,
	.dodd-project-gallery--featured-right .dodd-project-gallery__item:first-child,
	.dodd-project-gallery--featured-right .dodd-project-gallery__link.is-featured {
		grid-column: auto;
		grid-row: span 1;
	}
}
