.media-child{
	cursor: pointer;
}
.media-child.youtube-icon::after{
	content: "";
	background: center / contain no-repeat url("../icon/youtube-logo.svg");
	height: 35%;
	width: 35%;
	position: absolute;
	opacity: .7;
	transition: all .3s ease-in-out;
	z-index: 1;
}
.media-child.youtube-icon:hover::after{
	opacity: 1;
	height: 40%;
	width: 40%;
}
.inner-photo {
	position: relative;
	grid-template-columns: repeat(5, 1fr);
	display: grid;
	max-width: 1400px;
	margin: 15px auto;
	gap: 5px;
	padding: 15px;
	background-color: #fff;
	border-radius: 5px;
	box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 25px 0px;
}
.grid-photo {
	width: 100%;
	height: 250px;
	transition: all 0.5s ease;
	border: 1px solid #fff;
	object-fit: cover;
	border-radius: 5px;
}
#media-view {
	background-color: rgba(0, 0, 0, 0.90);
	position: fixed;
	z-index: 9999;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
}
#media-view-download,
#media-view-close {
	position: absolute;
	right: 0;
	top: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	color: #000;
	opacity: .5;
	width: 45px;
	height: 45px;
	font-size: 28px;
	border-radius: 0 0 0 20px;
	cursor: pointer;
	z-index: 2;
}
#media-view-download{
	left: 1rem;
	width: 50px;
	font-size: 2.5rem;
}
#media-view-next,
#media-view-prev {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	align-self: center;
	background-color: #000;
	color: #fff;
	opacity: .5;
	width: 45px;
	height: 100px;
	font-size: 28px;
	cursor: pointer;
	z-index: 2;
}
#media-view-next:hover,
#media-view-prev:hover,
#media-view-download:hover,
#media-view-close:hover{
	opacity: 1;
}
#media-view-next {
	right: 0;
	border-radius: 10px 0 0 10px;
}

#media-view-prev {
	left: 0;
	border-radius: 0 10px 10px 0;
}

#media-view-img {
	width: 100%;
	max-width: fit-content;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

#media-view-block {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 5rem;
	right: 5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
}

/*КОНЕЦ Блок фото*/

@media (max-width: 1200px) {
	.inner-photo {
		grid-template-columns: repeat(4, 1fr);
	}
	.grid-photo{
		height: 225px;
	}
}

@media (max-width: 768px) {
	.inner-photo {
		grid-template-columns: repeat(3, 1fr);
	}
	.grid-photo{
		height: 200px;
	}
	#media-view-block {
		left: 0;
		right: 0;
	}
}

@media (max-width: 576px) {
	.inner-photo {
		grid-template-columns: repeat(2, 1fr);
	}
}
