font-family: Varela, Arial, Verdana, Varela; 

@font-face {
  font-family: 'Varela';
  font-style: normal;
  font-weight: 400;
  src: local('Varela'), url(Varela-400.woff) format('woff');
}

body {
    font-size: 16px;
    background-color:   #ececec;
}   
#wrapper {
    width 100%;
    background: #ECECEC;
    min-height: 720px
}
#wrapper.dark {
    background: #000000 !important;
}
img {
    padding: 0.5em 0.5em;
    width: 100%;
    height: auto;
}
a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
}
a h4 {
    color: #337AB7;
}
.container {
    max-width: 1280px;
    width: 100%;
    min-height: 480px;
    background-color: #ececec;
    margin: 0 0 !important;
    overflow: hidden;
    padding: 0 1em !important;
}
@media all and (max-width: 480px) {
    #wrapper > .container {
        padding: 0 0.5em !important;
    }
}
.navbar-container {
    max-width: 1280px;
    width:100%;
    position: relative; 
    margin: 0 auto;
}
.navbar-header {
    z-index: 100000;
}
.navbar-inverse a, .navbar-inverse a .logo {
    z-index: 100001 !important;
}
.container div.main {
    padding: 1em 5%;
    min-height: 720px
}
.headroom.clearfix {
    display: block;
    height: 80px;
    min-height: 80px;
    clear: both;
}
p.well {
    margin-bottom: 0 !important;
    border-radius: 7px;
}
.caption {
    font-size: 14px;
}
.dark .well {
    background: gray;
    color: black;
    font-weight: bold;
    text-align: center;
}
#controls .col-md-6 {
    margin: 0.75em 0;
}
.col-md-6 p {
    text-align: left;
}
.col-md-6 img {
    display: relative;
    margin: 0 auto;
    padding: 1em 1em;
}
table.api tr td, table.api tr th {
    padding: 0.5em 0.5em;
    border: 1px solid gray;
}
@media all and (min-width: 840px) {
    ul.api li span:first-child {
        display: inline-block;
        width: 33%; 
    }
}
@media all and (max-width: 839px) {
    ul.api li span:first-child {
        display: block;
        width: 100%; 
    }
}
.grid_data {
    color: #333333;
}
.grid_data .row {
    border: 1px solid #333333;
}
.grid_data .row.a {
    background: #efefef;
}
.epic_content .row:not(.a):not(.b) {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 2px solid white;
}
.epic_content .row.b {
    background: #FFFFFF;
}
.content {
    margin: 2em 2em;
}
@font-face {
    font-family: Varela;
    src: url('Varela-400.woff');
}
h1 {
    font-size: 28px;
    font-weight: 600;
    color: black;
    font-family: 'Varela', Varela;
}
h2 {
    font-size: 21px;
    font-weight: 600;
    color: black;
    font-family: 'Varela', Varela;
}

h3, h4 {
    font-size: 18px;
    font-weight: 500;
    color: black;
    font-family: 'Varela', Varela;
}
pre {
    font-family: Varela;
    font-size: 15px;
    color: black;
    border-color: dimgrey;
    margin: 0 1em;
}
.bold {
    font-weight: 600;
}
.img_container {
    text-align: center;
}
#primary 
#secondar #main_image_cont {
    position: absolute;
    width: 20%;
    top: 100px;
    right: 2em;
}
.slides, .slides div {
    min-height: 480px;
    min-height: inherit;
}
#slideshow {
    min-height: 480px; 
    background: #000000;
    overflow: hidden;
