/*
    Theme Name: Visit Ross
    Theme URI: http://www.visitross.com.au
    Description: Visit Ross Tasmania
    Version: 1.0
    Author: Futago
    Author URI: http://www.futago.com.au
    Tags: Ross, Tasmania, tourism

    License: MIT
    License URI: http://opensource.org/licenses/mit-license.php
*/


/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#overlay{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -99;
    background: url('img/bg-overlay.jpg') repeat 0 0 transparent;
    mix-blend-mode: multiply;
    opacity: 1;
}

#video {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

header{
    background-color: #333333;
    box-shadow: 0 1px 1px rgba(0,0,0,0.3);
    color: #fff;
    font-family: 'Roboto Slab', serif;
    height: 53px;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
}

#header-inner{
    height: 100%;
    margin: 0 auto;
    position: relative;
    width: 1024px;
}

#title{
    font-size: 2em;
    font-weight: normal;
    left: 0;
    margin: 0;
    position: absolute;
    top: 1px;
}


#title a{
    color: #fff;
    text-decoration: none;
}

#mobile-menu{
    display: none;
}

#menu-header-menu{
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
}

#menu-header-menu li{
    border-left: 1px solid #222;
    display: inline-block;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
}

#menu-header-menu li:first-child{
    border-left: 0 none;
}

#menu-header-menu li a{
    color: #fff;
    display: block;
    height: 20px;
    padding: 16px 10px;
    text-decoration: none;
}

#menu-header-menu li:hover .sub-menu{
    opacity: 1.0;
    visibility: visible;
    transition-delay:0s;
}

#menu-header-menu .sub-menu{
    background-color: #555;
    left: inherit;
    opacity: 0.0;
    position: absolute;
    top: 52px;
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2) inset;
    padding: 0;
    font-size: 1.4em;
    visibility: hidden;
    transition:visibility 0s linear 0.2s,opacity 0.2s linear;
}

article, footer{
    font-family: 'Source Sans Pro', sans-serif;
    margin-left: auto;
    margin-right: auto;
    width: 1024px;
}

article{
    background-color: rgba(255,255,255,0.9);
    margin-top: 143px;
}

article .article-inner{
    padding: 45px 35px 0;
}

.panel-row-style-fullwidth{
    margin-left: -35px;
    width: 1024px;
}

footer{
    background-color: #333;
    color: #fff;
    height: 240px;
    padding-top: 80px;
    text-align: center;
    width: 1024px;
}

footer a{
    color: #fff;
}

@media (min-aspect-ratio: 16/9) {
  .bg-video {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .bg-video {
    width: auto;
    height: 100%;
  }
}

@media (max-width: 1024px){
    #header-inner, article, footer{
        width: auto;
    }

    #header-inner{
        padding: 0 35px;
    }

    #title{
        left: 15px;
    }
}

@media (max-width: 800px){

    .bg-video{
        display: none;
    }

    #title{
        font-size: 1.5em;
        left: 15px;
        top: 9px;
    }

    #menu-header-menu{
        background-color: #444;
        box-shadow: 0 1px 1px rgba(0,0,0,0.3);
        display: none;
        left: 0;
        margin: 0;
        padding: 0;
        position: fixed;
        top: 53px;
        transform: none;
        -webkit-transform: none;
        width: 100%;
    }

    #menu-header-menu.active{
        display: block;
    }

    #menu-header-menu li{
        border-left: 0 none;
        display: block;
        font-size: 0.8em;
        padding: 0 35px;
    }

    #menu-header-menu li a{
        border-top: 1px solid #555;
        padding: 10px;
    }

    #menu-header-menu li:first-child a{
        border-top: 0 none;
    }

    #mobile-menu{
        display: block;
    }

    #mobile-menu-link{
        -webkit-transform: translate(0, -50%);
        color: #fff;
        display: flex;
        font-size: 1.5em;
        line-height: 1;
        position: absolute;
        right: 15px;
        text-decoration: none;
        top: 50%;
        transform: translate(0, -50%);
    }

    article{
        margin-top: 53px;
    }

    article img{
        max-width: 100%;
    }

    .panel-row-style-fullwidth{
        margin-left: 0;
        width: auto;
    }

}


/* ==========================================================================
   Homepage
   ========================================================================== */

