#gallery-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4px;
  width: 100%;
  height: 100%;
  gap: 10px;

  .photo {
    width: auto;
    min-width: 317px;
    background: #ccc;
    background-size: cover;
    height: 200px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
  }
}

.bppiv_panorama {
  position: relative;
}

.bppiv_panorama .title {
  width: 100%;
  height: 80px;
  line-height: 80px;
  text-align: center;
  font-size: 24px;
}

#panorama-container {
  position: fixed;
  display: flex;
  width: calc(100vw - 17px);
  max-width: 200vw;
  height: 100%;
  top: 0;
  left: 0;
  background: white;
  transform: scale(0, 0);
  opacity: 0;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
  z-index: 999;
}

#panorama-container.open {
  opacity: 1;
  transform: scale(1, 1);
}

.bppiv_panorama .photo {
  flex-grow: 1;
  width: 360px;
  height: 240px;
  background-size: cover;
  margin: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  overflow: hidden;
}

.bppiv_panorama .photo:hover {
  border-color: #000;
}

#bppiv-progress-bar {
  position: fixed;
  top: 0;
  width: 0;
  height: 5px;
  background-color: #fff;
  transition: opacity 0.5s ease;
}

.bppiv_panorama .close {
  width: 44px;
  height: 44px;
  position: absolute;
  right: 12%;
  top: 13%;
  margin-top: -22px;
  margin-right: -22px;
  cursor: pointer;
  z-index: 1000;
}

.bppiv_panorama .close>i {
  color: #fff;
  font-size: 44px;
}

.bppiv_panorama .close .close-icon {
  color: #fff;
  font-size: 40px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;

  svg {
    background-color: rgb(53, 18, 53);
    border-radius: 50%;
    padding: 10px;
  }
}

#bppiv-main-container {
  width: 79%;
  height: 80%;
  margin: 0 auto;
  align-self: center;
  background-color: #000;

  .panolens-canvas {
    width: 100% !important;
    height: 100% !important;
  }
}

/* LoadMore Button */
.pan_loadMore {
  border: none;
  width: 200px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  background: #000;
  margin: 30px auto;
  padding: 7px 15px;
  color: #fff;
  font-size: 14px;
  text-transform: capitalize;
  border-radius: 3px;
  -moz-transition: all 0.5s ease-in;
  -webkit-transition: all 0.5s ease-in;
  transition: all 0.5s ease-in;
}

/* Item Badge */
.item-badge {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 5px;
  transform: rotate(-44deg);
  width: 137px;
  height: 43px;
  display: flex;
  justify-content: center;
  position: relative;
  left: -53px;
  top: -9px;
  position: relative;
  align-items: last baseline;
  font-size: 14px;
  text-transform: capitalize;
  font-weight: normal;
}

/* Custom Control */
.bppiv_panorama {
  width: 600px;
  height: 400px;
}

.pnlm-about-msg {
  display: none !important;
}

.bppiv_panorama_video2 {
  max-width: 100%;
  position: relative;
}

.bppiv_panorama_video2 video {
  max-width: 100%;
  width: 100%;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .bppiv_panorama .close {
    right: 4%;
    top: 30%;
    margin-top: -22px;
  }

  #bppiv-main-container {
    width: 100%;
    height: 50%;

    .panolens-canvas {
      width: 100% !important;
    }
  }
}

@media only screen and (max-width: 767px) {
  .bppiv_panorama .close {
    right: 7%;
    top: 30%;
    margin-top: -22px;
  }

  #bppiv-main-container {
    width: 100%;
    height: 50%;

    .panolens-canvas {
      width: 100% !important;
    }
  }
}