/**
 * agenda
 */

@media only screen and (max-width: 1279px) {
    #events .event {
        width: 33.3333%;
    }
    #partners .partner {
        width: 49.9%;
    }
    #partners .partner:nth-child(4n) .wrapper {
        padding-right: 25px;
    }
    #partners .partner:nth-child(2n) .wrapper {
        padding-right: 0;
    }
}


/**
 * home
 * artists
 */

@media only screen and (max-width: 1023px) {
    #content .post .thumbnail {
        width: 100%;
        display: block;
    }
    #content .post .details {
        width: 100%;
        display: block;
        padding-left: 0;
    }
    #events .event {
        width: 50%;
    }
    #artists {
        padding: 60px 40px;
    }
    #artists>ul>li {
        width: calc(33.3333% - 20px);
        height: 100%;
        line-height: 195px;
        border: 6px solid #f8e0da;
        position: relative;
        float: left;
        margin: 0 30px 30px 0;
    }
    #artists>ul>li:nth-child(4n) {
        margin-right: 30px;
    }
    #artists>ul>li:nth-child(3n) {
        margin-right: 0;
    }
    #artist .thumbnail {
        width: 100%;
        max-height: 450px;
    }
    #artist .wrapper {
        background: none;
        margin-left: 0;
        margin-right: 0;
    }
    #artist .wrapper h1 {
        left: -60px;
    }
    .viewpager {
        margin: 20px 0;
    }
}


/**
 * global style
 * home
 * artists
 */

@media only screen and (max-width: 767px) {
    /* global styles */
    h1 {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }
    #content .posts,
    #events,
    #team,
    #artists,
    #partners,
    #contact,
    #artist .wrapper {
        padding: 30px;
    }
    #header {
        position: static;
        overflow: auto;
        width: 100%;
        display: block;
        bottom: inherit;
        z-index: 300;
    }
    #header #logo-wrap {
        margin: 25px auto;
    }
    #header #logo {
        width: 110px;
        height: 135px;
    }
    #header #menu {
        text-align: center;
        display: none;
        padding: 50px 0 50px 0;
    }
    #header .networks {
        display: none;
    }
    #header #menu_button {
        display: block;
        width: 22px;
        height: 22px;
        background-image: url('../img/burger.svg');
        background-size: contain;
        position: absolute;
        top: 25px;
        right: 25px;
    }
    #footer {
        position: relative;
        display: block;
        background-color: #f8e0da;
        padding: 30px;
        left: 0;
        bottom: 0;
    }
    #footer .networks {
        display: inline-block;
        float: left;
        background-color: #f8e0da;
    }
    #footer nav {
        float: right;
        padding: 0;
    }
    .newsletter form {
        width: calc(100% - 60px);
        padding: 30px;
        bottom: 70px;
    }
    .newsletter form input {
        width: 100%;
    }
    /* home */
    #home header {
        margin-bottom: 18px;
    }
    #content {
        padding-left: 0;
        width: 100%;
    }
    #content .posts {
        display: block;
        width: 100%;
    }
    #content .posts li.post {
        padding-bottom: 30px;
    }
    #content .posts li.post:last-of-type {
        padding-bottom: 0;
    }
    #content .events {
        position: static;
        display: block;
        width: 100%;
    }
    #content .events h1 {
        margin-top: 0;
    }
    #content .events .event {
        display: inline-block;
        width: 50%;
        float: left;
        height: 150px;
    }
    /* artists */
    #artists>ul>li {
        width: calc(50% - 15px);
        height: 100%;
        line-height: 195px;
        border: 6px solid #f8e0da;
        position: relative;
        float: left;
        margin: 0 30px 40px 0;
    }
    #artists>ul>li .thumbnail {
        visibility: visible !important;
    }
    #artists>ul>li h2 {
        position: absolute;
        display: block !important;
        top: inherit;
        bottom: -35px;
    }
    #artists>ul>li:nth-child(4n) {
        margin-right: 30px;
    }
    #artists>ul>li:nth-child(3n) {
        margin-right: 30px;
    }
    #artists>ul>li:nth-child(2n) {
        margin-right: 0;
    }
    #artists>ul>li .thumbnail {
        width: 100%;
        height: auto;
    }
    #artists>ul>li .thumbnail img {
        width: 100%;
        height: auto;
    }
    /* artist */
    #artist {
        display: block;
        width: 100%;
    }
    #artist .wrapper {
        margin-bottom: 0;
    }
    #artist .wrapper h1 {
        margin-bottom: 0 !important;
        left: -30px;
        top: -30px;
        max-width: calc(100% - 115px);
    }
    #events .month .event {
        margin-bottom: 30px;
        padding: 0;
    }
    #events .month:last-of-type .event:last-of-type {
        margin-bottom: 0;
        padding: 0;
    }
}

@media only screen and (max-width: 640px) {
    #partners .partner {
        width: 100%;
        height: auto;
        float: left;
    }
    #partners .partner {
        width: 100%;
        height: auto;
        float: left;
    }
    #partners .partner .wrapper {
        padding: 0;
    }
    #events .event {
        width: 100%;
        height: auto;
        padding: 0;
    }
    #team .description {
        display: block;
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    #team .members {
        display: block;
        width: 100%;
    }
    #team .members ul li {
        width: 50%;
        float: left;
    }
    #team .members ul li:last-of-type {
        margin: 0;
        padding: 0;
    }
    #artists>ul>li {
        width: 100%;
        height: auto;
    }
    .slideshow_description {
        text-align: center;
        left: 0;
        margin: 0 12px;
        bottom: -25px;
    }
    .slideshow_description .content {
        text-align: left;
    }
    .slideshow_description .content h2 {
        font-size: 20px;
    }
    .slideshow_pager {
        display: inline-block;
        margin-top: 20px;
    }
    #content .events .event {
        width: 100%;
        float: none;
    }
    #artists>ul>li:last-of-type {
        margin-bottom: 24px;
    }
}

@media only screen and (max-width: 460px) {
    #team .members ul li {
        width: 100%;
        float: none;
    }
}
