div.gag_container {
    margin: 45px 20px;
    background: #efefef;
    border: 1px solid #d0d0d0;
    border-radius: 1px;
}
div.gag_container div[role="item"] {
    display: block;
    padding: 40px 40px;
    color: #444444;
}
div.gag_container div[role="item"] h2{
    font-family: "MyriadPro-Bold";
    font-size: 30px;
    font-weight: normal;
}
div.gag_container div[role="item"] h3{
    font-family: "MyriadPro", "Myriad Pro", "Myriad Web";
    font-size: 20px;
    font-weight: normal;
    text-align: center;
}
div.gag_container div[role="item"] h2.striked:before,
div.gag_container div[role="item"] h2.striked:after {
    background: #d0d0d0;
}
div.gag_container div[role="item"] article.descr {
    display: inline-block;
    width: 470px;
    margin: 60px 0 0 0;
    vertical-align: top;
    font-size: 15px;
    line-height: 25px;
    float: left;
}
div.gag_container div[role="item"] div.thumb,
div.archive div[role="item"] div.thumb
{
    float: right;
    position: relative;
    width: 396px;
    display: block;
    margin: 40px 0 0 0;
    border: none;
}
div.gag_container div[role="item"] div.thumb img,
div.archive div[role="item"] div.thumb img{
    width: 100%;
    border: 1px solid #c8c8c8;
}
    div.archive div[role="item"] div.thumb
    {
        float: none;
        width: 300px;
        margin: 0;
    }
    div.gag_container div[role="item"] div.thumb img.cat,
    div.archive div[role="item"] div.thumb img.cat
    {
        position: absolute;
        width: 49px;
        height: 49px;
        bottom: 14px;
        right: 10px;
        border: none;
    }

div.gag_container div[role="item"] header {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 12px;
    text-shadow: 0 0 1px rgba(90,90,90,0.5);
}

div.gag_container div[role="item"] a.button {
    margin-top: 30px;
    padding: 2px 12px;
    line-height: 20px;
    font-family: "Franklin Gothic Demi Book", "Myriad Pro", "Myriad Web";
}

.gag {
    text-align: center;
}
.gag h2 {
    font-size: 29px;
    font-family: "Franklin Gothic Demi Book", "Myriad Pro", "Myriad Web";
    font-weight: normal;
    text-shadow: 0 0 1px rgba(90,90,90,0.5);
    margin: 40px auto 30px auto;
}
.gag div.categories {
    display: inline-block;
    width: 125px;
    vertical-align: top;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
}
.gag div.categories img {
    display: block;
    margin: 15px auto;
}

.gag .archive p {
    color: #919191;
}

.gag .archive div[role="item"] {
    margin: 20px 0 0 0;
    text-align: left;
    width: 300px;
    padding: 28px;
    display: inline-block;
    vertical-align: top;
}

.gag .archive div[role="item"] header {
    font-size: 22px;
    line-height: 29px;
    color: #000000;
    margin: 10px 0;
}
.gag .archive div[role="item"] article {
    font-size: 14px;
    line-height: 21px;
    color: #767676;
}

.gag .archive div[role="item"] a.download {
    display: block;
    text-align: center;
    font-family: "Franklin Gothic Demi Cond";
    font-size: 14px;
    line-height: 21px;
    color: #0094d8;
    margin: 14px;
}

/*----- Accordion -----*/
.accordion, .accordion .accordion-section-title {
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
}

.accordion {
    overflow:hidden;
    margin-top: 55px;
}
.accordion-section{
    margin-bottom: 5px;
}
/*----- Section Titles -----*/
.accordion-section-title:hover,
.accordion-section-title:focus{
    background: #efefef;
    color: #444;
}
.accordion-section-title {
    position: relative;
    width: 100%;
    padding: 11px 10px;
    display: inline-block;
    background: #efefef;
    transition: all linear 0.15s;
    color: #444;
    font-size: 30px;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.3);
}
.accordion-section-title .arrow{
    background-image: url(../images/gag-arrow.png);
    background-position: left center;
    background-repeat: no-repeat;
    position: absolute;
    right: 15px;
    top: 17px;
    width: 64px;
    height: 64px;
}
.accordion-section-title.active .arrow{
    background-position: right center;
}
.accordion-section-title img{
    float: left;
    width: 75px;
    height: 75px;
    opacity: 1 !important;
}
.accordion-section-title .gag-title{
    text-align: left;
    float: left;
    display: inline;
    margin-left: 20px;
    line-height: 75px;
}

/*----- Section Content -----*/
.accordion-section-content {
    padding:  0;
    display: none;
    text-align: left;
}
#filter{
    padding: 0 10px;
    width: 240px;
    border: 5px solid #d2d2d2;
    color: #7e7e7e;
    font-size: 17px;
    float: right;
    height: 38px;
    outline: none;
    margin-top: 30px;
}
.striked.no-style:before,
.striked.no-style:after{
    display: none;
}
div.gag_container.lastest-style div[role="item"]{
    padding: 0;
}
div.gag_container.lastest-style{
    background: transparent;
    border: none;
    width: 890px;
    margin: 0 auto;
}
div.gag_container .striked.no-style{
    font-size: 32px;
    text-transform: uppercase;
    font-family: "Franklin Gothic Demi Book", "Myriad Pro", "Myriad Web";
}
div.gag_container.lastest-style div[role="item"] header {
    font-size: 30px;
    font-family: "Franklin Gothic Demi Cond";
    color: #424242;
    text-transform: uppercase;
}
div.gag_container div[role="item"] a.block-displaying{
    display: block;
    width: 223px;
    height: 45px;
    text-transform: uppercase;
    font-size: 29px;
    font-family: "Franklin Gothic Demi Cond";
    height: 45px;
    line-height: 45px;
    margin: 20px auto 0;
}
#filter-count{
    display: none;
    float: left;
    margin-top: 35px;
    margin-left: 90px;
    font-size: 25px;
    margin-bottom: 45px;
}
.text-no-item{
    float: left;
    margin: 40px 0;
    font-size: 25px;
    width: 100%;
    text-align: center;
}
#filter::-webkit-input-placeholder {
    text-transform: uppercase;
}

