/* Gallery Page Specific Styles */

/* Gallery Filters Section */
.gallery-filters {
    padding: 80px 0 40px;
    background-color: #f9f9f9;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.filter-btn {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1e73be;
    color: #1e73be;
}

.filter-btn.active {
    background-color: #1e73be;
    border-color: #1e73be;
    color: #fff;
}

/* Gallery Grid Section */
.gallery-grid {
    padding: 40px 0 80px;
    background-color: #f9f9f9;
}

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

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    height: 250px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    padding: 20px;
}

.gallery-caption {
    padding: 20px;
}

.gallery-caption h3 {
    margin: 0 0 10px;
    color: #1e73be;
    font-size: 1.2rem;
}

.gallery-caption p {
    margin: 0 0 15px;
    color: #666;
    font-size: 0.95rem;
}

.gallery-tag {
    display: inline-block;
    background-color: #f0f7ff;
    color: #1e73be;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 15px;
}

.gallery-load-more {
    text-align: center;
    margin-top: 50px;
}

/* Before & After Showcase */
.before-after-showcase {
    padding: 80px 0;
    background-color: #fff;
}

.before-after-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.before-after-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.before-after-placeholder {
    position: relative;
    height: 300px;
    background-color: #eee;
    overflow: hidden;
}

.before-side,
.after-side {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.before-side {
    left: 0;
    background-color: #666;
}

.after-side {
    right: 0;
    background-color: #1e73be;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #fff;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-handle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-handle:after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1e73be;
    font-size: 1.2rem;
    font-weight: bold;
}

.before-after-item h3 {
    padding: 20px 20px 10px;
    margin: 0;
    color: #1e73be;
    font-size: 1.2rem;
}

.before-after-item p {
    padding: 0 20px 20px;
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-container,
    .before-after-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item,
    .before-after-item {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}