.photo-gallery-block .tab-titles .tab-title {
  /* font-family: Avenir; */
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
}

.photo-gallery-block {
  max-width: 1440px;
  margin: 0 auto;
}


.photo-gallery-block .tab-title {
  padding: 13px 10px;
}

.photo-gallery-block .tab-content {
  display: none;
}

.photo-gallery-block .tab-content.active {
  display: block;
}

.photo-gallery-block .virtual_tour-heading {
  margin-top: 18px;
}

.photo-gallery-block .total {
  margin-right: 5px;
}

.photo-gallery-block .room-detail-popup .popup-header {
  background-color: var(--color-white);
}

.photo-gallery-block .room-detail-popup .btn-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-wrap: nowrap;
  padding: 32px 40px;
  letter-spacing: 0;
}
.room-detail-popup .close-detail.btn-toggle {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
}

.room-detail-popup.active .close-detail.btn-toggle {
    opacity: 1;
    visibility: visible;
  justify-content: space-between;
}
.room-detail-popup.active .view-detail.btn-toggle {
    opacity: 0;
    visibility: hidden;
}
@keyframes fadeInDelayed {
    0% {
        opacity: 0;
    }

    90% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
.room-detail-popup.active .close-detail.btn-toggle .icon {
    /* opacity: 1;
    visibility: visible; */
    animation: fadeInDelayed 0.4s linear forwards;
}
.room-detail-popup .close-detail.btn-toggle .icon {
    opacity: 0;
    /* visibility: hidden; */
}

.room-detail-popup .btn-toggle .icon{
  position: relative;
  display: inline-block;
}

.photo-gallery-block .btn-toggle {
  letter-spacing: 0;
  text-decoration: none;
  position: relative;
  font-size: var(--font-size-base);
}

.photo-gallery-block .swiper-action .swiper-pagination,
.photo-gallery-block .total {
  position: static;
  font-size: var(--font-size-h5);
  color: #fff;
  max-width: 55px;
  white-space: nowrap;
}

.photo-gallery-block .swiper-action .inner-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  max-width: 156px;
  gap: 6px;
  width: 100%;
}

.photo-gallery-block .swiper-action .swiper-gallery-next {
  width: 28px;
  height: 15px;
  background-image: url(../../assets/images/icon-next-white.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transition: 0.5s ease;
  cursor: pointer;
}

.photo-gallery-block .swiper-action .swiper-gallery-prev {
  width: 28px;
  height: 15px;
  background-image: url(../../assets/images/icon-prev-white.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transition: 0.5s ease;
  cursor: pointer;
}

.photo-gallery-block .tab-content-inner {
  position: relative;
}


.photo-gallery-block .gallery-image,
.photo-gallery-block .room-detail-popup .image {
  position: relative;
  padding-bottom: calc(665/ 1440 * 100%);
}

.popup-modal .popup-content .item .image {
  position: relative;
  padding-bottom: calc(67 / 100 * 100%);
}

.photo-gallery-block .gallery-image img,
.popup-modal .popup-content .item .image img,
.photo-gallery-block .room-detail-popup .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-gallery-block .tab-content.active .room-detail-popup.active {
  width: 720px;
  z-index: 5;
}

.photo-gallery-block .popup-body {
  background: #fff;
}


.photo-gallery-block .inner-body .item {
  width: 20%;
  padding: 0 10px;
  min-width: 140px;
}

.photo-gallery-block .inner-body .item .image {
  position: relative;
  padding-bottom: 80%;
  cursor: pointer;
}

.photo-gallery-block .swiper-wrapper.thumbnails-list {
  flex-wrap: wrap;
  transform: none !important;
  row-gap: 20px;
  transition: none !important;
  width: 700px;
}

.photo-gallery-block .swiper-pagination-bullet {
  background: transparent;
}


.photo-gallery-block .swiper-pagination-bullet {
  background: transparent;
}

.photo-gallery-block .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
  display: none;
}

.photo-gallery-block .swiper-pagination-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.photo-gallery-block .thumb-swiper-wrapper {
  width: 100%;
}

* {
  box-sizing: border-box;
}

.photo-gallery-block .inner-body .item .image:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1;
  opacity: 0;
  transition: all .2s;
}

.photo-gallery-block .inner-body .item .image:hover:before,
.photo-gallery-block .item.thumbnail-item.swiper-slide-thumb-active .image:before {
  opacity: 0.8;
}
.photo-gallery-block .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0;
    border: 0;
    background-color: transparent;
    color: #fff;
}
.photo-gallery-block .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active {
    display: inline;
}

.photo-gallery-block .swiper-action .swiper-pagination {
    margin-top: 0;
    padding-right: 0;
    display: inline-block;
    vertical-align: top;
}
@media (min-width: 768px) {
  .popup-modal-header {
    display: none;
}
.photo-gallery-block .inner-body {
  padding: 20px 10px;
  display: flex;
  flex-wrap: wrap;
}
.photo-gallery-block .photo-gallery-desktop .tab-content.active .room-detail-popup.active .popup-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100% - 88px);
}
.photo-gallery-block .room-detail-popup {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  min-width: 251px;
  transition: 0.5s ease;
  width: 251px;
  height: 100%;
}

  .photo-gallery-block .tab-titles {
    display: flex;
    justify-content: center;
    gap: 44px;
    padding: 27px 0 16px;
  }

  .photo-gallery-block .tab-titles .tab-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: 0.5s ease;
  }

  .photo-gallery-block .tab-titles .tab-title:hover:after,
  .photo-gallery-block .tab-title.active:after {
    width: 100%;
  }


  .photo-gallery-block .tab-titles .tab-title:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -22px;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: var(--color-primary);
  }


  .photo-gallery-block .swiper-action {
    position: absolute;
    top: 45px;
    right: 0px;
    z-index: 1;
    width: 100%;
  }

  .photo-gallery-block .photo-gallery-desktop .popup-body {
    background-color: var(--color-white);
    border-top: 1px solid transparent;
    max-height: 100%;
    overflow: hidden;
    height: 0;
  }
  .photo-gallery-block .photo-gallery-desktop .room-detail-popup.active .popup-body{
    border-color: #D9D9D9;
  }

  .label-tab,
  .view-button,
  .popup-modal.gallery-all-photo {
    display: none;
  }
}

