.documentation{
    width:100%;
    padding:110px 8%;
    background:#f8fbff;
}

.documentation-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.documentation-item{
    background:#fff;
    /* border-radius:18px; */
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.35s;
}

.documentation-item:hover{
    transform:translateY(-8px);
}

.documentation-item img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    cursor:pointer;
    transition:.35s;
}

.documentation-item:hover img{
    transform:scale(1.05);
}

.documentation-caption{
    padding:18px 20px 22px;
    text-align:center;
}

.documentation-caption h4{
    font-size:20px;
    color:#0f3aa9;
    font-weight:600;
    margin-bottom:10px;
}

.documentation-caption p{
    font-size:15px;
    color:#666;
    line-height:1.7;
}

.gallery-popup{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.9);
    padding:40px 90px;
    z-index:99999;
}

.gallery-content{
    width:100%;
    max-width:900px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    animation:popup .3s ease;
    box-shadow:0 20px 60px rgba(0,0,0,.3);
}

.gallery-content img{
    width:100%;
    max-height:70vh;
    object-fit:contain;
    background:#111;
    display:block;
}

.gallery-content h3{
    padding:24px 24px 10px;
    font-size:28px;
    color:#0f3aa9;
    text-align:center;
}

.gallery-content p{
    padding:0 24px 16px;
    font-size:16px;
    color:#555;
    line-height:1.8;
    text-align:center;
}

.gallery-counter{
    padding:0 0 25px;
    text-align:center;
    font-size:15px;
    color:#777;
    font-weight:600;
}

.gallery-prev,
.gallery-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:#0f3aa9;
    font-size:28px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.gallery-prev{
    left:25px;
}

.gallery-next{
    right:25px;
}

.gallery-prev:hover,
.gallery-next:hover{
    background:#0f3aa9;
    color:#fff;
    transform:translateY(-50%) scale(1.08);
}

.gallery-close{
    position:absolute;
    top:20px;
    right:30px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:#fff;
    color:#0f3aa9;
    font-size:34px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.gallery-close:hover{
    background:#0f3aa9;
    color:#fff;
    transform:rotate(90deg);
}

@keyframes popup{
    from{
        opacity:0;
        transform:scale(.92);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

@media (max-width:1200px){

    .documentation{
        padding:90px 6%;
    }

    .documentation-container{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

}

@media (max-width:768px){

    .documentation{
        padding:80px 20px;
    }

    .documentation-container{
        grid-template-columns:1fr;
    }

    .documentation-item img{
        height:220px;
    }

    .documentation-caption{
        padding:16px;
    }

    .documentation-caption h4{
        font-size:18px;
    }

    .documentation-caption p{
        font-size:14px;
    }

    .gallery-popup{
        padding:15px;
    }

    .gallery-content{
        max-width:100%;
    }

    .gallery-content img{
        max-height:45vh;
    }

    .gallery-content h3{
        font-size:22px;
        padding:18px 18px 10px;
    }

    .gallery-content p{
        font-size:14px;
        padding:0 18px 14px;
    }

    .gallery-counter{
        padding-bottom:20px;
        font-size:14px;
    }

    .gallery-prev,
    .gallery-next{
        width:45px;
        height:45px;
        font-size:22px;
    }

    .gallery-prev{
        left:10px;
    }

    .gallery-next{
        right:10px;
    }

    .gallery-close{
        width:42px;
        height:42px;
        font-size:28px;
        top:10px;
        right:10px;
    }

}