@charset "UTF-8";
/*
Theme Name: Montague Bookmill
Theme URI: https://montaguebookmill.com
Author: Pioneer Valley Digital
Author URI: https://pioneervalleydigital.com
Description: Custom Theme for The Book Mill
Version: 0.1
License: All Rights Reserved
*/

@import url('fonts/fonts.css');

html {
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  min-height: 100vh;
}
body {
  margin: 0; padding: 0; border: 0;
  background-image: url('images/bookmillbg1.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  -moz-background-size: cover;
  -webkit-background-size: cover;
  background-attachment: scroll;
  overflow: hidden;
  font-family: Alegreya, serif;
  font-size: 20px;
}
#topcontainer {
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#mainpagecontainer {
  margin: 50px auto 100px auto;
  max-width: 850px;
  border: 7px solid black;
  border-radius: 15px;
  background-color: #fff3ef;
}
#bookmillheader {
  width: 850px;
}
#slogan {
  text-align: center;
  border-bottom: 7px solid black;
  padding: 5px;
  font-size: 35px;
  font-family: 'Permanent Marker', cursive;
}
#mainnav {
  border-bottom: 7px solid black;
  font-size: 1px;
}
#mainnav a {
  display: inline-block;
  border-right: 7px solid black;
  margin: 0; padding: 0;
}
#mainnav a:last-of-type {
  border: none;
}
.navimage {
  border: 0; margin: 0; padding: 0;
  width: 100%;
  height: auto;
}
#navlinkhome { width: 105px; }
#navlinkevents { width: 153px; }
#navlinkcontact { width: 168px; }
#navlinkhistory { width: 168px; }
#navlinkphotos { width: 153px; }
#navlinkfb { width: 65px; }

#content {
  margin: 20px 20px 50px 20px;
  font-family: Alegreya, serif;
  font-size: 20px;
  max-height: 999999px;
}
#content a {
  text-decoration: underline;
  color: #000000;
  font-style: italic;
}
#footer {
  margin: 0;
  padding: 0;
  border-top: 7px solid black;
  font-size: 1px;
}
#footer img {
  display: inline-block;
  vertical-align: middle;
  width: calc(25% - 27px);
  border-right: 7px solid black;
  margin: 0;
  padding: 10px;
}
#footer a:last-of-type>img {
  border: 0;
}
#footerfooter {
  color: #eeeebb;
  background-color: #000000;
  text-align: center;
  font-size: 18px;
}
#footerfooter div {
  display: inline-block;
  padding: 15px 20px 10px 20px;
}
#footerfooter div a {
  text-decoration: underline;
  color: #eeeebb;
}
h1 {
  font-family: Alegreya, serif;
  font-weight: bold;
  font-size: 30px;
  margin: 30px 0 10px 0;
}
.googlemap {
    position: relative;
    padding-bottom: 75%; // This is the aspect ratio
    height: 0;
    overflow: hidden;
}
.googlemap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}
img.aligncenter { display: block; margin: 0 auto 0 auto; max-width: 100%; height: auto; }
p+img { margin-top: 40px !important; margin-bottom: 40px !important; }
table { font-size: 100%; }

@media (max-width: 880px) {
  /* Mobile Breakpoint */
  body {
    background: none;
  }
  #mainpagecontainer {
    margin: 0;
    border-radius: 0;
    max-width: 100vw;
  }
  #bookmillheader {
    width: 100%;
  }
  #slogan {
    font-size: 20px;
    line-height: 25px;
  }
  #navlinkhome { width: 12.35%; }
  #navlinkevents { width: 18%; }
  #navlinkcontact { width: 19.76%; }
  #navlinkhistory { width: 19.76%; }
  #navlinkphotos { width: 18%; }
  #navlinkfb { width: 7.64%; }
  #mainnav a { border-right: 0.75vw solid black; }
}
@media (max-width: 880px) and (min-width: 450px) {
  .rl-gallery-link img { max-width: 350px !important; min-width: 0 !important; }
}
@media (max-width: 450px) {
  .rl-gallery-link img { max-width: 100% !important; }
}