/*    position: relative;
    bottom: 3em;
*/
}
.home #slideshow {
    min-height: 400px
}
#slideshow h3 {
    color: silver;
}
.slider-nav .slick-current img {
    border: 2px solid #666666;
}
#controls {
    margin-top: 1.5em;
}
#controls div {
    line-height: 1em;
    margin-top: 1em;
}
#controls span {
    min-height: 1em;
}
#controls span, #controls span a {
    text-align: left;
}
#controls span a, #controls .glyphicon-zoom-in {
    color: LimeGreen;
}
.magnet a {
    padding-left: 0.25em;
}
.magnet a:hover {
    cursor: grab !important;
}
.info > span {
    padding: 0.5em 0.25em !important;
}
#widget-controls #info, #widget-controls #controls {
    font-size: 15px;
}
#info .info span {
    clear: both;
	font-family: Varela;
	text-align: right

}
#info span a {
    padding-left: 0 !important
	font-family: Varela;
	text-align: right
} 
#slideshow .col-md-4, #slideshow .col-md-8,
#slideshow .col-lg-3, #slideshow .col-lg-9 {
    display: inline-block;
}
#slideshow .col-md-12 {
    padding-left: 1.5em !important;
//    bottom: 3em;
}
/*#widget-controls .interior, #info .interior, #distances .interior {
*/
#widget-controls {
    color: silver;
    padding: 0 0 1em 0;
    margin: 1em 0;
    border: 2px solid #666666;
    border-radius: 7px;
}
#widget-controls div > span a {
    display: inline-block;
}
#widget-controls {
    z-index: 1000;
    @media all and (min-width: 980px) {
        height: 600px;
    }
    @media all and (min-width: 768px) and (max-width: 979px) {
        height: 400px;
    }
}
/*
#widget-controls #info {
    @media all and (min-width: 980px) {
        height: 215px;
    }
}
#widget-controls #controls {
    @media all and (min-width: 980px) {
        min-height: 150px;
    }
}
*/ 
#widget-controls span a:hover {
    color: #6fdc6f;
}
#widget-controls a {
    color: silver;
    cursor: grab;
    font-family: Varela, Helvetica, Arial, Varela;
}
#widget-controls .info a {
    color: LimeGreen;
}
#widget-controls > span {
    font-family: Varela, Helvetica, Arial, Varela;
    margin-left: -0.5em;
    padding: 0 0;
}
#widget-controls h3 {
	color: #000000;
	font-weight: 600;
	background: #666666;
	background: linear-gradient(#A6A6A6, #666666);
	border-top-left-radius: 7px;
	border-top-right-radius: 7px;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0.5em 0.5em;
	cursor: grab;
	text-align: right;
}
#widget-controls h3 .glyphicon, #controls .glyphicon {
    padding-right: 0.25em;
}
.glyphicon-refresh,
.glyphicon-question-sign,
.glyphicon-download-alt {
    float: right;
    display: inline !important;
}
.glyphicon-chevron-down, .glyphicon-chevron-up {
    float: right;
}
.info > span {
    display: block;
} 
.info > span > a {
    width: 100%;
}
.info > span > a {
    display: inline !important;
    text-align: left;
}
.units, .popup {
    cursor: grab;
    font-size: 15px;
}
.hidden {
    display: none;
}
.hide {
    display: none !important;
}
div.info {
    display: none;
    padding: 0.75em 0.5em;
    height: 180px;
}
#info {
    height: 220px;
}
#info .kilos, #distances .kilos  {
    display: none;
}
#info .glyphicon, #distances .glyphicon {
    cursor: grab;
}
#info .glyphicon:hover, #distances .glyphicon:hover {
    color: orange;
}
#info .glyphicon-refresh em,
#info .glyphicon-question-sign em {
    display: none;
}
#info .glyphicon-refresh:hover em,
#info .glyphicon-question-sign:hover em {
    display: block;
}
#info .glyphicon-refresh em,
#info .glyphicon-question-sign em {
    position: absolute;
    width: 280px;
    background: white;
    color: black;
    padding: 0.5em 0.5em;
    border: 1px solid silver;
    z-index: 10000;
    bottom: 1em;
    right: 1em;
}
#widget-controls .glyphicon em {
    font-family: 'Varela', Varela;
}
#slide-container, #controls {
    overflow: visible;
}
@media all and (min-width: 1081px) {
    #slide-container .slick-slide {
        max-height:  780px;
        overflow: hidden;
    }
}
a:hover {
    text-decoration: none;
}   
.panel-heading {
    background-color: #0C3E94 !important;
}   
.panel-heading a { 
    color: white;
}   
.panel-title {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Varela', Varela;
}   
.panel img {
    border-radius: 7px;
    background: silver;
    max-width: 200px;
    height: auto;
}   
.site-description {
    color: silver;
    clear: both;
    margin-left: 1em;
    font-family: 'Varela', Varela;
    font-size: 16px;
    padding-top: 0.25em;
}   
img.logo {
    max-height: 85px;
    width: auto;
    padding: 0.5em 0.5em;
}   
img.logo.pull-right {
    margin-right: 1em;
}
@media all and (max-width: 768px) {
    img.noaa {
        display: none;
    }
}
nav.navbar-fixed-top {
    z-index: 10000;
}
.nav {
    margin-top: 1em;
    padding-top: 0;
}
.navbar-brand {
    padding-bottom: 0.25em;
    vertical-align: text-bottom;
    font-size: 24px;
    height: auto;
    font-family: 'Varela', Varela;
}   
.navbar-inverse {
    background-color: black !important;
    background: linear-gradient(#333333, #060606);
    max-width: 100%;
    box-shadow: 1px 1px 3px #111111;
}
.navbar-inverse .navbar-brand {
    color: white;
}   
.navbar-brand, .navbar-brand span {
    color: silver;

}   
.site-description {
    border-top: 1px solid silver;
	position: relative;
    right: 10%;
    font-family: 'Varela', Varela;
	text-align : right

}   
.navbar-nav {
    position: relative;
    right: 10%;
    font-family: 'Varela', Varela;
	text-align : right
}   
ul.navbar-nav li:hover {
    background: gray;
	position: relative;
    right: 10%;
    font-family: 'Varela', Varela;
	text-align : right

}   
footer .well {
    background: transparent;
    border: none;
    margin-bottom: 0;
    font-size: 14px;
}   
footer .well:last-child {
    float: right;
    text-align: right;
}   
footer p { 
    font-size: 18px;
    font-weight: 500;
    color: black;
    font-family: 'Varela', Varela;
}   
footer p span {
    font-size: 18px;
    font-weight: 500;
    color: black;
    font-family: 'Varela', Varela;
}   
footer a { 
        font-size: 18px;
    font-weight: 500;
    color: black;
    font-family: 'Varela', Varela;
}   
footer a:hover {
    font-size: 18px;
    font-weight: 500;
    color: black;
    font-family: 'Varela', Varela;
	}
footer .logo {
    position: relative;
    margin: 0 auto;
    text-align: center;
}
p.well {
    border-color: gray;
}
img.gallery {
    width: 100%;
    height: auto;
    padding: 0.5em 0.25em;
}
@media all and (min-width: 1281px) {
    #slide-container {
        position: relative;
        bottom: 4em;
        overflow: visible
        padding-bottom: 4em;
    }
    #slide-nav {
        margin-top: 0.5em;
    }
}
@media all and (min-width: 1081px) and (max-width: 1280px) {
    #slide-container {
        position: relative;
        bottom: 2em;
    }
}
@media all and (max-width: 1080px) {
    #slide-container {
        position: relative;
        bottom: 0;
    }
}
#slide-container {
    @media all and (min-width: 1081px) {
        max-height: 820px;
    }
}
div.slides .slide {
    width: 100%;
    height: auto;
    @media all and (min-width: 480px) {
        min-height: 300px;
    }
}
div.slides .slide img {
    position: relative;
    margin: 0 auto;
    float: right;
}
div.slides {
    background: #000000;
    position: relative;
}
@media all and (min-width: 1001px) and (max-width: 1179px) {
    div.slides {
        bottom: 1.5em;
    }
}
.slide.mini {
    max-height: 120px;
    max-width: 120px !important;
}
@media all and (min-width: 1280px) {
    #slide-nav {
        bottom: 10%;
    }
}
.slide.mini img {
    width: inherit;
    max-width: inherit;
    border-radius: 7px;
    padding-top: 0;
    padding-bottom: 0;
}
.slide.mini span {
    position: relative;
    top: -2em;
    left: 1em;
    z-index: 1000;
    color: #666666;;
}
#slide-nav {
    background: #222222;
    background: #111111;
    padding: 0.5em 2em;
    max-height; 120px !important;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
