﻿.gallery{
    background-color:white;
}
.gallery-container {
    width: 100%;
    text-align:center;
    padding:50px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    max-width:1300px;
    margin:0 auto;
}

.gallery-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    background: #fff;
}
.gallery-card:hover{
    transform:translateY(-5px);
}

.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: .3s;
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightbox-content img,
#lightbox-content video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

#lightbox-caption {
    color: #fff;
    margin-top: 10px;
    font-size: 18px;
}

#closeBtn {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
@media (max-width:990px){
    .gallery-grid{
        grid-template-columns: repeat(2,1fr);
    }   
}
@media(max-width: 600px){
    .gallery-grid{
        grid-template-columns: repeat(1,1fr);
    }
}