@media only screen and (max-device-width: 480px) {
    html {
        -webkit-text-size-adjust: none; /* prevent iOS from scaling text */
    }


html.landscape #ContentColumn { /* landscape mode */
    font-size: 125%;
    line-height: 1.3;
}

html.mobile .desktopOnly {
    display: none;
}

.mobileOnly {
    display: none;
}

html.mobile .mobileOnly {
    display: block;
}

html.mobile form > table {
    max-width: 100% !important;
    width: auto !important;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#NotifyDiv  input[type="text"],
html.mobile .formbody input[type="text"],
html.mobile .comments input[type="text"],
#NotifyDiv  textarea,
html.mobile .formbody textarea,
html.mobile .comments textarea,
#NotifyDiv  select,
html.mobile .formbody select,
html.mobile .comments select {
    width: 90% !important;
}

html.mobile #pendingSubmission table {
    width: 100%;
}


#toolbar {
    text-align: center;
    width: 100%;
    height: auto;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 1000;
    padding: 4px 2px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
}

html.mobile #toolbar button {
	background: #6fd5cc;
	color: #fff;
    width: 48.5%;
    font-size: 14px;
    font-weight: bold;
    padding: 0.2em;
    border: 1px solid #6A6A6A;
    border-radius: 4px;
}

html.mobile #PageWrapper {
    margin-top: 35px;
}

html.fullView #PageWrapper {
    margin-top: 65px;
}

html.android2 #toolbar button {
    background: #f7f7f7;
    border: 1px solid #2F4255;
    border-radius: 0.5em;
}

.iosbtnfix {
    height: 1000px;
    overflow: hidden;
}

html.fullView #mobileBtn {
    width: 97%;
}

html.mobile button#toTopBtn,
html.mobile button#navBtn {
    width: 44.1%;
}

html.mobile button#fullBtn {
    width: 41.1%;
    margin-right: 4px;
}

html.mobile button#searchBtn {
    width: 10%;
    margin-left: 4px;
    background: #fff url(http://www.anguilla-beaches.com/image-files/search-icon.png) center center no-repeat;
    background-size: contain;
}

#searchBtn span {
    visibility: hidden;
}

html.mobile #fullBtn,
html.mobile #navBtn,
html.mobile #searchBtn {
    display: inline-block;
}

#fullBtn,
#navBtn,
#toTopBtn,
#searchBtn,
html.mobile #mobileBtn {
    display: none;
}

.phantomHeaderImage {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

html.mobile,
html.mobile body {
    height: 100%;
	padding-left: 0;
	padding-right: 0;
}

html.mobile #PageWrapper {
    max-width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    background-size: 100%;
    -webkit-overflow-scrolling: touch;
}

html.mobile #Header {
    width: 100%;
}

html.mobile #Header,
html.mobile #Header .Liner{
    background-size: 100%;
}

html.mobile #ContentWrapper {
    padding: 0;
    float: none;
}

html.mobile #ContentColumn,
html.mobile #NavColumn,
html.mobile #ExtraColumn {
    float: none;
    width: auto;
    margin: 0;
}

html.mobile #NavColumn,
html.mobile #ExtraColumn {
    margin-top: 200px;
}

html.mobile #PageWrapper {
    text-align: center;
}

html.mobile #ContentColumn,
html.mobile #Header,
html.mobile #NavColumn,
html.mobile #ExtraColumn {
    text-align: left;
}

html.mobile #NavColumn,
html.mobile #ExtraColumn {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}


html.mobile #NavColumn,
html.mobile #ExtraColumn {
    background: #fff;
}

@media only screen and (max-width: 359px) { /* portrait mode => narrowed columns */
    html.mobile #NavColumn {
        width: 150px;
    }
    html.mobile #ExtraColumn {
        width: 160px;
    }
}

