/*
 * Mobile styles & Breakpoints
 * By Funkhaus - 2016
 * www.funkhaus.us
 *
 * @see https://www.emailonacid.com/blog/article/email-development/emailology_media_queries_demystified_min-width_and_max-width
 * (min-width: 1800px) == Greater than or equal to 1800px
 * (max-width: 750px) == Less than or equal to 750px
 *
 */

/*
 * Globals
 */
.is-mobile .grid-block .thumbnail .overlay,
.is-mobile .grid-block .learn-more {
    display: none;
}

/*
 * Breakpoints
 */
/* Cinema Display and larger */
@media (min-width: 1800px) {
    .grid-sizer,
    .grid-block {
        width: calc(33.33% - 30px);
    }
}

/* Smaller than Desktop HD */
@media (max-width: 1025px) {
    /* Top Panel */
    .top-panel .page-title {
        left: 30px;
        right: 30px;
    }
    .top-panel .excerpt {
        font-size: 20px;
    }
    .top-panel .green-spa {
        display: none;
    }

    /* Sections */
    .section {
        padding: 30px 30px 60px 30px;
    }
    .section .title {
        word-break: break-word;
    }

    /* Slideshows */
    .section-slideshow {
        padding: 0;
    }
    .section-slideshow .teller-logo .svg {
        width: 100px;
    }
    .section-slideshow .meta {
        padding: 60px 20px;
        height: auto;
        max-height: 100%;
    }

    /* Waters & Sustainability */
    .waters-sustainability .top-panel .page-title {
        font-size: 75px;
    }
    .page-waters-sustainability .section .col {
        width: 100%;
        float: none;
    }
    .page-waters-sustainability .section .title,
    .page-waters-sustainability .section:nth-child(2n) .title {
        text-align: center;
    }

    /* Rooms & Suites page */
    .section-room {
        display: block;
    }
    .section-room .title {
        font-size: 44px;
        margin: 10px 0;
    }
    .section-room:nth-child(even) .room-types,
    .section-room .room-types {
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        max-width: 480px;
        margin: 20px auto;
    }

    /* Detail Pages */
    .page-detail .entry > * {
        padding-right: 0;
    }
    .page-detail .entry ul {
        padding-right: 0;
        padding-bottom: 160px;
    }
    .page-detail .entry .book-now-circle {
        top: auto;
        bottom: 0;
        left: auto;
        right: 50%;
        -webkit-transform: translateX(50%);
        transform: translateX(50%);
    }

    /* Contact */
    #content.contact {
        padding: 0 30px;
    }
    .contact .wp-post-image {
        width: 100%;
    }
    .contact .address {
        position: static;
        width: auto;
        margin: 0 30px;
        font-size: 40px;
        display: block;
    }
    .contact .entry {
        margin: 50px 30px;
    }
    .contact .entry ul li:nth-child(2n),
    .contact .entry ul li {
        width: auto;
        display: block;
    }
    .contact #funkhaus {
        position: static;
    }

    /* Section slides */
    .section-slide .entry {
        font-size: 18px;
    }
    #section-sales-slide .entry span {
        font-size: 20px !important;
    }

    /* Section Image */
    .section-image {
        padding: 0;
    }
    .section-image .title {
        position: absolute;
        left: 30px;
        right: 30px;
        width: auto;
    }

    /* Grids */
    .grid {
        margin: 0 15px;
        padding-top: 30px;
    }
    .grid-block .title {
        font-size: 36px;
    }
    .grid-block .excerpt ul {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }

    /* The Spa */
    .spa-hours.entry > * {
        padding-right: 0;
    }
    .spa-menu > .title,
    .spa-packages > .title {
        font-size: 62px;
    }
    .spa-packages .grid-block {
        width: calc(50% - 30px);
    }
    .spa-row .inner {
        padding-right: 0;
    }
    .spa-row .book-now-circle {
        position: static;
        width: 130px;
        text-align: center;
        margin: 30px auto;
        -webkit-transform: translate(0);
        transform: translate(0);
        display: block;
    }

    /* Wellness programs */
    .page-wellness-programs .entry > * {
        padding-right: 0;
    }

    /* Wellness class */
    #content.wellness-class {
        padding: 0 30px;
    }
    .wellness-class .title {
        font-size: 50px;
        line-height: 1.1;
    }
    .wellness-class .entry .book-now-circle {
        position: static;
        margin: 30px 0;
        -webkit-transform: none;
        transform: none;
    }

    /* Room Detail */
    .gallery-fullscreen .gallery-image {
        background-size: contain;
    }
}

