@font-face {
  font-family: "Lausanne-600";
  src: url(/fonts/TWKLausanne-600.woff2);
}

@font-face {
  font-family: "Lausanne-300";
  src: url(/fonts/TWKLausanne-300.woff2);
}

@font-face {
  font-family: "Continental-regular";
  src: url(/fonts/TWK\ Continental-Regular.woff);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-size: 62.5%;
}

body {
  margin: 0;
  font-family: "Lausanne-600";
  background-color: rgb(250, 250, 250);
  color: #bfbfbf;
  overflow: hidden;
  padding: 1rem 1rem;
  user-select: none;
}

.wtk {
  text-decoration: none;
  color: #bfbfbf;
  font-family: "Lausanne-600";
  font-size: 1.5rem;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.wtk:hover {
  color: rgb(73, 73, 73);
}

.top-bar {
  display: flex;
  justify-content: space-between;
}

.top-bar .info {
  font-family: "Lausanne-600";
  text-decoration: none;
  color: #bfbfbf;
  font-size: 1.5rem;
  transition: color 0.3s;
  background-color: #fcfbfa;
  padding: 1rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.top-bar .info:hover {
  color: #fcfbfa;
  background-color: rgba(73, 73, 73, 0.5);
}

.top-bar .title {
  display: flex;
  gap: 0.5rem;
  text-align: left;
}

.gallery-navigation {
  position: relative;
  height: 90vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-navigation .prev,
.gallery-navigation .next {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  cursor: pointer;
  z-index: 5;
}

.gallery-navigation .prev {
  left: 0;
  cursor: w-resize;
}

.gallery-navigation .next {
  right: 0;
  cursor: e-resize;
}

.gallery-navigation .image-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-navigation .image-display img {
  display: none;
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
  margin: auto;
}

.gallery-navigation .image-display .active {
  display: block;
}

.image-counter {
  font-size: 1rem;
  font-family: "Continental-regular";
  background-color: rgba(73, 73, 73, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20rem;
  color: #fcfbfa;
  text-transform: uppercase;
  text-align: left;
  user-select: none;
  padding: 1.5rem;
  transition: visibility 0.3s, opacity 0.3s, transform 0.3s;
  z-index: 5;
}

.image-counter:hover {
  cursor: none;
  opacity: 0;
}

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(100px);
  background: rgba(255, 255, 255, 0.3);
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.blur-overlay.active {
  visibility: visible;
  opacity: 1;
}

.info-content {
  font-size: 1.5rem;
  font-family: "Lausanne-300";
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 25%;
  background-color: rgba(73, 73, 73, 0.5);
  color: #fcfbfa;
  padding: 3rem 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 10px rgba(121, 121, 121, 0.05);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: visibility 0.3s, opacity 0.3s, transform 0.3s;
}

.info-content.visible {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.close-cross {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: #bfbfbf;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s;
}

.close-cross:hover {
  background-color: gray;
}

.close-cross::before,
.close-cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 0.15rem;
  background-color: #fff;
  transform-origin: center;
}

.close-cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Responsive */

@media (max-width: 1200px) {
  .info-content {
    width: 75%;
    font-size: 1.5rem;
  }

  .gallery-navigation {
    height: 100vh;
    height: -webkit-fill-available;
  }

  @supports (height: 100dvh) {
    .gallery-navigation {
      height: 85dvh;
    }
  }

  .gallery-navigation .image-display img {
    max-width: 80%;
    max-height: 70%;
  }

  .gallery-navigation .image-display .active {
    display: block;
  }
}

@media (max-width: 600px) {
  .info-content {
    width: 95%;
    right: 1rem;
    left: 1rem;
    font-size: 1.2rem;
  }

  .image-counter.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
  }
}
