@media only screen and (max-width: 1150px) {
    section ul.eventsnav>li {
        line-height: 15px;
        padding: 7px 0;
    }

    section ul.eventsnav>li.timeline, section ul.eventsnav>li.calendar {
        padding: 0 3px 0 0;
    }

    section ul.eventsnav>li>a {
        min-width: 60px;
        padding: 5px;
        font-size: 1.3em;
    }

    section ul.eventsnav>li.labels>a {
        border-right: 5px solid #fff;
        padding-right: 17px;
        background-position: right 5px;
    }

    section ul.eventsnav>li.labels>a.open {
        background-position: right -76px;
    }

    section ul.eventsnav>li>a.switch {
        padding: 6px 5px;
    }

    section ul.eventsnav>li>a.switch span {
        display: none;
    }

    section ul.eventsnav>li .search-bar {
        padding: 8px 10px;
        width: 140px;
    }

    section ul.eventsnav>li .search-bar input.text {
        padding: 0 6px;
        font-size: 1.2em;
        height: 22px;
        line-height: 22px;
    }

    section ul.eventsnav>li .search-bar div.Actions {
        top: 9px;
        right: 9px;
    }

    section ul.eventsnav>li .search-bar input.action {
        padding: 0;
        font-size: 1.3em;
        width: 22px;
        height: 22px;
    }

    section ul.eventsnav li ul.eventlabels {
        top: 54px;
    }

    section ul.eventsnav li ul.eventlabels li {
        padding: 0 10px;
    }

    section ul.eventsnav li ul.eventlabels li.all {
        padding: .5em 10px 0 10px;
    }

    section ul.eventsnav li ul.eventlabels li a {
        font-size: 1.2em;
    }

    section div.calendarday ul.events li {
        width: 30%;
        padding: 0 0 20px 3.33%;
    }

    section div.calendarday ul.events li.loaded:after, section div.calendarday ul.events li.loading:after {
        left: 10%;
        bottom: 20px;
    }

    section div.calendarday ul.events {
        width: 95%;
    }

    footer nav ul {
        width: 33%;
    }

    footer div.trans {
        width: 66%;
    }

    footer ul.links {
        width: 100%;
    }

    footer ul.linkslogos {
        margin-top: 1em;
    }

    footer ul.linkslogos li {
        padding: 0 0 0 4px;
    }
}

@media only screen and (max-width: 1092px) {
    article.home div.inner div.home {
        width: 100%;
    }

    section.homeboxesnews, section.home3panels {
        width: -moz-calc(100% - 12px);
        width: -webkit-calc(100% - 12px);
        width: -o-calc(100% - 12px);
        width: calc(100% - 12px);
    }

    div.homeboxes {
        width: -moz-calc(100% - 406px);
        width: -webkit-calc(100% - 406px);
        width: -o-calc(100% - 406px);
        width: calc(100% - 406px);
    }

    div.homeboxes ul.homeboxes li {
        font-size: 1.6em;
    }

    div.homeboxes ul.homeboxes li.services a:before {
        font-size: 28px;
    }

    section.home3panels div.twitter {
        width: 33%;
    }

    section.home3panels div.homepanelsleft {
        width: 67%;
    }

    section.home3panels div.homepanel, section.home3panels div.homepanel2 {
        width: -moz-calc(50% - 6px);
        width: -webkit-calc(50% - 6px);
        width: -o-calc(50% - 6px);
        width: calc(50% - 6px);
    }

    section.home3panels div.homepanel h2, section.home3panels div.homepanel2 h2, section.home3panels div.twitter h2 {
        font-size: 1.6em;
    }
}

