@media (min-width: 1100px) {
    .grid .item {
        width: 16.66%;
    }
}

@media (max-width: 1100px) and (min-width: 710px) {
    .grid .item {
        width: 25%;
    }
}

@media (max-width: 710px) and (min-width: 540px) {
    .grid .item {
        width: 33.33%;
    }
}

@media (max-width: 540px) {

    .grid .item {
        width: 50%;
    }
    .container {
        max-width: 390px;
    }
}

.grid .items {
    background: #FFF;
    padding: 5px;
    text-align:center;
}

.grid .items:after {
    content: '';
    display: block;
    clear: both;
}

.grid .item {
    position: relative;
    /*    float: left;*/
    padding: 10px;
    display:inline-block;
}

.grid .item:before {
    content: '';
    display: block;
    padding-top: 100%;
}

.grid .item:hover {
    background: #0091ca;
}

.grid .item:hover .text {
    color: #FFF;
}
.grid .item.wh:hover .text {
    color: #0091ca;
}

.grid .item:hover .content {
    background: #0091ca;
}

.grid .item.wh:hover .contentw {
    background: #fff;
}

.grid .item:hover svg {
    fill: #FFF;
}

.grid .content {
    transition: 0.5s;
    position: absolute;
    background: #e2e3e4;
    top: 5px;
    bottom: 5px;
    right: 5px;
    left: 5px;
    text-align: center;
    margin:0px;
}
.grid .contentw {
    transition: 0.5s;
    position: absolute;
    background: #fff;
    top: 5px;
    bottom: 5px;
    right: 5px;
    left: 5px;
    text-align: center;
    margin:0px;
    border: solid 2px #e2e3e4;
}

.grid .contentBox {
    width: 100%;
    position: absolute;
    top: 48%;
    transform: translateY(-50%);}

.grid .item a {
    color: #335063;
}

.grid .text {
    /*display: inline-block;*/
    font-size: 18px;
    transition: 0.5s;
    text-transform: uppercase;
    color: #335063;
}

.grid svg {
    display: inline-block;
    fill: #2a4d61;
    width: 70%;
    max-width: 150px;
    height: auto;
    transition: 0.5s;
}
.cattogen {
/*    background-image: url(/img/dotline.png);
    background-position: center top;
    background-repeat: repeat-y;
    background-size: 2px auto;*/
    margin: 1em auto;
    padding: 0;
    text-align: left;
    max-width:700px;
    position: relative;
}
.cattogen:before, .cattogen:after {
    content: " ";
    display: table;
}
.cattogen:before {
    border-right: dotted 1px black;
    width: 1px;
    height: 100%;
    left:50%;
    top:0;
    position: absolute;
    margin-right: 1px;
}
.cattogen .genhdr {
    background-color: #FFF;
    border: solid 1px #335063;
    border-radius: 4px;
    clear: both;
    color: #335063;
    display: block;
    font-weight: 600;
    line-height: 21px;
    margin: 0 auto;
    max-width: 25em;
    padding: 0.6em;
    position: relative;
    text-align: center;
    width: 100%;
    min-height: 0px;
}
.cattogen .genhdr h2{
    font-size: 1.5rem;
}
.cattogen .genhdr:after, .cattogen .genhdr:before {
    border: medium solid transparent;
    content: " ";
    height: 1px;
    pointer-events: none;
    position: absolute;
    top: 100%;
    width: 0;
    display: table;
}
.cattogen .genhdr:after {
    border-top-color: #335063;
    border-width: 10px;
    left: 50%;
    margin-left: -10px;
    clear: both;
}
.cattogen .genitem {
    width: 50%;
    float: left;
    margin: 20px 0 0;
}
.cattogen .genitem.right {
    float: right;
}

.cattogen .itm {
    border: solid 1px #0091ca;

    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    height: 174px;
    position: relative;
}
.cattogen .genitem.left .itm {
    margin-right: 10px;
    margin-left: 0;
}
.cattogen .genitem.right .itm {
    margin-right: 0;
    margin-left: 10px;
}
.cattogen .genitem.left .itm:before {
    left: 100%;
    top: 25%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(136, 183, 213, 0);
    border-left-color: #0091ca;
    border-width: 10px;
    margin-top: -10px;
}
.cattogen .genitem.right .itm:before {
    right: 100%;
    top: 75%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(136, 183, 213, 0);
    border-right-color: #0091ca;
    border-width: 10px;
    margin-top: -10px;
}
.cattogen .genitem.left .itm:after {
    left: 100%;
    top: 25%;
    border: solid transparent;
    content: " ";
    height: 26px;
    width: 4px;
    position: absolute;
    margin-left: 23px;
    margin-top: -14px;
}
.cattogen .genitem.right .itm:after  {
    right: 100%;
    top: 75%;
    border: solid transparent;
    content: " ";
    height: 26px;
    width: 4px;
    position: absolute;
    margin-right: 23px;
    margin-top: -14px;
}
.cattogen .itm a {
    display: block;
    vertical-align: top;
    text-align: center;
    overflow: hidden;
    width: 100%;
    height: 172px;
    text-decoration: none;
    outline: 0 none;
    font-size: 0.01ex;
    line-height: 0.01ex;
    position: relative;
}

.cattogen .genitem a img {
    float: none;
    vertical-align: middle;
}
.cattogen .itm .text-overlay {
    background-color: rgba(0, 145, 202, 0.43);
    left: 0;
    bottom: 0;
    width: 100%;
    position: absolute;
    width: 100%;
    text-align: right;
    display: block;
}
.cattogen .genitem.right .text-overlay  {
    text-align: left;
}
.cattogen .itm a:hover .text-overlay {
    background-color: rgba(0, 145, 202, 1);
}

.cattogen .itm .title {
    color: #fff;
    font-size: 14px;
    line-height: 16px;
    font-weight: bold;
    padding: 8px 9px;
    display: -moz-inline-stack;
    display: inline-block;
    vertical-align: middle;
    zoom: 1;
}
.cattogen .itm a:hover .title {
    color: #fff;
}
.cattogen .bottom_padding {
    margin-bottom: 10px;
}
.cattoitem {
    height: 270px;
    padding: 5px;
    text-align: center;
    vertical-align: top;
    font-size: 0.8rem;
    line-height: 1.2rem;
    box-shadow: #ddd 0px 0px 5px;
    margin-bottom: 25px;
    border-radius: 10px;
    cursor: pointer;
}
.cattoitem img {
    display: block;
    border-radius: 5px;
    margin: 10px auto;
}
.cattoitem button {
    margin-top: 10px;
}