/* ── Industry Photo Gallery (marquee + lightbox) ─────────────────────────── */

.industry-gallery {
  background: var(--bg-light);   /* тот же голубой, что у «Профессиональные области» */
  color: #11151B;
  padding: clamp(24px, 3vw, 44px) 0 clamp(48px, 5vw, 80px);
}

/* контейнер совпадает с соседними секциями */
.ig-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

/* ── Marquee (JS-driven scroll + drag) ── */
.ig-outer {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}
.ig-outer::-webkit-scrollbar { display: none; }
.ig-outer.is-dragging { cursor: grabbing; }

.ig-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.ig-slide {
  flex-shrink: 0;
  height: 304px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.ig-slide img {
  height: 100%;
  width: auto;
  display: block;
  /* Раньше плитки принудительно обесцвечивались в ч/б (grayscale) и выглядели
     мрачно. Теперь показываем цвет с лёгким «оживлением»: чуть светлее, теплее
     и насыщеннее — при наведении фильтр снимается совсем (полный цвет). */
  filter: brightness(1.08) saturate(1.15) contrast(1.03);
  transition: transform 0.35s ease, filter 0.35s ease;
  pointer-events: none;
  user-select: none;
}
.ig-slide:hover img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.2) contrast(1.03);
}

/* ── Lightbox ── */
.ig-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ig-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.ig-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}
.ig-box {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 90vh;
}
.ig-lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.7);
}
.ig-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
}
.ig-close:hover {
  background: #eee;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .ig-slide { height: 192px; }
  .ig-track  { gap: 10px; }
}
