@media only screen and (max-width:1024px) 
{
header
{
    width:200px;
}
nav
{
    font-size:16px;                                    
}                                     
nav ul
{
    padding-left:235px;
}
}
                
@media only screen and (max-width:800px) 
{
header
{
    margin-top:0px;
    width:175px;
} 
nav
{
    font-size:14px;                                    
} 
#sub-menu ul
{
    background-color:rgba(0,0,0,0.8);
} 
#sub-menu li
{
    background-color:transparent;
} 
#sub-menu {
    width:100%;                                                   
}                                         
nav ul
{
    width:100%;
    margin-left:0px;
    padding-left:210px;
}
nav li
{
    padding:0px;
}
nav ul:after {
	border:none !important;
}  
h1 {
    font-size:46px;
}
h2 {
    font-size:40px;
}
h3 {
    font-size:34px;
}
h4 {
    font-size:28px;
}
h5 {
    font-size:22px;
}
h6 {
    font-size:18px;
} 
.slider_next,
.slider_prev{
	width:60px;
	height:60px;
}
.slider_next{
	bottom:20px;
    background-image:url('../images/bottom-s.png');
}
.slider_prev{
    top:auto;
	bottom:100px;
    background-image:url('../images/top-s.png');
}  
.page-content, .page-content-small
{
    width:100%;
}
.content
{
    padding-top:150px;
}                                    
.left-gallery
{
    width:50%;
}
.right-gallery
{
    width:50%;
} 
#google-map
{
    display:none;
}
#mobile-map
{
    display:block;
}
input[type="text"], input[type="email"], input[type="number"], input[type="date"], textarea
{
    border:1px solid #aa1111;
}
.button:hover {
	background-color:#fff;
    color:#000 !important;
}                                    
}
@media only screen and (max-width:640px) 
{                                                  
header
{
    width:auto;
    left:10px;
}
header img
{
    /* portrait logo: fix height, let width follow the image's shape */
    width:auto;
    height:230px;
    max-height:none;
}                                                    
.content
{
    padding-top:245px;
    padding-left:20px;
    padding-right:20px;
    padding-bottom:20px;
}                                            
h1 {
    font-size:42px;
}
h2 {
    font-size:38px;
}
h3 {
    font-size:32px;
}
h4 {
    font-size:26px;
}
h5 {
    font-size:20px;
}
h6 {
    font-size:16px;
} 
#main-menu
{                                                                    
    top:150px;
    height:auto;
}
#sub-menu
{
    left:0px;
    height:auto;
}
#sub-menu ul
{
    background-color:#000;
}                                                     
nav ul
{
    padding-left:10px;
}
.slider_next{
	bottom:10px;
    right:10px;
}
.slider_prev{
	bottom:90px;
    right:10px;
}
.slider_content{
	bottom:10px;
	left:10px;
    padding:10px;
}
#mobile-menu
{
   display:block;
}
#main-menu, #sub-menu
{
   display:none;
}                                                   
.grid li {
    margin-bottom:20px;
}                                                  
}
@media only screen and (max-width:480px) 
{
.left-gallery
{
    width:100%;
    margin-bottom:20px;
}
.right-gallery
{
    width:100%;
    float:left;
} 
h1 {
    font-size:34px;
}
h2 {
    font-size:26px;
}
h3 {
    font-size:22px;
}
h4 {
    font-size:18px;
}
h5 {
    font-size:15px;
}
h6 {
    font-size:13px;
} 
p {
    font-size:12px;
}
.grid figcaption {
    font-size:10px;
}
.grid figcaption a {
    font-size:12px;
}
.accordion-header {
    font-size:16px;
}                                                                   
.active-header {
    font-size:20px;
}
.grid figcaption span {
    display:none;
}
.tagsicon, .usericon, .categoryicon{
    display:none;
}
.dateicon {
    background-image: none;
    padding-left: 0px;
    font-size:14px;
} 
.da-thumbs {
	width:100%;
}                                                                     
.da-thumbs li {
	width:50%;
}                                                                    
}
@media only screen and (max-height:320px) 
{
header
{
    width:auto;
}
header img
{
    width:auto;
    height:80px;
    max-height:none;
}
#mobile-menu
{
    height:80px;
    line-height:80px;
    padding-left:80px; 
    font-size:16px;                                                                                        
}                                                                                    
#main-menu
{
    top:80px;
    left:0px;
    font-size:12px;                                                                                    
}
#sub-menu
{
    font-size:12px;                                                                                    
}
.slider_content{
    display:none !important;                                                                                    
} 
.content
{
    padding-top:100px;
} 
.grid figcaption span {
    display:none;
}
.da-thumbs {
	width:100%;
}                                                                                     
.da-thumbs li {
	width:100%;
}                                                                                      
}