//    position: relative;
//    top: 2.5em;
}
.slick-slider {
    margin-bottom: 0 !important;
}
.slick-prev, .slick-next {
    z-index: 1000;
}
.slides .slick-prev {
    left: 1em;
}
.slides .slick-next {
    right: 1em;
}
.magnify .magnify-lens {
    z-index: 10000;
}
.slick-track {
    position: relative;
    margin: 0 auto;
}
.error-display {
    width: 100%;
    background: black;
    min-height: 240px;
}
.overlay {
    position: absolute;
    display: block;
    text-align: center;
    z-index: 1000;
    width: 100%;
}
.overlay h3 {
    position: relative;
    margin: 20% auto;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 0.5em 1em;
    color: #FFFFFF;
    text-shadow: 2px 2px #000000;
    font-size: 1.6em;
}
.coverphoto {
    position: relative;
    width: 60%;
    height: auto;
    margin-left: 20%;
    margin-top: -5em;
    padding: 1em 1em;
}
.center {
    text-align: center;
}
.dark, .dark h1, .dark h2 {
    color: silver;
    background: #000000;
}
.dark .panel {
    color: black;
}
video {
    max-width: 90%; 
    height: auto;
    text-align: center;
    padding: 0.5em 1.5em;
    margin-left: 5%;
}
@media all and (min-width: 1000px) {
    video {
        width: 75% !important;
        margin-left: 12%; 
    }
}
.caption {
    font-size: 12px;
    font-family: Varela;
}
.hidden {
    display: none !important;
}

