.building-gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0rem -0.5rem;
  overflow: auto;
  padding: 5px;
  padding-top: 0px;
  margin-top: 5px;
}
.building-gallery .gallery-image {
  padding: 0rem 4px;
  width: 50%;
}
.building-gallery .gallery-image:first-child {
  width: 100%;
}
.building-gallery .gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-image .image-caption {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0%;
  top: 0%;
  background: #0d0d0d0a;
  flex-direction: column;
  justify-content: end;
  padding: 27px 19px;
  color: white;
  cursor: pointer;
  margin: 0px !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 90%, rgba(0, 0, 0, 0.6) 100%);

  z-index: 3;
}
.gallery-image .image-wrapper {
  position: relative;
  margin-bottom: 8px;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
}

.gallery-image .image-wrapper.blurWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.gallery-image .image-wrapper.blurWrapper img {
  max-width: 400px;
  z-index: 1;
  height: 95%;
  width: auto;
}
.gallery-image .image-wrapper.blurWrapper:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-filter: blur(12px) contrast(0.9) brightness(1.2);
  -ms-filter: blur(12px) contrast(0.9) brightness(1.2);
  filter: blur(12px) contrast(0.9) brightness(1.2);
  background: inherit;
}
.gallery-image .image-caption-text {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 97%;
}

.gallery-image .image-caption-title {
  font-size: 14px;
}

.gallery-image .gallery-image .image-caption-title {
  font-size: var(--font-size-14);
  font-weight: 400;
}
.gallery-image .gallery-image .image-caption-text {
  font-size: var(--font-size-16);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

#buildingGalleryModal {
  overflow-y: auto;
  background-color: #242424f0;
  z-index: 9999;
}
div#buildingGalleryModal .revamp-modal-header-nav .close {
  background: transparent;
  font-size: 26px;
}
#buildingGalleryModal .slider-button {
  position: fixed;
  left: var(--gap-xl);
  top: 0px;
  z-index: 9;
  padding: var(--gap-xxl) var(--gap-md);
  background: #000000ab;
  color: var(--color-white);
  font-size: var(--font-size-xl);
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
#buildingGalleryModal.show .slider-button {
  display: block;
}
#buildingGalleryModal .slider-button.carouselNextBtn {
  right: var(--gap-xl);
  left: auto;
}
#buildingGalleryModal .revamp-modal-content {
  max-width: 90%;
  width: 100%;
  overflow-x: hidden;
}
#buildingGalleryModal .revamp-modal-content .revamp-modal-body {
  background: transparent;
}
.buildingGalleryModal-image {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100% !important;
  flex-direction: column;
}
.buildingGalleryModal-image img {
  max-width: 650px;
  width: 100%;
}
.buildingGalleryModal-caption {
  color: white;
  margin-top: var(--gap-xl);
}
#buildingGalleryModal .revamp-modal-header-nav {
  position: fixed;
  top: var(--gap-xl);
  right: var(--gap-xl);
  display: none;
}
#buildingGalleryModal.show .revamp-modal-header-nav {
  display: block;
}
#buildingGalleryModal .image-wrapper,
#buildingGalleryModal .slider-caption {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
#buildingGalleryModal .image-wrapper.blurWrapper:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-filter: blur(12px) contrast(0.9) brightness(1.2);
  -ms-filter: blur(12px) contrast(0.9) brightness(1.2);
  filter: blur(12px) contrast(0.9) brightness(1.2);
  background: inherit;
  z-index: 0;
}
#buildingGalleryModal .image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: none;
  z-index: 1;
}
#buildingGalleryModal .image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}
#buildingGalleryModal .image-wrapper.blurWrapper
{
  max-width: none !important;
}
#buildingGalleryModal .slider-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-md);
  align-items: end;
  color: white;
  padding-top: 2rem;
}
#buildingGalleryModal .slider-caption-content .slider-caption-title {
  font-size: var(--font-size-14);
  margin-bottom: var(--gap-md);
}
#buildingGalleryModal .slider-caption-content .slider-caption-text {
  font-size: var(--font-size-18);
}
#buildingGalleryModal .slider-caption-page {
  text-wrap: nowrap;
  display: flex;
  gap: var(--gap-xs);
  background: #00000070;
  padding: var(--gap-sm) var(--gap-md);
  border-radius: 4px;
  font-size: var(--font-size-12);
}
#buildingGalleryModalThumbnails {
  position: fixed;
  width: 90%;
  left: 5%;
  bottom: 0px;
  padding: var(--gap-lg) 0rem;
  display: none;
  overflow-x: auto;
}
/* width */
#buildingGalleryModalThumbnails::-webkit-scrollbar {
  width: 12px; /* Lebar scrollbar */
}

