.s-dn-home-gallery {
  padding-top: 0;
  padding-bottom: 60px;
}

@media only screen and (max-width: 550px) {
  .box-gallery-dn-home {
    gap: 20px;
  }
}

.gallery-dn-home-item {
  padding: 10px;
  height: 100%;
  width: 100%;
  position: relative;
}
@media only screen and (max-width: 550px) {
  .gallery-dn-home-item {
    padding: 0;
  }
}
.gallery-dn-home-item .box-gallery, .gallery-dn-home-item a, .gallery-dn-home-item img {
  height: 100%;
  width: 100%;
}
.gallery-dn-home-item a {
  display: inline-block;
}
.gallery-dn-home-item img {
  -o-object-fit: cover;
     object-fit: cover;
}
.gallery-dn-home-item .caption {
  z-index: 3;
  pointer-events: none;
  position: absolute;
  bottom: 10px;
  text-align: center;
  width: 100%;
  height: 50px;
  left: 0;
}
@media only screen and (max-width: 550px) {
  .gallery-dn-home-item .caption {
    bottom: 0;
  }
}
.gallery-dn-home-item .caption .title {
  color: #fff;
  margin-bottom: 0;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.gallery-dn-home-item .caption .title::before {
  position: absolute;
  width: calc(100% - 20px);
  height: 100%;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
@media only screen and (max-width: 550px) {
  .gallery-dn-home-item .caption .title::before {
    width: 100%;
  }
}
.gallery-dn-home-item .caption .title span {
  z-index: 2;
  display: inline-block;
  position: relative;
}