/*
 *  Magnifying Glass 
 */
.magnify .magnify-lens {
    width: 200px;
    height: 200px;
    min-height: 200px;
}
/*
 * D3 Geo-Orthogenal Visualization
 */
#globe-container {
    height: 180px !important;
    width:  180px;
    z-index: 900;
    background: transparent;
/*    transform: translateY(50%);
*/
}   
#globe-container svg {
    margin: 0 0 0 40%;
}
#globe-container .stroke {
    fill: none;
    stroke: #666666;
    stroke-width: 3px;
}
#globe-container .graticule {
    fill: none;
    stroke: #666666;
    stroke-width: .5px;
    stroke-opacity: .5; 
}
#globe-container .boundary {
    fill: none;
    stroke: #666666;
    stroke-width: .5px;
}
path {
    stroke: #666666;
    stroke-width: 0.25px;
    fill: none;
}
#globe-container .land, 
#globe-container .country, 
#globe-container .boundary {
    stroke: #666666;
    fill: #666666 !important;
}
#metadata {
    display: none;
}
.adjustCal {
    position: relative;
    top: 2em;
}
.showingImg {
    padding-top: 2px;
    padding-right: 0;
    font-family: Varela, Helvetica, Arial, Varela;
}
/*
 * About Page 
 */
/*
.section {
    display: none;
}
.section.active {
    display: block;
}
*/
hr {
    border-top-color: #000000;
}
.section.active h3 { 
    color: #239023;
    font-weight: bold;
}
#about-nav {
    position: relative;
    margin: 1em auto;
    padding-top: 0.5em;
}
#about-nav li a {
    text-align: center;
    border: 1px solid #444444;
    margin: 0 0.5em;
}
#website .topics li {
    padding: 1em 0 !important;
}
#website img:not(.showing) {
    display: none;
}
#website li:last-child img {
    max-width: 77% !important;
    height: auto;
}
#website p.collapse {
    margin-bottom: 0;
}
#website img.adjust {
    margin-right: 25%;
}
#pubs p {
    margin-bottom: 1.5em;
}
@media all and (min-width: 1081px) {
    #about-nav {
        width: 65%;
    }
}
@media all and (min-width: 980px) {
    .colorToggle {
//        padding-left: 3em;
    }
}
@media all and (min-width: 769px) and (max-width: 1080px){
    #about-nav {
        width: 85%;
    }
}
@media all and (max-width: 780px) {
    #about-nav {
        width: 100%;
    }
    #about-nav li {
        min-width: 20%;
    }
    #about-nav li a {
        font-size: 1em !important;
    }
    #about-nav li span {
        display: none;
    }
}
@media all and (max-width: 768px){
    #wrapper :not(.zabuto_calendar) table {
        overflow-x: scroll !important;
        width: auto;
    }
    .container {
        padding: 0.25em 0.25em !important;
    }
    pre {
        margin: 0 0;
    }
    .showingImg .color-toggle a {
        display: none !important;
    }
}
@media all and (max-width: 480px) {
    #about-nav li {
        padding: 0 0;
    }
    #about-nav li a {
        font-size: 14px !important;
        padding: 0.5em 0.5em;
    }
}

