.gallery {
  width: 100%;
  height: auto;
}

.gallery .row {
  margin: 0;
}

.gallery .left-section,
.gallery .right-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

.gallery .left-section {
  background-color: #f9f9f9;
  position: relative;
  padding: 20px;
}

.gallery .left-section::before {
  content: "";
  background-image: url("/assets/frontend/images/gallery/pattern-blue.png");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  transform: translateX(60px);
  right: 0px;
  width: 40%;
  height: 40%;
  z-index: 10;
}

.gallery .owl-carousel {
  position: relative;
  margin-top: 0;
  overflow: visible;
}

.gallery .owl-item {
  width: 50%;
  margin-top: 80px;
  margin-bottom: 50px;
  overflow: visible;
}

.gallery .owl-carousel img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
}

.gallery .owl-item > div:after {
  font-family: sans-serif;
  font-size: 24px;
  font-weight: bold;
}

.gallery .active.center {
  transform: scale(1.6);
  overflow: visible;
  z-index: 2;
}
.gallery .active {
  transition: 0.6s ease;
}

.gallery .carousel-gallery .left-gradient,
.gallery .carousel-gallery .right-gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 300px;
  z-index: 2;
}

.gallery .carousel-gallery .left-gradient {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(249, 249, 249, 1),
    rgba(249, 249, 249, 0)
  );
}

.gallery .carousel-gallery .right-gradient {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(249, 249, 249, 1),
    rgba(249, 249, 249, 0)
  );
}

.carousel-gallery {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 0;
  position: relative;
}

.gallery .carousel-gallery-arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

.gallery .carousel-gallery-arrow.left-arrow {
  left: 10px;
  margin-left: 0px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgb(21, 103, 123);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery .carousel-gallery-arrow.right-arrow {
  right: 0px;
  margin-right: 0px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgb(21, 103, 123);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery .owl-nav {
  display: none;
}

.gallery .text-wrapper {
  max-height: 50%;
  z-index: 4;
  margin: 20px;
  flex-grow: 1;
}

.gallery .text-wrapper h1,
.gallery .text-wrapper h2,
.gallery .text-wrapper p {
  text-align: right;
  color: var(--color-black-default);
}

.gallery .text-wrapper h1 {
  font-family: var(--font-family-main);
  font-size: 1.2em;
  font-weight: var(--font-weight-bold);
  max-width: 100%;
}

.gallery .text-wrapper h2 {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-semi-bold);
  font-size: 1em;
  margin-top: 20px;
}

.gallery .text-wrapper p {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  font-size: 0.8em;
  line-height: 1.5;
  color: #666;
  margin-top: 30px;
  margin-bottom: 30px;
  max-width: 100%;
}

.gallery .see-all-btn {
  right: 20px;
  bottom: 10px;
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-semi-bold);
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
}

.gallery .see-all-btn a {
  text-decoration: none;
  font-size: 14px;
}

.gallery .right-section {
  display: flex;
}

.gallery .right-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery .right-section #preview-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery .right-section #preview-image.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery .see-all-btn {
    right: 10px;
    bottom: 10px;
  }

  .gallery .right-section {
    display: none;
  }

  .gallery .carousel-gallery .left-gradient,
  .gallery .carousel-gallery .right-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .gallery .left-section {
    padding: 25px;
    min-height: 500px;
  }

  .gallery .text-wrapper {
    margin: 25px;
  }

  .gallery .text-wrapper h1 {
    font-size: 1.3em;
  }

  .gallery .text-wrapper h2 {
    font-size: 1.1em;
  }

  .gallery .text-wrapper p {
    font-size: 0.85em;
  }

  .gallery .owl-carousel img {
    max-width: 300px;
  }

  .gallery .active.center {
    transform: scale(1.4);
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery {
    margin-top: 50px;
  }

  .gallery .left-section {
    padding: 40px 35px;
    min-height: 650px;
  }

  .gallery .text-wrapper {
    margin: 40px 30px 30px;
  }

  .gallery .text-wrapper h1 {
    font-size: 1.55em;
    line-height: 1.4;
  }

  .gallery .text-wrapper h2 {
    font-size: 1.25em;
    margin-top: 28px;
    line-height: 1.4;
  }

  .gallery .text-wrapper p {
    font-size: 0.92em;
    line-height: 1.7;
    margin-top: 38px;
    margin-bottom: 35px;
  }

  .gallery .owl-carousel img {
    max-width: 350px;
  }

  .gallery .active.center {
    transform: scale(1.5);
  }

  .gallery .carousel-gallery {
    margin-top: 20px;
  }

  .gallery .right-section {
    min-height: 650px;
  }

  .gallery .right-section img {
    object-fit: cover;
    height: 100%;
  }
}

@media (min-width: 1200px) and (max-width: 1366px) {
  .gallery {
    margin-top: 60px;
  }

  .gallery .left-section {
    padding: 45px 40px;
    min-height: 680px;
  }

  .gallery .text-wrapper {
    margin: 45px 35px 35px;
  }

  .gallery .text-wrapper h1 {
    font-size: 1.7em;
    line-height: 1.4;
  }

  .gallery .text-wrapper h2 {
    font-size: 1.4em;
    margin-top: 30px;
    line-height: 1.4;
  }

  .gallery .text-wrapper p {
    font-size: 1em;
    line-height: 1.7;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .gallery .owl-carousel img {
    max-width: 410px;
  }

  .gallery .active.center {
    transform: scale(1.55);
  }

  .gallery .carousel-gallery {
    margin-top: 25px;
  }

  .gallery .right-section {
    min-height: 680px;
  }

  .gallery .right-section img {
    object-fit: cover;
    height: 100%;
  }
}

@media (min-width: 1367px) {
  .gallery .left-section {
    padding: 40px;
    min-height: 600px;
  }

  .gallery .text-wrapper {
    margin: 40px;
    max-height: 45%;
  }

  .gallery .text-wrapper h1 {
    font-size: 1.8em;
  }

  .gallery .text-wrapper h2 {
    font-size: 1.4em;
  }

  .gallery .text-wrapper p {
    font-size: 1em;
    margin-top: 40px;
  }

  .gallery .owl-carousel img {
    max-width: 450px;
  }

  .gallery .active.center {
    transform: scale(1.5);
  }

  .gallery .carousel-gallery .left-gradient,
  .gallery .carousel-gallery .right-gradient {
    width: 350px;
  }

  .gallery .right-section {
    min-height: 600px;
  }

  .gallery .right-section img {
    object-fit: cover;
    height: 100%;
  }
}
