@font-face {
  font-family: Coustard;
  src: url('../static/Coustard-Regular.ttf')
}

@font-face {
  font-family: "Noto Serif";
  src: url('../static/NotoSerif-Regular.ttf')
}

@font-face {
  font-family: Slabo;
  src: url('../static/Slabo27px-Regular.ttf');
}

:root {
  --grey-zero: #FFF2DA;
  --grey-one:  #DCDCDC;
  --grey-two: #AEAEBE;
  --grey-three: #8B8B8B;
  --grey-four: #626262;
  --grey-five: #3A3A3A;
  --color-bg: #FFF;
  --color-text: var(--grey-five);
  --color-text-muted: var(--grey-three);
  --color-text-link: var(--grey-five);
  --font-body: "Noto Serif", serif;
  --font-heading: "Coustard", serif;

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 100;
  color: var(--color-text);
}

h1 {
  font-size: 1rem;
}

h2 {
  font-size: 0.8rem;
}

h3 {
  font-size: 0.6rem;
}

a {
  color: var(--color-text-link);
  text-decoration: none;
}

a:hover {
  color: var(--grey-three);
}

header {
  padding: 1rem;
}

main {
  color: var(--color-text-muted);
}

footer {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

img {
  display: block;
  max-width: 100%;
}

@media screen and (width >= 505px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  footer {
    font-size: 1rem;
  }
}

.hide-link a:link{
  color: var(--color-text);
}

.headline {
  text-align: center;
}

/* Index */

.index-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.index-left {
  grid-column: 1 / 13;
  grid-row: 1;
}

.index-right {
  grid-column: 1 / 13;
  grid-row: 2;
}

.index-figure {
  color: #fff;
  position: relative;
}

@media screen and (width >= 505px) {
  .index-left {
    grid-column: 1 / 8;
    grid-row: 1 / 8;
  }

  .index-right {
    grid-column: 6 / 13;
    grid-row: 6 / 13;
  }

  .index-figure {
    color: rgba(255 255 255 / 0%);
  }

  .index-figure:hover {
    color: #fff;
  }
}

.index-right img {
  border: 1px solid #fff;
}

.index-figcaption {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 1.2rem;
}

/* Photography and Illustration Links */

.links-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.links-link-1 {
  grid-column: 1 / 13;
  grid-row: 1;
}

.links-link-2 {
  grid-column: 1 / 13;
  grid-row: 2;
}

.links-link-3 {
  grid-column: 1 / 13;
  grid-row: 3;
}

.links-link-4 {
  grid-column: 1 / 13;
  grid-row: 4;
}

@media screen and (width >= 505px) {
  .links-link-1 {
    grid-column: 1 / 8;
    grid-row: 1 / 8;
  }

  .links-link-2 {
    grid-column: 6 / 13;
    grid-row: 7 / 12;
  }

  .links-link-3 {
    grid-column: 1 / 8;
    grid-row: 11 / 17;
  }

  .links-link-4 {
    grid-column: 5 / 13;
    grid-row: 16 / 22;
  }

  .links-img:hover {
    margin-left: 20px;
  }
}

/* Galleries */

.gallery figure {
  margin-bottom: 80px;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
}

.gallery .intentionally-blank {
  display: none;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 4px 4px rgba(0 0 0 / 62%));
}

@media screen and (width >= 505px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
  }

  .gallery figure {
    margin: 10px;
  }

  .gallery .intentionally-blank {
    display: block;
  }

  .gallery img {
    filter: none;
  }

  .gallery figure:hover {
    cursor: pointer;
  }
}

.lightbox {
  position: fixed;
  top: 10dvh;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  padding: 3%;
  height: 86%;
}

.lightbox-img {
  object-fit: contain;
  box-shadow: 7px 12px 6px rgba(0 0 0 / 62%);
  height: 100%;
}

.lightbox-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}