/* imports & resets */
@import "https://unpkg.com/open-props";
@import "https://unpkg.com/open-props/normalize.min.css";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

/* utilities */
.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  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;
}

/* 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);
}

/*contact links*/
.contact-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-links a:hover {
  text-decoration: underline;
}

.mail-icon {
  width: 24px;
  height: 22px;
  vertical-align: middle;
}

.insta-icon {
  width: 24px;
  height: 22px;
  vertical-align: middle;
}

/* language selector */
#language-selector {
  margin-left: 87vw;
  margin-top: 10px;
  font-size: 22px;
  z-index: 3;
}

#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);
}

/* artwork page */
.artwork-wrapper {
  position: relative;
  max-width: 100%;
  margin: 60px 140px 0 140px;
}

.artwork-container {
  width: 90vw;
  height: 50%;
  padding: 50px 30px;
  margin-left: 5vw;
  overflow: hidden;
}

.prev-button-container,
.next-button-container {
  position: fixed;
  top: 60%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.prev-button-container {
  left: 5%;
}

.next-button-container {
  right: 5%;
}

.prev,
.next {
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 0;
  outline: none;
  font-family: inherit;
  transition: transform 0.3s ease;
  pointer-events: all;
}

.prev:hover,
.next:hover {
  transform: scale(1.5);
}

.artwork-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.media-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.media-column {
  max-width: 40vw;
}

.artwork-image {
  max-width: 40vw;
  max-height: 80%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-top: 3vh;
}

.artwork-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: 100%;
  height: auto;
  object-fit: fill;
}

#main-artwork-img {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

#main-artwork-img.active {
  opacity: 1;
}

.image-wrapper:hover {
  cursor: pointer;
}

.artwork-text {
  width: 50%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  text-align: center;
}

.artwork-text h2 {
  padding: 30px;
  max-width: 90%;
  text-align: center;
  font-size: 36px;
  line-height: 1.15;
}

.artwork-text p {
  max-width: 90%;
  font-size: 18px;
  line-height: 1.4;
  text-align: justify;
}

/* thumbnails scrollbar */
.artwork-thumbnails {
  display: flex;
  overflow-x: auto;
  max-width: 40vw;
  gap: 5px;
  padding: 0;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.artwork-thumbnails::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.artwork-thumbnails::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 1px;
  margin: 2px;
}

.artwork-thumbnails::-webkit-scrollbar-thumb {
  background-color: #080808;
  border-radius: 1px;
  border: 2px solid #f1f1f1;
}

.artwork-thumbnails::-webkit-scrollbar-thumb:hover {
  background-color: #ffffff;
}

.thumbnail {
  cursor: pointer;
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.thumbnail:hover {
  transform: scale(1.1);
}

.thumbnail.active {
  transform: scale(1.1);
  transition: all 0.2s ease-in-out;
}

/* media scroller */
.media-scroller {
  --_spacer: var(--size-3);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 6);
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 50vw;
  overscroll-behavior-block: contain;
  scroll-snap-type: x mandatory;
  padding: var(--size-1);
  gap: var(--size-1);
}

.media-element {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: min-content;
  gap: var(--_spacer);
  padding: var(--_spacer);
  background: var(--surface-2);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
}

.media-element > img {
  block-size: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.snaps-inline {
  scroll-snap-type: inline mandatory;
  scroll-padding-block: var(--_spacer, 1rem);
}

.snaps-inline > * {
  scroll-snap-align: start;
}

/* image modal */
.modal {
  display: flex;
  position: fixed;
  z-index: 5;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: #080808;
  cursor: default;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#panzoom-wrapper {
  display: flex;
  justify-content: center;
  user-select: none;
  align-items: center;
  overflow: hidden;
}

#modal-image {
  width: 100%;
  height: auto;
  cursor: zoom-in !important;
  display: block;
}

#panzoom-wrapper img {
  max-width: 80vw;
  max-height: 80vh;
  cursor: zoom-in !important;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.modal-counter {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 22px;
  z-index: 5;
}

#modal-back-text {
  opacity: 0;
  transition: opacity 0.8s ease;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  max-width: 100vw;
  font-size: 10px;
  text-align: justify;
  pointer-events: none;
  white-space: pre-line;
}

.modal-extra-text {
  opacity: 0;
  transition: opacity 0.6s;
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 22px;
  max-width: 100vw;
  pointer-events: none;
  text-align: center;
}

.modal.show-text #modal-back-text {
  opacity: 1;
  pointer-events: auto;
}

.modal-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: white;
  background: none;
  cursor: pointer;
  z-index: 10;
  padding: 0 15px;
  user-select: none;
}

#modal-prev {
  left: 9vw;
}

#modal-next {
  right: 9vw;
}

.close-button {
  position: absolute;
  top: 1%;
  right: 1%;
  font-size: 40px;
  z-index: 1002;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
}

.close-button:hover,
.close-button:focus {
  transform: scale(1.3);
}

/* footer */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 18px;
}

footer p {
  margin: 0 auto;
  text-align: center;
}

/* loading spinner */
#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);
  }
}

/* Small phones to tablets */
@media (min-width: 376px) and (max-width: 768px) {
  span {
    font-size: 10px;
  }

  header,
  .main-header {
    padding: 0 15px;
    margin-top: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-left {
    margin-top: 5%;
  }

  .big-name {
    font-size: 50px;
    height: 60px;
  }

  #language-selector {
    margin-top: 1vh;
    margin-left: 65vw;
    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-wrapper {
    margin: 10px 0;
  }

  .artwork-layout {
    flex-direction: column;
  }

  .artwork-container {
    padding: 0;
  }

  .artwork-image {
    max-width: 75vw;
    max-height: 60vh;
    width: 300px;
    height: 600x;
  }

  .artwork-thumbnails {
    max-width: 80vw;
    width: 80vw;
    gap: 8px;
    padding: 0;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .artwork-text {
    width: 87vw;
    padding: 20px;
    padding-left: 0;
  }

  .artwork-text h2 {
    padding: 10px;
    max-width: 90%;
    font-size: 24px;
  }

  .artwork-text p {
    padding-top: 10px;
    font-size: 14px;
  }

  .modal-nav-button {
    top: 84%;
    font-size: 32px;
  }

  #modal-prev {
    left: 15vw;
  }

  #modal-next {
    right: 15vw;
  }

  .modal-content {
    position: relative;
    flex-direction: column;
  }

  .modal-counter {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1rem;
    font-size: 24px;
    z-index: 5;
  }

  #panzoom-wrapper img {
    max-height: 70vh;
  }

  .close-button {
    top: -5px;
    right: 5%;
    font-size: 48px;
  }

  footer {
    font-size: 14px !important;
  }

  footer p {
    font-size: 14px !important;
  }
}

@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;
  }
}
