
body.image-modal-open{
	overflow: hidden;
}

#img-modal {
	background: white;
}
.img-modal-img-container .img-cr.img-cr-not-gallery {
	margin-left: 1em;
}
.img-modal-img-container .img-cr-toggle{
	float: left;
	margin-left: 0;
	cursor: default;
}
#img-modal figcaption {
	color: inherit;
	margin: auto;
	text-align: center;
}

@media (max-width:600px) {
	.img-modal-img-container figure {
		padding-top: 3rem;
	}
}
/**********************************************\
1.  Gallery/Image Modal
\**********************************************/
.reveal{
	display: none;
	position: fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	z-index: 9999;
}
.img-modal-img-container{
}
.img-modal-img-container figure {
	display: flex;
	flex-direction: column;
}
.img-modal-img-container figure img {
	object-fit: contain;
	max-height: 75vh;
	max-width: 75vw;
	margin: 1rem auto;
}
.img-modal-controls{
	z-index: 10000;
	position: absolute;
	top:0;
	right:0;
}
.img-modal-controls button{
	display: inline-block;
  padding: 1rem 1.75rem;
  font-size: 2.5rem;
  color: #000;
	border: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin: 0;
	text-decoration: none;
	background: none;
}
#img-modal-grid-view{
	padding:0.5rem;
	position: absolute;
    width: 25vw;
    top: 0;
    right: 0;
    background-color:#c7ccd4;
    bottom:0;
    transform:translateX(100%);
    transition:0.75s;
}
#img-modal-grid-view > div{
	padding:0.5rem;
	display:inline-block;
	width:50%;
	cursor: pointer;
}
#img-modal-grid-view > div > div{
	width:100%;
	height:0;
	padding-bottom:100%;
	background-size:cover;
	background-position: center;
}
#img-modal-grid-view.opened{
	transform:none;
}
.img-modal-inner{
	width:100%;
	transition:0.75s;
	height:100%;
	position: relative;
}
.img-modal-inner.shifted{
	width:75vw;
}
.modal-gallery-nav{
	position: absolute;
    top: 50%;
    transform:translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
}
.modal-gallery-nav button{
	font-size:5rem;
	padding:2.5rem;
	margin:0 2.5rem;
	background-color:rgba(255,255,255,0);
	border: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin: 0;
	text-decoration: none;
	background: none;
}
.img-modal-img-container figure img{
	transition: opacity 0.5s ease;
}
/* figure a{
	position: relative;
	display: block;
} */
figure:not(.wp-block-table) a:hover img{
	opacity:0.4;
	position: relative;
}
/* figure:not(.wp-block-table) a:hover:after{
	content:'\f00e';
	font-family: "Font Awesome 5 Pro";
	font-weight: 900;
	color:#006604;
	font-size: 5rem;
    width: 100%;
    line-height: 1em;
    text-align: center;
    position: absolute;
    opacity: 1;
    top: calc(50% - 2.5rem);
} */
