@keyframes transitionIn {
  from {
    opacity: 0;
    transform: scale(0.8);
    transform-origin: 50% 300px;
  }

  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: 50% 300px;
  }
}

@keyframes transitionOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes navIn {
  from {
    transform: translateX(200px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes logoIn {
  from {
    transform: translateX(-200px);
  }

  to {
    transform: translateX(0);
  }
}

* {
  box-sizing: border-box;
  font-style: normal;
  text-decoration: none;
  margin: 0;
  padding: 0;
  line-height: 150%;
  font-family: "Montserrat", sans-serif;
  color: #ddd2cd;
}

img {
  background-color: #0e0f13;
  color: #0e0f13;
}

.me {
  opacity: 0.7;
  aspect-ratio: 5 / 1;
}

.ar16x9 {
  aspect-ratio: 16 / 9;
}
#contents a,
footer a {
  text-decoration: underline;
}

#contents a:hover,
footer a:hover {
  text-decoration: underline;
  text-shadow: #ddd2cd 0px 0px 15px;
  opacity: 1;
}

html {
  background: #0e0f13;
  /* box-shadow: 0 0 200px rgba(0, 0, 0, 0.9) inset; */
  min-height: 100%;
  min-width: 100%;
}

body {
  background: #0e0f13;
  overflow: scroll;
}

main {
  margin: 0 4%;
}

footer {
  width: 100%;
  text-align: center;
  opacity: 0.5;
  padding: 2rem;
  text-wrap: balance;
}
header li {
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

h1,
strong {
  font-weight: 600;
}

p {
  margin: 1em 0;
  font-size: 1em;
  line-height: 200%;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1em 4%;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0e0f13aa;
  backdrop-filter: blur(20px);
}

.sub_one,
.sub_two {
  font-size: 0.5em;
  /* animation: fadeIn 1s; */
  opacity: 0.5;
}

.sub_one {
  display: none;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.5;
  }
}

.socialicons {
  font-size: 0.5em;
  margin-left: 1em;
}

.socialicons a img {
  width: 2em;
  height: 1.5em;
  margin-right: 1em;
  /* animation: fadeIn 1s; */
  opacity: 0.5;
  background: none;
}

.socialicons a:hover img {
  transition: all 0.3s ease 0s;
  opacity: 1;
}

header #logo {
  font-size: 1.5em;
  padding: 0px 1em 0 0;
  margin-right: auto;
  line-height: 50%;
}

header #logo a {
  font-weight: 600;
  letter-spacing: 0em;
}

nav ul {
  list-style: none;
  display: flex;
  font-size: smaller;
}

nav ul li {
  display: inline-block;
  padding: 0 0 0 2em;
}

nav li a {
  text-shadow: #0e0f13 0px 0px 0px;
  /* animation: fadeIn 1s; */
  opacity: 0.5;
}

nav li a:hover,
.active a {
  /*text-shadow: #ddd2cd 0px 0px 15px;*/
  transition: all 0.3s ease 0s;
  opacity: 1;
}

#contents {
  max-width: 1280px;
  margin: auto;
  margin-top: 2em;
}

#contents ul {
  column-count: 2;
  padding: 1em;
  overflow: hidden;
}

#contents ul li {
  width: 40em;
}

.gallery-content {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* justify-content: center; */
  gap: 10px;
  /* padding: 0px 1em; */
}

.gallery-content > figure {
  /* flex: 1 1 auto; */
  /* height: 300px; */
  user-select: none;
  width: calc(33.3333% - 10px);
  cursor: pointer;
  position: relative;
  box-shadow: rgb(0, 0, 0, 0.5) 0 100px 100px;
  aspect-ratio: 16 / 9;
}

.gallery-content > figure img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  z-index: 0;
}

a > video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

a:hover > video {
  opacity: 1;
}

.contentImage {
  position: relative;
  width: 100%;
  display: inline-block;
}

figure > a > img,
.contentImage > img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

figure.loaded > a > img,
.contentImage.loaded > img {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

figure::before,
.contentImage::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  inset: 0;
  animation: pulse 2s infinite;
}

figure.loaded::before,
.contentImage.loaded::before {
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

figcaption {
  user-select: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  /* color: #0e0f13; */
  color: #ddd2cd;
  opacity: 0;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.8em;
  text-transform: uppercase;
  transition: all 0.2s 0.1s ease-in-out;
  background-color: rgba(14, 15, 19, 0.7);
  object-fit: cover;
  outline: solid 1px rgba(14, 15, 19, 0.7);
  /*backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);*/
}

figcaption > div {
  transition: all 0.2s ease-in-out;
  transform: scale(0.8);
}

figcaption span {
  display: block;
  font-size: 0.5em;
  opacity: 0.5;
}

.gallery-content figure:hover figcaption {
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.gallery-content figure:hover video {
  display: block;
}

figcaption:hover > div {
  transition: all 0.2s ease-in-out;
  transform: scale(1);
}
/*
.gallery-content figure:hover a img {
  transition: all 0.2s 0.1s ease-in-out;
  opacity: 0.5;
}*/

#contents img {
  width: 100%;
  max-height: 100%;
  margin-top: 10px;
}

/* #contents img.loaded {
    opacity:1;
    transition: all 0.3s ease-in-out;
} */

@media (max-width: 768px) {
  /* Styles for screens up to 768px wide */
  main {
    margin: 0;
    font-size: 0.8em;
  }

  header {
    display: block;
    padding: 1em 5% 0;
    position: relative;
  }

  header #logo {
    font-size: 1.5em;
    display: block;
    text-align: center;
    width: 100%;
    padding: 0;
  }

  .sub_one,
  .sub_two {
    font-size: 0.35em;
  }

  .sub_one {
    display: block;
  }

  .sub_two {
    display: none;
  }

  nav ul {
    justify-content: space-between;
  }

  nav ul li {
    font-size: 1em;
    padding: 1em 0;
  }

  .socialicons {
    display: block;
  }

  .socialicons a img {
    width: 2em;
    height: 2em;
    margin: 0.75em;
  }

  .gallery-content::after {
    content: none;
    flex-grow: 1;
  }

  .gallery-content > figure {
    width: 100%;
  }

  #contents {
    margin: 0;
  }

  .text {
    margin: 0 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Styles for screens between 769px and 1024px wide */

  #contents {
    width: 100%;
  }

  .gallery-content > figure {
    width: calc(50% - 10px);
  }
}

@media (min-width: 1025px) and (max-width: 1400px) {
  /* Styles for screens between 769px and 1024px wide */

  #contents {
    width: 960px;
  }

  .gallery-content > figure {
    width: calc(50% - 10px);
  }
}

@keyframes pulse {
  0% {
    background-color: rgba(255, 255, 255, 0);
  }

  50% {
    background-color: rgb(221, 210, 205, 0.1);
  }

  100% {
    background-color: rgba(255, 255, 255, 0);
  }
}

#preloader {
  background: rgb(14, 15, 19, 1);
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0px;
  top: 0px;
  z-index: 100;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease-in-out;
}

.pageLoaded {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.lds-dual-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40px, -40px);
  display: inline-block;
  width: 80px;
  height: 80px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

#player,
.plyr-video {
  width: 100%;
}
:root {
  --plyr-color-main: #0e0f13;
  --plyr-menu-background: #0e0f13;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