@media only screen and (min-width: 360px) {
    html.mobile #NavColumn {
        width: 150px;
    }

    html.mobile #ExtraColumn {
        width: 200px;
    }
}

@media only screen and (max-width: 399px) {
    html.mobile #NavColumn *,
    html.mobile #ExtraColumn * {
        max-width: 100%;
        box-sizing: border-box;
        background-size: 100%;
    }
}

@media only screen and (min-width: 400px) {
    html.mobile #NavColumn {
        width: 150px;
    }

    html.mobile #ExtraColumn {
        width: 240px;
    }
}


@media only screen and (max-width: 550px) {
    html.mobile .socializeIt,
    html.mobile .socializeIt img {
        width: 100% !important;
    }

    html.mobile .socializeIt textarea {
        width: 100% !important;
    }

    html.mobile .socializeIt > tbody > tr:first-child > td {
        width: 45%;
    }

    html.mobile .socializeIt > tbody > tr:first-child > td:first-child {
        width: 10%;
    }
}
/* Design specific */

/* mobile view */

html.mobile img { /* because of the lack of image blocks */
    max-width: 100%;
    height: auto;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html.mobile iframe {
    max-width: 100%;
}

html.android2 iframe {
    width: 100% !important;
}

html.mobile .fb-like > span {
    width: 100% !important;
}

html.mobile #PageWrapper {
    margin-top: 35px;
    margin-bottom: 5px;
    padding-top: 0;
}

html.mobile .InvShelpbox {
    left: 0 !important;
}

html.mobile #ExtraColumn .site-sponsors {
    left: 0;
}

/* Facebook */

.fb_iframe_widget_lift {
    z-index: 2;
}

/* Google search results */

html.mobile #search2 {
    text-align: center;
}

html.mobile #cse-search-box {
    text-align: center;
}

html.mobile #cse-search-box input[type="text"] {
    width: 70%;
}

html.mobile #cse {
    width: 100% !important;
}

/* footer */

html.mobile #Footer {
    background-color: #E4EBF1;
    position: absolute;
    top: 10000px;
    left: 0;
    width: 100%;
	overflow: hidden;
}

html.mobile #TopOfThePage,
html.mobile .footerboxes {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

html.mobile .footerbox-inner {
    float: none;
    display: inline-block;
    vertical-align: top;
    width: 18%;
    margin-left: 1%;
}

html.mobile #Footer .text-NavBar {
    text-align: center;
}

html.mobile #Footer .text-NavBar li {
    padding: 10px 0;
    display: inline-block;
}

html.mobile #Footer .text-NavBar a {
    line-height: 1.2;
}

/* PageTop */
html.mobile #PageTop {
    padding-top: 26px;
    width: 100%;
    height: auto;
}

html.fullView #PageTop {
    margin-top: 75px;
}

html.mobile #TopBar {
    width: 100%;
}

html.mobile #logo {
    position: static;
    width: 100%;
    background: #fff;
}

html.mobile #logo img {
    width: 100%;
    padding: 0 5%;
}

html.mobile #SocialBar,
html.mobile #calm,
html.mobile #search {
    display: none;
}

html.mobile #PageTop .HorizontalNavBar {
    display: none;
}

/* Header */
html.mobile #Header .Liner {
    width: 100%;
    background-image: url(http://www.anguilla-beaches.com/image-files/header-bg-mobile.jpg);
}

html.mobile #facebook-button,
html.mobile #google-button {
    display: none;
}

/* Content */
html.mobile #ContentWrapper {
    background-size: 100%;
}

html.mobile #ContentColumn .Liner {
    padding: 5%;
    margin: 0;
}

html.mobile h1 {
    font-size: 150%;
}

html.mobile h2 {
    font-size: 140%;
}

