.hero-gallery {
  background-image: url("../img/hero/hero-gallery.jpg");
}

.hero-gallery::before {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.65) 35%,
    rgba(0,0,0,0.35) 70%,
    rgba(0,0,0,0.15) 100%
  );
}

.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  background-color: #121212;
}

.gallery-block {
  margin-bottom: 80px;
}

.gallery-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-block p {
  max-width: 850px;
  margin-bottom: 30px;
  color: #aaa;
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: none;
  opacity: 0.95;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-grid img:hover {
  opacity: 1;
  transform: scale(1.02);
}

.hero-gallery .hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: left;
}

.hero-gallery h1 {
  line-height: 1.05;
  margin-bottom: 0.25rem;
}

.hero-gallery p {
  margin-top: 0;
  color: rgba(255,255,255,0.8);
}


@media (max-width: 768px) {

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .gallery-grid img {
    border-radius: 6px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

}
@media (max-width:768px){

.gallery-block{
margin-bottom:50px;
}

}
