.gallery-modeui {
  padding-top: 96px;
  padding-bottom: 96px;
  background: var(--hd-body-bg);
  color: var(--hd-text);
}

.gallery-modeui .section-heading .container {
  max-width: 600px;
}

.gallery-modeui .section-heading p {
  opacity: 0.7;
  font-weight: 300;
  margin-top: 16px;
}

.gallery-modeui .section-heading .btn-column {
  margin-top: 32px;
}

.gallery-modeui .section-heading .btn-column .btn-text {
  color: var(--hd-text);
}

.gallery-modeui .section-heading svg path {
  stroke: var(--hd-text) !important;
}

.gallery-modeui .gallery-list {
  margin-top: 80px;
}

.gallery-modeui .gallery-list .gallery-column {
  padding: 0;
}

.gallery-modeui .gallery-list .gallery-img {
  margin: 16px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.gallery-modeui .gallery-list .gallery-img img {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.gallery-modeui .section-heading h2 {
  font-size: var(--h2-size-large);
  font-weight: 600;
}
.gallery-modeui .section-heading p {
  font-size: 18px;
  margin-top: 12px;
}
@media (max-width: 767px) {
  .gallery-modeui .section-heading h2 {
    font-size: var(--h2-size-small);
  }
}

.gallery-modeui .btn {
  border: solid 1px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 15px;
  gap: 8px;
  background: var(--hd-secondary);
  color: var(--hd-text-secondary);
  border-radius: 8px;
  font-family: var(--bs-body-font-family);
  font-weight: 600;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
.gallery-modeui .btn.btn-text {
  border: none;
  background: none;
  color: var(--hd-text);
  padding: 0;
}
.gallery-modeui .btn.btn-text:hover {
  opacity: 0.7;
}
.gallery-modeui .btn.btn-text:focus {
  color: var(--hd-primary);
}
.gallery-modeui .btn.arrow-right .icon {
  order: 2;
}
.gallery-modeui .btn.arrow-right .icon path {
  stroke: var(--hd-text);
}

.gallery-modeui .gallery-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  transition: all 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modeui .gallery-img-overlay-content {
  text-align: center;
  bottom: -40px;
  padding: 10% 20%;
  transition: all 0.5s;
}

.gallery-modeui .gallery-img-overlay h3 {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 16px;
}

.gallery-modeui .gallery-img-overlay p {
  opacity: 0.6;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 100px;
}

.gallery-modeui .gallery-img:hover .gallery-img-overlay {
  opacity: 1;
}

.gallery-modeui .gallery-img:hover .gallery-img-overlay-content {
  bottom: 0;
}

.gallery-modeui .gallery-img-overlay .btn-text svg {
  width: 20px;
  height: 20px;
}

.gallery-modeui .gallery-img-overlay .btn-text svg path {
  stroke: #fff !important;
}

@media (max-width: 991px) {
  .gallery-modeui .gallery-list .gallery-img {
    margin: 10px;
  }

  .gallery-modeui .gallery-img-overlay p {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .gallery-modeui {
    padding-bottom: 40px;
    overflow-x: hidden;
  }
  .gallery-modeui .container {
    max-width: none;
  }
  .gallery-modeui .gallery-img-overlay-content {
    padding: 10%;
  }

  .gallery-modeui .gallery-list {
    margin-top: 60px;
    margin-left: -20px;
    margin-right: -20px;
  }

  .gallery-modeui .gallery-list .gallery-img img {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 300px;
  }
}
