/* Gallery Page Specific Styles */

/* Gallery Introduction */
.gallery-intro {
    padding: 50px 10%;
    text-align: center;
    background-color: #f8f9fa;
    margin-bottom: 30px;
}

.gallery-intro h2 {
    color: #013cf7;
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.gallery-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto 15px;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 5%;
    margin-bottom: 30px;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.gallery-filter .filter-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.95rem;
}

.gallery-filter .filter-btn.active,
.gallery-filter .filter-btn:hover {
    background-color: #013cf7;
    color: white;
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #eaeaea; /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

/* Image placeholder styling */
.gallery-img:before {
    content: "Photo";
    position: absolute;
    color: #888;
    font-size: 1rem;
    z-index: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.gallery-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Gallery Call to Action */
.gallery-cta {
    text-align: center;
    padding: 60px 10%;
    background-color: #013cf7;
    color: white;
    margin: 30px 0;
}

.gallery-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.gallery-cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.cta-buttons .herobtn {
    background-color: white;
    color: #013cf7;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-buttons .herobtn:hover {
    background-color: transparent;
    color: white;
}

/* Responsive Design */
@media screen and (max-width: 1100px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-intro {
        padding: 30px 5%;
    }
    
    .gallery-intro h2 {
        font-size: 1.7rem;
    }
    
    .gallery-intro p {
        font-size: 1rem;
    }
    
    .gallery-filter {
        padding: 15px 3%;
    }
    
    .gallery-filter .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 3% 30px;
    }
    
    .gallery-img {
        height: 220px;
    }
    
    .gallery-overlay {
        padding: 15px;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.7);
    }
    
    .gallery-overlay h3 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }
    
    .gallery-cta {
        padding: 40px 5%;
    }
    
    .gallery-cta h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .herobtn {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-img {
        height: 250px;
    }
    
    .gallery-filter {
        gap: 8px;
    }
    
    .gallery-filter .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}