:root {
  --main-font-color-rgb: 255, 255, 255;
  --background-color-rgb: 255, 255, 255;

  --background-color: rgb(var(--background-color-rgb));
  --main-font-color: rgb(var(--main-font-color-rgb));
  --main-font-color-light: rgba(var(--main-font-color-rgb), 0.85);
  --main-font-color-lighter: rgba(var(--main-font-color-rgb), 0.5);
  --polaroid-color: color-mix(
    in srgb,
    rgb(var(--background-color-rgb)) 20%,
    #f8f9fa
  );
  --polaroid-text: color-mix(
    in srgb,
    rgb(var(--main-font-color-rgb)) 20%,
    #212529
  );
}

@font-face {
  font-family: Inter;
  src: url(font/Inter-Regular.ttf);
}
@font-face {
  font-family: Inter;
  src: url(font/Inter-Bold.ttf);
  font-weight: 800;
}
html {
  width: 100%;
  background-color: var(--background-color);
}
body,
html {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  overflow: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body {
  color: var(--main-font-color);
  font-family: Inter;
  padding-bottom: env(safe-area-inset-bottom);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem 0.5rem 2rem;
  border-bottom: 3px solid var(--main-font-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  z-index: 1000000;
}

.header h1 {
  margin: 0;
  font-size: 1.2em;
}
h2,
.large {
  font-size: 2.5em;
  font-weight: bolder;
}
h3 {
  font-size: 1.5em;
  font-weight: 400;
  margin-top: 0;
}
h4 {
  font-size: 1.3em;
  font-weight: 400;
  margin-top: 0;
}
p,
li,
.social {
  font-weight: normal;
  font-size: 1.15em;
  margin-top: 0;
  line-height: 1.55;
}
p.small {
  font-size: 1em;
}
a {
  color: var(--main-font-color);
  text-decoration: none;
  border-bottom: var(--main-font-color-lighter) 0.15em solid;
  transition: all 0.2s linear;
}
a:hover {
  border-bottom: var(--main-font-color) 0.15em solid;
}
div.container::-webkit-scrollbar {
  display: none;
}
.image-controls {
  color: var(--main-font-color-light);
  padding-top: 7px;
}
.image-description {
  color: var(--main-font-color-light);
  margin-bottom: 0;
}
div.container {
  margin-left: auto;
  margin-right: auto;
  padding: 0 5em 0 5em;
  max-width: 1000px;
  overflow: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.content {
  background-color: var(--background-color);
  margin-top: 80px;
}
.gallery {
  display: inline-block;
  column-count: 2;
  vertical-align: top;
  rotate: 30%;
  column-gap: 30px;
}
.gallery-item {
  display: inline-block;
  width: 100%;
  margin-top: 0;
  margin-bottom: 100px;
}
.gallery-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}
.gallery img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 19 / 9;
  filter: drop-shadow(0 0 0.5rem var(--background-color));
  border-radius: 3%;
}

.gallery-title {
  margin-top: 12px;
  margin-bottom: 3px;
}
.gallery-subtitle {
  color: var(--main-font-color-light);
  margin-bottom: 5px;
}
.row {
  border-top: 3px solid var(--main-font-color);
  padding-top: 40px;
  margin-top: 60px;
}
.no-border {
  border: none;
}
hr {
  margin-top: 5px;
  margin-bottom: 5px;
  border-top: 3px solid var(--main-font-color);
}
.final-row {
  margin-top: 7vh;
  margin-bottom: 15vh;
}
.social {
  display: flex;
}
.social a {
  border-bottom: none;
}
.social span {
  color: var(--main-font-color);
  padding: 0.5em;
}
.social span:hover {
  color: var(--main-font-color-lighter);
}
ul.social {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  font-size: 1.4em;
}
ul.social-bottom {
  font-size: 2em;
  justify-content: left;
}
ul.social-bottom span {
  padding-left: 0;
  padding-right: 2rem;
  padding-top: 0;
}
ul.social li {
  list-style: none;
}
.social a:hover {
  color: var(--main-font-color-light);
}

.about-me {
  display: none;
}
::-moz-selection {
  color: var(--main-font-color);
  background: rgba(0, 0, 0, 0.2);
}
::selection {
  color: var(--main-font-color);
  background: rgba(0, 0, 0, 0.2);
}

/* Gallery */
#image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  width: 100%;
  margin: 0 auto 0 auto;
  padding: 30vh 0 30vh 0;
  overflow: clip;
}

#image-gallery a {
  border: none;
}

.polaroid {
  will-change: transform; /* hint to browser for gpu optimization */
  backface-visibility: hidden;
  background-color: var(--polaroid-color);
  padding: 15px;
  position: relative;
  max-width: 275px;
  z-index: 0;
  box-shadow: 0 2px 3px var(--polaroid-text);
  text-align: center;
  margin: -10px; /* Have polaroids overlap, may cause issues with reading text/image */
  vertical-align: top;
  height: auto;
  min-height: 0;
  border-radius: 3%;
}

.polaroid img {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  display: block;
  border-radius: 3%;
}

.caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--polaroid-text);
}
.spacer {
  margin-top: 50px;
}
.hidden {
  visibility: hidden;
}

@media screen and (max-width: 1000px) {
  .gallery {
    column-count: 1;
  }
  div.container {
    padding: 0 5em 0 5em;
  }
  .gallery img {
    height: auto;
  }
  .gallery-item {
    margin-bottom: 100px;
  }
  h2 {
    font-size: 1.7em;
  }
  .large {
    font-size: 1.3em;
  }
}

@media screen and (max-width: 700px) {
  div.container {
    padding: 0 2.5em 0 2.5em;
  }
}

@media screen and (max-width: 500px) {
  div.container {
    padding: 0 1.5em 0 1.5em;
  }
  .social {
    padding-left: 3px;
    padding-bottom: 12vh;
    margin-bottom: 3px;
  }
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@supports (-webkit-touch-callout: none) {
  .final-row {
    margin-bottom: 100px;
  }
}

.banner {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

.banner-wrap {
  position: relative;
  margin: auto;
}

/* Background wrapper so multiply has something to blend with */
.image-blend-wrap {
  background-color: rgba(var(--background-color-rgb), 1);
  border-radius: 12px;
  overflow: hidden;
}

/* Apply mix-blend-mode to images/videos */
.image-blend-wrap img, .image-blend-wrap video {
  mix-blend-mode: luminosity;
  padding: 4px;
  border-radius: 12px;
}

.main-title {
  background: url('images/wave-rev.gif') no-repeat center/cover;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 3rem 2rem 3rem;
  z-index: 2;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* optional fallback for other browsers */
  background-clip: text;
  color: transparent;
  mix-blend-mode: plus-lighter;
}