@media all and (min-width: 1441px) {
    #wrapper {
        min-height: 780px;
    }
    .dark .home {
        max-width: 1440px;
    }
    .dark .home .container {
        padding: 0 0 !important;
    }
}
@media all and (min-width: 1281px) {
    .container {
        position: relative;
        margin: 0 auto !important;
    }
    div.slides .slide {
        width: 90%;
/*        width: 50%;
        height: auto;
*/    }
}
@media all and (max-width: 1240px) {
    .navbar-nav {
        right: 5%;
    }   
/*    #widget-controls, #info, #distances {
        min-width: 300px;
    }
*/
}
@media all and (min-width: 1201px) {
    div.slides .slide {
        width: 92%;
    }
}
@media all and (max-width: 1140px) and (min-width: 1081px) {
    .navbar-nav li a{
        font-size: 14px;
    }
}
@media all and (max-width: 1080px) and (min-width: 769px) {
    #slide-nav {
        margin-bottom: 3.5em;
    }
    .navbar-nav li a {
        padding: 1em 0.75em;
    }
}
@media all and (max-device-width: 1080px) and (-webkit-min-device-pixel-ratio: 1) {
/*    #slideshow .slides .slick-prev, 
    #slideshow .slides .slick-next {
        display: none !important;
   } 
*/
}
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {
    #navbar .navbar-nav {
        display: inline !important;
        max-width: 67%;
    }
    .navbar-nav li a {
        margin-top: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .navbar-brand {
        font-size: 22px;
    }
    div.slides {
        bottom: 0;
    }
}
@media all and (max-width: 1080px) {
    .navbar-header, #navbar {
        position: relative;
//        left: -2em;
    }
    #navbar .navbar-nav li {
        border-bottom: none;
    }
    #navbar .navbar-nav:not(.pull-right) li a {
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .navbar-nav {
        right: 0;
    }
    #navbar ul li a {
        font-size: 14px;
    }
    #slideshow .col-md-12 {
        bottom: 0;
    }
    #slideshow .slides {
        width: 95%;
        float: right;
    }
    #slide-nav {
        clear: both;
        bottom: 0;
    }
    footer p span {
        display: block;
    }
    img.gallery {
        width: 50%;
        display: inline;
        float: left;
    }
    .coverphoto {
        top: 3em;
    }
    .overlay h3 {
        font-size: 1.4em;
    }
}
@media all and (max-width: 1000px) and (min-width: 769px) {
    #globe-container {
        position: absolute;
        bottom: 40%;
        left: 0;
    }
    #globe-container svg {
        margin-left: 1em;
    }
    div.slides .slide {
        width: 90%;
    }
    #widget-controls {
        border: none;
        clear: both;
        width: 100% !important;
        min-height: 200px;
        position: relative;
        bottom: 25px;
    }
    #widget-controls #controls, #widget-controls #info {
        display: inline-block;
        margin: 0 1em;
        width: 45% !important;
        border: 1px solid silver;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
    }
    #controls {
 /*       bottom: 9.5em;
*/        height: auto;
    }
    .controls, .info > span {
        padding: 0.25em 0.25em !important;
    }
    #slide-nav {
        top: 0;
        bottom: 240px;
    }
    #slideshow .slides .slick-prev, 
    #slideshow .slides .slick-next {
        display: block !important;
   } 
   /* Use Bootstrap Glyphicons instead of Slick custom fonts */
   .slick-prev:before, .slick-next:before {
       font-family: "Varela", "slick", Varela;
       font-size: 40px;
   }

   .slick-prev:before { content: "\e257"; }
   .slick-next:before { content: "\e258"; }

   #slide-container {
        width: 95% !important;
   }
   #controls {
        height: 220px;
        position: relative;
        float: right;
