

/* Start:/local/templates/aspro-medc2/components/bitrix/system.pagenavigation/bitroid/style.css?1755869671762*/
.wrap_pagination__bitroid {
    margin: 30px 0;
    text-align: center;
  }

  .ajax-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* чтобы не ломалось на маленьких экранах */
  }

  .ajax-pagination a,
  .ajax-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    background: #f5f5f5;
    color: #005b7e;
    transition: all 0.2s;
  }

  .ajax-pagination a:hover {
    background: #e5e5e5;
  }

  .ajax-pagination .current {
    background: #005b7e;
    color: #fff;
    font-weight: bold;
  }
/* End */


/* Start:/local/templates/aspro-medc2/components/bitrix/news.list/bitroid_media_video/style.css?17594765642295*/
.video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	align-items: stretch; 
}
.video_title{
  font-size: 24px;
}
@media (max-width: 991px) {
	.video-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.video-grid {
		grid-template-columns: 1fr;
	}
}
.video-card {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03);
	display: flex;
	flex-direction: column;
	height: 100%; 
}
.video-card .meta { 
	padding: 12px; 
	display: flex; 
	flex-direction: column; 
	flex: 1; 
}
.video-card h3 {
	font-size: 16px;
	margin: 0 0 8px 0;
	line-height: 1.4;
}
.video-card .desc {
	font-size: 14px;
	color: #555;
	margin: 0;
	line-height: 1.4;
	flex: 1; 
	overflow: hidden; 
}
.video-thumb {
	position: relative;
	padding-top: 56.25%;
	background: #000;
	overflow: hidden;
	cursor: pointer;
}
.video-thumb img,
.video-thumb video,
.video-thumb iframe {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-thumb .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}
.video-thumb .play-btn::after {
  content: none;
}

.icon-play {
  width: 48px;
  height: 48px;
  fill: rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.video-thumb:hover .icon-play {
  fill: rgba(0, 0, 0, 0.7); 
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}
.video-thumb:hover .play-btn {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@media (max-width: 768px) {
  .video-thumb .play-btn {
    width: 40px;
    height: 40px;
  }
  
  .icon-play {
    width: 40px;
    height: 40px;
    fill: rgba(0, 0, 0, 0.4); 
  }
}
.video-thumb.loaded { cursor: default; }

@media (max-width: 575px) {
  .video-card h3 {
    line-height: 1.3;
  }
  .video-card .desc {
    line-height: 1.35;
  }
}
/* End */


/* Start:/local/templates/aspro-medc2/components/bitrix/news.list/bitroid_media_photo/style.css?17594074598096*/
/* Галерея - основные стили */
.gallery-container {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
}

.gallery-top {
    margin-bottom: 15px;
    height: 500px; /* Фиксированная высота для плавного перехода */
    position: relative;
}

.gallery-top .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-top .swiper-slide:hover {
    transform: scale(1.01);
}

.gallery-top picture img,
.gallery-top .swiper-slide img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    cursor: pointer;
    will-change: opacity;
    transition: opacity 0.3s ease, background 0.3s ease;
    background: #f8f9fa url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle></svg>') no-repeat center;
}
.gallery_title {
    font-size: 24px;
}


/* Миниатюры */
.gallery-thumbs {
    height: 120px;
    box-sizing: border-box;
    margin-top: 10px;
}

.gallery-thumbs .swiper-wrapper {
    align-items: center;
}

.gallery-thumbs .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    width: auto !important;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.gallery-thumbs img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: transform 0.2s;
}

.gallery-thumbs .swiper-slide:hover img {
    transform: scale(1.05);
}

/* Кнопки навигации */
.swiper-button-next, 
.swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ИСПРАВЛЕНИЕ СТРЕЛОК - ЗАМЕНА НА SVG */
.swiper-button-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

/* УДАЛЯЕМ ШРИФТОВЫЕ ИКОНКИ */
.swiper-button-next:after, 
.swiper-button-prev:after {
    content: none !important;
    display: none !important;
}

.gallery-container:hover .swiper-button-next,
.gallery-container:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

/* Лайтбокс - основные стили */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox[aria-hidden="false"] {
    display: flex;
    opacity: 1;
}

.lightbox-swiper-container {
    width: 100%;
    height: 100%;
    max-width: 95vw;
    max-height: 95vh;
}

.lightbox .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.lightbox .swiper-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Кнопка закрытия */
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    background: transparent;
    border: none;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.lightbox__close:hover {
    color: #ccc;
}

/* Навигация в лайтбоксе */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ИСПРАВЛЕНИЕ ЛАЙТБОКС СТРЕЛОК - SVG */
.lightbox-button-prev {
    left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.lightbox-button-next {
    right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

/* УДАЛЯЕМ ШРИФТОВЫЕ ИКОНКИ В ЛАЙТБОКСЕ */
.lightbox-nav::after {
    content: none !important;
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery-top {
        height: 400px;
    }
    
    .gallery-thumbs {
        height: 100px;
    }
    
    .gallery-thumbs img {
        height: 70px;
    }
    
    /* Скрытие навигации на маленьких экранах */
    .lightbox-nav {
        display: none;
    }
    
    .lightbox__close {
        font-size: 32px;
        right: 15px;
        top: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-top {
        height: 300px;
    }
    
    .gallery-thumbs {
        height: 80px;
    }
    
    .gallery-thumbs img {
        height: 50px;
    }
    
    .lightbox .swiper-slide img {
        max-width: 95%;
        max-height: 95%;
    }
    
    /* Мобильные кнопки лайтбокса */
    .lightbox__close {
        font-size: 36px;
    }
}

/* Дополнительные улучшения для вашего шаблона */
.gallery-top picture img,
.gallery-top .swiper-slide img {
    background-size: 48px 48px;
}

.gallery-thumbs .swiper-slide {
    padding: 5px;
}

.gallery-thumbs .swiper-slide-thumb-active {
    background-color: #e9ecef;
}

/* Плавные переходы для всех элементов */
* {
    transition-property: opacity, transform, background-color, color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* ГАРАНТИЯ ОТСУТСТВИЯ СЖАТИЯ */
.swiper-button-next,
.swiper-button-prev,
.lightbox-nav {
    padding: 0 !important;
    margin: 0 !important;
    min-width: 44px !important;
    min-height: 44px !important;
}
/* End */
/* /local/templates/aspro-medc2/components/bitrix/system.pagenavigation/bitroid/style.css?1755869671762 */
/* /local/templates/aspro-medc2/components/bitrix/news.list/bitroid_media_video/style.css?17594765642295 */
/* /local/templates/aspro-medc2/components/bitrix/news.list/bitroid_media_photo/style.css?17594074598096 */
