/* ========================================
   GALLERY PAGE - COMPLETE STYLES (FIXED - NO CROPPING)
   ======================================== */

/* Gallery Hero Section */
.gallery-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background: url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 20px;
}

.gallery-hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.gallery-hero-tagline {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 2px;
}

/* Filter Tabs */
.filter-tabs {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #6F7C6F;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
}

.filter-btn:hover {
    color: #C44D3A;
}

.filter-btn.active {
    color: #C44D3A;
    background: rgba(196, 77, 58, 0.1);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background-color: #F4EFE6;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Masonry layout - images stack naturally with NO gaps */
.gallery-grid {
    column-count: 3;
    column-gap: 25px;
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 25px;
    display: inline-block;
    width: 100%;
}

/* Responsive columns */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* FIX 1: Remove fixed aspect ratios - let images show naturally */
.gallery-card.portrait .gallery-image-wrapper {
    /* No fixed aspect ratio - image shows full */
}

.gallery-card.landscape .gallery-image-wrapper {
    /* No fixed aspect ratio - image shows full */
}

/* FIX 2: MAIN FIX - Show FULL images without cropping */
.gallery-image {
    width: 100%;
    height: auto;  /* CHANGED from 100% to auto */
    display: block;
    /* REMOVED object-fit: cover - no more cropping */
    transition: transform 0.5s ease;
}

/* Alternative: If you still want some consistency but no cropping, use this: */
/*
.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #f0f0f0;
}
*/

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

/* Heart Icon (Favorite) */
.gallery-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
}

.gallery-card:hover .gallery-favorite {
    opacity: 1;
    transform: scale(1);
}

.gallery-favorite i {
    color: #999;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.gallery-favorite:hover i {
    color: #C44D3A;
}

.gallery-favorite.active i {
    color: #C44D3A;
}

/* Card Info (Hover Overlay) */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-info {
    opacity: 1;
}

.gallery-category {
    display: inline-block;
    background: #C44D3A;
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 500;
}

.gallery-caption {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.gallery-subcaption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Gallery CTA Section */
.gallery-cta {
    background: linear-gradient(135deg, #2E4A2E 0%, #1a2e1a 100%);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles (if not already in main CSS) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: #C44D3A;
    color: white;
    border: 2px solid #C44D3A;
}

.btn-primary:hover {
    background: transparent;
    color: #C44D3A;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2E4A2E;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-tabs {
        top: 70px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .gallery-section {
        padding: 40px 0;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
    }
}

