@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  height: 100%;
  background-color: #080808;
}

body {
  color: white;
  line-height: 1.6;
  margin: 0;
  height: 100%;
  overflow-x: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

a {
  text-decoration: none;
}

body.hidden {
  visibility: hidden;
}

/* Header */
header {
  width: 100%;
  margin-top: 10px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: static;
  z-index: 1;
}

.main-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px 50px;
  background-color: transparent;
  color: white;
  box-sizing: border-box;
}

.big-name {
  font-size: 84px;
  font-weight: 500;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

.big-name {
  display: inline-block;
  transition: transform 0.3s ease;
}

.big-name:hover {
  transform: scale(1.05);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6), 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* language selector */
#language-selector {
  position: absolute;
  top: 1%;
  right: 1%;
  font-size: 22px;
  z-index: 10;
}

#language-selector a {
  color: white;
  text-decoration: none;
  margin-left: 5px;
}

#language-selector a:hover {
  text-decoration: underline;
}

/* navigation */
main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0px;
}

.page-layout {
  display: flex;
  padding: 10px 35px;
  gap: 10px;
}

.nav-container {
  display: flex;
  flex-direction: row;
  width: 1%;
  height: 2%;
  padding: 0;
  background-color: transparent;
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 30px;
  list-style: none;
  padding-left: 20px;
}

nav ul li a {
  display: inline-block;
  color: white;
  text-decoration: none;
  letter-spacing: 0.1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  font-size: 28px;
  position: relative;
  transition: transform 0.3s ease;
}

nav ul li a:hover {
  transform: scale(1.25);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6), 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* Artworks Gallery Grid */

.artwork-container {
  width: 100%;
}

.artwork-grid {
  display: grid;
  margin-top: 14vh;
  padding-bottom: 50px;
  grid-template-columns: repeat(4, 1fr);
  gap: 4vw;
  width: 100%;
}

.artwork-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 1px;
  width: 20vw;
  background-color: #080808;
  transition: transform 0.3s ease;
}

.artwork-tile:hover {
  transform: translateY(-10px) scale(1.1);
}

.artwork-tile img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: 1/1;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.artwork-tile img.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 1;
}

.artwork-tile figcaption {
  all: unset;
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 20px;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  background-color: #080808;
}

.video {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 1px;
}

.artwork-tile video {
  max-width: 100%;
  height: auto;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.artwork-tile .image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  image-rendering: smooth;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
  /* default base */
}

.image-wrapper img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  /* bring to front */
  position: absolute;
  /* make sure it stays absolute */
}

.image-wrapper video {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  user-select: none;
}

.image-wrapper video.active {
  opacity: 1;
  pointer-events: auto;
}

/* footer */
footer {
  width: 100%;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 18px;
  position: relative;
  bottom: 0;
}

footer p {
  margin: 0 auto;
  text-align: center;
}

/* loading */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #080808;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #000000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* responsive */

/* Small phones to tablets */
@media (min-width: 376px) and (max-width: 768px) {
  span {
    font-size: 10px;
  }

  header,
  .main-header {
    padding: 20px 15px;
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0;
  }

  .header-left {
    margin-top: 5%;
  }

  .big-name {
    font-size: 50px;
    height: 60px;
  }

  #language-selector {
    top: 10px;
    right: 10px;
    font-size: 14px;
  }

  main {
    padding: 0px 10px 60px;
    flex-direction: column;
  }

  .page-layout {
    flex-direction: column;
    padding: 10px 15px;
  }

  .nav-container {
    padding: 30px 0;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    gap: 12px;
    list-style: none;
    padding-left: 0;
  }

  nav ul li a {
    font-size: 18px;
  }

  .artwork-grid {
    display: grid;
    margin-top: 5vh;
    margin-left: 3vw;
    padding-bottom: 0px;
    grid-template-columns: repeat(1, 1fr);
    gap: 4vw;
    width: 80;
  }

  .artwork-tile {
    width: 80vw;
  }

  .artwork-tile figcaption {
    all: unset;
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    color: #fff;
    background-color: #080808;
  }

  footer {
    font-size: 14px;
  }
}

@media (min-width: 560px) and (max-width: 768px) {

  header,
  .main-header {
    padding: 0px 25px;
  }

  .header-left {
    margin-top: 0%;
  }

  .big-name {
    font-size: 58px;
  }

  .nav-container {
    padding: 15px;
  }

}

@media (min-width: 768px) and (max-width: 1024px) {

  .big-name {
    font-size: 72px;
  }

  #language-selector {
    font-size: 16px;
  }

}