/* 
   Fabian Ramirez Landscaping - Gallery Page Styles
*/

/* Page Header */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

/* Gallery Intro */
.gallery-intro {
    padding: 60px 0 30px;
    background-color: var(--bg-light);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.intro-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.intro-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: var(--text-light);
    color: var(--text-dark);
    border: 2px solid var(--primary-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    padding: 30px 0 80px;
    background-color: var(--bg-light);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    color: var(--text-light);
}

.overlay-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.lb-data .lb-details {
    width: 100%;
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .intro-content h2 {
        font-size: 1.8rem;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
    }
}
