.modal-overlay {
	position: fixed;
	z-index: 2;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.65);
	display: none;
}

.modal-overlay.is-grayed {
	display: block;
}

.modal {
	height: 70vh;
	width: 70vw;
	background-color: #fff;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 45px;
	opacity: 0;
	pointer-events: none;
	transition: all 300ms ease-in-out;
	z-index: 3;
}

.modal.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.modal-closer {
	position: absolute;
	font-size: 2rem;
	right: 5px;
	top: -10px;
	cursor: pointer;
	transform: rotate(45deg);
}

.modal-opener {
	display: inline-block;
}

.modal-content {
	height: 100%;
	display: flex;
	justify-content: center;
}

.modal-content img {
  width: 100%;
}

.modal-spinner-fullsize {
  height: 100%;
  display: flex;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .modal-content img {
    height: 100%;
    width: auto;
  }
}
