.gallery-wrapper{
    max-width:1400px;
    margin:auto;
    padding:0 20px 50px 20px;
}

.gallery-wrapper h1{
    text-align:center;
    margin-bottom:40px;
    font-size:34px;
    color:#222;
}

.gallery{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.card{
    background:#fff;
    padding:15px;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:all .35s ease;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.18);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    border-radius:8px;
}

.title{
    padding:14px 10px 10px;
    text-align:center;
    font-size:16px;
    font-weight:600;
    color:#444;
    text-transform: uppercase;
}

/* ===========================
   LIGHTBOX
=========================== */

/*==========================
  LIGHTBOX
==========================*/

.lightbox{
    position:fixed;
    inset:0;
    display:none;
    background:rgba(0,0,0,.92);
    z-index:99999;
}

.lightbox.show{
    display:block;
}

/* Center image */
.lightbox-content{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:90%;
    max-width:1200px;
    text-align:center;
}

.lightbox-content img{
    display:block;
    margin:0 auto;
    max-width:100%;
    max-height:80vh;
    border-radius:10px;
    box-shadow:0 15px 40px rgba(0,0,0,.45);
}

#caption{
    margin-top:18px;
    color:#fff;
    font-size:22px;
    font-weight:600;
}

.close{
    position:absolute;
    top:20px;
    right:25px;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    font-size:42px;
    font-weight:300;
    line-height:1;
    cursor:pointer;
    z-index:100001;
    transition:0.3s ease;
    text-shadow:0 2px 8px rgba(0,0,0,0.6);
    opacity: 1;
}

.close:hover{
    color:#ffffff;
    transform:scale(1.15);
}

/*==========================
  Navigation Buttons
==========================*/

.gallery-nav-btn{
    position:fixed;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:30px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
    z-index:100000;
}

.gallery-nav-btn:hover{
    background:#fff;
    color:#111;
}

.gallery-prev{
    left:30px;
}

.gallery-next{
    right:30px;
}

@media(max-width:768px){

    .gallery-nav-btn{
        width:50px;
        height:50px;
        font-size:24px;
    }

    .gallery-prev{
        left:10px;
    }

    .gallery-next{
        right:10px;
    }

    .lightbox-content{
        width:95%;
    }

    #caption{
        font-size:18px;
    }
}

/* ===========================
   NEW NAVIGATION BUTTONS
=========================== */

.gallery-nav-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    transition:.3s;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gallery-nav-btn:hover{
    background:#fff;
    color:#111;
}

.gallery-prev{
    left:35px;
}

.gallery-next{
    right:35px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:991px){

    .gallery{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:768px){

    .gallery{
        grid-template-columns:repeat(2,1fr);
    }

    .card img{
        height:180px;
    }

    .gallery-nav-btn{
        width:50px;
        height:50px;
        font-size:22px;
    }

}

@media(max-width:480px){

    .gallery{
        grid-template-columns:1fr;
    }

    .card img{
        height:220px;
    }

    .gallery-nav-btn{
        width:45px;
        height:45px;
        font-size:20px;
    }

    .gallery-prev{
        left:10px;
    }

    .gallery-next{
        right:10px;
    }

}