/* Glenn Projects Lightbox Styles */

.glenn-project-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.glenn-project-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glenn-project-lightbox-close {
    position: fixed;
    top: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.glenn-project-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.glenn-project-lightbox-close span {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
    font-family: 'Secular One', sans-serif;
}

.glenn-project-lightbox-content {
    max-width: 1400px;
    margin: 8rem auto 4rem;
    animation: lightboxSlideUp 0.5s ease-out;
}

@keyframes lightboxSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section in Lightbox */
.lightbox-hero {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.lightbox-media {
    position: relative;
}

.lightbox-media img,
.lightbox-media video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-video-container.vertical {
    max-width: 600px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.lightbox-video-container.vertical .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px);
    opacity: 0.6;
}

.lightbox-video-container.vertical video.lightbox-main-video {
    position: relative;
    z-index: 2;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
}

.lightbox-video-controls {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10;
}

.lightbox-video-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-video-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-video-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.lightbox-video-btn.playing .play-icon {
    display: none;
}

.lightbox-video-btn.playing .pause-icon {
    display: block;
}

.lightbox-video-btn .pause-icon {
    display: none;
}

.lightbox-time-badge {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-family: 'Secular One', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    backdrop-filter: blur(10px);
}

.lightbox-info {
    color: #fff;
}

.lightbox-info h1 {
    font-size: 4.8rem;
    line-height: 4.8rem;
    margin-bottom: 2rem;
    font-family: 'Secular One', sans-serif;
    text-transform: uppercase;
}

.lightbox-info .project-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    opacity: 0.7;
}

.lightbox-info .project-description {
    font-size: 1.6rem;
    line-height: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 100;
    letter-spacing: 1px;
}

.lightbox-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lightbox-tag {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Secular One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Grid in Lightbox */
.lightbox-gallery-section {
    margin-top: 6rem;
}

.lightbox-gallery-section h2 {
    font-size: 3.6rem;
    line-height: 3.6rem;
    margin-bottom: 3rem;
    font-family: 'Secular One', sans-serif;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}

.lightbox-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.lightbox-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.lightbox-gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-gallery-item-plus {
    font-size: 4rem;
    color: #fff;
    font-weight: 300;
}

/* Image Viewer (for clicking gallery images) */
.lightbox-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image-viewer img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-image-viewer-close {
    position: fixed;
    top: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.lightbox-image-viewer-close span {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
}

/* Team Section */
.lightbox-team-section {
    margin: 6rem 0;
}

.lightbox-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.lightbox-team-member {
    text-align: center;
    color: #fff;
}

.lightbox-team-member-role {
    font-family: 'Secular One', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.lightbox-team-member-name {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lightbox-team-member-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.lightbox-team-member-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-team-member-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-team-member-links svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .lightbox-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .lightbox-info h1 {
        font-size: 3.6rem;
        line-height: 3.6rem;
    }
    
    .glenn-project-lightbox-close {
        top: 2rem;
        right: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .glenn-project-lightbox-close span {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .glenn-project-lightbox-content {
        margin: 6rem auto 2rem;
    }
    
    .lightbox-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .lightbox-gallery-item img {
        height: 200px;
    }
    
    .lightbox-info h1 {
        font-size: 2.8rem;
        line-height: 2.8rem;
    }
    
    .lightbox-info .project-meta {
        flex-direction: column;
        gap: 1rem;
    }
}
