/* Gallery Mobile Responsiveness & Lightbox Improvements */

/* Enhanced Gallery Item Styles */
.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 0; /* Remove margin since we're using grid gap */
  padding: 0; /* Remove padding since we're using grid gap */
  border-radius: 8px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  transition: transform 0.3s ease;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px;
  cursor: pointer;
  
  /* Perfect aspect ratio for photography */
  aspect-ratio: 3/4;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Desktop - Larger images for better viewing */
@media (min-width: 1200px) {
  .gallery-item img {
    aspect-ratio: 3/4;
  }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
  .gallery-item img {
    aspect-ratio: 3/4;
  }
}

/* Small screens - maintain mobile perfection */
@media (max-width: 767px) {
  .gallery-item img {
    aspect-ratio: 3/4;
  }
}

/* Home Page Gallery Images Fix */
.image-wrap-2 img {
  width: 100% !important;
  height: 600px !important;
  object-fit: cover !important;
}

@media (max-width: 768px) {
  .image-wrap-2 img {
    height: 400px !important;
  }
}

@media (max-width: 576px) {
  .image-wrap-2 img {
    height: 300px !important;
  }
}

/* Right-click Protection */
.gallery-item img,
.image-wrap-2 img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Disable context menu */
.gallery-item img:not(.no-protection),
.image-wrap-2 img:not(.no-protection) {
  pointer-events: none;
}

.gallery-item,
.image-wrap-2 {
  pointer-events: auto;
}

/* Enhanced Lightbox Styles */
.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

.lg-outer .lg-image {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Book Now Button Styles */
.book-now-btn {
  background: linear-gradient(45deg, #2c2c2c, #000000);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(44, 44, 44, 0.3);
}

.book-now-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(44, 44, 44, 0.4);
  background: linear-gradient(45deg, #000000, #2c2c2c);
  color: #ffffff !important;
  text-decoration: none !important;
}

.book-now-btn:focus,
.book-now-btn:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Floating Book Now Button */
.floating-book-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  color: white !important;
  text-decoration: none !important;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.floating-book-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(238, 90, 82, 0.6);
  color: white !important;
  text-decoration: none !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(238, 90, 82, 0.7);
  }
  100% {
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
  }
}

/* Google Maps Review Button */
.google-maps-btn {
  background: #4285f4;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  color: white !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-maps-btn:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
  color: white !important;
  text-decoration: none !important;
}

.google-maps-btn i {
  font-size: 18px;
}

/* Social Media Icons Enhancement */
.site-menu[data-class="social"] a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-menu[data-class="social"] a:hover {
  color: #fff !important;
  transform: scale(1.2) !important;
}

.site-menu[data-class="social"] a i {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure social icons are always visible */
.site-menu[data-class="social"] li {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hero Section Book Now Button */
.hero-book-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  border: none;
  border-radius: 30px;
  padding: 15px 40px;
  color: white !important;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
  display: inline-block;
  margin-top: 20px;
}

.hero-book-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(238, 90, 82, 0.6);
  background: linear-gradient(45deg, #ee5a52, #ff6b6b);
  color: white !important;
  text-decoration: none !important;
}

/* Mobile Responsiveness for buttons */
@media (max-width: 768px) {
  .floating-book-btn {
    bottom: 15px;
    right: 15px;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .hero-book-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  
  .book-now-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* Enhanced Gallery Grid System */
.gallery-grid {
  display: grid;
  gap: 20px;
  padding: 20px 0;
  
  /* Desktop: 3 columns maximum for optimal viewing */
  grid-template-columns: repeat(3, 1fr);
}

/* Large Desktop - 3 columns (optimal for photography) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 30px 0;
  }
}

/* Medium Desktop/Tablet - 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Small Tablet - 2 columns */
@media (min-width: 577px) and (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile - 2 columns (maintaining the perfect mobile layout) */
@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}