/* Baby Gallery Styles */
.gallery-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #e91b79;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 3/4;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transition: opacity 0.3s ease;
}

.gallery-title-item {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.gallery-description {
    font-size: 14px;
    opacity: 0.8;
}

.gallery-load-more {
    text-align: center;
    margin: 20px 0 40px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1500;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    margin: 0 auto;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    max-width: 80%;
    margin: 10px auto 0;
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.lightbox-prev, 
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-prev {
    margin-left: -60px;
}

.lightbox-next {
    margin-right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Badge for categories */
.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    background-color: rgba(233, 27, 121, 0.8);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-close {
        top: -30px;
        right: 10px;
    }
    
    .lightbox-controls {
        top: auto;
        bottom: -40px;
    }
    
    .lightbox-prev, 
    .lightbox-next {
        position: relative;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
} 