/* FONTS */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
}

@font-face{
  font-family: 'Cormorant Garamond';
  src: url("/res/fonts/CormorantGaramond-Bold.woff") format("woff");
  font-style: normal;
  font-weight: bold;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

/* VARIABLES */
:root{
  --title-font: "Cormorant Garamond", serif;
  --header-font: "Montserrat", sans-serif;
  --body-font: "Lora", serif;
  --font-serif: "Lora", serif;
  --font-sans-serif: "Montserrat", sans-serif;
  --font-icons: 'Material Symbols Outlined';
  
  --text-color-cream: #f9f7f0;
  
  --body-background-color: #f9f7f0;
  --body-text-color: #000;
  --body-max-width: 1024px;
  
  --header-background-color: #fff;
  --header-menu-bar-height: 64px;
  --menu-background-color: #75533f;
  --menu-item-height: 3.5em;
  
  --blog-list-background-color: #686e59;
  --post-comment-button-background-color: #686e59;
  --donate-button-background-color: #686e59;
}

/* GENERAL */

*{
  box-sizing: border-box;
}

html{
  font-family: var(--body-font);
  font-size: 16pt;
  line-height: 1.5em;
  width: 100%;
  height: 100%;
}

h1, h2, h3{
  font-family: var(--header-font);
}

h1{
  font-size: 3em;
  font-family: var(--title-font);
}

h2{
  font-size: 1.5em;
}

h3{
  font-size: 1.25em;
}

body{
  width: 100%;
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  background-color: var(--body-background-color);
  color: var(--body-text-color);
  font-family: var(--body-font);
}

/* these next three rules are for making the styles render properly
 * in editor view.
 */
body#main-view{
  max-width: 100%;
  display: flex;
  flex-flow: column nowrap;
  overflow: hidden;
}

body#main-view main{
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body#tinymce .mceTmpl{
  border: 1px dotted black;
  padding: 16px;
}

.body-text{
  width: 100%;
  max-width: var(--body-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2em;
}

.full-width{
  width: 100%;
}

/* COMMON ELEMENTS / TEMPLATES */

/* Cards */
.card-container{
  display: flex;
  justify-content: space-between;
}

.card{
  display: block;
  color: #fff;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
  width: 320px;
  height: 100%;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

.card:hover{
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.card::after{
  content: "";
  display: block;
  padding-bottom: 100%;
}

.card img{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card a{
  color: #fff;
  display: block;
  width: 100%;
  height: 100%;
}

.card-text-body{
  padding: 0.25em;
  background-color: rgba(0,0,0,0.4);
  position: absolute;
  top: 50%;
  width: 100%;
  height: 50%;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.75em;
}

.card-text-header{
  margin: 0;
  padding-top: 0;
  text-align: center;
  font-size: 1.5em;
}

.card-text-description{
}

/* buttons */
.button, a .button{
  text-align: center;
  font-size: 1.0em;
  font-weight: bolder;
  padding: 0.5em;
  background-color: var(--donate-button-background-color);
  color: var(--text-color-cream);
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.button:hover{
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* quote block */
blockquote.quote{
  font-style: italic;
  margin-left: 1em;
  display: block;
}

/* HEADER AND MENU */
#top-header{
  height: var(--header-menu-bar-height);
  background-color: var(--header-background-color);
  width: 100%;
  z-index: 1;
  color: var(--body-text-color);
  border-bottom: 1px solid #e8e8ed;
}

#top-navigation{
  display: block;
  position: fixed;
  right: -100%;
  width: 30%;
  padding: 1.25em;
  background-color: var(--menu-background-color);
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
  transition: right 1s;
  z-index: 1;
  text-align: left;
}

#show-navigation-menu{
  opacity: 0;
  position: absolute;
  top: -9999px;
}
/*
#show-navigation-menu:focus + #menu-button, #menu-button:hover{
  outline: 2px solid var(--menu-background-color);
}
*/
#show-navigation-menu:checked + #menu-button + #top-navigation{
  right: 0px;
}

#show-navigation-menu:not(checked) + #menu-button .menu-button-icon::before{
  content: "Menu";
}

#show-navigation-menu:checked + #menu-button .menu-button-icon::before{
  content: "Close";
}
  
#top-header a, .menu-item-link{
  text-decoration: none;
  font-family: var(--header-font);
}

.flex-item{
  flex-grow: 1;
  width: 100%;
}

