/*
 * Theme Base: Cozy
 * Theme Base Version: 1.5.0
 * Author(s): Michelle Byrnes, Jewon Woo
 * Description: Custom CSS for Ohio Black Press in the 19th Century.
 *
 * CONTENTS
 *    Header Styling
 *    General Page Styling
 *    Custom Item Showcase Block Styling
 *    Home Page Styling
 *    Item Page Styling
 *    Newspapers Page Styling
 *    Contact Page Styling
**/


/*
 * Header Styling [ Base ]
**/
header {
  display: grid;
  grid-template-areas: "logo logo" "toggle search" "menu menu";
  grid-row-gap: 10px;
  padding: 24px;
  padding-bottom:0;
}
header h1 {
  margin: auto;
  font-size: 32px;
  line-height: 32px;
  width: 100%;
  grid-area: logo;
}
header .site-title {
  display: flex;
  flex-direction: column;
}
header .site-title img {
  max-width: 150px;
  margin: auto;
  margin-bottom: 12px;
  }
header .site-title::after {
  margin: auto;
  content: "The Ohio Black Press \a" "in the 19th Century";
  white-space: pre;
}
#search-form input {
  max-width: 150px;
}
#search-form {
  height: 32px;
  margin: 0;
  justify-content: end;
  width: fit-content;
  justify-self: end;
  grid-area: search;
}
#search-form button[type="submit"]::before {
  line-height: 32px;
}
#search-form button, #menu-button {
  width: 32px;
  height: 32px;
  font-size: 16px;
}
#oc-trigger {
  grid-area: toggle;
}
#menu {
  grid-area: menu;
}
header nav {
  padding: 0;
  font-size: 16px;
  line-height: 16px;
}
header nav > ul > li a:hover {
  border-bottom: solid white 2px;
}
.oc-menu {
  border-top: #ac3b61 solid 3px;
  width: 100%;
  position: static;
}
.oc-push.oc-menu-open .oc-push.oc-menu {
  overflow-y: hidden;
}
.oc-push.oc-menu {
  transform: translate3d(0, 0, 0);
}
.oc-push.oc-menu-open .oc-pusher {
  transform: translate3d(0, 0, 0);
}
#menu-button {
  display: none;
}
#menu ul li > ul {
  display: none;
}
header nav ul li {
  display: inline-block;
}
.oc-menu {
  visibility: visible;
}
header nav > ul > li {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
header nav a:link, header nav a:visited {
color: white;
}
header nav > ul > li a {
color: white;
}
header nav ul {
display: flex;
justify-content: space-between;
}
/*
 * Header Styling [ Desktop ]
**/
@media (min-width: 900px) {
  header {
    grid-template-areas: "logo logo toggle search" "menu menu menu menu";
  }
  header .site-title {
    flex-direction: row;
  }
  header .site-title img {
    margin-left: 0;
  }
}


/*
 * General Page Styling [ Base ]
**/
body {
  font-family: 'Bitter', serif;
}
nav.breadcrumbs {
  background-color: #fff;
}
.blocks h1 {
  background-color: #ac3b610d;
  color: #240b13;
}
.blocks h2 {
  font-size: 16px;
  line-height: 16px;
  background-color: #ac3b610d;
  color: #240b13;
  padding: 12px 0;
}
.blocks blockquote {
  border: none;
  background-color: #240b1305;
  margin: 0;
  padding: 24px;
}
.blocks img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
}
.blocks .obp-element-selector.obp-data-viz + .center.large.file img {
  max-width: 100%;
  max-height: 100%;
}
.blocks iframe {
  border: none;
}
.blocks .file {
  border: none;
}
.left .item.resource > h3,
.right .item.resource > h3,
.center .item.resource > h3 {
 font-size: 16px;
}
.obp-item-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.obp-footer-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.obp-footer-content-wrapper img {
  align-self: center;
  margin-top: 12px;
}
/*
 * General Page Styling [ Desktop ]
**/
@media (min-width: 600px) {
  .obp-item-gallery {
    flex-wrap: nowrap;
  }
  .obp-item-gallery .center.large.file:first-of-type {
    margin-right: 2rem;
  }
}
@media (min-width: 900px) {
  .blocks img {
    max-width: 500px;
  }
  .obp-footer-content-wrapper {
    justify-content: space-between;
  }
}


