.grid-image-text-item {
	width: 246px;
	margin: 5px;
}

.grid-image-text-item.with-popup {
	cursor: pointer;
}

.grid-image-text-item .grid-image-text-item-image{
	width: 246px;
	height: 307px;
	position: absolute;
}

.grid-image-text-item .grid-image-text-item-text-layout {
	background-color: white;
    padding: 10px;
    margin-right: 10px;
    margin-left: 10px;
    display: block;
    margin-top: 272px;
    position: relative;
}

.grid-image-text-item .grid-image-text-item-title {
	color: #ac854a;
	font-family: "Cormorant Garamond",serif;
}

.grid-image-text-item .grid-image-text-item-text {
	font-family: "Cormorant Garamond",serif;
}

.grid-image-text-item .grid-image-text-item-more-button {
	color: #ac854a;
	font-family: "Cormorant Garamond",serif;
	text-align: center;
}

.grid-image-text-item:hover .grid-image-text-item-more-button {
	text-decoration: underline;
}

/*Popup*/
.grid-image-text-item-popup {
	display: none;
	background: white;
	position: fixed;
	height: calc(100vh - 200px);
	width: 800px;
	top: 180px;
	left: 0;
	right: 0;
	margin: auto;
	box-shadow: 1px 1px 20px grey;
	padding: 30px 0;
	flex-direction: column;
	overflow-y: scroll;
	z-index: 400000;
}

.grid-image-text-item-popup.show {
	display: flex;
}

.grid-image-text-item-popup-content {
	width: 80%;
	margin: auto;
	display: flex;
	flex-direction: column;
}

.grid-image-text-item-popup .grid-image-text-item-close {
	-moz-osx-font-smoothing: grayscale;
	position: absolute;
	right: 20px;
	top: 15px;
}

.grid-image-text-item-popup .grid-image-text-item-close:after {
	transform: rotate(0deg);
	transition: transform .2s;
	display: inline-block;
	font-family: 'maz-icon-font';
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	line-height: 1;
	text-transform: none;
	content: "";
	margin-left: 18px;
	vertical-align: middle;
	cursor: pointer;
}

.grid-image-text-item-popup-top {
	position: relative;
	padding-left: 54px;
	margin: 0;
	padding: 0;
	width: 80%;
  height: 100px;
	margin: auto;
}

.grid-image-text-item-popup-top .grid-image-text-item-image {
	width: 100%;
	position: relative;
	height: auto;
}

.grid-image-text-item-popup-top .grid-image-text-item-image img {
	object-fit: contain;
	width: 100%;
	height: 350px;
}

.grid-image-text-item-popup .grid-image-text-item-text-layout {
	display: inline-block;
	background-color: white;
	position: absolute;
	bottom: 0;
	margin: auto;
	text-align: center;
	left: 20%;
	right: 20%;

}

.grid-image-text-item-popup-bottom {
	max-height: 100%;
	overflow-y: auto;
	margin-top: 20px;
	font-size: 15px;
	text-align: justify;
}

/**********************************************************************/
/*------------------------------ Mobile ------------------------------*/
/**********************************************************************/

@media (max-width: 813px) {
	.grid-image-text-item {
		justify-self: center;
    		text-align: center;
    		margin: auto;
	}

	.grid-image-text-item .grid-image-text-item-image{
		position: relative;
	}

	.grid-image-text-item .grid-image-text-item-text-layout {
		padding-left: 0;
	    padding-right: 0;
	    margin: 0;
	}

	.grid-image-text-item-popup {
		height: calc(100vh - 80px);
		width: 800px;
		top: 80px;
	}

	.grid-image-text-item-popup-top {
		width: 100%;
	}

	.grid-image-text-item-popup-top .grid-image-text-item-image img {
		height: auto;
	}

	.grid-image-text-item-popup .grid-image-text-item-text-layout {
		bottom: -25px;
		left: 10%;
		right: 10%;
	}

  .grid-image-text-item-popup-bottom {
		font-size: 14px;
		text-align: justify;
  }

	.grid-image-text-item-popup .grid-image-text-item-close {
		right: 10px;
		top: 10px;
	}
}