.home article {
    font-family: 'Roboto Slab', serif;
}

.home h2{
    font-size: 2.75em;
    font-weight: 200;
    margin: 0;
}

.home h3{
    font-size: 29px;
    font-weight: 200;
    margin: 0;
}

.home .subtitle{
    font-size: 1.625em;
}

.home .ow-button-hover{
    display: block;
    font-size: 0.7em !important;
    /*height: 11px;*/
    text-align: left;
    text-transform: uppercase;
}

.home .transparent .ow-button-hover{
    background-color: transparent !important;
    border: 0 none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .ow-button-hover .sow-icon-genericons{
    float: right;
}

.home .homeboxes{
    height: 200px;
    overflow: hidden;
}

.home .homeboxes p{
    font-size: 0.875em;
    font-weight: bold;
}

.home .homeboxes .panel-widget-style{
    height: 135px;
}

.home .homeboxes .widget_black_studio_tinymce{
    margin-bottom: 0 !important;
}

@media (max-width: 800px){

    .home .homeboxes, .home .homeboxes .panel-widget-style{
        height: auto;
    }

    .home .homeboxes .panel-widget-style{
        margin-right: 0px !important;
    }

    .home .homeboxes .panel-grid-cell{
        margin-bottom: 20px;
    }

}

/* ==========================================================================
   Content pages
   ========================================================================== */

.page #video, .page #overlay{
    bottom: inherit;
    height: 360px !important;
    width: 100% !important;
}

.page #overlay{
    opacity: 0.4;
}

.page:before{
    background: url('img/bg-overlay.jpg') repeat 0 0 transparent;
    bottom: 0;
    content: '';
    left: 0;
    opacity: 0.5;
    position: fixed;
    right: 0;
    top: 0;
    z-index: -101;
}

.page article, .page footer{
    box-shadow: 1px 1px 1px rgba(0,0,0,0.1), -1px 1px 1px rgba(0,0,0,0.1);
}

.page .page-top{
    display: table;
    font-family: 'Roboto Slab', serif;
    height: 217px;
    width: 100%;
}

.page .page-top-left, .page .page-top-right{
    display: table-cell;
    vertical-align: top;
}

.page .page-top-right{
    /*width: 200px;*/
}

.page .page-top-left{
    position: relative;
    width: 100%;
}

.page .page-top-masthead{
    font-size: 0.75em;
    margin: 0;
    padding: 12px 0 12px 20px;
    text-transform: uppercase;
}

.page .page-top-left h1{
    font-size: 2.75em;
    font-weight: 200;
    left: 40px;
    margin: 0;
    position: absolute;
    top: calc(50% + 10px);
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);;
}

.page .yellow .page-top-left, .page .yellow .page-top-right{
    background-color: #DDCEB2;
}

.page .yellow .page-top-masthead{
    background-color: #BBAF98;
    color: #fff;
}

.page .yellow .page-top-left h1{
    color: #5F5E46;
}

.page .yellow .attraction-grid .ow-button-hover{
    background-color: #DDCEB2;
    color: #605E49 !important;
}

.page .yellow .attraction-grid .ow-button-hover:hover, .page .yellow .attraction-grid .ow-button-hover.hover{
    background-color: #AA9B80 !important;
}

.page .blue .page-top-left, .page .blue .page-top-right{
    background-color: #9CAFB5;
}

.page .blue .page-top-masthead{
    background-color: #91A2A8;
    color: #fff;
}

.page .blue .page-top-left h1{
    color: #fff;
}

.page .blue .attraction-grid .ow-button-hover{
    background-color: #E1E7E9;
    color: #4A5160 !important;
}

.page .blue .attraction-grid .ow-button-hover:hover, .page .blue .attraction-grid .ow-button-hover.hover{
    background-color: #9CAFB5 !important;
}

.page .green .page-top-left, .page .green .page-top-right{
    background-color: #A4AA83;
}

.page .green .page-top-masthead{
    background-color: #989E7B;
    color: #fff;
}

.page .green .page-top-left h1{
    color: #fff;
}

.page .green .attraction-grid .ow-button-hover{
    background-color: #E4E5DA;
    color: #605E49 !important;
}

.page .green .attraction-grid .ow-button-hover:hover, .page .green .attraction-grid .ow-button-hover.hover{
    background-color: #A4AA83 !important;
}