/*
 * Custom Item Showcase Block Styling [ Base ]
**/
.obp-item-showcase {
  padding: 24px;
  background-color: #240b1305;
}
.obp-item-showcase .item-showcase {
  margin: 0;
  padding: 0;
  border-top: none;
  border-bottom: none;
  text-align: left;
}
.obp-item-showcase .item-showcase .resource.item {
  width: 100%;
  padding: 0;
  margin: 0;
  margin-bottom: 2rem;
  display: grid;
  grid-template-areas: "img" "title" "caption";
}
.obp-item-showcase .item-showcase .resource.item img {
  max-width: 350px;
  max-height: 200px;
}
.obp-item-showcase .item-showcase .resource.item > a {
  grid-area: img;
  display: flex;
  justify-content: center;
}
.obp-item-showcase .item-showcase .resource.item h3 {
  grid-area: title;
  font-size: 16px;
}
.obp-item-showcase .item-showcase .resource.item .caption {
  grid-area: caption;
}
.obp-item-showcase .item-showcase .resource.item h3, .obp-item-showcase .item-showcase .resource.item .caption {
  max-width: 450px;
}
/*
 * Custom Item Showcase Block Styling [ Desktop ]
**/
@media (min-width: 900px) {
  .obp-item-showcase .item-showcase .resource.item {
    grid-template-areas: "title img" "caption img";
  }
  .obp-item-showcase .item-showcase .resource.item > a {
    justify-content: end;
  }
}


/*
 * Home Page Styling [ Base ]
**/
div.obp-homepage-nav {
  width: fit-content;
  display: inline-block;
}
div.obp-homepage-nav.obp-nav-header {
  position: absolute;
  margin-left: -215px;
  margin-top: 195px;
}
div.obp-homepage-nav {
  padding-right: 15px;
}
div.obp-nav-img {
  margin-left: 15%;
}
div.obp-homepage-nav.obp-nav-img {
  padding-bottom: 20px;
}
div.obp-nav-img > div.asset > a > span.link-title {
  display: none;
}
.obp-homepage-nav.obp-nav-header > p {
  margin-left: 65px;
}
#newspapers {
  margin-left: 35px;
}
/*
 * Home Page Styling [ Desktop ]
**/
@media (min-width: 900px) {
  div.obp-nav-img ~ div.obp-homepage-nav.obp-nav-img {
    margin-left: 0;
  }
}


/*
 * Item Page Styling [ Base ]
**/
h3 + div.media-embeds > div.media-render:first-child {
  display: block;
}
h3 + div.media-embeds > div.media-render {
  display: none;
}


/*
 * Newspapers Page Styling [ Base ]
**/
.obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list li.item.resource {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  padding-bottom: 24px;
}
.obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list li.item.resource::after {
    content: "\007C";
    font-size: 32px;
    font-weight: bold;
    color: #e6e5e5;
}
.obp-selector.obp-newspapers-timeline + .preview-block h2 {
  background-color: unset;
  text-align: center;
}
/*
 * Newspapers Page Styling [ Desktop ]
**/
@media (min-width: 600px) {
  .obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list li.item.resource {
    padding-bottom: 0;
  }
  .obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list li.item.resource::after {
    content: none;
  }
  .obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list li.item.resource:nth-child(2n+1)::after {
    content: "\007C";
  }
  .obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list li.item.resource:nth-child(2n+1) {
    width: 50%;
  }
  .obp-selector.obp-newspapers-timeline + .preview-block ul.resource-list li.item.resource:nth-child(2n) {
    width: 40%;
  }
}


/*
 * Contact Page Styling [ Base ]
**/
.blocks .obp-selector.obp-contact-form + .contact-us-block {
  background-color: #240b1305;
  padding: 24px;
}
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form
input#submit {
  margin-left: 0;
}
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form 
.field-meta,
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form
.inputs,
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form
.inputs input,
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form
.inputs textarea {
  width: 100%;
}
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form 
.field-meta {
  padding: 0;
  padding-bottom: 1rem;
  text-align: left;
  font-size: 24px;
}
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form
.inputs input,
.blocks .obp-selector.obp-contact-form + .contact-us-block > form.contact-form
.inputs textarea {
  border: #240b130d solid 3px;
}
