.gallery-works__wrapper {
  margin-top: 50px;
}
.gallery-works__swiper-button-block {
  width: 70px;
  position: relative;
  top: -10px;
}

#gallerySlider .swiper-button-next {
  right: 0;
}
#gallerySlider .swiper-button-prev {
  left: -70px;
}

.gallerySlider__wrapper {
  width: 300%;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 30px;
}
.gallerySlider__slide {
  width: 100% !important;
  cursor: pointer;
  position: relative;
  min-height: 204px;
  height: auto;
  background: #ccc;
  overflow: hidden;
  border-radius: 8px;
}
.gallerySlider__slide:nth-child(1), .gallerySlider__slide:nth-child(4), .gallerySlider__slide:nth-child(7) {
  grid-row: span 2/span 2;
}
.gallerySlider__slide:hover .gallery-type-1__img::before {
  content: " ";
  background: linear-gradient(180deg, rgba(58, 173, 129, 0) 0%, #3aad81 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.gallerySlider__slide:hover .gallery-type-1__title {
  display: block;
}

.gallery-type-1__title {
  max-width: 208px;
  width: auto !important;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  position: absolute;
  z-index: 2;
  left: 30px;
  bottom: 30px;
  display: none;
}
.gallery-type-1__img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.gallery-type-1__img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
@media (max-width: 576px) {
  .gallery-works__wrapper {
    margin-top: 16px;
  }
  .gallery-works .title-with-link h2 {
    margin-right: 20px;
  }
  .gallery-works__swiper-button-block {
    top: 5px;
  }
  #gallerySlider .swiper-button-prev {
    left: -20px;
  }
  .gallerySlider__wrapper {
    width: 100%;
    display: flex;
    gap: 0;
  }
  .gallerySlider__slide:nth-child(1) {
    order: 1;
  }
  .gallerySlider__slide:nth-child(2) {
    order: 2;
  }
  .gallerySlider__slide:nth-child(3) {
    order: 3;
  }
  .gallerySlider__slide:nth-child(4) {
    order: 6;
  }
  .gallerySlider__slide:nth-child(5) {
    order: 7;
  }
  .gallerySlider__slide:nth-child(6) {
    order: 8;
  }
  .gallerySlider__slide:nth-child(7) {
    order: 4;
  }
  .gallerySlider__slide:nth-child(8) {
    order: 5;
  }
  .gallerySlider__slide:nth-child(9) {
    order: 9;
  }
  .gallerySlider__slide:nth-child(10) {
    order: 10;
  }
  .gallerySlider__slide {
    min-height: 340px;
  }
}
@media (max-width: 768px) {
  .gallery-works .title-with-link h2 {
    margin-right: 70px;
  }
  .gallerySlider__wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallerySlider__slide:nth-child(1) {
    order: 1;
  }
  .gallerySlider__slide:nth-child(2) {
    order: 2;
  }
  .gallerySlider__slide:nth-child(3) {
    order: 5;
  }
  .gallerySlider__slide:nth-child(4) {
    order: 3;
  }
  .gallerySlider__slide:nth-child(5) {
    order: 4;
  }
  .gallerySlider__slide:nth-child(6) {
    order: 6;
  }
  .gallerySlider__slide:nth-child(7) {
    order: 7;
  }
  .gallerySlider__slide:nth-child(8) {
    order: 8;
  }
  .gallerySlider__slide:nth-child(9) {
    order: 9;
  }
  .gallerySlider__slide:nth-child(10) {
    order: 10;
  }
}
@media (max-width: 380px) {
  #gallerySlider .swiper-button-prev {
    left: -40px;
  }
}
@media (max-width: 400px) {
  .gallerySlider__slide {
    min-height: 291px;
  }
}
