#overlay {
	position: fixed;
	display: none;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 100;
	box-sizing: border-box;
	cursor: pointer;
	padding: 2em 1em;
}

#overlay * {
	cursor: default;
}

#postcard {
	background: white;
	aspect-ratio: 3/4;
	width: 100%;
	height: auto;

	max-height: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-radius: 10px;
}

#postcard .content {
	width: 80%;
	margin-top: 10%;
}

#postcard img {
	object-fit: cover;
	aspect-ratio: 1;
	width: 100%;
}

/* make image appear light blue while rendering */
.image-placeholder {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	background-color: #c9e9ff;
}

.image-placeholder img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-aspect-ratio: 3/4) {
	#postcard {
		height: 100%;
		width: auto;
	}
}