﻿.grid {
    overflow: hidden;
}

.grid-sizer,
.grid-item {
    width: 25%;
    padding-top: 25%;
}

.grid .w2 {
    width: 50%;
}

.grid .h2 {
    height: 50%;
    padding-top: 50%;
}

div.grid-item {
}

div.grid-item > a {
    background-repeat: no-repeat;
    background-size: 100%;
    background-color: #FFF;
    display: block;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    position: relative;
    overflow: hidden;
    position: absolute;
    top: 5px;
    left: 5px;
    box-shadow: 0px 1px 1px rgba(103, 98, 98, 0.44);
    background-position: top center;
}


div.grid-item > a > div {
    width: 100%;
    bottom: 0;
    position: absolute;
    /*! padding: 10px 5px; */
    text-align: center;
    transition: all linear .1s .3s;
}

div.grid-item > a > div > h2 {
    font-size: 14px;
    margin: 0;
    background: #f37737;
    padding: 10px;
    color: #fff;
    height: 50px;
    text-align: center;
    font-size: 18px;
}

@media only screen and (max-device-width : 640px) {
    .grid-sizer,
    .grid-item {
        width: 50%;
        height: 160px;
    }

    .grid .w2 {
        width: 100%;
    }

    .grid .h2 {
        height: 320px;
    }

    div.grid-item > a > div > h2 {
        font-size: 12px;
    }
}

@media only screen and (max-device-width : 320px) {
    .grid-sizer,
    .grid-item {
        width: 100%;
        height: 250px;
    }

    .grid .w2 {
        width: 100%;
    }

    .grid .h2 {
        height: 250px;
    }
}

div.grid-item {
    overflow: hidden;
}

div.grid-item a {
    background-size: cover;
}

div.grid-item a::before {
  content: " ";
    width: 100%;
    height: 100%;
    display: block;
    transition: all linear .4s .1s;
}
 
div.grid-item:hover a::before  {
    background: rgba(0,0,0,.3);
}

 
div.grid-item.clinic a {
    background-image: url(images/clinic.jpg);
}



div.grid-item.saloon a {
    background-image: url(images/saloon.jpg);
}

div.grid-item.shop a {
    background-image: url(images/shop.jpg);
}

div.grid-item.blog a {
    background-image: url(images/blog.jpg);
}

div.grid-item.bill a {
    background-image: url(images/bill.jpg);
}

div.grid-item.portal a {
    background-image: url(images/portal.jpg);
}

div.intro-footer{
    border-top: solid 1px #f37737; 
    text-align: center;
    padding: 10px;
    color: #000 ;
    margin: 10px 50px;
}
div.intro-footer > a{
    color: blue ;
    text-decoration: none;
}