.gallery-default {
  overflow-x: hidden;
  background: var(--hd-body-bg);
}

.gallery-default .gallery-img-wrap {
  margin: calc(var(--bs-gutter-x) * 0.5) 0;
  position: relative;
}

.gallery-default .gallery-img-wrap img {
  height: 588px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-default .gallery-img-overlay {
  position: absolute;
  top: 0;
  width: 400px;
  bottom: 0;
  background: var(--hd-body-bg);
  color: var(--hd-text);
  z-index: 10;
  display: none;
  opacity: 0;
  left: 0;
}

.gallery-default .gallery-img-overlay h3 {
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.gallery-default .gallery-img-overlay p {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0.8px;
  margin: 32px 0 70px;
  opacity: 0.6;
}

.gallery-default .gallery-img-wrap:hover .gallery-img-overlay {
  display: block;
  opacity: 1;
  animation: fadeIn 0.35s ease-in-out forwards;
}

.gallery-default .gallery-img-overlay-content {
  padding: 0 32px;
  opacity: 0;
  transition:
    opacity 0.35s,
    transform 0.35s;
  transform: translate3d(-40px, 0, 0);
}

.gallery-default .gallery-img-wrap:hover .gallery-img-overlay-content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: slideIn 0.35s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .gallery-default .gallery-img-overlay {
    width: 280px;
  }

  .gallery-default .gallery-img-overlay h3 {
    font-size: 40px;
  }

  .gallery-default .gallery-img-overlay p {
    margin: 20px 0;
  }

  .gallery-default .gallery-img-wrap img {
    height: 309.474px;
  }
}

@media (max-width: 991px) {
  .gallery-default .gallery-img-wrap img {
    border-radius: 1.053px;
  }
}

@media (max-width: 767px) {
  .gallery-default .gallery-img-wrap {
    margin: 4px 0;
  }

  .gallery-default .gallery-default.row {
    margin-left: -4px;
    margin-right: -4px;
  }

  .gallery-default .gallery-default.row > * {
    padding-left: 4px;
    padding-right: 4px;
  }

  .gallery-default .gallery-img-wrap img {
    height: 150px;
  }

  .gallery-default .gallery-img-overlay,
  .gallery-default .gallery-img-overlay-content {
    display: none !important;
  }
}

.gallery-default .heading-area {
  text-align: center;
  padding: 60px 0;
  color: var(--hd-text);
}

.gallery-default .heading-icon svg {
  width: 100px;
  height: 100px;
}

.gallery-default .heading-icon svg path {
  stroke: var(--hd-text);
}

.gallery-default .heading-area h2 {
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-bottom: 20px;
}

.gallery-default .heading-area p {
  opacity: 0.6;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 28.8px */
  letter-spacing: 1.2px;
}

.gallery-default .heading-area .btn {
  margin: 30px 0;
}

@media (max-width: 767px) {
  .gallery-default .heading-area h2 {
    font-size: 32px;
  }

  .gallery-default .heading-area p {
    font-size: 16px;
  }
}

.gallery-default .btn {
  border: solid 1px;
  display: inline-block;
  padding: 15px 25px;
  background: var(--hd-text);
  color: var(--hd-text);
  border-radius: 40px;
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  -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;
  letter-spacing: 1.92px;
}

.gallery-default .btn.btn-secondary {
  background: var(--hd-text);
  color: var(--hd-text);
  border-color: var(--hd-text);
}

.gallery-default .btn.btn-secondary:hover {
  opacity: 0.8;
}

.gallery-default .btn.btn-secondary:focus {
  color: var(--hd-text);
  background: var(--hd-text);
}

.gallery-default .btn.btn-text {
  border: none;
  background: none;
  color: var(--hd-primary);
  padding: 0;
}

.gallery-default .btn.btn-text:focus {
  color: var(--hd-primary);
}

.gallery-default .btn-text.arrow-right svg {
  transition: margin-left 0.2s;
}

.gallery-default .btn-text.arrow-right:hover svg {
  margin-left: 5px;
}

.gallery-default .btn.arrow-right .icon {
  float: right;
  margin-top: -1px;
  margin-left: 5px;
}

.gallery-default .btn.arrow-right .icon path {
  fill: var(--hd-primary);
}

.gallery-default .popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 99;
  overflow-y: auto;
}

.gallery-default .popup-content {
  padding: 30px;
}

.gallery-default .popup-content img {
  box-shadow: 0px 4px 9px 3px rgba(0, 0, 0, 0.25);
  border-radius: 1.053px;
}

.gallery-default .popup-content h3 {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-top: 15px;
  margin-bottom: 24px;
}

.gallery-default .popup-content p {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0.7px;
  margin-bottom: 32px;
}

.gallery-default .popup-content .gallery-img-overlay-content {
  opacity: 1;
  padding: 0;
  transform: none;
  display: block !important;
}

.gallery-default .popup-content .btn {
  width: 100%;
}

.gallery-default .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-default .close-btn svg {
  width: 18px;
  height: 18px;
}

.gallery-default .close-btn svg path {
  fill: #fff;
}
