/* Gallery Page Styles */
.gallery-section {
    padding: 3rem 0;
}

/* Page Header */
.page-header {
    background-color: var(--light);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--dark);
    font-weight: 700;
}

.page-header .lead {
    color: var(--gray);
}

/* Gallery Filter */
.gallery-filter {
    margin-bottom: 2rem;
    text-align: center;
}
.gallery-filter .btn {
    margin: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.gallery-filter .btn.active {
    background-color: #007bff;
    color: #fff;
}
.gallery-filter .btn:hover {
    transform: translateY(-2px);
}

/* Gallery Grid */
#gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.gallery-item {
    flex: 0 0 32%;
    max-width: 32%;
    margin-bottom: 1rem;
    position: relative;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 0.5rem 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.gallery-item .overlay h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.gallery-item .overlay p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 1000;
}
.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-close:hover {
    color: #007bff;
}
.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    padding: 1rem;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}
.lightbox-nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-nav button:hover {
    color: #007bff;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .gallery-item { flex: 0 0 48%; max-width: 48%; }
    .gallery-img { height: 120px; }
}
@media (max-width: 767px) {
    .gallery-item { flex: 0 0 100%; max-width: 100%; }
    .gallery-img { height: 90px; }
}
@media (max-width: 575.98px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .gallery-item img {
        height: 180px;
    }
}

/* Lightbox Custom Styles */
.lb-data .lb-caption {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.lb-data .lb-details {
    width: 100%;
    padding: 1rem;
}

.lb-data .lb-close {
    top: 1rem;
    right: 1rem;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Loading Animation */
.gallery-item.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* No Results Message */
.text-center i {
    color: var(--gray);
    margin-bottom: 1rem;
}

.text-center h3 {
    color: var(--dark);
    font-weight: 600;
} 