/* Simple Gallery Styles */

/* Gallery grid layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery items - start hidden on page load */
.gallery-item {
    opacity: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Fade out animation using CSS animation */
.gallery-item.fade-out {
    animation: fadeOut 0.4s ease forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Completely hidden after fade out - removes from layout */
.gallery-item.hidden {
    display: none;
}

/* Fade in animation - starts invisible */
.gallery-item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item a {
    display: block;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Filter buttons */
.gallery-filters {
    margin-bottom: 2rem;
}

.gallery-filters .btn {
    margin: 0 0.25rem 0.5rem;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.gallery-filters .btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Gallery height animation for smooth footer movement */
.gallery-grid.animating {
    transition: height 0.6s ease-out;
}

/* Smooth animation for elements below gallery */
footer, 
.copy-right-outdoor-templs {
    transition: transform 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .gallery-item img {
        height: 150px;
    }
}