@media only screen and (max-width: 1024px) {
    header .search-bar {
        width: 320px;
    }

    header .search-bar div.field {
        width: 270px;
    }

    article div.inner div.contentsubnav section div.colsthird {
        width: 100%;
        padding: 0;
        min-height: 0;
    }

    article div.inner div.contentsubnav section div.colsthird.colsfirst {
        border-right: 0 none;
        border-bottom: 1px solid #00375e;
        padding: 0;
        margin: 0 0 1em 0;
    }

    article div.inner div.contentsubnav section div.colsthird.colslast {
        border-left: 0 none;
        border-top: 1px solid #00375e;
        padding: 1em 0 0 0;
    }

    section div.item dl.infoone {
        border: 0 none;
        padding: 1% 0;
    }

    section div.item dl.infoforths, section div.item dl.infothirds, section div.item dl.infohalfs {
        border: 0 none;
        border-bottom: 1px solid #00375e;
        width: 100%;
        padding: 1% 0;
    }

    section div.item dl.infofirst {
        padding-top: 0;
    }

    section div.item dl.infoforths.infolast, section div.item dl.infothirds.infolast, section div.item dl.infohalfs.infolast {
        border: 0 none;
    }

    div.homeboxes {
        width: 330px;
    }

    div.homenews {
        width: -moz-calc(100% - 330px);
        width: -webkit-calc(100% - 330px);
        width: -o-calc(100% - 330px);
        width: calc(100% - 330px);
    }

    div.megamenu div.megamenugroup2, div.megamenu div.megamenugroup3, div.megamenu div.megamenugroup4 {
        width: -moz-calc(50% - 60px);
        width: -webkit-calc(50% - 60px);
        width: -o-calc(50% - 60px);
        width: calc(50% - 60px);
    }

    div.megamenu div.megamenugroup3rd {
        clear: left;
    }
}

@media only screen and (max-width: 1008px) {
    div.homenews div.homenewsimage {
        max-height: none;
    }

    div.homenews div.homenewsimage img {
        width: auto;
    }
}

@media only screen and (max-width: 980px) {
    article div.inner aside.subnav {
        top: 75px;
        left: 275px;
        width: 152px;
        padding: 0;
    }

    article div.inner aside.subnav nav.secondary, article div.inner aside.subnav div.related, article div.inner aside.subnav div.contentside {
        width: 100%;
        padding: 0;
        border-left: 0 none;
    }

    article div.inner aside.subnav ul li a {
        font-size: 1.2em;
    }

    article div.inner div.contentsubnav {
        padding: 0 0 0 177px;
    }

    article div.inner div.innergrey {
        padding: 7px 0;
    }

    article .search-bar {
        width: -moz-calc(100% - 30px);
        width: -webkit-calc(100% - 30px);
        width: -o-calc(100% - 30px);
        width: calc(100% - 30px);
        padding: 7px 15px 0 15px;
        margin: 7px 0 0 0;
    }

    article div.inner ul.breadcrumbs {
        width: -moz-calc(100% - 30px);
        width: -webkit-calc(100% - 30px);
        width: -o-calc(100% - 30px);
        width: calc(100% - 30px);
        padding: 0 15px;
    }

    article div.inner ul.breadcrumbs li {
        line-height: 1.2em;
    }

    section.page {
        width: -moz-calc(100% - 50px);
        width: -webkit-calc(100% - 50px);
        width: -o-calc(100% - 50px);
        width: calc(100% - 50px);
        padding: 45px 25px;
    }

    section.page hr {
        width: -moz-calc(100% + 50px);
        width: -webkit-calc(100% + 50px);
        width: -o-calc(100% + 50px);
        width: calc(100% + 50px);
        margin-left: -25px;
        margin-right: -25px;
    }

    section.home3panels div.homepanel2 ul li {
        font-size: 1.15em;
    }

    section div.event dl {
        position: relative;
        bottom: auto;
        left: auto;
    }

    footer div.footer {
        padding: 0 15px 0 272px;
    }

    footer nav {
        float: left;
        border-left: 0 none;
        padding: 0;
    }

    footer nav ul {
        border: 0 none;
    }

    footer nav ul li {
        font-size: 1.2em;
        padding: 0;
    }

    footer nav ul li.auto {
        padding: 0;
    }

    footer nav ul li.autoincrease {
        padding: 0 .5em;
    }

    footer ul.links li, footer nav ul li.defaultsize {
        font-size: 1.1em;
    }
}

header.headershrink {
    min-height: 0;
}

header.headershrink div.headerinner {
    padding: 1em 30px;
}

header.headershrink ul.links li.fblike {
    padding: .3em;
}

header.headershrink ul.links li.icon {
    font-size: 2em;
    padding: .15em .2em;
}

