/* --- ОСНОВНАЯ ГАЛЕРЕЯ НА СТРАНИЦЕ --- */
.gallery-card {
  display: flex;
  gap: 15px;
  max-width: 100%;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  align-items: center; 
  position: relative;
}

.gallery-main {
  position: relative;
  flex: 1;
  min-width: 0;
}

.gallery-main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  cursor: pointer;
  border-radius: 8px;
}

/* Точки-индикаторы НА самом изображении */
.gallery-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.gallery-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  transition: background 0.2s;
}

.gallery-indicator.active {
  background: white;
  transform: scale(1.2);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  transition: background 0.2s;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: rgba(255,255,255,0.9);
}

.gallery-nav-prev {
  left: 15px;
}

.gallery-nav-next {
  right: 15px;
}

/* Миниатюры справа - только 3 */
/* --- Миниатюры справа - ТОЛЬКО ИЗМЕНЕНИЯ ВЫСОТЫ --- */
.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 280px;
  overflow: hidden;
  min-width: 120px;
  height: 440px; 
}

.gallery-thumbnail {
  display: flex;
  height: 140px; 
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
  border-radius: 6px;
  overflow: hidden;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: #429410;
  opacity: 0.6;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.gallery-modal-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 20px 0;
}

.gallery-modal-nav {
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 90%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal-prev,
.gallery-modal-next {
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  color: #333;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
  z-index: 100;
  color: white;
  font-size: 30px;
}

.gallery-thumbnails-modal {
  display: flex;
  width: 90%;
  max-width: 90%;
  gap: 10px;
  overflow: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
}

.gallery-thumbnail-modal {
  width: 100px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s;
  border: 2px solid transparent;
}

.gallery-thumbnail-modal.active {
  opacity: 1;
  border-color: #429410;
}
/* --- АКТИВНЫЕ ИНДИКАТОРЫ (КРУЖОЧКИ) --- */
.gallery-indicator.active {
  background: #429410; /* Зеленый цвет */
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(66, 148, 16, 0.3);
}

