*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#f8f9fa;
}

/* Gallery Section */

.gallery-section{
    padding:60px 5%;
}

.gallery-section h2{
    text-align:center;
    font-size:40px;
    color:#1f3b73;
    margin-bottom:15px;
}

.gallery-text{
    text-align:center;
    max-width:850px;
    margin:0 auto 40px;
    color:#666;
    font-size:17px;
    line-height:28px;
}

/* Gallery Grid */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

/* Gallery Card */

.gallery-item{
    overflow:hidden;
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    transition:.3s;
}

.gallery-item:hover{
    transform:translateY(-6px);
}

.gallery-item img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    cursor:pointer;
    transition:0.4s ease;
}

.gallery-item img:hover{
    transform:scale(1.08);
}

/* Lightbox */

#lightbox{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.92);
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:20px;
}

#lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(255,255,255,.15);
}

.close{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:45px;
    cursor:pointer;
}

/* Tablet */

@media(max-width:991px){

.gallery{
    grid-template-columns:repeat(2,1fr);
}

.gallery-item img{
    height:220px;
}

}

/* Mobile */

@media(max-width:768px){

.gallery-section{
    padding:40px 15px;
}

.gallery-section h2{
    font-size:30px;
}

.gallery-text{
    font-size:15px;
    line-height:24px;
}

.gallery{
    grid-template-columns:1fr;
    gap:20px;
}

.gallery-item img{
    height:220px;
}

.close{
    font-size:35px;
    right:20px;
}
.rotate-img{
    transform: rotate(90deg);
    object-fit: contain;
    background: #fff;
}

}