.flex-row-container{
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  width: 100%;
}

.flex-column-container{
  display: flex;
  flex-direction: row;
  align-items:center;
  justify-content:center;
  width: 100%;
}

#top-header .flex-column-container{
  flex-direction: row;
}

.flex-row{
  width: 100%;
  height: 100%;
}

#top-header a img{
  border: none;
}

#menu-button-container{
  text-align: right;
  line-height: var(--header-menu-bar-height);
  padding-right: 1em;
}

#menu-button{
  font-family: var(--font-sans-serif);
  display: inline-block;
  line-height: 32px;
}

#menu-button > *{
  vertical-align: middle;
}

.menu-button-icon{
  font-family: var(--font-icons);
  margin-left: 0.5em;
  font-size: 1.25em;
}

#header-logo{
}

#header-logo-home-link{
  width: 100%;
  height: var(--header-menu-bar-height);
  display: block;
}

#header-logo-home-link div{
  width: auto;
  height: 100%;
  display: block;
  float: left;
}

#header-logo-home-link div img{
  width: auto;
  height: 100%;
  display: block;
}

#header-home-link, #header-home-link:hover{
  border: 0;
}

#logo-window img{
  object-fit: contain;
}

#logo-window {
  max-width: 15%;
  padding: 0.4em;
  padding-right: 0.2em;
}

#logo-text{
  max-width: 80%;
  padding: 0.4em;
  padding-left: 0.2em;
}

#logo-text img{
  object-fit: contain;
}

.navigation-menu{
  display: block;
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
}

.menu-item{
  display: block;
  position: relative;
  background-color: var(--body-background-color);
  color: var(--body-text-color);
  min-height: var(--menu-item-height);
  line-height: var(--menu-item-height);
  font-size: 1.25em;
  width: 100%;
  margin: 0 0 1em 0;
}

.sub-menu{
  display: none;
  list-style-type: none;
  padding-left: 0;
  background-color: var(--body-background-color);
  z-index: 2;
  position: absolute;
  left: -100%;
  top: 0;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  width: 100%;
}

.sub-menu-item{
  display: block;
  font-size: 0.8em;
  line-height: 1.5em;
  width: 100%;
  border-bottom: 1px solid #e8e8ed;
}

.sub-menu-item:last-child{
  border-bottom: none;
}

.sub-menu-item:hover, .sub-menu-item:focus{
  background-color: #b65e49;
  color: var(--body-background-color) !important;
}

.sub-menu-item a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0.5em;
  color: inherit;
}

/*
.menu-item.has-sub-menu:hover .sub-menu, .menu-item.has-sub-menu button.menu-item-expand-icon:focus + .sub-menu, .sub-menu-toggle:checked ~ .sub-menu, .sub-menu[data-visible="true"]{
  display: block;
}
*/
.sub-menu-toggle:checked ~ .sub-menu, .sub-menu[data-visible="true"]{
  display: block;
}

.menu-item-expand-icon::before{
  content: "";
}

.menu-item.has-sub-menu .menu-item-expand-icon::before, .sub-menu-toggle:not(checked) + .menu-item-label-wrapper .menu-item-expand-icon::before, .sub-menu[data-visible="false"] .menu-item-expand-icon::before{
  content: "chevron_left";
}

.sub-menu-toggle:checked + .menu-item-label-wrapper .menu-item-expand-icon::before, .sub-menu[data-visible="true"] .menu-item-expand-icon::before{
  content: "chevron_right";
}

.menu-item-link{
  display: block;
  text-align: left;
  width: 100%;
  margin: 0;
  padding-left: 1em;
  color: var(--body-text-color);
}

.menu-item-expand-icon{
  width: 15%;
  height: 100%;
  text-align: center;
  font-size: 1.5em;
  border: none;
  margin: 0;
  padding: 0;
  line-height: inherit;
}

.menu-item-expand-icon.expandable{
  border-right: 1px solid #e8e8ed;
}

button.menu-item-expand-icon{
  color: inherit;
  background-color: transparent;
}

.menu-item-background-image{
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: var(--menu-item-height);
  min-height: var(--menu-item-height);
}

.menu-item-label-wrapper{
  display: flex;
  flex-direction: row;
}

.menu-item-link-wrapper, .menu-item-background-image, .menu-item-expand-icon{
  display: block;
  height: 100%;
  vertical-align: middle;
}