#filter:-moz-placeholder { /* Firefox 18- */
    text-transform: uppercase;
}

#filter::-moz-placeholder {  /* Firefox 19+ */
    text-transform: uppercase;
}

#filter:-ms-input-placeholder {
    text-transform: uppercase;
}
.back-to-gag:hover{
    color: #fff;
}
.back-to-gag:focus,
.back-to-gag:active{
    box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
    background: #0094d8;
}
.back-to-gag{
    display: block;
    text-align: center;
    width: 320px;
    height: 46px;
    line-height: 46px;
    padding: 0;
    color: #ffffff;
    background: #0094d8;
    border: 0;
    font-size: 29px;
    font-family: MyriadPro-BoldCond;
    text-transform: uppercase;
    z-index: 1;
    margin: 47px auto 0;
}
@media screen and (max-width: 768px) {
    div.gag_container.lastest-style {
        width: 100%;
    }
    div.gag_container div[role="item"] article.descr {
        width: 50%;
        margin-top: 40px;
    }
    div.gag_container div[role="item"] div.thumb,
    div.archive div[role="item"] div.thumb {
        width: 45%;
    }
    div.gag_container div[role="item"] div.thumb img,
    div.archive div[role="item"] div.thumb img {
        box-sizing: border-box;
    }
    div.gag_container div[role="item"] a.block-displaying {
        max-width: 100%;
        padding: 0;
        font-size: 24px;
    }
    .gag h2 {
        margin: 30px auto 20px auto;
    }
    .accordion {
        margin-top: 30px;
    }
    .accordion-section-title {
        min-height: 75px;
        padding: 10px 75px;
    }
    .accordion-section-title img {
        width: 55px;
        height: 55px;
        position: absolute;
        left: 10px; top: 10px;
    }
    .accordion-section-title .gag-title {
        margin-left: 0;
        padding: 15px 0;
        font-size: 24px;
        line-height: 25px;
    }
    .accordion-section-title .arrow {
        background-size: auto 100%;
        width: 55px;
        height: 55px;
        position: absolute;
        right: 10px; top: 10px;
    }
    .accordion-section-content {
        font-size: 0;
    }
    .accordion-section-content #live-search {
        padding-right: 20px;
    }
    .accordion-section-content #live-search #filter-count {
        margin: 10px 0 0;
    }
    .accordion-section-content #live-search #filter {
        width: calc(50% - 30px);
        height: 48px;
        margin-top: 20px;
        box-sizing: border-box;
    }
    .gag .archive {
        font-size: 0;
    }
    .gag .archive div[role="item"] {
        width: 50%;
        padding: 0 20px;
        margin-top: 30px;
        box-sizing: border-box;
    }
    div.archive div[role="item"] div.thumb {
        width: 100%;
    }
    .back-to-gag {
        width: auto;
        height: auto;
        max-width: 50%;
        padding: 10px;
        line-height: 1em;
        margin-top: 40px;
    }
}
@media screen and (max-width: 450px) {
    .gag.wrapperContent {
        font-size: 0;
    }
    .gag .archive > p {
        font-size: 16px;
    }
    .gag div.categories {
        width: 33.333%;
    }
    div.gag_container h2.striked {
        white-space: normal;
    }
    div.gag_container div[role="item"] {
        display: flex;
        flex-wrap: wrap;
    }
    div.gag_container div[role="item"] div.thumb,
    div.archive div[role="item"] div.thumb {
        width: 100%;
    }
    div.gag_container div[role="item"] article.descr {
        width: 100%;
        order: 3;
    }
    .accordion-section-title {
        min-height: 85px;
        padding: 15px 75px 15px 20px;
        text-align: left;
    }
    .accordion-section-title .gag-title {
        float: none;
        display: inline-block;
        width: calc(100% - 90px);
        padding: 0;
        font: 28px/1em "MyriadPro-Cond";
        font-weight: bold;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    .accordion-section-title img {
        display: none;
    }
    .accordion-section-title .arrow {
        top: 15px;
    }
    .accordion-section-content #live-search {
        padding: 0 20px;
    }
    .accordion-section-content #live-search #filter-count {
        font-size: 17px;
    }
    .accordion-section-content #live-search #filter {
        width: 100%;
    }
    .gag .archive div[role="item"] {
        width: 100%;
    }
    .back-to-gag {
        max-width: 100%;
        margin-top: 30px;
        font-size: 22px;
    }
}
@media screen and (max-width:400px) {
    .accordion-section-title .gag-title {
        font-size: 24px;
    }
}
@media screen and (max-width:320px) {
    .accordion-section-title {
        min-height: 65px;
    }
    .accordion-section-title .gag-title {
        font-size: 20px;
    }
    .accordion-section-title .arrow {
        width: 45px;
        height: 45px;
        top: 10px;
    }
}
