*{
box-sizing:border-box;
}

body{
margin:0;
font-family:Arial,Helvetica,sans-serif;
background:#0f0f10;
color:white;
}


/* TOP */

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
background:#000;
position:sticky;
top:0;
z-index:10;
}

.logo{
color:white;
text-decoration:none;
font-weight:900;
letter-spacing:2px;
}

.btn{
background:white;
color:black;
padding:10px 20px;
border-radius:30px;
text-decoration:none;
font-weight:bold;
}


/* INTRO */

.intro{
text-align:center;
padding:60px 20px 20px;
animation:fadeIn 1s ease;
}

h1{
font-size:42px;
margin-bottom:10px;
}


/* GALLERY */

.gallery{
padding:20px;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:15px;
}


/* MEDIA */

.grid img,
.grid video{
width:100%;
height:240px;
object-fit:cover;
border-radius:18px;
cursor:pointer;
transition:0.35s ease;
opacity:0;
transform:translateY(20px);
animation:fadeUp 0.6s forwards;
}


/* DELAY ANIMATION */

.grid img:nth-child(1),
.grid video:nth-child(1){animation-delay:0.05s;}
.grid img:nth-child(2){animation-delay:0.1s;}
.grid img:nth-child(3){animation-delay:0.15s;}
.grid img:nth-child(4){animation-delay:0.2s;}
.grid img:nth-child(5){animation-delay:0.25s;}
.grid img:nth-child(6){animation-delay:0.3s;}


/* HOVER EFFECT */

.grid img:hover,
.grid video:hover{
transform:scale(1.05);
filter:brightness(1.2);
box-shadow:0 10px 30px rgba(0,0,0,0.6);
}


/* LIGHTBOX */

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:100;
}

.lightbox.show{
display:flex;
}

.lightbox img,
.lightbox video{
max-width:90%;
max-height:90%;
border-radius:15px;
box-shadow:0 0 40px rgba(255,255,255,0.1);
}


/* ANIMATIONS */

@keyframes fadeIn{
from{opacity:0}
to{opacity:1}
}

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(20px);
}
to{
opacity:1;
transform:translateY(0);
}
}


/* MOBILE */

@media(max-width:600px){

h1{
font-size:28px;
}

.grid img,
.grid video{
height:180px;
}

}

.video-thumb{
position:relative;
border-radius:18px;
overflow:hidden;
cursor:pointer;
height:240px;
transition:0.3s;
}

.video-thumb video{
width:100%;
height:100%;
object-fit:cover;
display:block;
filter:brightness(0.85);
transition:0.3s;
}

.video-thumb:hover video{
transform:scale(1.05);
filter:brightness(1);
}

/* PLAY ICON */
.play-icon{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
font-size:40px;
color:white;
background:rgba(0,0,0,0.55);
width:70px;
height:70px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
backdrop-filter:blur(4px);
transition:0.3s;
}

.video-thumb:hover .play-icon{
transform:translate(-50%,-50%) scale(1.1);
background:rgba(0,0,0,0.75);
}


.video-wrap{
position:relative;
display:inline-block;
width:100%;
border-radius:18px;
overflow:hidden;
cursor:pointer;
}

.video-wrap video{
width:100%;
height:240px;
object-fit:cover;
display:block;
}

/* PLAY BUTTON */
.play-icon{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:72px;
height:72px;
border-radius:50%;
background:rgba(0,0,0,0.55);
backdrop-filter:blur(6px);
display:flex;
align-items:center;
justify-content:center;
font-size:34px;
color:white;
transition:0.25s ease;
pointer-events:none; /* 🔥 ważne — NIE blokuje kliknięcia */
}

/* hover efekt */
.video-wrap:hover .play-icon{
transform:translate(-50%,-50%) scale(1.1);
background:rgba(0,0,0,0.75);
}