/* ============================================
   GALLERY PAGE SPECIFIC STYLES
   ============================================ */

/* === GALLERY FILTER === */
.gallery-filter {
    background: var(--light-grey);
}

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

.filter-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-cyan);
    color: var(--white);
    border-color: var(--secondary-cyan);
    transform: translateY(-2px);
}

/* === GALLERY GRID === */
.gallery-section {
    background: var(--white);
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 79, 114, 0.9), rgba(0, 212, 255, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.gallery-overlay h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 20px;
}

/* === GALLERY PLACEHOLDER === */
.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: var(--light-grey);
    border-radius: 20px;
}

.placeholder-icon {
    font-size: 5rem;
    color: var(--secondary-cyan);
    margin-bottom: 25px;
    opacity: 0.5;
}

.gallery-placeholder h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 2rem;
}

.gallery-placeholder p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 15px;
    line-height: 1.8;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary-cyan);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--white);
    background: rgba(0, 212, 255, 0.3);
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary-cyan);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}
