*,
*::after,
*::before {
	box-sizing: border-box;
}

.grid__item {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100vw;
}

.grid__item--bg {
	height: 100vw;
}

.grid__item-content {
	width: 100%;
	padding: 5vw 7vw;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.grid__item-img + .grid__item-content{
	pointer-events: none;
}

.grid__item--bg .grid__item-content {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
}

.grid__item-img {
	display: block;
	height: 100%;
	width: 100%;
}

.grid__item-img img {
	height: 100%;
	display: block;
}

.grid__item-img img:nth-child(2) {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.3s;
}

.grid__item:hover .grid__item-img img:nth-child(2) {
	opacity: 1;
}

.js .grid__item-img img {
	display: none;
}

.grid__item-title {
	font-weight: 700;
	font-size: 2.4rem;
	line-height: 1;
	margin:auto;
	color: var(--item-title);
    color: #fff;
}

.grid {
	display: grid;
	grid-template-columns: repeat(2,50vw);
}
.grid__item {
	height: 35vmax;
	width: 100%;
}

/*.home .grid__item:nth-child(even) .grid__item-content .text{
	max-width: 405px;
	margin-right: auto;
}

.home .grid__item:nth-child(odd) .grid__item-content .text{
	max-width: 405px;
	margin-left: auto;
}
*/



