/*
 * Resets, global styles, ...
 */
* {
  box-sizing: border-box; }

html {
  font-size: 1.1em; }

body {
  padding: 2rem;
  margin: 0;
  background-color: #202020;
  color: #f9f9f9;
  line-height: 1.5;
  font-family: ff-real-text-pro-2, sans-serif;
  font-weight: 300;
  font-style: normal; }

h1,
h2,
h3,
h4 {
  font-family: questa-grande;
  font-weight: 700;
  font-style: italic;
  font-style: normal; }

h1 {
  font-size: 2.4rem;
  margin: 0;
  line-height: 1; }
  h1 a {
    font-weight: 700; }

h1.homepage {
  font-size: 3.6rem;
  line-height: 1.25; }

h2 {
  font-weight: 700;
  font-size: 2.4em;
  margin-top: 0; }

a {
  color: #f9f9f9;
  font-weight: 400;
  text-decoration: none;
  border-bottom: solid 1px #04ded3; }
  a:hover, a:focus {
    background-color: #005f64; }

/*
  Layout, structure
*/
nav {
  margin-top: 2rem; }
  nav.homepage {
    margin-bottom: 2rem; }
  nav ul {
    margin: 0;
    padding: 0;
    list-style: none; }
    nav ul li {
      display: inline-block;
      margin: 0;
      padding: 0; }

a.button-link {
  display: inline-block;
  background-color: #f9f9f9;
  color: #202020;
  padding: 5px 8px;
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 10px;
  font-family: aglet-mono, courier, monospace;
  font-weight: 300;
  font-style: normal;
  border: none; }

a:hover.button-link {
  background-color: #d1f4f2; }

a:focus.button-link {
  outline: 2px solid #d1f4f2;
  outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr 1fr; }
  .container .col-w1 {
    grid-column-start: span 1; }
  .container .col-w2 {
    grid-column-start: span 2; }
  .container .col-w3 {
    grid-column-start: span 3; }

.focusable-container:focus {
  outline: solid 1px #04ded3;
  outline-offset: 2px; }

.row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch; }
  .row .col-w1,
  .row .col-w2,
  .row .col-w3 {
    flex-shrink: 0;
    padding: 0 1rem; }
  .row .col-w1 {
    flex-basis: 433px;
    flex-shrink: 1; }
  .row .col-w2 {
    flex-basis: 100%;
    flex-shrink: 3; }
  .row .col-w3 {
    flex-basis: 100%; }

.valign-center {
  display: flex;
  flex-direction: column;
  justify-content: center; }

/*
  Paintings
*/
dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 0.75em; }
  dl dt {
    display: inline-block;
    flex-grow: 1;
    font-weight: 400; }
    dl dt::after {
      content: ':'; }
  dl dd {
    display: inline-block;
    margin: 0;
    flex-basis: 100%;
    flex-shrink: 1;
    font-weight: 300;
    font-family: aglet-mono, courier, monospace; }

article.painting img {
  margin-bottom: 0.5rem; }

article.painting a.image-link {
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  border: none;
  background-color: transparent;
  padding: 0.5rem;
  margin: -0.5rem; }
  article.painting a.image-link:hover {
    background-color: #005f64; }
  article.painting a.image-link h2 {
    display: inline-block;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 0.5em;
    border-bottom: solid 1px #04ded3; }
  article.painting a.image-link:hover h2, article.painting a.image-link:focus h2 {
    background-color: #005f64; }

article.painting .read-more {
  text-align: right; }

article.painting .summary {
  margin: 1rem 0; }

/*
  Notices
  White box for emphasis, news, etc.
*/
.notice {
  background-color: #f9f9f9;
  color: #202020;
  padding: 20px;
  margin: 40px 0; }
  .notice h2 {
    font-size: 1.4em; }

.notice > :first-child {
  margin-top: 0; }

.notice > :last-child {
  margin-bottom: 0; }

.notice a {
  color: #202020;
  text-decoration: none;
  border-bottom: solid 1px #11b9b0; }
  .notice a:hover, .notice a:focus {
    background-color: #d1f4f2; }

/*
 *	Images
 */
.fluid-img {
  width: 100%;
  height: auto;
  display: block; }

/**
 * Gallery
 * List view
 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 2rem;
  row-gap: 2rem;
  margin: -0.5rem; }
  .gallery .item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border: none;
    padding: 0.5rem; }
    .gallery .item .image-container {
      flex-grow: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-bottom: 0.25em; }
      .gallery .item .image-container img.landscape {
        width: 100%;
        height: auto; }
      .gallery .item .image-container img.portrait {
        width: auto;
        height: 340px; }
    .gallery .item .title {
      border-bottom: solid 1px #11b9b0;
      font-size: 1.25rem; }

/*
 * Gallery
 * Single image
 */
.gallery-details-page .gallery-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 2rem;
  width: 100%;
  align-items: end;
  gap: 2rem 1rem; }
  .gallery-details-page .gallery-nav .prev {
    text-align: left;
    grid-column: 1;
    grid-row: 1; }
  .gallery-details-page .gallery-nav h2 {
    margin: 0;
    text-align: center;
    grid-column: 2;
    grid-row: 1;
    align-self: center; }
  .gallery-details-page .gallery-nav .next {
    text-align: right;
    grid-column: 3;
    grid-row: 1; }
  .gallery-details-page .gallery-nav a {
    display: inline-block; }
    .gallery-details-page .gallery-nav a .label {
      font-weight: 300; }
    .gallery-details-page .gallery-nav a .title {
      font-size: 1.25em; }

.gallery-details-page .gallery-details-img-container {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  touch-action: none; }

.gallery-details-page .gallery-details-page-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: calc(95vh - 200px);
  object-fit: contain;
  object-position: 50% 50%; }

.gallery-details-page .details {
  margin-top: 2rem;
  margin-bottom: 2rem; }

/*
 *	Media queries
 */
@media screen and (max-width: 1300px) {
  h1.homepage {
    font-size: 4.5vw; } }

@media screen and (max-width: 1000px) {
  h1.homepage {
    font-size: 6.75vw; }
  .container {
    grid-template-columns: 1fr 1fr; }
    .container .col-w2 {
      grid-column-start: span 1; }
    .container .col-w3 {
      grid-column-start: span 2; }
  .gallery-details-page .gallery-nav {
    grid-template-columns: auto auto;
    font-size: 0.8rem; }
    .gallery-details-page .gallery-nav h2 {
      grid-column: 1 / 3;
      grid-row: 1;
      text-align: left; }
    .gallery-details-page .gallery-nav .prev {
      grid-column: 1;
      grid-row: 2; }
    .gallery-details-page .gallery-nav .next {
      grid-column: 2;
      grid-row: 2; } }

@media screen and (max-width: 800px) {
  body {
    padding: 1rem 0.5rem; }
  h1.homepage {
    font-size: 2.4rem; }
  .row {
    flex-wrap: wrap; }
  .row .col-w1,
  .row .col-w2,
  .row .col-w3 {
    flex-basis: 100%; }
  .container {
    grid-template-columns: 1fr; }
    .container .col-w2 {
      grid-column-start: span 1; }
    .container .col-w3 {
      grid-column-start: span 1; } }
