﻿
/* All screen sizes less than or equal to 960px */
@media screen and (max-width: 960px) {


    body, .page-right {
        min-width: 0;
    }

    
    .content,
    .slider-controls {
	    width: 95%;
	
    }

    .homepage-banner-section {
        border-bottom: none;
    }
    .content.banner-topics-section,
    .content.homepage-section {
        width: 100%;
        
    }
    .content.banner-topics-section {
        padding-top: 50px;
    }

    .sls-homepage-banner-topics h2 a {
        padding: 0 24px 12px;
    }
    .slider-controls {
        font-size: 50px;
    }
    .sls-homepage-banner {
        height: 0;
        padding-bottom: 56.75%;

    }
    .sls-homepage-banner-topics {
        height: 148px;
        overflow: visible;
        /*width: 100%;
        height: 148px;
        position: relative;
        overflow: visible;*/
    }
    .sls-homepage-banner-topics > ul,
    .sls-homepage-banner-topics > ul > li {
        /*position: relative !important;*/
        height: auto;
    }

    .sls-homepage-banner-topics .slider-info {
        width: 100%;        
    }

    .sls-homepage-banner-topics p.main-text span{
        margin: 0 24px;

    }
    .graphic-blue {
        background-size: cover !important;
    }
    .graphic-blue .page-right {
        height: 100%;
    }
    #page.graphic-blue-content {
        padding-left: 0;
        padding-right: 0;
    }
    #page.graphic-blue-content .bodyText {
        min-height: 125px;
    }
    #page.graphic-blue-content .spacer {
          padding-bottom: 500px;
          /*padding-right: 234px;*/        
    }

    #page.graphic-blue-content .safety-flags {
        display: none;
    }

    nav.menu li.item div.sub-items {
        width: 95%;
    }

    #page
    {
        width: 95%;
    }

    #mainContent img {
        max-width: 100%;
        height: auto;
    }

    #mainContent iframe {
        max-width: 100%;
    }

    .inline-table {
        overflow-x: auto;
    }


    #centreColumn
    {
        float: none;
        width: 100%;
    }

    #sidebar
    {
        float: none;
        width: 100%;        
    }

    #newsroom-widget .articles {
      height: auto;
    }

    #bottomContent > div {
        margin-bottom: 25px;
    }
    #bottomContent .first {
        margin-left: 0;        
    }
    #bottomContent .last {
        margin-left: 0;
        clear: left;
    }

    .partner-major .partner{
        line-height: 1;
    }

}



/* All screen sizes less than or equal to 768px */
@media screen and (max-width: 768px) {
    header ul.extraLinks {
        display: none;
    }

    header nav.menu {
        display: none;
    }

    #sectionNav {
        display: none;
    }

    #leftContent {
        float: none;
        width: 100%;
    }

    #mainContent {
        margin-left: 0;
    }

    #mainContent.simple-layout {
        margin-right: 0;
    }

    .mobile-menu  {
        display: block;
    }

    table.gallery {
        display: block;
    }
    table.gallery tbody {
        display: inline;
    }
        table.gallery tr {
            display: -webkit-flex;
            display: flex;
            -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        }

        table.gallery tr td {
            
        }


    #top {
        display: none;
    }
    #banner {
        display: none;
    }

    .main-logo img {
        height: 50px;
        width: auto;
    }

    .mm-menu.mm-current {
        display: block;
    }
    html.mm-opened #mm-blocker, html.mm-blocking #mm-blocker {
      display: block;
    }

    .search-sidebar {
        float: none;
        width: 100%;
    }
    .search div.search-box div.most-popular {
        display: none;
    }
    .search div.search-box p {
      width: 100%;
    }
    div.search-box p {
        padding-right: 0;
    }

    #search_results {
      margin-right: 0;
    }
    #search_results .result div.result-content {
      width: 100%;
    }

    ul.footerLinks {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        background: none;
        margin: 0;
        padding: 0 10px;
    }
        ul.footerLinks li.level1 {
            -webkit-flex: 1 0 33%;
            -ms-flex: 1 0 33%;
            flex: 1 0 33%;
        }


    div.sls-homepage-bottom-footer ul.bottom-footer-links {
        float: none;
        clear: left;
        padding: 15px 0;        
    }

    div.sls-homepage-bottom-footer ul.bottom-footer-links li {
        margin-left: 0;
        margin-right: 20px;
    }

    div.sls-homepage-bottom-footer div.copyright {
        text-align: left;
    }


    #leftContent .filter-options {
        font-family: 'slsnz-icon-set';
        speak: none;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        /* Better Font Rendering =========== */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;

        cursor: pointer;
        float: right;
        height: 30px;
        text-align: center;
        width: 35px;
    }



    #leftContent .filter-state:before {
        content: "\f067";  /*.slsnz-icon-plus*/
        top: 1px;
        position: relative;
    }
    #leftContent.filters-expanded .filter-state:before {
        content: "\f068";  /*.slsnz-icon-minus*/
        top: 1px;
        position: relative;
    }

    #leftContent .filters-content {
        max-height: 0;
        overflow: hidden;
        -moz-transition: max-height 0.5s linear;
        -o-transition: max-height 0.5s linear;
        -webkit-transition: max-height 0.5s linear;
        transition: max-height 0.5s linear;
    
    }
    #leftContent.filters-expanded .filters-content {
        max-height: 700px;
    }


    #page.show-text-background .bodyText {
        margin: 0 auto;
        max-height: inherit;
        width: 100%;
    }


   .panel-info-wrapper {
        padding: 12px;
    }
        .panel-info h2{
            font-size: 20px;
        }


    .club-details {
        float: none;
        width: 100%;
        margin-right: 0;
    }
    .club-addresses {
        float: none;
        width: 100%;
    }
}


