/* ============================================
   GALLERY STYLES - Photo Gallery and Lightbox
   ============================================ */

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    min-height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-info {
    color: var(--white);
    text-align: center;
}

.gallery-info h4 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

.gallery-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--white);
    transform: scale(1.1);
}

#lightboxImage {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 2rem;
}

.lightbox-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: var(--text-light);
    margin: 0;
}

.lightbox-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: var(--light-bg);
}

.nav-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

#imageCounter {
    color: var(--text-dark);
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

/* Placeholder Gallery Items */
.gallery-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.gallery-placeholder-text {
    font-size: 0.9rem;
}

.gallery-placeholder-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
