@font-face {
  font-family: 'KMR-Apparat';
  src: url('../fonts/WOFF2/KMR-Apparat-Medium.woff2') format('woff2');
  font-weight: 500;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── SLIDER ── */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
}

.slide.active {
  opacity: 1;
}

/* ── NAV LABELS ── */
.logo-text {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'KMR-Apparat', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 2rem);
  color: black;
  z-index: 15;
  pointer-events: auto;
}

.logo-text.right {
  left: auto;
  right: 0;
}

.nav-right-group {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 15;
}

.nav-right-group .logo-text {
  position: static;
  transform: none;
  text-align: right;
}

.logo-text a {
  display: block;
  color: black;
  background-color: white;
  text-decoration: none;
  padding: 0 0.5rem;
  white-space: nowrap;
}

.logo-text a:hover {
  color: white;
  background-color: black;
}

/* ── SUBPAGE IMAGE (information.html) ── */
.subpage-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 10vh 5vw;
  box-sizing: border-box;
}

.subpage-image img {
  max-height: 80vh;
  max-width: 80vw;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.image-hover-wrap {
  position: relative;
  display: inline-flex;
}

.image-hover-wrap:hover img {
  opacity: 0.5;
}

.image-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 60vw, 900px);
  font-family: 'KMR-Apparat', sans-serif;
  font-weight: 500;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  color: black;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: left;
  cursor: default;
  pointer-events: none;
}

.image-hover-wrap:hover .image-caption {
  opacity: 1;
}

/* ── DETAILS BOX (alusi.html) ── */
.details-box {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: clamp(200px, 30vw, 500px);
  background-color: black;
  color: white;
  font-family: 'KMR-Apparat', sans-serif;
  font-weight: 500;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  line-height: 1.6;
  padding: 0.5rem;
  z-index: 20;
  text-align: left;
}

.details-box.active {
  display: block;
}

#details-btn.active {
  color: white;
  background-color: black;
}

/* ── SHOP NOW (alusi.html) ── */
.shop-overlay {
  display: block;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'KMR-Apparat', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 2rem);
  color: black;
  z-index: 16;
}

.shop-overlay a {
  display: block;
  color: black;
  background-color: white;
  text-decoration: none;
  padding: 0 0.5rem;
  white-space: nowrap;
}

.shop-overlay a:hover {
  color: white;
  background-color: black;
}

/* ── ALUSI FULLSCREEN ── */
.alusi-fullscreen {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* ── TABLET / IPAD ── */
@media (max-width: 1024px) {
  html, body {
    overflow: auto;
    height: auto;
  }

  .subpage-image {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12vh 5vw 6vh;
    gap: 2rem;
  }

  .image-hover-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .subpage-image img {
    max-width: 80vw;
    max-height: 60vh;
  }

  .image-hover-wrap:hover img {
    opacity: 1;
  }

  .image-caption {
    position: static;
    transform: none;
    opacity: 1;
    width: clamp(280px, 80vw, 700px);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    pointer-events: auto;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .logo-text {
    top: auto;
    bottom: 50%;
    transform: translateY(50%);
    font-size: clamp(0.85rem, 4vw, 1.2rem);
  }

  .logo-text.right.second {
    top: auto;
    bottom: calc(50% - 2em);
    transform: none;
  }

  .subpage-image {
    padding: 12vh 5vw 6vh;
  }

  .subpage-image img {
    max-width: 90vw;
    max-height: 50vh;
  }

  .image-caption {
    width: 90vw;
    font-size: 0.85rem;
  }

  .details-box {
    width: 80vw;
    font-size: 0.85rem;
  }

  .shop-overlay {
    font-size: clamp(0.85rem, 4vw, 1.2rem);
  }
}