.menu-item-link-wrapper{
  width: 60%;
}

.mobile-only{
  display: none;
}

#content-skip-link{
  color: black !important;
  background-color: white;
}

.hidden, .hidden-link{
  position: absolute;
  top:-9999px;
}











#post-footer-image{
  display: block;
  margin: 0 auto;
  width: 256px;
  height: 256px;
}



/* FOOTER */
footer{
  background-color: var(--menu-background-color);
  color: #fff;
  margin-top: auto;
  padding: 0.5em;
  font-size: 0.5em;
  text-align: center;
  line-height: 1em;
}

footer a{
  color: inherit;
}

img{
  height: auto;
  max-width: 100%;
}

a{
  color: #9449B6;
}


.inline-nav{
  display: inline-block;
}

.sb-container{
  display: flex;
  justify-content: space-between;
}

.sb-listing{
  display: block;
  color: #fff;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
  width: 320px;
  height: 100%;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

.sb-listing:hover{
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.sb-listing::after{
  content: "";
  display: block;
  padding-bottom: 100%;
}

.sb-listing a img{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-listing a{
  color: #fff;
  display: block;
  width: 100%;
  height: 100%;
}

.sb-listing-text{
  padding: 0.25em;
  background-color: rgba(0,0,0,0.4);
  position: absolute;
  top: 50%;
  width: 100%;
  height: 50%;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.75em;
}

.sb-listing-text h3{
  margin: 0;
  padding-top: 0;
  text-align: center;
  font-size: 1.5em;
}

.body-text section, .body-text aside{
  margin-top: 1em;
  margin-bottom: 1em;
}

.hero-image{
  width: 100%;
  min-height: 480px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.center{
  text-align: center;
}

#donate-button{
  text-align: center;
  font-size: 1.4em;
  font-weight: bolder;
  padding: 0.5em;
  background-color: var(--donate-button-background-color);
  color: var(--text-color-cream);
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
  transition: 0.3s;
}

#donate-button:hover{
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.flex-column{
  display: flex;
  flex-direction: row;
}

.flex-column .two-column{
  width: 50%;
}

.column-66{
  width: 66%;
}

.column{
  margin: 1em;
}
/* BLOG POST */
#blog-list{
  background-color: var(--blog-list-background-color);
  color: #fff;
  padding: 1em;
  margin-top: 8em;
  margin-bottom: 8em;
  margin-right: 3em;
  width: 300px;
}

#blog-list h2{
  font-size: 1em;
  color: var(--body-background-color);
}

#blog-list ul{
  list-style-type: none;
  padding-left: 0;
  align-items: center;
  justify-content: center;
}

#blog-list li{
  display: block;
  background-color: #f9f7f0;
  color: #4d4c49;
  font-size: 0.75em;
  margin-bottom: 0.5em;
  border-radius: 4px;
  padding: 0.5em;
}

#blog-list li a{
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

#recent-posts{
  width: 100%;
  max-width: var(--body-max-width);
  padding: 1em;
  padding-bottom: 2em;
}

#recent-posts h1{
  margin-bottom: 0.6em;
}

#recent-posts ol{
  margin-top: 0;
}

.post-listing{
  border-bottom: 2px dotted #4d4c49;
  margin-top: 2em;
}

.post-listing:first-child{
  margin-top: 0;
}

.post-listing:last-child{
  border-bottom: none;
}

.post-listing-title{
  font-family: var(--header-font);
  font-weight: bold;
  font-size: 1.25em;
  color: inherit;
  text-decoration: none;
}

.post-listing-meta{
  font-size: 0.75em;
  color: #6b6965;
}

.post-listing-meta span{
  margin-right: 0.5em;
}

.post-listing-keep-reading a{
  color: inherit;
}

.pagination-wrapper{
  text-align: center;
}

.pagination{
  display: inline-block;
  padding: 0.5em 1em 0.5em 1em;
  color: #000;
  font-family: Montserrat, sans-serif;
}

.pagination > * {
  display: inline-block;
  margin-left: 0.25em;
  margin-right: 0.25em;
}
.pagination a{
  color: inherit;
}

/* POSTS / ARTICLES */
.post-header{
  text-align: center;
}

.post-header h1{
  margin-bottom: 0.5em;
}

