/* Image Hover Effects with Drop Shadow Animation */

/* Base styles for location page images */
.location-image {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

/* Primary drop shadow hover effect */
.location-image:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced drop shadow with subtle glow */
.location-image:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(74, 144, 226, 0.1);
}

/* Alternative: Glowing shadow effect */
.location-image.glow-hover:hover {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(74, 144, 226, 0.4);
}

/* Scale effect combined with shadow */
.location-image.scale-hover:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Smooth transition for all effects */
.img-thumbnail {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
}

.img-thumbnail:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Container hover effect for better performance */
.image-container {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    overflow: hidden;
}

.image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Justified Gallery images */
#MainGallery img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
}

#MainGallery img:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .img-thumbnail:hover,
    .location-image:hover,
    #MainGallery img:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    }
}

/* Performance optimization */
.img-thumbnail,
.location-image,
#MainGallery img {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Additional hover effects for variety */
.location-image.float-hover:hover {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-8px); }
    50% { transform: translateY(-12px); }
}

/* Subtle border effect on hover */
.location-image.border-hover:hover {
    border: 2px solid rgba(74, 144, 226, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(74, 144, 226, 0.1);
}

/* Newest Photos specific styles */
.newest-photos-container {
    padding: 20px 0;
}

.newest-photos-table {
    border-collapse: separate;
    border-spacing: 15px;
    width: 100%;
}

.newest-photos-table td {
    padding: 10px;
    vertical-align: top;
    text-align: center;
}

/* Ensure images in newest photos have proper hover effects */
.newest-photos-table .image-container {
    display: inline-block;
    margin: 0 auto;
}

.newest-photos-table .location-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.newest-photos-table .location-image:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(74, 144, 226, 0.1);
}

/* Responsive adjustments for newest photos */
@media (max-width: 768px) {
    .newest-photos-table {
        border-spacing: 8px;
    }
    
    .newest-photos-table td {
        padding: 5px;
    }
    
    .newest-photos-table .location-image:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    }
}

.scaled-photo {
  max-width: 100vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
} 