header.headershrink ul.links li.contact {
    font-size: 1.4em;
    padding: .5em 0;
    line-height: 14px;
}

header.headershrink .logo img {
    width: 126px;
    height: auto;
}

header.headershrink .search-bar {
    padding: 0 .6em;
    width: 240px;
}

header.headershrink .search-bar div.field {
    width: 200px;
}

header.headershrink .search-bar input.text {
    padding: .4em 0;
    font-size: 1.4em;
}

header.headershrink .search-bar input.action {
    padding: .15em 0;
    font-size: 1.8em;
}

@media only screen and (max-width: 900px) {
    header ul.links li.fblike {
        padding: .3em;
    }

    header ul.links li.icon {
        font-size: 2em;
        padding: .15em .2em;
    }

    header ul.links li.contact, header ul.links li.search {
        font-size: 1.4em;
        padding: .5em 0;
        line-height: 14px;
    }

    header .search-bar {
        padding: 0 5px;
        width: 240px;
    }

    header .search-bar div.field {
        width: 190px;
    }

    header .search-bar input.text {
        padding: .4em 0;
        font-size: 1.4em;
    }

    header .search-bar input.action {
        padding: .15em 0;
        font-size: 1.8em;
    }

    article .search-bar input.text {
        padding: .4em 0;
        font-size: 1.4em;
        width: 360px;
    }

    article .search-bar input.action {
        padding: .15em 0;
        font-size: 1.8em;
    }

    article .search-bar form {
        padding: 0 7px;
        width: 400px;
    }

    section ul.items li {
        width: 49%;
        padding: 0 1% 1em 0;
    }

    section div.colshalf {
        width: 100%;
        padding: 0;
        min-height: 0;
    }

    section div.colshalf.colsfirst {
        border-right: 0 none;
        padding: 0;
        margin: 0;
    }

    section div.colshalf.colslast {
        border-left: 0 none;
        border-top: 1px solid #00375e;
        padding: 1em 0 0 0;
    }

    section ul.eventsnav li a {
        font-size: 1.3em;
    }

    section ul.eventsnav>li.search {
        clear: left;
        width: 34%;
    }

    section ul.eventsnav>li {
        width: 22%;
    }

    section ul.eventsnav>li.timeline, section ul.eventsnav>li.calendar {
        width: auto;
    }

    section div.calendarday ul.events {
        width: 94%;
    }

    section div.calendarday ul.events li div h3 {
        font-size: 1.5em;
        line-height: 16px;
    }

    section div.eventholder h1, section div.eventholder div.eventcontentright h2 {
        font-size: 1.5em;
    }

    section div.calendarwidget div.calendar {
        padding: 0 22px;
    }

    section div.calendarwidget div.calendar ul.calendarnav li, section div.calendarwidget div.calendar ul.calendarnav li a {
        width: 22px;
    }

    section div.calendarwidget div.calendar ul.calendarnav li a {
        padding: 200px 0 0 0;
        font-size: 1.6em;
    }

    section table.calendar td ul.events li {
        font-size: 1.2em;
    }

    section table.calendar tr.event td div.eventholder div.eventcontentleft p, section table.calendar tr.event td div.eventholder div.eventcontentleft li,
    section div.eventholder div.eventcontentleft p, section div.eventholder div.eventcontentleft li {
        font-size: 1.4em;
    }

    section table.calendar tr.event td div.eventholder div.eventcontentleft p.free, section div.eventholder div.eventcontentleft p.free {
        font-size: 1.2em;
    }

    section table.calendar td {
        padding: 2px;
    }

    section table.calendar td p.day {
        width: 20px;
        height: 20px;
        line-height: 20px;
        border-radius: 12px;
        font-size: 1.2em;
    }

    section table.calendar tr.event td {
        padding: 0;
    }

    section table.calendar tr.moreevents td {
        padding: 0;
    }

    section table.calendar td.current:after {
        bottom: -10px;
        border-width: 16px;
        margin-left: -16px;
    }
}