/* Track */
#buildingGalleryModalThumbnails::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

/* Handle */
#buildingGalleryModalThumbnails::-webkit-scrollbar-thumb {
  background-color: #333; /* Warna thumb */
  border-radius: 10px; /* Sudut melengkung */
  border: 2px solid #1a1a1a; /* Batas thumb */
}

/* Handle on hover */
#buildingGalleryModalThumbnails::-webkit-scrollbar-thumb:hover {
  background-color: #424242; /* Warna thumb */
}
#buildingGalleryModalThumbnails {
  scrollbar-width: thin; /* Lebar scrollbar */
  scrollbar-color: #333 #1a1a1a; /* Warna thumb dan track */
}
.show #buildingGalleryModalThumbnails {
  display: block;
}
#buildingGalleryModalThumbnails .buildingGalleryModal-thumbnail-wrapper {
  display: flex;
  width: auto;
  gap: var(--gap-sm);
  flex-wrap: nowrap;
}
#buildingGalleryModalThumbnails .buildingGalleryModal-thumbnail-wrapper > * {
  cursor: pointer;
  flex: 0 0 100px; /* Flex-grow: 0, flex-shrink: 0, flex-basis: 20% */
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
#buildingGalleryModalThumbnails img {
  max-width: 580px;
  width: 100% !important;
}

#buildingGalleryModalThumbnails img {
  width: 100%;
}

#buildingGalleryModalThumbnails
  .buildingGalleryModal-thumbnail-wrapper
  .buildingGalleryModal-thumbnail:first-child {
  margin-left: auto;
}

#buildingGalleryModalThumbnails
  .buildingGalleryModal-thumbnail-wrapper
  .buildingGalleryModal-thumbnail:last-child {
  margin-right: auto;
}
.mobile-gallery {
  position: relative;
  padding-top: 60px;
}
.mobile-gallery .slider-caption {
  position: absolute;
  width: 100%;
  bottom: 0px;
  z-index: 9;
  padding: var(--gap-md);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: var(--gap-md);
  align-items: end;
  min-height: 10rem;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.52) 100%
  );
}

.mobile-gallery .slider-caption .slider-caption-content {
  width: 70%;
  overflow: hidden;
}

.mobile-gallery .slider-caption .slider-caption-content .slider-caption-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.mobile-gallery .slider-caption-page {
  padding: var(--gap-xs);
  background: #0000006e;
  font-size: var(--font-size-md);
}
@media screen and (max-width: 860px) {
  .gallery-content {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative !important;
    margin: 0px -20px;
    padding: 0px !important;
    width: auto !important;
    top: 0px !important;
  }
  .building-gallery .gallery-image {
    padding: 0rem;
  }
  .gallery-image .image-wrapper {
    margin-bottom: 0px;
  }
  .building-gallery {
    height: auto !important;
    display: block;
    order: 1;
    padding: 0px;
    margin: 0px;
  }
  .building-gallery > * {
    padding: 0px;
  }

  .gallery-content .nav-utils {
    padding: var(--gap-md);
    position: relative;
    top: 0px;
    order: 2;
  }

  .gallery-content .nav-utils.mobile-content {
    order: 3;
  }

  .gallery-image .image-wrapper {
    aspect-ratio: auto;
  }

  .gallery-slider-image .image-wrapper.blurWrapper img{
    height: auto;
    width: auto;
    max-width: none;
  }
}

::-webkit-scrollbar {
  height: 4px;
  width: 4px
}

::-webkit-scrollbar-thumb {
  background: rgba(216, 216, 216, 1);
}
