*{box-sizing:border-box;}

body{
    font-family:Arial;
    margin:0;
    background:#f5f7fa;
}

.container{
    max-width:1000px;
    margin:auto;
    padding:20px;
}

.hero{
    background:linear-gradient(135deg,#1e88e5,#42a5f5);
    color:white;
    padding:40px;
    border-radius:12px;
    text-align:center;
}

.btn{
    display:inline-block;
    margin-top:15px;
    background:white;
    color:#1e88e5;
    padding:10px 20px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
}

.card{
    background:white;
    padding:20px;
    margin-top:20px;
    border-radius:10px;
}

/* GALLERY */
.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:12px;
}

.gallery img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:10px;
    opacity:0;
    transition:0.3s;
}

.gallery img.loaded{
    opacity:1;
}

.gallery img:hover{
    transform:scale(1.05);
}

/* LIGHTBOX */
.lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    z-index:999;
}

.lightbox img{
    max-width:90%;
    max-height:85%;
}

.lightbox .close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:35px;
    color:white;
    cursor:pointer;
}

.lightbox .nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    font-size:30px;
    color:white;
    background:rgba(0,0,0,0.5);
    border:none;
    padding:10px;
    cursor:pointer;
}

.prev{left:10px;}
.next{right:10px;}