@media (max-width: 1199px) and (min-width: 1024px) {
.photo-gallery-block .swiper-wrapper.thumbnails-list {
    width: 680px;
}


.photo-gallery-block .inner-body .item {
    min-width: 96px;
}

.photo-gallery-block .tab-content.active .room-detail-popup.active {
    width: 700px;
}
}

@media (max-width: 1023px) and (min-width: 768px) {
.photo-gallery-block .swiper-wrapper.thumbnails-list {
    width: 480px;
}


.photo-gallery-block .inner-body .item {
    min-width: 96px;
}

.photo-gallery-block .tab-content.active .room-detail-popup.active {
    width: 500px;
}
}

@media (max-width: 767px) {
    
  body.open-modal {
      overflow: hidden;
  }

  .photo-gallery-block .tab-titles .tab-title {
    padding: 17px 20px;
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: 1.75;
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: 0;
    text-transform: uppercase;

  }

  .photo-gallery-block .tab-titles .tab-title.active,  .photo-gallery-block .tab-titles .tab-title:hover {
    background: var(--color-primary);
    color: var(--color-white);
  }

  .tab-titles {
    position: absolute;
    z-index: 3;
    background: #fff;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    padding: 0;
    border: 1px solid var(--color-primary);
    border-top: 0;
  }

  .tabs-titles.container {
    position: relative;
    margin-bottom: 20px;
    padding: 0 20px;
    z-index: 5;
  }

  
   body.open-modal .tabs-titles.container{
    z-index: 0;
  }

   body.open-modal  #site-header.header-footer-group{
    z-index: 0;
   }

   html body.open-modal #wpadminbar{
    opacity: 0;
    visibility: hidden;
   }

  .label-tab {
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 25px 0;
    position: relative;
    border-bottom: 1px solid var(--color-primary);
  }

  .label-tab:after {
    content: '';
    display: inline-block;
    vertical-align: top;
    position: absolute;
    width: 20px;
    height: 26px;
    right: 6px;
    top: 28px;
    background: url(../../assets/images/icon-arrow-down.svg) no-repeat center center;
    background-size: contain;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition-duration: 0.3s;
  }

  .label-tab.active:after{
  transform: translateY(-50%) rotateX(180deg);
  }

  .popup-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    border-bottom: 1px solid #DDDDD8;
    width: 100%;
  }

  .room-detail-popup-mobile,
  .view-button .inner-body {
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
  }

  .view-button .inner-body {
    display: none;
  }

  .popup-modal, .photo-gallery-block .popup-body {
    position: fixed;
    top: 0px;
    left: 0px;
    width: calc(100vw - 0px) !important;
    height: var(--app-height) !important;
    z-index: 999;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
  }

  .popup-modal .popup-content .popup-content-inner, .photo-gallery-block .thumb-swiper-wrapper {
    padding: 25px 11.5px;
    overflow-y: auto;
    max-height: calc(var(--app-height) - 75px);
  }

  .popup-modal .popup-content .item {
    width: calc(33.33% - 35px * 2 /3);
    padding: 0;
    min-width: unset;
  }


  .photo-gallery-block .swiper-action .swiper-pagination,
  .photo-gallery-block .total {
    color: #000;
  }

  .photo-gallery-block .swiper-action .inner-container {
    justify-content: center;
    margin: 0 auto;
    padding: 12px 0;
    width: 100%;
  }


  .photo-gallery-block .room-detail-popup .btn-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9.5px 0;
    border: 1px solid var(--color-primary);
    text-decoration: none;
    text-transform: capitalize;
    font-weight: 400;
    font-size: 15px;
    line-height: 28px;
    letter-spacing: 0;
    text-align: center;
  }

  .photo-gallery-block .room-detail-popup .popup-header {
      padding: 20px;
      width: 100% !important;
  }

  .photo-gallery-block .swiper-action .swiper-gallery-prev {
    background-image: url(../../assets/images/icon-prev-black.svg);
  }

  .photo-gallery-block .swiper-action .swiper-gallery-next {
    background-image: url(../../assets/images/icon-next-black.svg);
  }

  .open-modal .popup-modal {
    opacity: 1;
    visibility: visible;
  }

  .photo-gallery-block .virtual_tour-heading {
    font-size: 30px;
    line-height: 1;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .photo-gallery-block .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    color: #000;
    font-weight: 400;
}
  
  .photo-gallery-block .swiper-wrapper.thumbnails-list {
    width: 100%;
    gap: 25px 35px;
}

  .photo-gallery-block .inner-body .item {
    min-width: calc(33.33% - 35px * 2/3);
    padding: 0;
}

  .photo-gallery-block .gallery-image {
    min-height: 287px;
  }

  .photo-gallery-block .tab-content.active .room-detail-popup.active {
      width: 100vw;
  }

  .photo-gallery-block .photo-gallery-desktop .tab-content.active .room-detail-popup.popup-active .popup-body {
      opacity: 1;
      visibility: visible;
}
}