/*        top: -0.75em;
*/    }
   #widget-controls #controls div > span:not(.cal2cal) {
        display: inline-block;
    }
    #widget-controls #info {
        position: relative; 
/*        top: -0.80em !important;
*/    }
   #widget-controls #controls div > span a {
/*       text-align: left;
       padding-left: 1em !important;
*/   }
    .navbar-brand {
        margin-top: 0.5em;
    }
    .site-description {
        display: none;
    }
    #navbar ul li a {
        padding-left: 0.5em;
        padding-right: 0.75em;
    }
    #info, #distances {
/*        min-height: 18px;
*/    }
    #globe-container {
/*        top: 22%;
*/    }
    #slideshow {
        padding: 0 0 !important;
    }
    #slideshow .slides .slick-prev, 
    #slideshow .slides .slick-next {
        right: 3%;
    }
    #slideshow .slides {
        width: 100%;
        float: none;
    }
}
@media all and (max-width: 867px) and (min-width: 769px) {
    .navbar-nav {
        position: relative;
        top: 1.25em;
    }
}
@media all and (max-width: 920px) and (min-width: 769px) {
    .navbar-nav li a {
        font-size: 14px !important;
    }
}
@media all and (max-width: 867px) and (min-width: 769px) {
    .navbar-nav {
        float: left !important;
        left: 0.5em;
        margin-top: 0 !important;
    }
    .nav > li > a {
        padding: 0.25em 0.5em;
    }
}
@media all and (max-width: 768px) {
    #wrapper {
        min-height: 420px
    }
    .navbar-brand {
        margin-top: 0.5em;
    }
    #navbar {
    //    background: #111111;
        border-bottom: 1px solid dimgrey;
        background: linear-gradient(#000000, #333333);
        width: 100%;
    }
    #navbar ul {
        float: none;
        position: relative;
        padding-bottom: 1em;
        width: 100%;
    }
    #navbar ul li {
        border-bottom: 1px solid dimgray;
    }
    .navbar-toggle {
        margin-top: 1.25em;
    }
    .navbar-fixed-top {
        position: relative !important;
        margin-bottom: 0 !important;
    }
    .headroom.clearfix {
        display: none !important;
    }
    .navbar-inverse .navbar-toggle {
        border-color: white;
    }
    .navbar-brand {
        padding-left: 0;
    }
    .site-description {
        display: none;
    }
    img.logo {
        max-height: 75px;
    }
    .col-md-4 img {
        vertical-align: text-top;
    }
    .col-md-4 {
        padding: 0 0 !important;
    }
    .imgBox {
        display: inline-block;
        padding: 0.33em 0.33em;
        margin:  0.5em 0.5em;
        width: 22%;
        border:  1px solid gray;
        border-radius: 5px;
        background: gray;
    }
    .col-sm-4 img {
        max-width: 100%;
        height: auto;
    }
    a.controls.nav-imgs {
        display: none !important;
    }
    .imgBox {
        padding: 0.25em 0.25em;
        margin: 0.5em 0.5em;
    }
    .showingImg {
        width: 100% !important;
    }
    .showingImg > span, .showingImg > span a {
/*        width: 100% !important;
        display: block !important;
        padding: 0.75em 0;
*/    }    
    .controls.calendar:before {
        content: "Pick a date: ";
    }
    #widget-controls {
        position: relative;
        bottom: 3em;
        border: none;
    }
    #widget-controls #info {
        margin-top: 1em !important;
    }
    #widget-controls #controls, #widget-controls .info {
        border: 1px solid gray;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
    }
    #widget-controls #controls, #widget-controls #info, #globe-container,
    #widget-controls #info, #widget-controls #controls, #globe-container svg {
        margin: 0 0 1em 0;
        width: 100%;
        display: block;
        float: none;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        clear: both;
    }
    #widget-controls #controls .calendar {
        display: block;
        width: 100%;
        text-align: left;
    /*    padding: 0.5em 1em !important;
    */
    }
    #widget-controls #controls span.nav-imgs {
        display: none;
    }
    #controls:not('.hidden') {
        min-height: 250px !important;
    }
    #controls, #controls h3 {
        margin-bottom: 0 !important;
    }
    #controls > div:not(.zabuto_calendar) {
        height: 180px;
    }
    #controls td div {
        margin-top: 2px;
    }
    #info {
        height: auto;
    }
    #controls div .glyphicon {
        float: none;
    }
    #globe-container {
        position: relative;
        width: 40%;
        float: right;
        bottom: 110%;
    }
    #globe-container svg {
        float: right;
        top: 0;
        bottom: 0;
    }
    #controls span a {
        padding: 0 0 !important;
        margin: 0 0;
    }
    .cal2cal {
        position: relative;
        bottom: 12em;
        left: 25%;
    }
    #slideshow .slides {
    //    left: 2em;
    }
    div.slides .slide {
        width: 100%;
    }
    #slide-nav {
        display: none;
    }
    .showingImg {
/*        display: none;
*/    }
    /* For the Galleries landing page. */
    .panel a img {
        width: 100%;
    }
    .panel h4 {
        text-align: center;
    }
    .overlay h3 {
        font-size: 1.1em;
    }
    .coverphoto {
        margin-bottom: 3em;
    }
}
@media all and (max-width: 767px) {
    footer {
        clear: both;
    }
    footer .well {
        float: none !important;
        text-align: center !important;
    }
}
@media all and (max-width: 640px) {
    #widget-controls, #info #distances{
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        display: block;
/*        width: 50%;
*/        min-width: 280px;
        margin: 1em 0;
    }
    #widget-controls div > span {
        width: 100%;
    }
    #widget-controls div > span a {
        text-align: left;
    }
    #widget-controls div {
        min-height: 0;
    }
    #globe-container {
        position: relative;
        display: block;
        clear: both;
        left: 0;
        margin: 0 auto 2em auto;
        top: 0 !important;
    }
    div.slides .slide {
        bottom: 0;
    }
    #slideshow {
        top: 0; 
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #slideshow .slides {
        display: block;
        margin-top: -1.5em;
        left: 0;
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}
@media all and (max-width: 479px) {
    img {
        width: 100%;
        height: auto;
    }
    img.gallery {
        width: 100%;
        height: auto;
    }
    .navbar-brand span {
        display: none;
    }
    .col-sm-4 img {
        max-width: 100%;
        height: auto;
    }
    pre {
        overflow: scroll;
    }
    div.slides .slide {
        bottom: 1.5em;
    }
    #slideshow .slides {
        width: 100%;
        top: 3em;
    }
    #slide-nav {
        display: none;
    }
    #distances {
        margin-bottom: 3em;
    }
    #widget-controls, #info, #distances {
        display: block;
        float: left;
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
    }
    #widget-controls .interior > div, #info .interior > div, #distances .interior > div {
        min-height: 24px;
        padding-top: 1em;
    }
    #widget-controls {
        display: block;
        clear: both;
    }
    #widget-controls div {
        min-height: 0;
    }
    .coverphoto {
        margin-top: 0;
        margin-bottom: 5em;
    }
    .overlay.error {
        margin-top: -4em;
    }
}
@media screen and (-webkit-min-device-pixel-ratio:0) {  
    .coverphoto {
        top: 5em;
        margin-bottom: 2em;
    }
}
