/**
 * Layout shim for legacy portfolio `<picture>` output.
 *
 * The existing templates size their img elements through a card, gallery or
 * Divi wrapper. The picture element must participate in the same sizing
 * contract without changing the approved layouts.
 */

.tnp-legacy-project-picture {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
}

.tnp-legacy-project-picture > img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
}

.tnp-photo-detail__lightbox-stage > .tnp-photo-detail__lightbox-picture {
	display: grid;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	place-items: center;
}

.tnp-photo-detail__lightbox-stage > .tnp-photo-detail__lightbox-picture > img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
}
