
/* ===== ГАЛЕРЕЯ САТЕЛЛИТ ===== */

.stainless-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.stainless-tab {
  border: 1px solid #d5dce2;
  background: #f5f7f9;
  color: #303941;
  border-radius: 9px;
  padding: 12px 18px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.stainless-tab:hover {
  background: #e7edf1;
  border-color: #9daab5;
}

.stainless-tab.is-active {
  background: #20272d;
  border-color: #20272d;
  color: #fff;
}

.stainless-gallery {
  min-height: 100px;
}

.stainless-gallery .photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stainless-gallery .photo-card {
  height: 260px;
  border-radius: 13px;
  background: #e9edf0;
  cursor: zoom-in;
}

.stainless-gallery .photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.stainless-gallery .photo-card:hover img {
  transform: scale(1.045);
}

/* Полноэкранный просмотр фотографий */

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 65px 70px;
  background: rgba(10, 13, 16, .96);
}

.site-lightbox.is-open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 15px 60px #0008;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff55;
  background: #ffffff12;
  color: #fff;
  cursor: pointer;
  transition: .2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #ffffff30;
}

.lightbox-close {
  top: 20px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 58px;
  border-radius: 10px;
  font-size: 34px;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
}

/* Мобильная версия галереи */

@media (max-width: 700px) {
  .stainless-gallery .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stainless-gallery .photo-card {
    height: 180px;
  }

  .stainless-categories {
    gap: 7px;
  }

  .stainless-tab {
    padding: 10px 12px;
    font-size: 11px;
  }

  .site-lightbox {
    padding: 55px 12px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 48px;
  }
}

