.gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    max-width:1200px;

    margin:20px auto;

    justify-items:center;
}

.gallery-box{

    background:#0f1625;

    border:2px solid #2f8cff;

    border-radius:8px;

    padding:10px;

    text-align:center;

    box-shadow:0 0 12px rgba(47,140,255,.35);

    transition:.3s;
}

.gallery-box:hover{

    box-shadow:0 0 20px rgba(47,140,255,.75);
}

.gallery-thumb{

    max-width:288px;

    max-height:288px;

    width:auto;

    height:auto;

    display:block;

    margin:auto;

    border-radius:6px;
}

.gallery-title{

    margin-top:10px;

    color:#7fc2ff;

    font-size:14px;

    font-weight:bold;

    word-break:break-word;
}

.gallery-box a{

    text-decoration:none;

    color:inherit;
}

@media screen and (max-width:1100px){

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media screen and (max-width:700px){

    .gallery-grid{
        grid-template-columns:1fr;
    }
}