/**
 * Property Gallery Modal Styling
 * Styles for the full-screen gallery modal
 */

/* Style the modal (background) */
.property-gallery-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content */
.property-gallery-modal .modal-content {
  position: relative;
  background-color: transparent;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  border: none;
  box-shadow: none;
}

/* The Close Button */
.property-gallery-modal .close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  z-index: 2100;
  opacity: 1;
}

.property-gallery-modal .close:hover,
.property-gallery-modal .close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
}

/* Hide the slides by default */
.mySlides {
  display: none;
  text-align: center;
}

/* Next & previous buttons */
.property-gallery-modal .prev,
.property-gallery-modal .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  z-index: 2100;
}

/* Position the "next button" to the right */
.property-gallery-modal .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.property-gallery-modal .prev:hover,
.property-gallery-modal .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.property-gallery-modal .numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.property-gallery-modal .caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.property-gallery-modal img.demo {
  opacity: 0.6;
}

.property-gallery-modal .active,
.property-gallery-modal .demo:hover {
  opacity: 1;
}

.property-gallery-modal img.hover-shadow {
  transition: 0.3s;
}

.property-gallery-modal .hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Thumbnail row */
.property-gallery-modal .thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  background-color: black;
}

/* Thumbnail column */
.property-gallery-modal .thumbnail-column {
  flex: 0 0 auto;
  width: 16.666%;
  padding: 0 4px;
  margin-bottom: 8px;
}

/* Make thumbnails responsive */
@media screen and (max-width: 700px) {
  .property-gallery-modal .thumbnail-column {
    width: 25%;
  }
}

@media screen and (max-width: 500px) {
  .property-gallery-modal .thumbnail-column {
    width: 33.33%;
  }
  
  .property-gallery-modal .prev,
  .property-gallery-modal .next {
    padding: 8px;
    font-size: 18px;
  }
  
  .property-gallery-modal {
    padding-top: 60px;
  }
}

/* Gallery on the details page */
.gallery_container {
  width: 100%;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.left_gallery {
  flex: 0 0 60%;
  max-width: 60%;
  padding: 0 5px;
}

.right_gallery {
  flex: 0 0 40%;
  max-width: 40%;
  padding: 0 5px;
}

.main_image_gallery {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.main_image_gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.right_line_gallery {
  display: flex;
  flex-wrap: wrap;
  height: 340px;
}

.right_line_gallery .small_image_gallery {
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  height: 50%;
  padding: 0 5px 5px 0;
  overflow: hidden;
}

.right_line_gallery .small_image_gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.darkish_overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.main_image_gallery:hover .darkish_overlay,
.small_image_gallery:hover .darkish_overlay {
  background-color: rgba(0, 0, 0, 0);
}

.show_all {
  position: relative;
  height: 60px;
  margin-top: 5px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.show_all .left_icon {
  margin-right: 10px;
}

.show_all .right_text {
  font-weight: 600;
}