@media only screen and (max-width: 768px) {
    body {
        background: #00375e;
    }

    header ul.links li.contact a {
        padding-left: 0;
        border-left: 0 none;
    }

    header ul.links li.search {
        display: block;
    }

    header {
        min-height: 0;
    }

    header div.headerinner {
        padding: 1em 0 1em 45px;
        width: -moz-calc(100% - 45px);
        width: -webkit-calc(100% - 45px);
        width: -o-calc(100% - 45px);
        width: calc(100% - 45px);
    }

    header .logo img {
        width: 126px;
        height: auto;
    }

    header {
        position: relative;
        top: auto;
        left: auto;
    }

    header .search-bar {
        display: none;
    }

    article .search-bar input.text {
        width: 260px;
    }

    article .search-bar form {
        width: 300px;
    }

    div.homenews div.homenewsimage {
        max-height: 262px;
    }

    div.homenews div.homenewsimage img {
        width: 100%;
    }

    div.main {
        margin: 0;
    }

    article {
        margin: 0;
    }

    article.home div.qldcalert {
        padding: 6px;
    }

    article div.inner, article.home div.inner {
        padding: 0 0 60px 0;
        margin: 0;
    }

    div.sidebar {
        position: absolute;
        padding: 0;
    }

    div.sidebarnormal {
        display: none;
    }

    div.sidebar div.drilldown {
        padding-top: 10px;
    }

    article div.inner {
        width: 100% !important;
        padding: 0;
        background: none;
    }

    article div.inner div.contentsubnav {
        width: 100%;
        float: left;
        clear: none;
        padding: 0;
    }

    article div.inner aside.subnav {
        display: none;
    }

    section.page {
        width: -moz-calc(100% - 30px);
        width: -webkit-calc(100% - 30px);
        width: -o-calc(100% - 30px);
        width: calc(100% - 30px);
        padding: 15px;
    }

    section.page hr {
        width: -moz-calc(100% + 30px);
        width: -webkit-calc(100% + 30px);
        width: -o-calc(100% + 30px);
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
    }

    footer {
        padding-top: 18px;
        background: #e0e3e4;
    }

    div.sidebar div.sidesda, footer div.sidesda {
        display: none;
    }

    footer div.footer {
        padding: 0 15px;
    }

    section div.colshalf {
        width: 100%;
        padding: 0;
        min-height: 0;
    }

    section div.colshalf.colsfirst {
        border-right: 0 none;
        padding: 0;
        margin: 0;
    }

    section div.colshalf.colslast {
        border-left: 0 none;
        border-top: 1px solid #00375e;
        padding: 1em 0 0 0;
    }

    section div.colsthird {
        width: 100%;
        padding: 0;
        min-height: 0;
    }

    section div.colsthird.colsfirst {
        border-right: 0 none;
        border-bottom: 1px solid #00375e;
        padding: 0;
        margin: 0 0 1em 0;
    }

    section div.colsthird.colslast {
        border-left: 0 none;
        border-top: 1px solid #00375e;
        padding: 1em 0 0 0;
    }

    nav.primary ul li a, nav.primary ul li.expandable li a {
        font-size: 1.4em;
    }

    section div.item dl.infoforths {
        width: 20%;
        padding: 0 3%;
        border: 0 none;
        border-right: 1px solid #00375e;
    }

    section div.item dl.infothirds {
        width: 29%;
        padding: 0 3%;
        border: 0 none;
        border-right: 1px solid #00375e;
    }

    section div.item dl.infohalfs {
        width: 46%;
        border: 0 none;
        border-right: 1px solid #00375e;
    }

    section div.item dl.infofirst {
        padding: 0 3% 0 0;
    }

    section div.item dl.infolast {
        padding: 0 0 0 3%;
    }

    section div.item dl.infoforths.infolast, section div.item dl.infothirds.infolast, section div.item dl.infohalfs.infolast {
        border: 0 none;
    }
}

@media only screen and (max-width: 748px) {
    div.homenews div.homenewsimage {
        max-height: none;
    }

    div.homenews div.homenewsimage img {
        width: auto;
    }
}

