*{
    box-sizing:border-box;
}

html, body{
    margin:0;
    padding:0;
    font-family:Arial, sans-serif;
    background:#000;
    overflow-x:hidden;
}

.video-gallery-page{
    position:relative;
    width:100%;
    min-height:100vh;
    background:#000;
    overflow:visible;
    padding:105px 0 70px;
}

.bg-video{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:1;
}

.dark-layer{
    position:fixed;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(0,15,35,.92),
        rgba(0,40,80,.55),
        rgba(0,0,0,.82)
    );
    z-index:2;
}

.hero-content{
    position:fixed;
    left:70px;
    top:90px;
    z-index:6;
    max-width:900px;
    color:#fff;
    transition:1s ease;
}

.hero-content.hide{
    opacity:0;
    transform:translateY(-80px);
    pointer-events:none;
}

.hero-content span{
    display:inline-block;
    padding:10px 22px;
    border-radius:50px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    margin-bottom:20px;
}

.hero-content h1{
    font-size:64px;
    margin:0 0 20px;
    font-weight:900;
}

.hero-content p{
    font-size:22px;
    line-height:1.5;
    opacity:.9;
}

.top-title{
    position:fixed;
    top:24px;
    left:50%;
    transform:translateX(-50%) translateY(-30px);
    z-index:10;
    color:#fff;
    font-size:28px;
    font-weight:800;
    opacity:0;
    transition:1s ease;
    padding:12px 28px;
    border-radius:50px;
    background:rgba(0,40,90,.42);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.18);
}

.top-title.show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

.masonry-gallery{
    position:relative;
    z-index:4;
    width:100%;
    max-width:1500px;
    margin:0 auto;
    padding:0 35px 60px;
    column-count:4;
    column-gap:22px;
    opacity:0;
    transform:translateY(90px);
    transition:1.2s ease;
}

.masonry-gallery.show{
    opacity:1;
    transform:translateY(0);
}

.masonry-item{
    position:relative;
    display:block;
    break-inside:avoid;
    margin-bottom:22px;
    border-radius:24px;
    overflow:hidden;
    cursor:pointer;
    background:#111;
    box-shadow:0 25px 70px rgba(0,0,0,.45);
}

.masonry-item img{
    width:100%;
    display:block;
    transition:.6s ease;
}

.masonry-item:hover img{
    transform:scale(1.08);
}

.masonry-item::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        transparent 45%,
        rgba(0,0,0,.82)
    );
    opacity:.9;
}

.photo-title{
    position:absolute;
    left:20px;
    right:20px;
    bottom:18px;
    z-index:2;
    color:#fff;
    font-size:18px;
    font-weight:700;
    line-height:1.3;
}

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    backdrop-filter:blur(12px);
    z-index:50;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:.4s ease;
}

.lightbox.show{
    opacity:1;
    pointer-events:auto;
}

.lightbox-content{
    max-width:85vw;
    max-height:85vh;
    text-align:center;
    color:#fff;
}

.lightbox-content img{
    max-width:100%;
    max-height:75vh;
    object-fit:contain;
    border-radius:22px;
    box-shadow:0 30px 90px rgba(0,0,0,.7);
}

.lightbox-content h3{
    margin:18px 0 0;
    font-size:24px;
}

.close-btn,
.light-nav{
    position:absolute;
    border:0;
    cursor:pointer;
    color:#fff;
    background:rgba(255,255,255,.14);
    backdrop-filter:blur(10px);
    transition:.3s;
}

.close-btn:hover,
.light-nav:hover{
    background:rgba(255,255,255,.25);
}

.close-btn{
    top:25px;
    right:30px;
    width:52px;
    height:52px;
    border-radius:50%;
    font-size:36px;
    line-height:1;
}

.light-nav{
    top:50%;
    transform:translateY(-50%);
    width:64px;
    height:64px;
    border-radius:50%;
    font-size:48px;
    line-height:1;
}

.light-nav.left{
    left:35px;
}

.light-nav.right{
    right:35px;
}

@media(max-width:1200px){
    .masonry-gallery{
        column-count:3;
    }
}

@media(max-width:768px){
    .video-gallery-page{
        padding-top:85px;
    }

    .hero-content{
        left:24px;
        right:24px;
        top:85px;
        text-align:center;
    }

    .hero-content h1{
        font-size:38px;
    }

    .hero-content p{
        font-size:17px;
    }

    .top-title{
        width:90%;
        text-align:center;
        font-size:18px;
        top:18px;
        padding:10px 16px;
    }

    .masonry-gallery{
        column-count:2;
        column-gap:14px;
        padding:0 14px 40px;
    }

    .masonry-item{
        margin-bottom:14px;
        border-radius:18px;
    }

    .photo-title{
        font-size:14px;
        left:14px;
        right:14px;
        bottom:12px;
    }

    .lightbox-content{
        max-width:92vw;
    }

    .lightbox-content img{
        max-height:70vh;
        border-radius:16px;
    }

    .lightbox-content h3{
        font-size:18px;
    }

    .light-nav{
        width:46px;
        height:46px;
        font-size:34px;
    }

    .light-nav.left{
        left:12px;
    }

    .light-nav.right{
        right:12px;
    }

    .close-btn{
        top:15px;
        right:15px;
        width:44px;
        height:44px;
        font-size:30px;
    }
}

@media(max-width:480px){
    .masonry-gallery{
        column-count:1;
    }
}