.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: calc(100% - 16px);
    margin: 0 auto;
    direction: rtl;
}
.Title {
    display: block;
    width: calc(100% - 16px);
    margin: 16px auto;
    text-align: right;
}
.Title:before {
    width: 25px;
    height: 25px;
    -webkit-mask-image: url(../Icons/ImageIcon.svg);
    margin-bottom: 2px;
}

.gallery a {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery a:before {
    content: attr(label);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0%;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    cursor: pointer;
}

.gallery a:hover:before {
    opacity: 1;
    transition: var(--transition);
}

@media screen and (min-width: 0) and (max-width : 600px) {

    .gallerytitle  {
        margin: 25px 23px;
    }
    
    .gallery {
        grid-template-columns: repeat(2 , 1fr);
        width: calc(100% - 46px);
    }

    .gallery a {
        height: 150px;
    }
    
}

@media screen and (min-width: 601px) and (max-width : 1024px) {

    .gallerytitle  {
        margin: 25px 23px;
    }
    
    .gallery {
        grid-template-columns: repeat(3 , 1fr);
        width: calc(100% - 46px);
    }

    .gallery a {
        height: 200px;
    }
    
}