@media screen and (max-width: 650px) {

    #bottomContent > div {
        clear: left;
        margin-left: 0;
    }

    ul.footerLinks li.level1 {
        -webkit-flex: 1 0 100%;
        -ms-flex: 1 0 100%;
        flex: 1 0 100%;
    }

    .graphic-blue {
        min-height: 200px!important;
    }

    #page.graphic-blue-content {
        background-color: rgba(45, 175, 255, 0.2); /* gba(161, 226, 255, 0.85) */
        padding: 0 15px 20px;
        min-height: 0;
        margin: 0;
        width: 100%;
    }


    #page.graphic-blue-content .bodyText {
        padding: 0;
    }
    #page.graphic-blue-content .spacer {
        padding: 0;
    }
        #page.graphic-blue-content.show-text-background .bodyText {
            padding: 10px 20px 20px;
        }

    .graphic-blue .page-right {
        position: relative;
        height: auto;
        background-color: rgba(45, 175, 255, 0.2); /* gba(161, 226, 255, 0.85) */
    }

    .graphic-blue .page-right .right-floated-content {
          /*background-color: rgba(255, 255, 255, 0.85); rgba(66, 200, 255, 0.35)*/
        
          float: none;
          text-align: center;
          margin: 0;
          padding: 0
    }
    .graphic-blue .sidebar-rotated {
        bottom: auto;
        min-width: 0;
        max-width: 100%;
        margin: 10px 0;
        position: relative;        
    }
    .graphic-blue .graphic-nav {
        position: relative;
        bottom: 0;
        right: 0;
        padding: 0;
        margin: 20px auto;
    }

    .graphic-blue-content > .column-container {
        margin: 0;
        width: 95%;
    }
    .graphic-blue-content > .column-container .column-half{
        display: block;
        padding: 0;
        width: 100%;
    }
    .column-half:nth-child(2) > div:nth-child(2) {
      width: 100%;
    }

    ul.sponsors {
        /*display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        float: none;*/
        justify-content: space-around;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    ul.sponsors li {
        margin-left: 0;
        margin-right: 10px;
        

        /*float: none;
        -webkit-flex: 1;
        flex-grow: 1;
            width: 30%;
        */
    }
    div.initforlife {
        margin-top: 20px;
        float: none;
    }



    #homepagePartners .partner-major {
        float: none;
        margin-right: 0;
        width: 100%;
    }

    #homepagePartners .partner-major .partner{
        width: 100%;
        text-align: center;
    }    

    .partner {
        margin: 0 auto;
        text-align: center;
    }
    .partner-major .partner {
        float: none;
        width: 50%;
        
    }

    .event-item a {
        padding: 12px;
        overflow: hidden;
    }
    .event-date {
        width: 25%;
    }


    .homepage-searchbar label {
        padding: 0 12px 0 6px;
    }
    .panel-feature {
        float: none;
        margin: 0 0 3px;
        width: 100%;
    }
        .panel-feature a {
            padding-bottom: 50%;
        }
        .panel-image {
            width: 50%;
            float: left;
        }
        .panel-info {
            /*width: 50%;
            float: right;*/
            position: absolute;
            right: 0;
            width: 50%;
        }


        .panel-feature .panel-info p {
            display: none;
        }
    .panel-feature a:hover .panel-info {
        -moz-transform: translateX(-90%);
        -ms-transform: translateX(-90%);
        -o-transform: translateX(-90%);
        -webkit-transform: translateX(-90%);
        transform: translateX(-90%);        
    }
}




@media screen and (max-width: 590px) {

    div.gallery .gallery-album {      
      width: 44%;
    }

    div.gallery .gallery-album:nth-child(3n + 1) {
        margin-left: 2.2%;
    }
    div.gallery .gallery-album:nth-child(3n) {
        margin-right: 2.2%;
    }

    div.gallery .gallery-album:nth-child(2n + 1) {
        margin-left: 0;
    }
    div.gallery .gallery-album:nth-child(2n) {
        margin-right: 0;
    }


}

@media screen and (max-width: 400px) {

    div.gallery .gallery-album {      
        width: 80%;
        margin: 6% auto;
        float: none;
    }

    div.gallery .gallery-album:nth-child(3n + 1),
    div.gallery .gallery-album:nth-child(3n),
    div.gallery .gallery-album:nth-child(2n + 1),
    div.gallery .gallery-album:nth-child(2n)     
     {
            margin: 6% auto;
    }


}