.page .article-inner{
    padding: 0;
}

.page .attraction-grid .ow-button-hover{
    border-bottom: 0;
    border-top: 0;
    display: block;
    font-family: 'Roboto Slab', serif;
    font-size: 0.85em;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    text-transform: uppercase;
    transition: background-color 250ms;
    -webkit-transition: background-color 250ms;
}

.page .attraction-grid .ow-button-hover:hover, .page .attraction-grid .ow-button-hover.hover{
    transition: background-color 250ms;
    -webkit-transition: background-color 250ms;
}

.page .attraction-grid .ow-button-hover span{
    color: #222 !important;
}

.page .attraction-grid .ow-button-hover .sow-icon-genericons{
    float: right;
    margin-left: 5px;
    margin-right: 0;
}

#map-container{
	background-color: #fff;
    border: 15px solid rgb(255, 255, 255);
    height: 683px;
    overflow: hidden;
    position: relative;
    width: auto;
}

#map-container-inner{
    cursor: grab;
    cursor: -webkit-grab;
    height: 1366px;
    width: 2000px;
}

#map-container-inner .ui-draggable-dragging{
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

#map-container-inner img{
    height: 100%;
    width: 100%;
}

#map-zoom-in, #map-zoom-out{
    border: 1px solid #ccc;
    height: 40px;
    position: absolute;
    right: 0;
    text-indent: -10000px;
    width: 40px;
    z-index: 100;
}

#map-zoom-in:after, #map-zoom-out:after{
    font-size: 2em;
    left: 50%;
    position: absolute;
    text-indent: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

#map-zoom-out{
    bottom: 0;
}

#map-zoom-out:after{
    content: '-';
}

#map-zoom-in{
    bottom: 40px;
}

#map-zoom-in:after{
    content: '+';
}

#map-container-inner a{
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0,0,0,0.8);
    line-height: 1;
    transform: translate(-10px, -10px);
    -webkit-transform: translate(-10px, -10px);
    z-index: 1000;
    background-color: rgba(255,255,255,0.8);
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
}

#map-popups p{
    background: rgb(0, 0, 0) none repeat scroll 0% 0%;
    border-radius: 5px;
    color: rgb(255, 255, 255);
    left: -10000px;
    margin: 0px;
    opacity: 0;
    padding: 3px 5px;
    position: absolute;
    top: 0;
    transition: opacity 200ms 0s, left 0s 200ms;
    z-index: 1001;
}

#map-popups p:after{
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #000000 transparent transparent transparent;
    position: absolute;
    bottom: -5px;
    left: calc(50% - 5px);
}

#map-popups p.active{
    opacity: 1;
    transition: opacity 200ms;
}

.page .yellow .itinerary h2{
    background-color: #DDCEB2;
    color: #5F5E48;
    margin: 0;
    font-family: 'Roboto Slab', serif;
    font-size: 1.125em;
    font-weight: normal;
    padding: 10px 20px;
    width: calc(100% - 20px);
}

.page .itinerary .panel-grid-cell:nth-child(1) .textwidget{
    padding-left: 20px;
    padding-right: 20px;
}

.page .itinerary .panel-grid-cell:nth-child(2) .textwidget{
    padding-left: 20px;
}

.page .itinerary .panel-grid-cell:nth-child(2) .textwidget h2{
    margin-left: -20px;
}

.page .itinerary img{
    margin-bottom: 20px;
}

@media (min-width: 1600px) {
  .page .bg-video {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1600px) {
  .page .bg-video {
    width: auto;
    height: 360px;
  }
}

@media (max-width: 800px){
    .page .page-top-right{
        display: none;
    }

    .page .page-top-left h1{
        left: 20px;
    }

    .attraction-grid .panel-grid-cell{
        margin-bottom: 20px !important;
    }
}

/* ==========================================================================
   Ajax popups
   ========================================================================== */

.ajax article{
    margin-top: 0;
    width: 100%;
}

.ajax article h1{
    margin-top: 0;
}

.ajax .panel-grid{
    margin-left: -10px;
    margin-bottom: 20px !important;
    width: calc(100% + 20px);
}

.ajax .panel-grid-cell{
    padding-left: 10px;
    padding-right: 10px;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
