/* Body */

html {
  scroll-behavior: smooth;
}

body {
  padding: 0 1rem;
}

/* Links */
a:visited {
  color: black;
}

a {
  color: black;
  display: inline-block;
  text-decoration-thickness: 1px;
}

/* Header Logo */

.site-branding h1 a {
  text-decoration: none;
}

/* Navigation */

ul#primary-menu {
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 2rem;
  padding: 0;
  position: sticky;
}

ul#primary-menu a {
  text-decoration: none;
}

ul#primary-menu a[aria-current="page"],
ul#primary-menu a:hover {
  text-decoration: underline;
}

nav#site-navigation {
  position: sticky;
  top: 0;
  z-index: 1000; /* keeps it above other elements */
  background: white;
  padding: 10px 0;
}

@media (max-width: 833px) {
  nav.desktop {
    display: none;
  }
}

/* Layout */

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

article,
nav {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content {
  max-width: 900px;
  margin: 0 auto;
}

.artists {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid black;
}

.artist,
.news-item,
.exhibition,
.resource {
  margin-bottom: 3rem;
  position: relative;
}

.artist-content,
.exhibition-content {
  margin-bottom: 6rem;
}

.artist-category h2 {
  margin: 0;
}

/* Figures */

figure {
  margin: 3rem auto;
  max-width: 700px;
}

figcaption {
  margin-top: 0.25rem;
  text-align: center;
}

figure img.portrait {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

figure a {
  margin: 0 auto;
  display: block !important;
}

figcaption a {
  display: inline !important;
}

figure img {
  max-width: 100%;
}

.wp-block-image img {
  width: 100%;
  height: auto;
}

@media (min-width: 600px) {
  .wp-block-image img.portrait,
  .has-post-thumbnail figure .portrait {
    max-width: 450px;
  }
}

/* Home Page */

/* Footer */
Footer {
  display: block;
  height: 100px;
}

/* About Page: Artists */

figure.wp-block-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Edit this Post link */

.edit-link {
  text-align: center;
  position: absolute;
  top: 0;
  right: left;
}

/* buttons */

.wp-block-button__link,
.mc_signup_submit_button {
  color: #fff;
  background-color: #32373c;
  border-radius: 5px;
  box-shadow: none;
  text-decoration: none;
  padding: 5px 10px !important;
  font-size: 1rem;

  border-radius: 5px;
  background-image: -moz-linear-gradient(
    center bottom,
    rgb(207, 207, 207) 16%,
    rgb(252, 252, 252) 79%
  );
  background-image: linear-gradient(
    to top,
    rgb(207, 207, 207) 16%,
    rgb(252, 252, 252) 79%
  );
  border: 1px solid #000;
  color: black;
  text-decoration: none;
}

/* Resources Page */

/* Youtube embeds */

.wp-block-embed__wrapper iframe {
  width: 100%;
}

.resources-toc {
  margin-bottom: 3rem;
}

.resource {
  scroll-margin-top: 50px;
}

.resources-toc ul {
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

.resources-toc ul li {
  text-align: center;
  list-style: none;
  margin-bottom: 0.5rem;
}

article.resource ul {
  padding: 0;
}

article.resource ul li {
  text-align: center;
  list-style: none;
  margin-bottom: 0.5rem;
}

.paypal-button {
  display: block;
  margin: 0 auto;
}

.mc_input {
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

.mc_signup_submit_button {
  width: auto !important;
  padding: 0;
}

.mc_var_label {
  display: none !important;
}

.mc_merge_var {
  margin-bottom: 0 !important;
}

/* Mobile Menu */

@media (max-width: 833px) {
  .menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }

  nav#site-navigation {
    position: absolute;
    top: -100vh;
    left: 0;
    z-index: 1000;
    background: white;
    width: 100%;
    height: 100vh;
    padding: 3rem 0;
    opacity: 0;
  }

  ul#primary-menu {
    padding: 3rem;
    height: 80vh;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2rem;
    padding: 0;
    position: sticky;
  }

  nav#site-navigation.open {
    top: 0;
    opacity: 1;
  }
}

@media (min-width: 833px) {
  .mobile {
    display: none;
  }
}

/* Mobile Styles */

@media (max-width: 833px) {
  .artists {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .artist-content,
  .artist,
  .news-item,
  .exhibition,
  .resource,
  .exhibition-content {
    margin-bottom: 2rem !important;
  }

  figure {
    margin: 1.6187rem auto;
  }

  .has-text-align-center {
    text-align: left !important;
  }

  .mc_input {
    max-width: 100%;
  }

  .wp-block-spacer {
    height: 1rem !important;
  }
}

.wp-caption {
  max-width: 100% !important;
  width: auto !important;
}

.wp-caption img {
  width: 100%;
  height: auto;
}

.wp-caption-text {
  max-width: 70ch; /* readable line length */
  margin: 0.5rem auto 0;
  text-align: center;
}