@media only screen and (max-width: 650px) {
    section div.calendarday ul.events li {
        width: 48%;
        padding: 0 0 10px 2%;
    }

    section div.calendarday ul.events li.loaded:after, section div.calendarday ul.events li.loading:after {
        left: 4%;
        bottom: 10px;
    }

    section div.eventholder div.eventcontentleft, section div.eventholder div.eventcontentright {
        width: 100%;
        padding: 10px;
    }

    section div.eventholder div.eventimages {
        width: 100%;
        max-width: 100%;
        max-height: 400px;
    }

    section div.eventholder div.eventmap {
        width: 100%;
        padding-bottom: 40%;
    }

    section table.calendar td ul.events li {
        font-size: 1.1em;
    }
}

@media only screen and (max-width: 570px) {
    div.homenews, div.homeboxes {
        width: 100%;
    }

    div.homecdem, ul.homecdem {
        width: 96%;
    }

    div.homeboxes ul.homeboxes li {
        line-height: 53px;
    }

    div.homeboxes {
        width: -moz-calc(100% + 6px);
        width: -webkit-calc(100% + 6px);
        width: -o-calc(100% + 6px);
        width: calc(100% + 6px);
        margin-right: -6px;
        margin-bottom: 6px;
    }

    div.homenews {
        max-height: none;
    }

    div.homenews div.homenewsimage img {
        height: auto;
        width: 100%;
    }

    div.homenews div.homenewsdetails h2 {
        padding: 6px 0;
        font-size: 1.4em;
    }

    div.homeboxespopup {
        min-height: 194px;
    }

    div.homeboxespopup h2 {
        font-size: 1.6em;
    }

    section.home3panels div.homepanel h2, section.home3panels div.homepanel2 h2, section.home3panels div.twitter h2 {
        font-size: 1.4em;
    }

    div.homeboxespopup ul li {
        font-size: 1.2em;
    }

    section.home3panels div.homepanelsleft {
        margin-bottom: 6px;
        width: -moz-calc(100% + 6px);
        width: -webkit-calc(100% + 6px);
        width: -o-calc(100% + 6px);
        width: calc(100% + 6px);
        margin-right: -6px;
    }

    section.home3panels div.twitter {
        width: 100%;
    }

    section.home3panels div.homepanelholder {
        min-height: 0;
    }

    section div.calendarday ul.events {
        width: 90%;
    }

    section div.calendarday p.month {
        font-size: 1.2em;
    }

    section div.calendarday h2 span.date {
        font-size: 1.5em;
    }

    section div.calendarday ul.events li div h3 {
        font-size: 1.4em;
        line-height: 15px;
    }

    footer nav {
        width: 100%;
    }

    footer div.links {
        width: 100%;
    }

    footer ul.links {
        width: 47%;
    }

    footer ul.linkslogos {
        width: 50%;
        float: left;
    }

    footer ul.linkslogos li {
        padding: 0 4px 0 0;
    }
}

@media only screen and (max-width: 500px) {
    section ul.eventsnav>li.search, section ul.eventsnav>li {
        width: 50%;
    }

    section ul.eventsnav>li.free>a {
        border-left: 0 none;
    }

    section ul.eventsnav>li.timeline, section ul.eventsnav>li.calendar {
        width: auto;
    }

    section div.eventholder div.eventmap {
        padding-bottom: 60%;
    }
}

@media only screen and (max-width: 480px) {
    div.share {
        display: none;
    }

    h1, p.likeh1 {
        font-size: 2.4em;
        font-family: "aller500";
    }

    section div.calendarday p.month {
        font-size: 1.2em;
    }

    section div.calendarday h2 span.date {
        font-size: 1.2em;
    }
}

@media only screen and (max-width: 430px) {
    header ul.links li.icon, header ul.links li.fblike {
        display: none;
    }

    section div.item dl.infoone {
        border: 0 none;
        padding: 1% 0;
    }

    section div.item dl.infoforths, section div.item dl.infothirds, section div.item dl.infohalfs {
        border: 0 none;
        border-bottom: 1px solid #00375e;
        width: 100%;
        padding: 1% 0;
    }

    section div.item dl.infofirst {
        padding-top: 0;
    }

    section div.item dl.infolast {
        border: 0 none;
    }

    section div.eventholder div.eventmap {
        padding-bottom: 80%;
    }
}
