#newsBlock {
	position: relative;
	overflow: hidden;
	color: #888;
	font-size: 12px;
	line-height: 16px;
}

#newsBlock .newsTitle {

	-webkit-transition: 0.2s all ease-in-out;
	-o-transition: 0.2s all ease-in-out;
	transition: 0.2s all ease-in-out;

	display: inline-block;
	color: #000;
	margin: 4px 0;
}
.slider .news-img-name {
	/*height: 90px;*/
}
.newsPic1 img {
	margin: 0 auto;
}
#newsBlock .newsPreview {
	border-bottom: 1px solid #e7e8ea;
	border-left: 1px solid #e7e8ea;
	border-right: 1px solid #e7e8ea;
	padding: 12px;
	position: relative;
	background-color: #f9f9f9;
	overflow: hidden;
}
#newsBlock .slider .newsPreview {
	min-height: 130px;
}

#newsBlock .newsPic {
	-webkit-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	float: left;
	width: 40%;
	display: none;
}

#newsBlock .newsPic img {
	-webkit-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	max-width: 100%;
}

#newsBlock .newsPic:hover img{
	opacity: 0.9;
}

#newsBlock .newsPic:active{
	position: relative;
	top: 1px;
}

#newsBlock .newsTitle {
	display: block;
}

#newsBlock .preText {
	font-size: 12px;
	height: 79px;
	overflow: hidden;
	display: none;
}

#newsBlock .newsPreview {
	background-color: #fff;
}

#newsBlock .newsPic,
#newsBlock .preText {
	display: block;
}

#newsBlock .newsPic + .newsOverview {
	float: right;
	width: 56%;
}
.gallery-item img {
	max-width: 100%;
}

/* Стили для модального окна */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	overflow: hidden;
}

.modal-content {
	position: relative;
	margin: auto;
	display: block;
	width: 80%;
	max-width: 1200px;
	max-height: 80vh;
	top: 50%;
	transform: translateY(-50%);
}

.modal-image {
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
}

/* Кнопки навигации */
.modal-prev, .modal-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2em;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	padding: 20px;
	cursor: pointer;
	transition: background 0.3s ease;
	z-index: 200;
}

.modal-prev:hover, .modal-next:hover {
	background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
	left: 20px;
}

.modal-next {
	right: 20px;
}

/* Кнопка закрытия */
.modal-close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 2em;
	color: white;
	background: none;
	border: none;
	cursor: pointer;
}

/* Индикатор текущего изображения */
.modal-counter {
	position: absolute;
	top: 20px;
	left: 20px;
	color: white;
	font-size: 1.2em;
	background: rgba(0, 0, 0, 0.5);
	padding: 10px 15px;
	border-radius: 5px;
}

.gallery-item {
	cursor: zoom-in;
}
@media all and (max-width: 1366px){
	#newsBlock .preText{
		display: none;
	}

	#newsBlock .newsPreview {
		dislpay: flex;
		flex-wrap: wrap;
	}
	#newsBlock .newsPic {
		width: 100%;
	}
	#newsBlock .newsOverview {
		width: 100%;
	}
	#newsBlock .newsPic + .newsOverview {
		width: 100%;
	}
}
