/* Pushkar Villas Resort - Gallery Styles */

/* Gallery Header */
.gallery-header {
    background: linear-gradient(rgba(31, 60, 136, 0.85), rgba(128, 0, 0, 0.85)), 
                url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    margin-top: 80px;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Gallery Filter */
.gallery-filter-section {
    background-color: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-container {
    padding: 10px 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 24px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 30px;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--royal-blue);
    color: white;
    border-color: var(--royal-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 60, 136, 0.2);
}

.filter-btn.active {
    background: var(--maroon);
    color: white;
    border-color: var(--maroon);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

/* Main Gallery */
.main-gallery {
    background-color: #f8f9fa;
    min-height: 500px;
}

#galleryGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: white;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-category {
    display: inline-block;
    background: var(--gold);
    color: var(--maroon);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-title-small {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
}

.gallery-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.4;
}

.gallery-view-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--maroon);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-view-btn:hover {
    background: var(--gold);
    color: white;
    transform: scale(1.05);
}

/* Load More Button */
#loadMoreBtn {
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    background: var(--maroon);
    border: none;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    background: #660000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

#loadMoreBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    transform: scale(1.1);
}

.lightbox-info {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.lightbox-title {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lightbox-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 1rem;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Loading Animation */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    background: #f0f0f0;
    border-radius: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-results h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    #galleryGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-title {
        font-size: 2.8rem;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #galleryGrid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gallery-header {
        padding: 80px 0 40px;
    }
    
    .gallery-title {
        font-size: 2.2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        margin-bottom: 5px;
    }
    
    .lightbox-navigation {
        padding: 0 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-close {
        top: -60px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 576px) {
    .gallery-image-container {
        height: 250px;
    }
    
    .lightbox-info {
        bottom: -100px;
    }
}

/* Animation for gallery items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}