body {
  min-height: 100vh;
  max-width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

nav {
  flex-grow: 0;
  flex-shrink: 0;
  margin: 1em;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin: 1em;
  max-width: 960px;
}

@media (max-device-width: 480px), (max-width: 960px) {
  body {
    flex-direction: column;
    text-size-adjust: 135%;
  }
}

/* NAV */

.titles {
  margin-bottom: 16px;
}
a.titles:hover {
  text-decoration: none;
}
.titles h1, .titles h2 {
  margin: 0;
  line-height: 1.0;
}
.titles h1 {
  font-size: 24pt;
}
.titles h2 {
  font-size: 18pt;
}

nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

nav-menu #nav-toggle {
  display: none;
  font-size: 24pt;
  margin-right: 0.2em;
  color: var(--title-color);
  cursor: pointer;
}

nav-menu .hideable {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

nav-menu a {
  font-family: "Barlow Condensed";
  font-size: 18pt;
}

nav-menu .hideable>a {
  color: var(--title-color);
  font-size: 22pt;
  font-weight: bold;
}

.artist-nav {
  display: flex;
  flex-direction: column;
  margin-left: 1em;
  gap: 0.2em;
}

@media (max-device-width: 480px), (max-width: 960px) {
  nav-menu .header {
    display: flex;
    flex-direction: row;
  }
  nav-menu #nav-toggle {
    display: inline-block;
  }
  nav-menu .hideable {
    position: relative;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background-color: white;
    border-bottom: solid #333 thin;
    padding-bottom: 1em;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  }
  nav-menu.open .hideable {
    max-height: 200vh;
    opacity: 1;
  }
}

/* MAIN */

art-carousel {
  position: relative;
  background-color: lightblue;
}

.glide {
}
.glide img {
  width: 400px;
}
.glide .caption {
  color: white;
  filter: drop-shadow(0 0 2px black);
  position: absolute;
  bottom: 4px;
}

/* ARTIST HEADSHOT AND BIO */

section#bio {
  display: flex;
  
      flex-direction: row;
    align-items: start;
  gap: 1em;
  margin-bottom: 1em;
  font-family: "Open Sans", sans-serif;
  font-size: 12pt;
  line-height: 1.4;
}
section#bio img.headshot {
  max-height: 35vh;
  object-fit: cover;
  max-width: calc(min(50% - 0.5em, 300px));
  align-self: stretch;
}
section#bio h1 {
  font-family: "Barlow Condensed";
  font-size: 36pt;
  line-height: 28pt;
  margin-top: 0;
  margin-bottom: 0;
}
section#bio h2 {
  font-family: "Barlow Condensed";
  font-size: 24pt;
  line-height: 28pt;
  margin-top: 0;
  margin-bottom: 0;
  color: #444;
}

section#bio .studio-info {
  font-family: "Barlow Condensed";
  font-size: 16pt;
  line-height: 28pt;
  margin-top: 0.5em;
}
section#bio .studio-info .studio-name {
  font-weight: bold;
  font-size: 20pt;
}

section#bio p {
  text-align: justify;
}

section#bio .links {
  font-size: 14pt;
  line-height: 20pt;
}
section#bio .links a {
  color: darkslategray;
}
section#bio .links a:hover {
  color: var(--title-color);
}

@media (max-device-width: 480px), (max-width: 960px) {
  section#bio {
    flex-direction: column;
    align-items: center;
  }
  section#bio img.headshot {
    max-width: unset;
    align-self: unset;
  }
}

/* ARTIST GALLERY */

section#gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-gap: 1em;
}

section#gallery.three-col {
  grid-template-columns: repeat(3, auto);
}

section#gallery.six-col {
  grid-template-columns: repeat(6, auto);
}

section#gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

section#gallery img.cover {
  object-fit: cover;
}

section#gallery img.two-col {
  grid-column-end: span 2;
}

section#gallery img.three-col {
  grid-column-end: span 3;
}

section#gallery img.four-col {
  grid-column-end: span 4;
}

section#gallery img.six-col {
  grid-column-end: span 6;
}

@media (max-device-width: 480px), (max-width: 960px) {
  section#gallery {
    grid-template-columns: repeat(1, auto) !important;
  }

  section#gallery img {
    grid-column-end: unset !important;
  }
}