@import url('https://fonts.googleapis.com/css2?family=Alice&display=swap');

:root {
  --masonry-brick-width: 183px;
  --masonry-columns: 2;
  --gallery-column-width: 182px;
  --img-width: 180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Alice', serif;
  font-weight: 400;
}

html, body {
  background: #1c1c1c;
  color: azure;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='10' width='10'%3E%3Ccircle cx='5' cy='5' r='4' stroke-width='0'%3E%3C/circle%3E%3C/svg%3E"), auto;
  text-align: center;
  font-size: calc(8px + 2vw);
}

a {
  color: burlywood;
  text-decoration: none;
  cursor: inherit;
}

.cursor {
  position: fixed;
  top: 50%;
  left: -100px;
  width: 30px;
  height: 30px;
  background: #f7f8fa;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: 150ms ease-out;
  mix-blend-mode: difference;
}

header {
  display: flex; 
  justify-content: space-between;
  align-items: center;
  width: calc(var(--masonry-brick-width) * var(--masonry-columns));
  margin:2rem auto;
}

footer {
  width: calc(var(--masonry-brick-width) * var(--masonry-columns));
  margin: 2rem auto;
  text-align: left;
  opacity: 0.1;
  font-size: 50%;
}

header nav a {
  margin-right: 1rem;
}

#gallery {
  column-gap: 2px;
  column-fill: inherit;
  column-width: var(--gallery-column-width);
  line-height: 0;
  margin-top: 1.5rem;
}

#gallery img {
  margin: 2px 0;
}

h1, h1 a, nav, h2 {
  font-size: 1rem;
}

h2 {
  line-height: 1.2;
  width: calc(var(--masonry-brick-width) * var(--masonry-columns));
  margin: 2rem auto;
  text-align: left;
}

h4 {
  margin-top: 2rem 0 0;
  font-weight: bold;
}

ul li {
  list-style-position: inside;
}

p {
  text-align: left;
  margin:0.25rem 0 0;
}

article {
  margin:2rem 0 0;
}

article p {
  margin:1rem 0;
}

section {
  margin: 0 auto;
  text-align: left;
  width: calc(var(--masonry-brick-width) * var(--masonry-columns));
}

section img {
  width: var(--img-width);
}

@media only screen and (orientation: landscape)  {
  :root {
    --masonry-brick-width: 184px;
    --masonry-columns: 3;
    --gallery-column-width: 180px;
    --img-width: 180px;
  }
}

@media only screen and (min-width: 762px) {
  :root {
    --masonry-brick-width: 254px;
    --masonry-columns: 3;
    --gallery-column-width: 250px;
    --img-width: 250px;
  }
}

@media only screen and (min-width: 1024px) {
  :root {
    --masonry-columns: 4;
  }

  h2 {
    max-width: 72%;
  }
}

@media only screen and (min-width: 1282px) {
  :root {
    --masonry-columns: 5;
  }
}

@media only screen and (min-width: 1530px) {
  :root {
    --masonry-columns: 6;
  }
}
