#gallery-two {
  margin-bottom: 80px;
  position: relative;
}
/* #gallery-two:before {
  content: "";
  display: block;
  position: absolute;
  width: 176px;
  height: 352px;
  background-image: url(before-bg.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  left: 3%;
  bottom: -115px;
  z-index: -1;
} */

/* #gallery-two:after {
  content: "";
  display: block;
  position: absolute;
  width: 162px;
  height: 198px;
  background-image: url(after-bg.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  right: 3%;
  bottom: -60px;
  z-index: -1;
} */
#gallery-two .block__title {
  font-size: 42px;
  line-height: 50px;
  margin-bottom: 40px;
  color: #f5d425;
  text-transform: uppercase;
}
#gallery-two .overflow {
  position: relative;
  margin-top: 50px;
}
#gallery-two .slider__holder {
  width: 100%;
  overflow: hidden;
}
#gallery-two .item__slide {
  box-sizing: border-box;
  display: flex;
  margin-bottom: -30px;
}
#gallery-two .gallery-main-photo {
  width: 570px;
  height: 570px;
  flex-shrink: 0;
  display: block;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  margin-right: 30px;
  outline: none;
}
#gallery-two .gallery-right-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#gallery-two .gallery-second-photo {
  width: calc(50% - 15px);
  height: 270px;
  margin-bottom: 30px;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  outline: none;
}
#gallery-two .item__slide .image__holder .hover__effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in;
  pointer-events: none;
}
#gallery-two .item__slide .image__holder:hover .hover__effect {
  opacity: 1;
}
.hover__effect path {
  fill: #eb8d00;
}
#gallery-two .item__slide .item__image {
  width: 100%;
  object-fit: cover;
  height: 100%;
}
#gallery-two .item__slide .image_1 {
  grid-row: 1/3;
}
#gallery-two .item__slide .image_3 {
  grid-column: 3/5;
}
#gallery-two .item__slide .image_4 {
  grid-column: 2/4;
}
#gallery-two .swiper-button-prev:after,
#gallery-two .swiper-button-next:after {
  display: none;
}
#gallery-two .swiper-button-prev,
#gallery-two .swiper-button-next {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid #eb8d00;
  background-color: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  margin-top: 0;
}
#gallery-two .swiper-button-prev:hover,
#gallery-two .swiper-button-next:hover {
  background-color: #eb8d00;
}
#gallery-two .swiper-button-prev path,
#gallery-two .swiper-button-next path {
  transition: fill 0.3s;
  fill: #eb8d00;
}
#gallery-two .swiper-button-prev:hover path,
#gallery-two .swiper-button-next:hover path {
  fill: #fff;
}
#gallery-two .swiper-button-prev {
  left: -80px;
}
#gallery-two .swiper-button-next {
  right: -80px;
}

@media (max-width: 1350px) {
  #gallery-two .swiper-button-prev {
    left: -15px;
  }
  #gallery-two .swiper-button-next {
    right: -15px;
  }
  #gallery-two:before {
    left: -5%;
  }
  #gallery-two:after {
    right: -6%;
  }
}

@media (max-width: 1199px) {
  #gallery-two .gallery-main-photo {
    width: calc(50% - 15px);
  }
  #gallery-two .gallery-main-photo {
    height: 466px;
  }
  #gallery-two .gallery-second-photo {
    height: 218px;
  }
}
@media (max-width: 991px) {
  #gallery-two .overflow {
    margin-top: 30px;
  }
  #gallery-two .gallery-main-photo {
    height: 360px;
    margin-right: 20px;
    width: calc(50% - 10px);
    border-radius: 20px;
  }
  #gallery-two .gallery-second-photo {
    width: calc(50% - 10px);
    margin-bottom: 20px;
    height: 170px;
    border-radius: 20px;
  }
  #gallery-two .item__slide {
    margin-bottom: -20px;
  }
}
@media (max-width: 767px) {
  #gallery-two .swiper-button-prev,
  #gallery-two .swiper-button-next {
    width: 42px;
    height: 42px;
  }
  #gallery-two:before,
  #gallery-two:after {
    display: none;
    background: none;
  }
  #gallery-two {
    margin-bottom: 60px;
  }
}
@media (max-width: 600px) {
  #gallery-two .item__slide {
    flex-direction: column;
  }
  #gallery-two .gallery-main-photo {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 368px) {
  #gallery-two .gallery-main-photo {
    height: 240px;
  }
  #gallery-two .gallery-second-photo {
    height: 113px;
  }
  #gallery-two .item__slide .image__holder .hover__effect svg {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }
}
