JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
<div class="flex-column">

	<div class="primary"><img src="https://via.placeholder.com/200">
		<div class="mask"><img src="https://via.placeholder.com/200/FF000"></div>
	</div>

	<div class="flex-row"><img src="https://via.placeholder.com/75x150"><img src="https://via.placeholder.com/150x75">
	</div>

	<div class="nonimage">
		<div class="smallhint">Some Text<br>Other Text</div></div>
	</div>

</div>
</div>

PostCSS (Stage 0+)

body {
	font-family: arial;
	font-size: 26px;
	text-align: center;
	color: black;
	background-color: white;
}

.smallhint {
  font-size: 16px;
  color: #8c8c8c;
}

img {
	padding: 0;
	margin: 0;
	font-size: 0;
}

.flex-column {
	display: flex;
	flex-direction: column;
	padding: 0px;
	margin: 0px;
	height: 90vh;
	flex-grow: 0;
	min-width: 0;
	min-height: 0;
}

.flex-row {
	display: flex;
	flex-direction: row;
	flex: 0 1.5 auto;
	justify-content: center;
	align-items: center;
	padding: 0px;
	margin: 0px;
	font-size: 0;
	min-width: 0;
	min-height: 0;
	background-color: yellow;
}

.context {
	display: flex;
	min-height: 0;
	background-color: blue;
}

.content img {
	height: 100%;
}

.primary {
	position: relative;
	z-index: 0;
	right: 0;
	bottom: 0;
	padding: 0;
	font-size: 0;
	min-height: 0;
}

.primary img {
	border-style: solid;
	border-width: 3px;
	border-color: black;
	height: calc(100% - 2*3px);
}

.mobile .nightMode .primary img {
	border-style: solid;
	border-width: 3px;
	border-color: black;
}

.mask {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	font-size: 0;
}

.nonimage {
	padding-top: 5px;
	display: inline;
}