/* Smaller than tablet */
@media (max-width: 750px) {
    /* Global */
    .rotated-title {
        font-size: 22px;
        left: -5px;
    }
    .download + .download {
        margin-left: 0;
        margin-top: 0;
    }

    /* Header */
    #logo {
        top: 23px;
        width: 180px;
    }
    .scrolled-down #header {
        height: 60px;
    }
    .scrolled-down #logo {
        top: 20px;
        width: 180px;
    }
    .hamburger {
        right: 0;
        top: 30px;
    }
    .scrolled-down .hamburger {
        top: 5px;
    }
    .book-room-header,
    .book-spa-header {
        width: 70px;
        left: 0px;
        top: 30px;
    }
    .book-spa-header {
        top: 60px;
    }
    .book-room-header .svg {
        width: 70px;
        height: 23.3333px;
    }
    .book-spa-header .svg {
        width: 65px;
        height: 23px;
    }
    .scrolled-down .book-room-header {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
        top: 0;
    }
    .scrolled-down .book-spa-header {
        -webkit-transform: translateY(21px);
        transform: translateY(21px);
        left: -5px;
    }
    .menu-opened.scrolled-down .book-room-header {
        -webkit-transform: translate(5px, 0);
        transform: translate(5px, 0);
        top: 0;
    }
    .menu-opened.scrolled-down .book-spa-header {
        -webkit-transform: translate(5px, 30px);
        transform: translate(5px, 30px);
        left: -6px;
    }
    .menu-opened.scrolled-down .hamburger {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        top: 0;
    }
    .welcome-text {
        font-size: 16px;
    }
    .breadcrumb {
        display: none;
    }
    .fine-print br {
        display: block;
    }
    .fine-print-menu {
        margin-top: 10px;
    }

    /* Top Panel */
    .top-panel .page-title {
        font-size: 48px;
        top: 100px;
        line-height: 1.3;
        left: 15px;
        right: 15px;
    }
    .top-panel .excerpt {
        font-size: 16px;
        bottom: 100px;
        left: 15px;
        right: 15px;
    }
    .scroll-down {
        font-size: 16px;
    }

    /* Sections */
    .section {
        padding: 15px 15px 30px 15px;
    }
    .section .col,
    .section:nth-child(2n) .col {
        width: 100%;
        float: none;
    }
    .section .col + .col {
        padding-top: 15px;
    }
    .section .title,
    .section:nth-child(2n) .title {
        font-size: 42px;
        text-align: center;
    }
    .section .excerpt,
    .section:nth-child(2n) .excerpt {
        font-size: 12px;
        margin: 0 40px;
        text-align: left;
    }
    .section .col .button .svg {
        width: 130px;
        height: auto;
    }
    .section-slideshow {
        padding: 0;
    }
    .section-slideshow .scroll-down {
        display: none;
    }

    /* Teller */
    .section-teller .slide {
        float: none;
        width: 100%;
    }
    .section-teller .meta {
        padding: 0;
        height: auto;
    }
    .section-teller .pager {
        display: block;
    }

    /* Room list */
    .room-types > .svg {
        width: 90px;
        height: auto;
    }
    .section-room:nth-child(2n) .room-types span,
    .room-type-tip {
        margin: 0;
        font-size: 8px;
    }
    .room-type-tip .tip {
        width: 180px;
        left: 0;
    }

    /* Gallery Page */
    .gallery {
        margin-bottom: 30px;
    }
    .gallery .page-title {
        font-size: 26px;
        top: 15px;
        left: 15px;
        right: 15px;
    }
    .gallery .gallery-item {
        width: 100%;
        margin: 0 0 15px 0;
    }
    .gallery .item-4 .gallery-image,
    .gallery .gallery-image {
        width: 100%;
        margin: 0;
    }
    .gallery .caption {
        font-size: 12px;
        left: 15px;
        right: 15px;
    }
    .gallery > p {
        font-size: 22px;
    }

    /* Detail Pages */
    #content.page-detail {
        margin-top: 100px;
    }
    .page-detail .entry {
        padding: 0 15px;
        font-size: 12px;
    }
    .page-detail .entry > h2 {
        font-size: 20px;
        padding: 0 0 0 60px;
        margin: 25px 0;
    }
    .page-detail .entry > * {
        padding: 0 0 0 60px;
    }
    .page-detail .entry ul {
        font-size: 15px;

        -moz-column-count: 1;
        -moz-column-gap: 0;
        -webkit-column-count: 1;
        -webkit-column-gap: 0;
        column-count: 1;
        column-gap: 0;
    }
    .page-detail .entry li {
        width: 100%;
        font-size: 15px;
    }
    .page-detail .entry img.alignnone {
        width: calc(100% - 60px);
    }

    /* Grids */
    .grid {
        margin: 0;
        padding: 15px 0;
    }
    .grid-sizer,
    .grid-block {
        width: calc(100% - 30px);
        font-size: 14px;
        position: static !important;
        float: none;
    }
    .grid-sizer {
        display: none;
    }
    .grid-block .title {
        font-size: 35px;
    }

    /* Contact */
    #content.contact {
        padding: 0 15px;
    }
    .contact .page-title {
        font-size: 42px;
        margin-bottom: 30px;
    }
    .contact .text {
        position: static;
        width: auto;
        transform: none;
        text-align: left;
    }
    .contact .address {
        font-size: 22px;
        margin: 50px 0;
    }
    .contact .entry {
        margin: 30px 0;
    }
    .contact #funkhaus {
        left: 15px;
    }

    /* Section Image */
    .section-image {
        padding: 0;
    }

    /* The Spa */
    .spa-hours.entry > * {
        padding-right: 0;
        padding-left: 40px;
    }
    .spa-hours.entry li {
        width: 100%%;
    }
    .spa-menu > .entry {
        padding: 0 15px;
    }
    .spa-menu > .title,
    .spa-packages > .title {
        font-size: 42px;
        padding: 0 15px;
    }
    .spa-row .title {
        padding-left: 30px;
        padding-right: 30px;
        overflow: hidden;
    }
    .spa-row .title .arrow {
        left: 18px;
    }
    .spa-row .title .line {
        left: 0;
        width: 750px;
    }
    .spa-row.opened .title {
        font-size: 32px;
    }
    .spa-row .entry {
        padding: 0 30px;
    }
    .spa-packages > .entry {
        padding: 0 15px;
    }
    .spa-packages .grid-block {
        width: auto;
        display: block;
        padding: 0 15px;
    }

    /* Wellness programs */
    .page-wellness-programs .entry > * {
        padding-left: 40px;
    }
    .schedule-menu {
        font-size: 16px;
        padding: 25px 15px;
    }
    .page-wellness-programs .schedule table,
    .page-wellness-programs .schedule tbody,
    .page-wellness-programs .schedule tfoot,
    .page-wellness-programs .schedule tr,
    .page-wellness-programs .schedule td {
        display: block;
        box-sizing: border-box;
        width: 100%;
    }
    .page-wellness-programs .schedule tr {
        padding: 15px 0;
    }
    .page-wellness-programs .schedule tbody tr:first-child {
        display: none;
    }
    .page-wellness-programs .schedule td:first-child,
    .page-wellness-programs .schedule td {
        padding: 2px 15px;
    }
    .page-wellness-programs .schedule tfoot td {
        padding: 15px;
    }
    .section-text .column,
    .section-text .column + .column {
        width: 100%;
        margin-bottom: 40px;
        padding: 0;
    }
    .section-text .column .wp-caption {
        margin-top: 0;
    }
    .wp-caption .wp-caption-text {
        font-size: 16px;
        margin: 10px 0;
    }
    .wp-caption .wp-caption-text span {
        font-size: 18px;
        margin: 10px 0;
    }

    /* Wellness class */
    #content.wellness-class {
        padding: 0 15px;
    }

    /* Footer */
    .footer .contact-block {
        font-size: 18px;
    }
    .footer .contact-block span {
        font-size: 25px;
    }
    .footer .footer-teller-link {
        padding: 24px 30px;
        font-size: 11px;
        text-align: left;
        float: none;
        clear: both;
    }
    .footer .footer-teller-link .svg {
        width: 66px;
        height: auto;
    }

    /* Waters & sustainability */
    #section-grotto .entry p {
        max-width: 100%;
    }
    .waters-sustainability .top-panel .page-title {
        font-size: 48px;
    }

    /* Events */
    .page-meetings-events .col {
        text-align: center;
    }

    /* Essense */
    .hours li:nth-child(even),
    .hours li {
        width: 100%;
        float: none;
    }
    .page-essense .section-image .title {
        font-size: 30px;
        top: 0;
    }

    /* Careers */
    #content.careers {
        padding: 0 15px;
    }
    .careers .page-title {
        margin-bottom: 30px;
    }
    .careers .wp-post-image {
        width: 100%;
        float: none;
        padding: 0;
    }
    .careers .entry {
        float: none;
        width: 100%;
    }
    .careers .entry h2 {
        font-size: 30px;
        margin: 30px 0;
    }
    .careers .entry .email {
        display: block;
        margin: 30px 0;
    }
}

/* Smaller than tablet and landscape */
@media (max-width: 750px), (max-height: 900px) {
    /* Menu */
    body.menu-opened {
        overflow: hidden;
    }
    .menu-panel {
        display: block !important;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        background-color: #16345a;
    }
    .main-menu {
        font-size: 16px;
        padding-top: 60px;
    }
    .menu-panel .phone,
    .main-menu > li > a {
        font-size: 12px;
    }
    .menu-panel .phone span {
        font-size: 16px;
    }
    .menu-panel .bottom {
        padding-bottom: 60px;
    }
    .teller-link {
        margin: 15px 0;
    }
    .teller-link .svg {
        height: 20px;
        width: auto;
    }
}

/* Portriat screens */
@media (orientation: portrait) {
    .home .top-panel .image-block {
        width: 100%;
        height: 33.33%;
    }
}
