/* Realisations Page Styles
-------------------------------------- */

/* Realisations Intro */
.realisations-intro {
    padding-bottom: var(--spacing-xl);
}

/* Project Filters */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--gray-200);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background-color: var(--gray-300);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Gallery Grid */
.realisations-gallery {
    padding: var(--spacing-xl) 0;
    background-color: var(--gray-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-base);
}

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

.gallery-item__image {
    overflow: hidden;
}

.gallery-item__image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

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

.gallery-item__content {
    padding: var(--spacing-md);
}

.gallery-item__title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.gallery-item__cat {
    display: inline-block;
    background-color: var(--gray-200);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.gallery-item__details {
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-light);
}

.gallery-item__details p {
    margin-bottom: 0.25rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#lightbox-caption {
    color: var(--white);
    text-align: center;
    padding: var(--spacing-sm) 0;
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-size: 2rem;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Video Section */
.video-section {
    padding: var(--spacing-xl) 0;
}

.video-container {
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}