

/* Start:/local/templates/privilegia/components/bitrix/news/fotogalereya/bitrix/news.detail/.default/style.css?17816847303422*/
@charset "UTF-8";
/* ===== ФОТОАЛЬБОМ (привилегия) — детальная галерея (mobile-first) ===== */
.section.photo-gallery {
  margin-top: 0;
  padding-bottom: 56px;
}

.photo-gallery__inner {
  max-width: var(--container_max);
  margin-inline: auto;
  padding-inline: 6px;
  padding-top: 8px;
}

@media (min-width: 1024px) {
  .photo-gallery__inner {
    padding-inline: 0;
    padding-top: 16px;
    --col: calc(100% / 12); /* колонка контейнера для выравнивания по сетке */
    --gap: 24px;
  }
}
/* кнопка «Все фото» (назад в список) */
.photo-gallery__top {
  margin: 0 0 24px;
}
@media (min-width: 1024px) {
  .photo-gallery__top {
    padding-left: var(--col); /* выравниваем по сетке как заголовок */
    margin-bottom: 45px;
    margin-top: 7px;
  }
}

.photo-gallery__back {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  color: var(--color_text);
  text-decoration: none;
  font-size: 16px;
}

.photo-gallery__back:hover {
  color: var(--color_accent_soft);
  text-decoration: none;
}

.photo-gallery__back-ico {
  width: 47px;
  height: 30px;
  color: var(--color_accent_soft);
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .photo-gallery__back {
    gap: 46px;
    font-size: 18px;
  }
  .photo-gallery__back-ico {
    width: 58px;
    height: 36px;
  }
}
/* сетка фото */
.photo-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .photo-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
.photo-gallery__item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--color_img_background);
}

.photo-gallery__pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .photo-gallery__item:hover::before {
    opacity: 1;
  }
  .photo-gallery__item:hover .photo-gallery__pic {
    transform: scale(1.1);
  }
}
/* скрытые до раскрытия */
.photo-gallery__item--hidden {
  display: none !important;
}

.photo-gallery--expanded .photo-gallery__item--hidden {
  display: flex !important;
}

/* кнопка «Все фото» (раскрыть) */
.photo-gallery__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.photo-gallery__more-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-width: 320px;
  max-width: 100%;
  padding: 18px 32px;
  background: var(--color_accent_soft);
  color: var(--color_button_text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color 0.2s ease;
}

.photo-gallery__more-btn:hover {
  background: var(--color_accent_soft_85);
}

.photo-gallery__empty {
  color: var(--color_text_muted);
  font-size: 16px;
}

.fancybox-toolbar .fancybox-button--play,
.fancybox-toolbar .fancybox-button--thumbs,
.fancybox-toolbar .fancybox-button--zoom {
  display: none !important;
}

.photo-card__title {
  color: #8C8C8C;
}

/* End */
/* /local/templates/privilegia/components/bitrix/news/fotogalereya/bitrix/news.detail/.default/style.css?17816847303422 */
