/*
 Theme Name:   The Anne and Michael Spalter Digital Art Collection
 Theme URI:    http://awakeningstudios.com
 Description:  The Anne and Michael Spalter Digital Art Collection
 Author:       Nathan Selikoff
 Author URI:   http://awakeningstudios.com
 Template:     gridspace
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: black, white, light, dark, one-column, left-sidebar, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, photoblogging
 Text Domain:  gridspace-child
*/

#page {
  max-width: inherit;
}

#site-title {
  font-size: 2.25em;
  font-weight: 700;  
}

#site-description {
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1.5em;
  margin: .5em 0 1em;
  word-wrap: break-word;  
}

h1, h1.page-title, h1.entry-title, h2, h3, h4, h5, h6, .menu-top-menu {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
}

h1.page-title, h1.entry-title {
  line-height: 1.5;
  font-size: 2.25em;
  margin: 0em 0 0;
  padding-bottom: 0.3em;
  text-transform: none;
  font-style: normal;
}

.entry-content a {
  text-decoration: underline;
}

.menu-top-menu a {
  padding: 1px 5px;
}

.entry-meta .left {
  clear: left;
}

.error404 article .entry-content, .search article .entry-content {
  margin: 0;
}

#content-inner,
.content-inner {
  /*float: left;*/
  display: flex;
  flex-flow: row wrap;
  /*justify-content: space-around;*/
}


.vertical .portfolio {
/*    width: 31%;
    margin: 0 1.6% 2em;*/
    width: auto;
    margin: 0 14px 2em;
    float: none;
    flex: 0 1 auto;
}

/*.vertical a.thumb {
  max-width: 100%;
}
*/
/*article .entry-content img {
    max-width: 100%;
    height: auto;
    width: 100%;
}
*/

/* override these to fix for presence of .infinite-loader */
/* set these back to what they would be if the rules didn't apply */
.vertical .portfolios article.portfolio:nth-child(3n) {
    margin-right: 14px;
}
body.horizontal .portfolio:nth-child(2n+2),
body.thumbnail .portfolio:nth-child(2n+2) {
    margin-right: 14px;
}
body.horizontal .portfolio:nth-child(2n+1),
body.thumbnail .portfolio:nth-child(2n+1) {
   clear: none;
   margin-left: 14px;
}
.vertical .portfolio:nth-child(3n+3) {
    margin-right: 14px;
}
.vertical .portfolio:nth-child(3n+1) {
   clear: none;
   margin-left: 14px;
}

/* then use nth-of-type instead of nth-child to avoid .infinite-loader */

/*.vertical .portfolios article.portfolio:nth-of-type(5n) {
    margin-right: 0;
}
body.horizontal .portfolio:nth-of-type(4n+2),
body.thumbnail .portfolio:nth-of-type(4n+2) {
    margin-right: 0;
}
body.horizontal .portfolio:nth-of-type(4n+1),
body.thumbnail .portfolio:nth-of-type(4n+1) {
   clear: both;
   margin-left: 0;
}
.vertical .portfolio:nth-of-type(5n+5) {
    margin-right: 0;
}
.vertical .portfolio:nth-of-type(5n+1) {
   clear: both;
   margin-left: 0;
}
*/

.amsdac-form #branding, .amsdac-form #secondary {
  display: none;
}

.amsdac-form .artworks {
  width: 100%;
  margin-bottom: 1.5em;
}
.amsdac-form .artworks .row div {
  border-top: 1px solid #ccc;
}
.amsdac-form .artworks .row {
  display: flex;
  justify-content: space-between;
  page-break-inside: avoid;
}
.amsdac-form .artworks .row div {
  flex: 1 100%;
  padding: 0.75em;
}
.amsdac-form .artworks .row div:first-child {
  flex: 1 10%;
}
.amsdac-form .artworks .row:nth-of-type(odd) {
  background: rgba(0,0,0,0.05);
  -webkit-print-color-adjust: exact;
}
.amsdac-form .artworks header .row div {
  background: white;
  font-weight: bold;
}

.amsdac-form .artworks p,
.amsdac-form .artworks p img {
  margin: 0;
}

.form-artworks-by-artist {
  /* disabled because it creates an extra blank page at the end */
  /* re-enable this if we start showing more than one artist ie a version of the page that shows all */
  /*page-break-after: always;*/
}

.amsdac-form .artworks .row div.thumbnail {
  flex: 1 25%;  
}
.thumbnail img {
  width: 100%;
  height: 100%;
}

.amsdac-form .aligncenter {
  margin: 0;
}

.amsdac-form .form-toc {
  width: 150px;
  position: absolute;
  top: 0;
  right: 0;
  background: #eee;
  padding: 20px;
  box-shadow: 0px 0px 10px #888;
}

.amsdac-form .form-toc li {
  list-style: none;
}

.amsdac-form .form-toc h3 {
  margin-top: 0;
}

.entry-content header.entry-header {
  margin-top: 0 !important;
}

.grid .portfolio .nohide .entry-text header.entry-header {
  background-color: rgba(0, 0, 0, 0.8);
}

.portfolios article .nohide .entry-title {
  margin-bottom: 0;
}

/* Print Styles */
@media print {
  .amsdac-form .form-toc {
    display: none;
  }
}

.post-type-archive-amsdac_artist .portfolio .entry-meta,
.post-type-archive-amsdac_artist .portfolio .entry-summary{
    display:none !important;
}

.post-type-archive-amsdac_artist .portfolio .entry-title{
    padding:10px !important;
}