/*  Homepage image pop-up  ------------------------------------------------
    Enqueued on the front page only — see functions.php
    ---------------------------------------------------------------------- */

.isiri-popup[hidden] {
	display: none !important;
}

.isiri-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 30px 22px;
	opacity: 0;
	-webkit-transition: opacity .28s ease;
	transition: opacity .28s ease;
}

.isiri-popup.is-open {
	opacity: 1;
}

.isiri-popup__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(18, 13, 8, .8);
	cursor: pointer;
}

.isiri-popup__dialog {
	position: relative;
	z-index: 1;
	max-width: 560px;
	-webkit-transform: translateY(16px) scale(.96);
	transform: translateY(16px) scale(.96);
	-webkit-transition: -webkit-transform .32s cubic-bezier(.2, .8, .3, 1);
	transition: transform .32s cubic-bezier(.2, .8, .3, 1);
}

.isiri-popup.is-open .isiri-popup__dialog {
	-webkit-transform: none;
	transform: none;
}

.isiri-popup__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 100px);
	border-radius: 4px;
	-webkit-box-shadow: 0 26px 64px rgba(0, 0, 0, .5);
	box-shadow: 0 26px 64px rgba(0, 0, 0, .5);
}

.isiri-popup__close {
	position: absolute;
	top: -17px;
	right: -17px;
	width: 42px;
	height: 42px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1a1208;
	line-height: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
	-webkit-transition: background-color .2s ease, color .2s ease, -webkit-transform .2s ease;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.isiri-popup__close:focus {
	outline: none;
}

/* The button is focused programmatically when the pop-up opens, so the
   highlight is kept to hover and real keyboard focus. */
.isiri-popup__close:hover,
.isiri-popup__close:focus-visible {
	background: #c8952f;
	color: #fff;
	-webkit-transform: scale(1.07);
	transform: scale(1.07);
}

.isiri-popup__close svg {
	width: 17px;
	height: 17px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

body.isiri-popup-open {
	overflow: hidden;
}

@media only screen and (max-width: 600px) {

	.isiri-popup {
		padding: 20px 16px;
	}

	.isiri-popup__close {
		top: 8px;
		right: 8px;
		width: 36px;
		height: 36px;
		background: rgba(255, 255, 255, .92);
	}

	.isiri-popup__close svg {
		width: 15px;
		height: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.isiri-popup,
	.isiri-popup__dialog,
	.isiri-popup__close {
		-webkit-transition: none;
		transition: none;
	}
}
