/*
    Name: grid styles;
    by CRYCODE
*/

.tac {
    text-align: center;
}

.tar {
    text-align: right;
}

.tal {
    text-align: left;
}

.clearfix:after {
    content: '';
    display: table;
    clear: both
}

.grid-h {
    height: 100%;
}

.grid,.row {
    display: table;
    width: calc(100% + 30px);
    margin: 0 -15px;
    table-layout: fixed;
	/*background: url(/upload/bg.png);*/
	padding: 10px;
}

.grid {
    margin-top: -15px;
    margin-bottom: -15px;
    font-size: 0
}

[class*="grid-"] {
    display: inline-block;
    vertical-align: top;
    padding: 15px;
    position: relative;
    font-size: 16px;
}

[class*="col-"] {
    float: left;
    position: relative;
    padding: 0 15px;
}

.grid-p-1,.cell-p-1,.col-p-1 {
    width: 10%
}

.grid-p-2,.cell-p-2,.col-p-2 {
    width: 20%
}

.grid-p-25,.cell-p-25,.col-p-25 {
    width: 25%
}

.grid-p-3,.cell-p-3,.col-p-3 {
    width: 30%
}

.grid-p-33,.cell-p-33,.col-p-33 {
    width: 33.33%
}

.grid-p-4,.cell-p-4,.col-p-4 {
    width: 40%
}

.grid-p-5,.cell-p-5,.col-p-5 {
    width: 50%
}

.grid-p-6,.cell-p-6,.col-p-6 {
    width: 60%
}

.grid-p-7,.cell-p-7,.col-p-7 {
    width: 70%
}

.grid-p-8,.cell-p-8,.col-p-8 {
    width: 80%
}

.grid-p-9,.cell-p-9,.col-p-9 {
    width: 90%
}

.grid-p-10,.cell-p-10,.col-p-10 {
    width: 100%
}

@media screen and (max-width: 1023px) {
    .grid,.row {
        width: calc(100% + 20px);
    	margin: 0 -10px;
    }

    .grid {
        margin-top: -10px;
        margin-bottom: -10px;
    }

    [class*="grid-"] {
        padding: 10px;
    }

    [class*="col-"] {
        padding: 0 10px;
    }

    .t-tac {
        text-align: center;
    }

    .grid-t-1,.cell-t-1,.col-t-1 {
        width:10%
    }

    .grid-t-2,.cell-t-2,.col-t-2 {
        width: 20%
    }

    .grid-t-25,.cell-t-25,.col-t-25 {
        width: 25%
    }

    .grid-t-3,.cell-t-3,.col-t-3 {
        width: 30%
    }

    .grid-t-33,.cell-t-33,.col-t-33 {
        width: 33.33%
    }

    .grid-t-4,.cell-t-4,.col-t-4 {
        width: 40%
    }

    .grid-t-5,.cell-t-5,.col-t-5 {
        width: 50%
    }

    .grid-t-6,.cell-t-6,.col-t-6 {
        width: 60%
    }

    .grid-t-7,.cell-t-7,.col-t-7 {
        width: 70%
    }

    .grid-t-8,.cell-t-8,.col-t-8 {
        width: 80%
    }

    .grid-t-9,.cell-t-9,.col-t-9 {
        width: 90%
    }

    .grid-t-10,.cell-t-10,.col-t-10 {
        width: 100%
    }
}

@media screen and (max-width: 767px) {
    .grid,.row {
        width: calc(100% + 10px);
    	margin: 0 -5px;
    }

    .grid {
        margin-top: -5px;
        margin-bottom: -5px;
    }

    [class*="grid-"] {
        padding: 5px;
    }

    [class*="col-"] {
        padding: 0 5px;
    }

    .t-noa a:after,a.t-noa:after {
        display: none;
    }

    .m-tac {
        text-align: center;
    }

    .grid-m-1,.cell-m-1,.col-m-1 {
        width: 10%
    }

    .grid-m-2,.cell-m-2,.col-m-2 {
        width: 20%
    }

    .grid-m-25,.cell-m-25,.col-m-25 {
        width: 25%
    }

    .grid-m-3,.cell-m-3,.col-m-3 {
        width: 30%
    }

    .grid-m-33,.cell-m-33,.col-m-33 {
        width: 33.33%
    }

    .grid-m-4,.cell-m-4,.col-m-4 {
        width: 40%
    }

    .grid-m-5,.cell-m-5,.col-m-5 {
        width: 50%
    }

    .grid-m-6,.cell-m-6,.col-m-6 {
        width: 60%
    }

    .grid-m-7,.cell-m-7,.col-m-7 {
        width: 70%
    }

    .grid-m-8,.cell-m-8,.col-m-8 {
        width: 80%
    }

    .grid-m-9,.cell-m-9,.col-m-9 {
        width: 90%
    }

    .grid-m-10,.cell-m-10,.col-m-10 {
        width: 100%
    }
}

@media screen and (max-width: 479px) {
    .grid-mm-1,.cell-mm-1,.col-mm-1 {
        width: 10%
    }

    .grid-mm-2,.cell-mm-2,.col-mm-2 {
        width: 20%
    }

    .grid-mm-25,.cell-mm-25,.col-mm-25 {
        width: 25%
    }

    .grid-mm-3,.cell-mm-3,.col-mm-3 {
        width: 30%
    }

    .grid-mm-33,.cell-mm-33,.col-mm-33 {
        width: 33.33%
    }

    .grid-mm-4,.cell-mm-4,.col-mm-4 {
        width: 40%
    }

    .grid-mm-5,.cell-mm-5,.col-mm-5 {
        width: 50%
    }

    .grid-mm-6,.cell-mm-6,.col-mm-6 {
        width: 60%
    }

    .grid-mm-7,.cell-mm-7,.col-mm-7 {
        width: 70%
    }

    .grid-mm-8,.cell-mm-8,.col-mm-8 {
        width: 80%
    }

    .grid-mm-9,.cell-mm-9,.col-mm-9 {
        width: 90%
    }

    .grid-mm-10,.cell-mm-10,.col-mm-10 {
        width: 100%
    }
}