/*====================================================
PHOTO GALLERY
====================================================*/

.gallery-filter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:50px;
}

.gallery-filter button{

    border:none;

    background:#ffffff;

    color:#1c467d;

    padding:12px 26px;

    border-radius:40px;

    font-weight:600;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.35s;

    cursor:pointer;

}

.gallery-filter button:hover{

    background:#1c467d;

    color:#fff;

    transform:translateY(-3px);

}

.gallery-filter button.active{

    background:#1c467d;

    color:#fff;

    box-shadow:0 12px 30px rgba(28,70,125,.35);

}

.gallery-card{

    position:relative;

    overflow:hidden;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.10);

    transition:.4s;

    background:#fff;

}

.gallery-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.18);

}

.gallery-card img{

    width:100%;

    height:300px;

    object-fit:cover;

    transition:.6s;

    display:block;

}

.gallery-card:hover img{

    transform:scale(1.12);

}

.gallery-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:25px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.15),
        transparent
    );

    opacity:0;

    transition:.4s;

}

.gallery-card:hover .gallery-overlay{

    opacity:1;

}

.gallery-category{

    display:inline-block;

    width:max-content;

    background:var(--primary);

    color:#fff;

    font-size:13px;

    font-weight:600;

    /*padding:5px 14px;*/

    border-radius:30px;

    margin-bottom:12px;

}

.gallery-overlay h5{

    color:#fff;

    font-weight:700;

    margin-bottom:15px;

}

.gallery-overlay a{

    display:inline-flex;

    align-items:center;

    gap:8px;

    width:max-content;

    color:#fff;

    text-decoration:none;

    padding:10px 18px;

    border:1px solid rgba(255,255,255,.5);

    border-radius:30px;

    transition:.3s;

}

.gallery-item{

    transition:.4s;

}

.gallery-overlay a:hover{

    background:#fff;

    color:var(--primary);

}

/*=============================
Modal
=============================*/

#photoModal .modal-content{

    border:none;

    border-radius:20px;

    overflow:hidden;

}

#photoModal .modal-header{

    background:#f8f9fa;

}

#photoImage{

    max-height:70vh;

    object-fit:contain;

}

#photoTitle{

    color:var(--primary);

    font-weight:700;

}

#photoCategory{

    font-size:14px;

    padding:8px 18px;

    border-radius:30px;

}

#photoDate{

    font-size:15px;

}

/*=============================
Responsive
=============================*/

@media(max-width:991px){

.gallery-card img{

    height:250px;

}

}

@media(max-width:767px){

.gallery-filter{

    gap:8px;

}

.gallery-filter button{

    padding:8px 18px;

    font-size:14px;

}

.gallery-card img{

    height:220px;

}

.gallery-overlay{

    opacity:1;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.82),
        rgba(0,0,0,.20),
        transparent
    );

}

.gallery-overlay h5{

    font-size:18px;

}

}

.gallery-modal-image{

    display:block;

    margin:auto;

    max-width:100%;

    max-height:75vh;

    width:auto;

    height:auto;

}

.gallery-arrow{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    color:#fff;

    font-size:22px;

    transition:.3s;

    z-index:10;

}

.gallery-arrow:hover{

    background:#0d6efd;

    transform:translateY(-50%) scale(1.08);

}

.gallery-prev{

    left:15px;

}

.gallery-next{

    right:15px;

}

@media(max-width:768px){

.gallery-arrow{

    width:45px;

    height:45px;

    font-size:18px;

}

.gallery-prev{

    left:8px;

}

.gallery-next{

    right:8px;

}

}