/* ==========================================================
   MOBILE MENU - hamburger button + dropdown card
   (same style as the Bowlliards league site)
   (also used for phones turned sideways: any screen 500px tall or less)
   ========================================================== */
@media only screen and (max-width:640px), only screen and (max-height:500px)
{
/* logo floats over the page - no bar behind it */
/* the button */
#mobile-menu
{
    position:fixed;
    top:14px;
    right:14px;
    left:auto;
    width:40px;
    height:40px;
    padding:0;
    line-height:normal;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    border:2px solid #91d6ac;
    border-radius:6px;
    background:rgba(0,0,0,0.6);
    background-image:none;
    font-size:0;
    z-index:1000;
}
#mobile-menu.menu-close
{
    background-image:none !important;
}
/* three lines */
#mobile-menu .hamburger-icon,
#mobile-menu .hamburger-icon::before,
#mobile-menu .hamburger-icon::after
{
    display:block;
    width:18px;
    height:2px;
    background:#91d6ac;
    transition:transform 0.15s, top 0.15s, background-color 0.15s;
}
#mobile-menu .hamburger-icon
{
    position:relative;
}
#mobile-menu .hamburger-icon::before,
#mobile-menu .hamburger-icon::after
{
    content:"";
    position:absolute;
    left:0;
}
#mobile-menu .hamburger-icon::before { top:-6px; }
#mobile-menu .hamburger-icon::after  { top:6px; }
/* turns into an X when open */
#mobile-menu.menu-close .hamburger-icon { background:transparent; }
#mobile-menu.menu-close .hamburger-icon::before { top:0; transform:rotate(45deg); }
#mobile-menu.menu-close .hamburger-icon::after  { top:0; transform:rotate(-45deg); }

/* the dropdown card - closed until the button is tapped */
#main-menu
{
    display:none;
    position:fixed;
    top:62px;
    right:14px;
    left:auto;
    width:auto;
    min-width:200px;
    max-width:78vw;
    height:auto;
    padding:4px 0;
    background:#fff;
    border-radius:8px;
    box-shadow:0 4px 16px rgba(0,0,0,0.35);
    z-index:1000;
}
#main-menu ul
{
    display:block;
    width:auto;
    margin:0;
    padding:0;
    background:none;
}
#main-menu ul:after
{
    display:none;
}
#main-menu li
{
    float:none;
    display:block;
    height:auto;
    line-height:normal;
    padding:0;
    background:none;
    border-bottom:1px solid #e3e3e3;
}
#main-menu li:last-child
{
    border-bottom:none;
}
#main-menu li a
{
    display:block;
    padding:12px 18px;
    color:#333;
    font-size:17px;
    text-align:left;
}
#main-menu li a:hover
{
    background:#f3f3f3;
    color:#333;
}
#main-menu li a::before,
#main-menu li a::after
{
    display:none;
}
/* template's Blog / Single Post menu - hidden on phones */
#sub-menu
{
    display:none !important;
}
}

/* ==========================================================
   PHONE TURNED SIDEWAYS (wide but short screen)
   ========================================================== */
@media only screen and (min-width:641px) and (max-height:500px)
{
header
{
    width:auto;
    left:10px;
    margin-top:0;
}
header img
{
    width:auto;
    height:150px;
    max-height:none;
}
}
