/* epilogue-300 - latin */
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 300;
  src:
    local(""),
    url("fonts/epilogue-300.woff2") format("woff2"),
    url("fonts/epilogue-300.woff") format("woff");
}
/* epilogue-700 - latin */
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 700;
  src:
    local(""),
    url("fonts/epilogue-700.woff2") format("woff2"),
    url("fonts/epilogue-700.woff") format("woff");
}
/* epilogue-800 - latin */
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 800;
  src:
    local(""),
    url("fonts/epilogue-800.woff2") format("woff2"),
    url("fonts/epilogue-800.woff") format("woff");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Epilogue",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 300;
  text-rendering: optimizeLegibility;
  user-select: none;
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 3px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.lock {
  overflow: hidden;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 30px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1366px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1440px;
  }
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

ul {
  list-style: none;
  display: flex;
}

ul li a {
  color: #000;
  font-size: 20px;
  font-weight: 800;
  margin: 0 8px;
  padding: 6px;
  text-decoration: none;
}

ul li a:hover {
  font-style: italic;
}

main {
  padding-top: 15vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page-title {
  font-size: 28px;
  font-size: clamp(28px, 9vw, 128px);
  line-height: 1.15;
  margin-bottom: 4rem;
}

.page-title-home {
  margin-bottom: 20px;
}

.page-summary {
  font-size: 18px;
  font-size: clamp(18px, 3vw, 32px);
  line-height: 1.65;
  margin-bottom: 3rem;
  padding-right: 15vw;
}

.page-summary a {
  color: #000;
  display: inline-block;
  padding: 0 4px;
  position: relative;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .page-summary a {
    padding: 0 8px;
  }
}

.page-summary a::after {
  background-color: rgba(108, 189, 255, 0.7);
  content: " ";
  position: absolute;
  bottom: 8px;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  transform: scaleY(0.25);
  transition: transform 399ms ease;
  transform-origin: bottom;
}

.page-summary a:hover::after {
  transform: translateY(6px);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  position: relative;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.bg-graphic {
  position: fixed;
  top: 15%;
  right: -50px;
  z-index: 0;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .bg-graphic {
    top: -75px;
  }
}

footer {
  font-size: 13px;
  padding-top: 60px;
  padding-bottom: 30px;
}

footer p {
  border-top: 1px solid #aaa;
  padding-top: 30px;
}

.sheet {
  background-color: #eee;
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0;
  overflow-y: scroll;
  padding-top: 10vh;
  padding-bottom: 5vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  transform: translateY(100%);
  transition:
    opacity 399ms ease,
    transform 399ms ease;
}

@media (min-width: 768px) {
  .sheet {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }
}

.lightbox {
  background-color: rgba(0, 0, 0, 0.75);
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0;
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -5;
}

.lightbox-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

button {
  border-width: 1px;
  font: inherit;
  line-height: normal;
}

.close {
  cursor: pointer;
  position: fixed;
  top: 25px;
  right: 30px;
  font-size: 2rem;
  border-radius: 100px;
  width: 50px;
  height: 50px;
  transition:
    background-color 399ms ease,
    border-color 399ms ease,
    color 399ms ease;
}

.close:hover {
  color: #fff;
  border-color: cyan;
  background-color: cyan;
}

.close * {
  pointer-events: none;
}

.form-container {
  max-width: 480px;
}

h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.form-summary {
  border-bottom: 1px solid currentColor;
  margin-bottom: 28px;
  padding-bottom: 18px;
}

fieldset {
  border: none;
  margin-bottom: 18px;
}

label,
input,
textarea {
  display: block;
}

label {
  margin-bottom: 8px;
}

input,
textarea {
  background-color: transparent;
  border: 1px solid currentColor;
  color: inherit;
  font: inherit;
  font-size: 21px;
  padding: 6px;
  width: 100%;
}

textarea {
  min-height: 115px;
}

.spacer {
  display: block;
  background-color: currentColor;
  border: none;
  height: 2px;
  margin: 20px 0;
}

.btn {
  border: none;
  background-color: #000;
  color: #fff;
  font-weight: 800;
  padding: 16px 20px;
  text-align: center;
  text-decoration: none;
}

.btn-block {
  display: block;
}

.btn-contact {
  margin-bottom: 12px;
  border-radius: 6px;
}

.open,
.open * {
  transform: none;
  opacity: 1;
}

.lightbox.open {
  z-index: 2;
}

img,
iframe {
  border: none;
  max-width: 100%;
}

h3 {
  border-bottom: 2px solid currentColor;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.grid {
  display: grid;
  gap: 2rem;
  min-height: 50vh;
  position: relative;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3-sm {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-2-lg {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.link-tile {
  border-radius: 8px;
  background-color: #eee;
  color: #555;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.flickr::before {
  border-radius: 12px;
  content: "LOADING...";
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #555;
  opacity: 0.01;
  z-index: -1;
  animation: loading infinite alternate 200ms linear;
  transition: opacity 199ms ease;
}

.flickr.loaded::before {
  opacity: 0;
  animation: none;
}

@keyframes loading {
  0% {
    opacity: 0.01;
  }
  100% {
    opacity: 0.1;
  }
}

.flickr-item {
  animation: popin 699ms 1 ease forwards;
  display: block;
  min-width: 100%;
  pointer-events: none;
  transform-origin: center bottom;
}

@keyframes popin {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.flickr-item:last-child {
  margin-bottom: 0;
}

.flickr-item-link {
  border-radius: 12px;
  color: inherit;
  display: block;
  pointer-events: all;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flickr-item-media {
  image-rendering: -webkit-optimize-contrast;
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  pointer-events: none;
}

.iframe {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
}

.iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

@media (any-hover: hover) {
  .flickr-item-link {
    transition: opacity 399ms ease;
  }

  .flickr:hover .flickr-item-link {
    opacity: 0.3;
  }

  .flickr:hover .flickr-item-link:hover {
    opacity: 1;
  }
}

/* Dark Mode */

@media (prefers-color-scheme: dark) {
  html,
  body,
  .sheet {
    background-color: #111;
    color: #eee;
  }

  ul li a,
  .page-summary a {
    color: #eee;
  }

  .bg-graphic {
    filter: invert();
  }
}