.post-hero-image{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-meta, .post-attributes{
  font-size: 0.75em;
}

.post-attributes{
  border-top: 1px solid #e8e8ed;
  padding-top: 1em;
  margin-top: 1em;
}

.post-attributes > div {
  display: inline-block;
  float: left;
  margin-right: 0.5em;
}
.tag{
  display: inline-block;
  background-color: #4d4c49;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  margin-right: 0.5em;
  border-radius: 4px;
  color: #fff;
}

.tag a{
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
/* POST COMMENTS */

.comment{
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px dotted #4d4c49;
}

.comment:last-child{
  border-bottom: none;
}
.comment-header{
}

.comment-author{
  font-weight: bolder;
  color: inherit;
}

.comment-author a{
  color: inherit;
  text-decoration: none;
}

.comment-timestamp{
  font-size: 0.75em;
  color: #6b6965;
}

/* FORMS */

legend{
  font-weight: bold;
}

#post-comment{
  width: 100%;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

#post-comment-submit-button{
  background-color: var(--post-comment-button-background-color);
  color: #fff;
  font-weight: bold;
  padding: 1em;
  border: none;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
  font-size: 1em;
  transition: box-shadow 0.5s;
}

#post-comment-submit-button:hover{
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  cursor: pointer;
}

.input-required{
  font-weight: bolder;
  color: crimson;
  font-size: 0.75em;
}

.form-table{
  display: table;
}

.trow{
  display: table-row;
}

.tcol{
  display: table-cell;
  padding: 0.1em;
}

.trow > *{
  vertical-align: top;
}

.tcol > input, .tcol > button, .tcol > select{
  width: 100%;
}

.tcol[data-colspan="50%"] > *{
  width: 50%;
  display: block;
  float: left;
}

.form-item-description{
  font-size: 0.75em;
  margin: 0;
}

@media (max-width: 1280px){
  html{
    font-size: 12pt;
  }
  
  .body-text{
    max-width: 85%;
  }
  
  #top-navigation{
    min-width: 500px;
  }
  .menu-item{
    font-size: 1em;
  }
  .sub-menu{
    width: 240px;
    left: -240px;
  }
}











@media (orientation: portrait ), (max-width: 640px){
  body{
  }
  
  #top-header{

  }
  
  #top-header .flex-column-container{
    flex-direction: row;
  }

  #top-navigation{
    width: 100%;
    height: calc(100% - var(--header-menu-bar-height));
    min-width: 0%;
  }
  
  #menu-button-container{
    text-align: right;
    width: 50%;
  }

  .sub-menu{
    top: initial;
    left: 0;
  }
  img{
    display: block;
    width: 100%;
    height: auto;
  }
  
  .body-text{
    max-width: 100%;
    padding: 1em;
  }
  
  .sb-container{
    flex-direction: column;
  }
  
  .sb-listing{
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 0;
    border-radius: 0px;
    box-shadow: none;
    width: 100%;
  }
  
  .flex-column{
    flex-direction: column;
  }

  .flex-column .two-column, .column-66, .column{
    width: 100%;
    margin: 0;
  }
  
  .navigation-menu, .menu-item, .sub-menu, .menu-item.has-sub-menu{
    width: 100%;
  }
  
  .menu-item{
    font-size: 1em;
  }
  .menu-item{
    margin: 0.5em 0 0.5em 0;
    display: block;
  }
  .sub-menu-item{
    display: block;
  }
  
  .sub-menu-item a {
    padding: 1em;
  }
  .menu-item-link-wrapper, .menu-item-background-image, .menu-item-expand-icon{
    display: block;
    height: 100%;
    vertical-align: middle;
  }

  .menu-item-link-wrapper{
    width: 60%;
  }
  
  .menu-item.has-sub-menu .menu-item-expand-icon::before, .sub-menu-toggle:not(checked) + .menu-item-label-wrapper .menu-item-expand-icon::before{
    content: "expand_more";
  }

  .sub-menu-toggle:checked + .menu-item-label-wrapper .menu-item-expand-icon::before, .menu-item.has-sub-menu:focus .menu-item-expand-icon::before{
    content: "expand_less";
  }
  
  .hero-image{
    min-height: 320px;
  }
  
  #post-comment{
    max-width: 100%;
  }
  
  #blog-list{
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  #blog-list h2{
    font-size: 1.5em;
  }
  
  #blog-list li {
    font-size: 1em;
  }
  .flex-column.reverse-on-portrait{
    flex-direction: column-reverse;
  }
}