html.mobile #SUBSCRIBE .non-nav-top,
html.mobile #SUBSCRIBE .non-nav-center,
html.mobile #SUBSCRIBE .non-nav-bottom,
html.mobile #news .non-nav-top,
html.mobile #news .non-nav-center,
html.mobile #news .non-nav-bottom,
html.mobile .non-nav-top,
html.mobile .non-nav-center,
html.mobile .non-nav-bottom {
    width: 100%;
    background-size: 100%;
}

html.mobile .non-nav-top,
html.mobile .non-nav-bottom {
    background-repeat: no-repeat;
}

html.mobile #news .nonnav-liner,
html.mobile .nonnav-liner {
    width: 100%;
}

html.mobile #news .news-item {
    width: 96%;
    padding: 2%;
    float: none;
}

html.mobile #news .news-item img {
    width: 100%;
}

html.mobile #news .news-text {
    width: 84%;
    padding: 5%;
    height: auto;
}

html.mobile #news .news-text a {
    font-size: 90%;
}

html.mobile #news .news-text p {
    font-size: 70%;
}

html.mobile #email-box {
    width: 90%;
    height: auto;
    background: #fff;
}

html.mobile #email-box .row {
    width: 96%;
    padding: 2%;
    text-align: center;
}

html.mobile #email-box .button {
    position: static;
    text-align: center;
}

html.mobile #ExtraColumn .Liner {
    margin: 0;
}

/* NavColumn */
html.mobile .Navigation ul {
    border-bottom: 1px solid #F2F2F2;
    padding: 0 0 1em;
    margin: 0.5em 0 1em;
}

html.mobile .Navigation ul.last {
    border-bottom: 0;
}

html.mobile .Navigation li {
    margin: 0;
    padding: 0.3em 0;
    list-style: none;
}

html.mobile .Navigation a {
    display: block;
    color: #7F7F7F;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    font-family: Oswald, san-serif;
    font-weight: normal;
}

html.mobile .Navigation a:hover {
    color: #97E1DA;
}

html.mobile #calm2,
html.mobile #SocialBar2 {
    text-align: center;
    margin: 1em 0;
    border-bottom: 1px solid #F2F2F2;
}

html.mobile #SocialBar2 {
    margin-top: 0;
    padding-bottom: 1em;
}

html.mobile #calm2 {
    padding-bottom: 1.5em;
}

html.mobile #SocialBar2 ul,
html.mobile #SocialBar2 li,
html.mobile #SocialBar3 ul,
html.mobile #SocialBar3 li {
    margin: 0;
    padding: 0;
    list-style: none;
}

html.mobile #SocialBar2 li {
    display: inline-block;
    padding: 3px;
}

html.mobile #SocialBar3 {
    background: #FFF;
    padding-top: 5px;
}

html.mobile #SocialBar3 li {
    display: inline;
}

html.mobile .CalloutBox {
    width: 90%;
	padding: 5%;
    margin: 0 auto;
    background-size: 100%;
}

html.mobile table#thumbs {
    width: 100%;
}

html.mobile .C2LeftBox {
    width: 50%;
    background-size: 100%;
}

html.mobile .c2_invitation {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
    background-size: 100%;
}

html.mobile .ReturnToNavBox {
    width: 95%;
	margin-left: 2.5%;
	margin-right: 2.5%;
}

/* ======================================================================= */
/* horizontal nav - base */

/* ======================================================================= */
/* horizontal nav - design */



/* disable hover state on mobile */


html.mobile #search {
    display: none;
    position: absolute;
    width: 100%;
    height: 32px;
    bottom: -32px;
    left: 0;
    border-radius: 0;
    background-color: #FFF;
}

html.mobile .showSearch {
    padding-top: 34px;
}

html.mobile .showSearch #logo {
    padding-top: 49px;
}

html.mobile .showSearch #search {
    display: block;
}



html.mobile #facebook-button,
html.mobile #twitter-button,
html.mobile #google-button,
html.mobile #instagram-button,
html.mobile #google-follow {
    display: inline-block;
    margin-top: 35px;
    position: static;
}

}