/* @font-face {
  font-family: "Olive Display";
  src: url("OliveDisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
} */
@font-face {
  font-family: "Raleway";
  src: url("fonte/Raleway-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
main h1,
main h1 span,
main h1 strong {
  font-family: "Candu", sans-serif !important;
  font-weight: 400 !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.waveland-mobile-dots {
  display: none;
}

body {
  margin: 0;
  background: #cfe1fa;
  color: #111118;
  font-family: "Outfit", sans-serif;
}

button {
  font: inherit;
}

/* SEKTION */

.projects-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 140px;
}

/* INTRO */

.projects-header {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 72px;
  text-align: left;
}

.projects-header h1 {
  margin: 0 0 18px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;

  font-family: "Candu";
  src: url("fonts/Candu.otf") format("opentype");
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.projects-header h1 span {
  color: #050505;
}

.projects-header h1 strong {
  color: #eb36ef;
  font: inherit;
}

.projects-header p {
  max-width: 650px;
  margin: 0;

  color: #3f4550;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.5;
  text-align: left;
}

.hero-description {
  max-width: 650px;
  margin: 24px 0 0;

  color: #3f4550;

  font-family: "Olive Display", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
}

/* TO SELVSTÆNDIGE KOLONNER */

.projects-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 54px;
}

.projects-column {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

/* PROJEKT */

.project {
  width: 100%;
}

.project h2 {
  margin: 0 0 16px;
  padding-inline: 10px;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 300;
  line-height: 1.1;
}

.collection-link {
  text-decoration: none;
}

.collection-link:visited {
  color: #fff;
}

/* PROJEKTBOKS */

.project-card {
  position: relative;
  width: 100%;
  height: 380px;
  min-height: 0;
  padding: 28px;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 22px;

  background: linear-gradient(155deg, #f4aef8 0%, #c78ef5 45%, #625cff 100%);

  box-shadow:
    0 18px 45px rgb(70 65 180 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 20%);

  transition:
    height 700ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 500ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  box-shadow:
    0 24px 55px rgb(70 65 180 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 25%);
}

/* MIDLERTIDIGT OMRÅDE TIL BILLEDER */

.project-preview {
  width: 100%;
  height: 260px;
  min-height: 260px;
  flex: 0 0 260px;

  display: grid;
  place-items: center;

  color: rgb(255 255 255 / 40%);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.project-preview span {
  opacity: 0.65;
}

/* ========================================
   INSTANT UGEN — ENKELT BILLEDE
======================================== */

.instant-preview {
  width: 100%;
  height: 260px;
  min-height: 260px;
  flex: 0 0 260px;

  padding: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.instant-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}

.project-toggle {
  width: min(255px, 80%);
  height: 38px;
  min-height: 38px;
  margin: 26px auto 0;
  padding: 8px 20px;

  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 0;
  border-radius: 999px;
  background: #eb36ef;
  color: #fff;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 7px 18px rgb(99 42 185 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 25%);

  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.project-toggle:hover {
  background: #f148f4;

  box-shadow:
    0 10px 24px rgb(99 42 185 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 30%);

  transform: translateY(-2px);
}

.project-toggle:active {
  transform: scale(0.98);
}

.project-toggle:focus-visible {
  outline: 3px solid rgb(255 255 255 / 85%);
  outline-offset: 4px;
}

.project-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;

  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-toggle path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-text {
  font-family: "Olive Display", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
}

.project-details {
  display: grid;
  grid-template-rows: 0fr;

  flex: 0 0 auto;
  opacity: 0;

  transition:
    grid-template-rows 650ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 350ms ease;
}

.project-details-inner {
  min-height: 0;
  overflow: hidden;
  font-family: "Olive Display";
  /* src: url("OliveDisplay-Light.otf") format("opentype"); */
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

.project-details-inner p {
  margin: 22px 2px 0;

  color: rgb(255 255 255 / 94%);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 300;
  line-height: 1.52;
}

.project-card.is-open .project-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.project-card.is-open .project-toggle svg {
  transform: rotate(180deg);
}

/* ========================================
   WAVELAND — ENKELT BILLEDE
======================================== */

.waveland-card {
  height: 380px;
  min-height: 380px;
}

.waveland-preview {
  position: relative;

  width: 100%;
  height: 260px;
  min-height: 260px;
  flex: 0 0 260px;

  padding: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  overflow: hidden;
}

.waveland-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 14px;

  pointer-events: none;
}

.waveland-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  border-radius: 8px;
}

/* FIGMA PROTOTYPE-KNAP */

.project-figma-cta {
  width: min(255px, 80%);
  height: 38px;
  min-height: 38px;
  margin: 26px auto 0;
  padding: 8px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 999px;
  background: #eb36ef;
  color: #fff;

  font-family: "Olive Display", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;

  box-shadow:
    0 7px 18px rgb(99 42 185 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 25%);

  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.project-figma-cta:hover {
  background: #f148f4;

  box-shadow:
    0 10px 24px rgb(99 42 185 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 30%);

  transform: translateY(-2px);
}

/* ========================================
   TASTE CPH – PROJEKTVISNING
======================================== */

.project-card .taste-preview {
  width: 100%;
  height: 260px;
  min-height: 260px;
  flex: 0 0 260px;

  padding: 0;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: hidden;
}

/* Klikbart område omkring billedet */

.project-card .taste-preview-button {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: hidden;

  border: 0;
  background: transparent;
  cursor: zoom-in;
}

/* Selve Taste CPH-billedet */

.project-card .taste-preview-button img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 20%;
}

/* Diskret hover */

.project-card .taste-preview-button:hover img {
  transform: scale(1.015);

  filter: drop-shadow(0 11px 16px rgb(43 25 108 / 24%));
}

/* Wrapperen følger præcis billedets størrelse */

.taste-image-wrapper {
  position: relative;

  width: 92%;
  height: 100%;

  display: block;
  overflow: hidden;
}

/* Billedet */

.taste-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;

  transition:
    transform 300ms ease,
    filter 300ms ease;
}

/* Teksten er skjult som standard */

.taste-image-wrapper .taste-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;

  padding: 9px 18px;

  display: flex;
  align-items: center;
  gap: 8px;

  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;

  background: rgb(31 25 43 / 88%);
  color: #fff;

  font-family: "Olive Display", sans-serif;
  font-size: 1rem;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);

  pointer-events: none;

  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

/* Vis kun teksten, når musen er over selve billedområdet */

.taste-image-wrapper:hover .taste-zoom-hint,
.taste-preview-button:focus-visible .taste-zoom-hint {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.taste-image-wrapper:hover img,
.taste-preview-button:focus-visible img {
  transform: scale(1.025);
  filter: brightness(0.78);
}

/* Taste CPH-billedet skal altid vises normalt */

.taste-image-wrapper,
.taste-image-wrapper:hover,
.taste-image-wrapper img,
.taste-image-wrapper:hover img,
.taste-preview-button:hover img,
.taste-preview-button:focus-visible img {
  opacity: 1 !important;
  filter: none !important;
}

/* Centrer hele Taste CPH-previewet */

.project-card .taste-preview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.project-card .taste-preview-button {
  width: 100%;
  margin: 0 auto;
  padding: 0;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.project-card .taste-image-wrapper {
  width: 92%;
  margin: 0 auto;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  opacity: 1;
}

.project-card .taste-image-wrapper img {
  display: block;

  width: 100%;
  height: 100%;
  margin: 0 auto;

  object-fit: contain;
  object-position: center top;

  opacity: 1;
  filter: none;
}

/* SIDEINTRO */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  overflow: hidden;
  background: linear-gradient(135deg, #f4aef8 0%, #dc67f2 45%, #625cff 100%);

  transform: translateY(0);
  pointer-events: all;

  transition: transform 550ms cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(115deg, transparent 25%, rgb(255 255 255 / 24%) 45%, transparent 65%);

  transform: translateX(-120%);
  animation: transition-shine 900ms ease forwards;
}

.transition-logo {
  position: relative;
  z-index: 2;

  display: flex;
  gap: 14px;

  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;

  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 300ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.transition-logo span {
  color: #050505;
}

.transition-logo strong {
  color: #fff;
  font: inherit;
}

/* Når siden er indlæst */

body.page-ready .page-transition {
  transform: translateY(-100%);
  pointer-events: none;
}

body.page-ready .transition-logo {
  opacity: 0;
  transform: translateY(-30px);
}

/* Indholdets starttilstand */

.site-header,
.projects-header,
.project {
  opacity: 0;
}

.site-header {
  transform: translateY(-25px) scale(0.97);
}

.projects-header {
  transform: translateY(30px);
}

.project {
  transform: translateY(45px) scale(0.97);
}

/* Navbar kommer først */
body.page-ready .site-header {
  animation: navbar-enter 550ms 150ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.page-ready .projects-header {
  animation: header-enter 600ms 250ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.page-ready .project {
  animation: project-enter 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;

  animation-delay: var(--entry-delay, 300ms);
}

/* ========================================
   MINI-CAROUSEL I "POSTERS OG DESIGNS"
======================================== */

.posters-preview {
  position: relative;
  display: block;
  overflow: hidden;
}

.mini-carousel {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.mini-carousel-track {
  position: absolute;
  inset: 0;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-bottom: 14px;

  pointer-events: none;
}

/* PLAKATER */

.mini-poster-card {
  position: absolute;

  width: 96px;
  height: 144px;
  padding: 0;

  overflow: hidden;
  border: 0;
  background: #111;

  cursor: pointer;
  pointer-events: auto;

  transition:
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 450ms ease,
    filter 450ms ease,
    box-shadow 450ms ease;
}

.mini-poster-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* AKTIV PLAKAT I MIDTEN */

.mini-poster-card.active {
  z-index: 3;

  opacity: 1;
  filter: brightness(1);

  transform: translateX(0) scale(1.18);
}

/* PLAKAT TIL VENSTRE */

.mini-poster-card.left {
  z-index: 2;

  opacity: 0.84;
  filter: brightness(0.92);

  transform: translateX(-128px) scale(0.83);
}

/* PLAKAT TIL HØJRE */

.mini-poster-card.right {
  z-index: 2;

  opacity: 0.78;
  filter: brightness(0.78);

  transform: translateX(128px) scale(0.83);
}

/* EVENTUELLE ØVRIGE PLAKATER */

.mini-poster-card.hidden {
  z-index: 1;

  opacity: 0;
  pointer-events: none;

  transform: translateX(0) scale(0.65);
}

.mini-poster-card.active:hover {
  transform: translateX(0) scale(1.22);
}

/* ========================================
   CAROUSEL-PILE
======================================== */

.mini-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;

  width: 52px;
  height: 52px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 52px 52px;

  cursor: pointer;
  overflow: visible;

  transform: translateY(-50%);
  transition: transform 200ms ease;
}

.mini-carousel-arrow.mini-previous {
  left: 2px;
  background-image: url("arrowleft.png");
}

.mini-carousel-arrow.mini-next {
  right: 2px;
  background-image: url("arrowright.png");
}

.mini-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.mini-carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.mini-carousel-arrow img {
  display: none;
}

/* ========================================
   CAROUSEL-PRIKKER
======================================== */

.mini-carousel-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transform: translateX(-50%);
}

.mini-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgb(255 255 255 / 80%);

  cursor: pointer;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.mini-carousel-dot:hover {
  background: #fff;
  transform: scale(1.15);
}

.mini-carousel-dot.active {
  background: #4f4f59;
  transform: scale(1.15);
}

/* ========================================
   LIGHTBOX
======================================== */

.poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: none;
  place-items: center;

  padding: 50px 90px;

  background: rgb(5 5 12 / 90%);
  backdrop-filter: blur(12px);
}

.poster-lightbox.open {
  display: grid;
}

.poster-lightbox-image {
  display: block;

  max-width: min(90vw, 750px);
  max-height: 86vh;

  object-fit: contain;

  box-shadow: 0 28px 80px rgb(0 0 0 / 50%);
}

/* LUK-KNAP */

.poster-lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  z-index: 3;

  width: 55px;
  height: 55px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;

  background: rgb(255 255 255 / 10%);
  color: #fff;

  font-size: 2.5rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.poster-lightbox-close:hover {
  background: rgb(255 255 255 / 20%);
  transform: scale(1.07);
}

/* LIGHTBOX-PILE */

.poster-lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;

  width: 60px;
  height: 60px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;

  background: rgb(255 255 255 / 12%);
  color: #fff;

  cursor: pointer;
  backdrop-filter: blur(8px);

  transform: translateY(-50%);

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.poster-lightbox-arrow svg {
  display: block;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

.poster-lightbox-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poster-lightbox-arrow:hover {
  background-color: rgb(255 255 255 / 22%);
  transform: translateY(-50%) scale(1.07);
}

.poster-lightbox-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.poster-lightbox-previous {
  left: 25px;
}

.poster-lightbox-next {
  right: 25px;
}

/* ========================================
   REDBULL-PREVIEW
======================================== */

.redbull-card {
  justify-content: center;
}

.redbull-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  flex: 1 1 auto;

  overflow: hidden;
}

.redbull-carousel {
  position: relative;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.redbull-image-button {
  position: relative;

  width: 340px;
  height: 300px;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;

  border: 0;
  background: transparent;
  cursor: pointer;
}

.redbull-image {
  display: block;

  width: 100%;
  height: 100%;
  margin: 0;

  object-fit: contain;
  object-position: center;

  transform-origin: center;

  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.redbull-image-button:hover .redbull-image {
  transform: scale(1.03);
}

/* KLIK FOR AT FORSTØRRE — identisk med .zoom-hint */

.redbull-preview .redbull-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 9px 14px;

  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;

  background: rgb(15 10 35 / 70%);
  color: #fff;

  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, 10px);

  backdrop-filter: blur(8px);

  transition:
    opacity 250ms ease,
    transform 250ms ease;
}

.redbull-zoom-hint svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.redbull-image-button:hover .redbull-zoom-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Pilene — samme stil og størrelse som Posters-pilene */

.redbull-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;

  width: 52px;
  height: 52px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 52px 52px;

  cursor: pointer;
  overflow: visible;

  transform: translateY(-50%);
  transition: transform 200ms ease;
}

.redbull-arrow img {
  display: none;
}

.redbull-arrow.redbull-previous {
  left: 2px;
  background-image: url("arrowleft.png");
}

.redbull-arrow.redbull-next {
  right: 2px;
  background-image: url("arrowright.png");
}

.redbull-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.redbull-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* ========================================
   REDBULL-LIGHTBOX
======================================== */

.redbull-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: none;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  justify-items: center;

  padding: 60px 28px;

  background: rgb(17 17 31 / 94%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.redbull-lightbox.is-open {
  display: grid;
}

.redbull-lightbox-image {
  grid-column: 2;
  grid-row: 1;

  display: block;

  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);

  object-fit: contain;
  object-position: center;

  box-shadow: 0 18px 55px rgb(0 0 0 / 35%);
}

.redbull-lightbox-arrow {
  width: 58px;
  height: 58px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;

  background: rgb(255 255 255 / 9%);

  cursor: pointer;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.redbull-lightbox-arrow img {
  display: block;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.redbull-lightbox-previous {
  grid-column: 1;
  grid-row: 1;
}

.redbull-lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

.redbull-lightbox-arrow:hover {
  background: rgb(255 255 255 / 18%);
  transform: scale(1.07);
}

.redbull-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;

  width: 56px;
  height: 56px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;

  background: rgb(255 255 255 / 9%);
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.redbull-lightbox-close:hover {
  background: rgb(255 255 255 / 18%);
  transform: scale(1.07);
}
/* ========================================
   TABLET (BRED)
======================================== */

@media (max-width: 1150px) {
  .projects-section {
    width: min(650px, calc(100% - 40px));
    padding: 90px 0 110px;
  }

  .projects-layout {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .projects-column {
    display: contents;
  }

  /*
    Samme rækkefølge som på mobil:
    Waveland, Taste CPH, Instant Ugen, Posters, Redbull.
  */

  .projects-column:first-child .project:nth-child(1) {
    order: 1; /* Waveland */
  }

  .projects-column:last-child .project:nth-child(1) {
    order: 2; /* Taste CPH */
  }

  .projects-column:first-child .project:nth-child(2) {
    order: 3; /* Instant Ugen */
  }

  .projects-column:last-child .project:nth-child(2) {
    order: 4; /* Posters og designs */
  }

  .projects-column:last-child .project:nth-child(3) {
    order: 5; /* Fiktive Redbull reklamer */
  }

  /* Lader kortet vokse efter behov, ligesom på mindre skærme */

  .project-card {
    height: auto;
    min-height: 380px;
    padding: 26px;
  }

  .waveland-card {
    height: auto;
    min-height: 380px;
  }
}
@media (max-width: 850px) {
  .redbull-preview,
  .redbull-carousel {
    height: 195px;
  }

  .redbull-image-button,
  .redbull-image {
    height: 190px;
  }
}

@media (max-width: 700px) {
  .redbull-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 70px 8px 55px;
  }

  .redbull-lightbox-arrow {
    width: 42px;
    height: 42px;
  }

  .redbull-lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .redbull-lightbox-image {
    max-height: calc(100vh - 130px);
  }
}

/* ========================================
   TASTE CPH LIGHTBOX
======================================== */

.taste-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: none;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  justify-items: center;

  padding: 60px 28px;

  background: rgb(17 17 31 / 94%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.taste-lightbox.is-open {
  display: grid;
}

.taste-lightbox-image {
  grid-column: 2;
  grid-row: 1;

  display: block;

  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);

  object-fit: contain;
  object-position: center;
  border-radius: 0px;

  opacity: 1;
  filter: none;

  box-shadow: 0 18px 55px rgb(0 0 0 / 35%);
}

.taste-lightbox-arrow {
  width: 58px;
  height: 58px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;

  background: rgb(255 255 255 / 9%);
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.taste-lightbox-previous {
  grid-column: 1;
  grid-row: 1;
}

.taste-lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

.taste-lightbox-arrow:hover {
  background: rgb(255 255 255 / 18%);
  transform: scale(1.07);
}

.taste-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;

  width: 56px;
  height: 56px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;

  background: rgb(255 255 255 / 9%);
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.taste-lightbox-close:hover {
  background: rgb(255 255 255 / 18%);
  transform: scale(1.07);
}

.taste-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;

  transform: translateX(-50%);

  color: #fff;
  font-family: "Olive Display", sans-serif;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .taste-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 70px 8px 55px;
  }

  .taste-lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .taste-lightbox-close {
    top: 14px;
    right: 14px;

    width: 44px;
    height: 44px;

    font-size: 2rem;
  }

  .taste-lightbox-image {
    max-height: calc(100vh - 130px);
  }
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 850px) {
  .projects-section {
    width: min(720px, calc(100% - 40px));
    padding: 80px 0 100px;
  }

  .projects-header {
    margin-bottom: 55px;
  }

  .projects-layout {
    gap: 28px;
  }

  .projects-column {
    gap: 32px;
  }

  .project-card {
    height: auto;
    min-height: 340px;
    padding: 22px;
  }

  .waveland-card {
    height: auto;
    min-height: 340px;
  }

  .project-preview,
  .waveland-preview,
  .instant-preview,
  .project-card .taste-preview {
    min-height: 220px;
    height: 220px;
  }

  .project-card.is-open .project-preview {
    min-height: 220px;
  }

  .project-toggle,
  .project-figma-cta {
    width: min(230px, 90%);
    font-size: 0.95rem;
  }

  .posters-preview,
  .mini-carousel {
    height: 220px;
    min-height: 220px;
  }

  .mini-poster-card {
    width: 84px;
    height: 126px;
  }

  .mini-poster-card.active {
    transform: translateX(0) scale(1.15);
  }

  .mini-poster-card.left {
    transform: translateX(-104px) scale(0.8);
  }

  .mini-poster-card.right {
    transform: translateX(104px) scale(0.8);
  }

  .mini-poster-card.active:hover {
    transform: translateX(0) scale(1.19);
  }

  .mini-carousel-arrow,
  .redbull-arrow {
    width: 32px;
    height: 32px;
    background-size: 32px 32px;
  }
}

/* ========================================
   MOBIL
======================================== */

@media (max-width: 650px) {
  .projects-section {
    width: calc(100% - 28px);
    padding: 65px 0 80px;
  }

  .projects-header {
    margin-bottom: 44px;
  }

  .projects-header h1 {
    gap: 4px 12px;
  }

  .projects-layout {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .projects-column {
    display: contents;
  }

  /*
    Sikrer rækkefølgen på mobil:
    Waveland, Taste CPH, Instant Ugen, Posters, Redbull.
  */

  .projects-column:first-child .project:nth-child(1) {
    order: 1; /* Waveland */
  }

  .projects-column:last-child .project:nth-child(1) {
    order: 2; /* Taste CPH */
  }

  .projects-column:first-child .project:nth-child(2) {
    order: 3; /* Instant Ugen */
  }

  .projects-column:last-child .project:nth-child(2) {
    order: 4; /* Posters og designs */
  }

  .projects-column:last-child .project:nth-child(3) {
    order: 5; /* Fiktive Redbull reklamer */
  }

  .project h2 {
    margin-bottom: 13px;
    font-size: 1.8rem;
  }

  .project-card {
    height: auto;
    min-height: 360px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .waveland-card {
    height: auto;
    min-height: 360px;
  }

  .project-preview,
  .waveland-preview,
  .instant-preview,
  .project-card .taste-preview {
    min-height: 235px;
    height: 235px;
  }

  .project-card.is-open .project-preview {
    min-height: 235px;
  }

  .project-details-inner p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .posters-preview,
  .mini-carousel {
    height: 235px;
    min-height: 235px;
  }

  .mini-poster-card {
    width: 105px;
    height: 158px;
  }

  .mini-poster-card.active {
    transform: translateX(0) scale(1.15);
  }

  .mini-poster-card.left {
    transform: translateX(-125px) scale(0.8);
  }

  .mini-poster-card.right {
    transform: translateX(125px) scale(0.8);
  }

  .mini-poster-card.active:hover {
    transform: translateX(0) scale(1.19);
  }

  .mini-carousel-arrow.mini-previous {
    left: 3px;
  }

  .mini-carousel-arrow.mini-next {
    right: 3px;
  }

  .redbull-arrow.redbull-previous {
    left: 3px;
  }

  .redbull-arrow.redbull-next {
    right: 3px;
  }

  .poster-lightbox {
    padding: 70px 20px 30px;
  }

  .poster-lightbox-arrow {
    display: none;
  }
}

/* Animationer */

@keyframes transition-shine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes navbar-enter {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes project-enter {
  from {
    opacity: 0;
    transform: translateY(45px) scale(0.97);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Begrænset bevægelse */

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }

  .site-header,
  .projects-header,
  .project {
    opacity: 1;
    transform: none;
    animation: none !important;
    filter: none;
  }
}

/* REDUCERET BEVÆGELSE */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   H1 – ENS PÅ ALLE UNDERSIDER
======================================== */

.projects-section {
  padding-top: 64px;
}

.projects-header h1 {
  font-size: 64px;
}

@media (max-width: 950px) {
  .projects-section {
    padding-top: 48px;
  }

  /* "Projekter" på linje to, venstrejusteret */
  .projects-header h1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    font-size: clamp(48px, 8vw, 64px);
    line-height: 1;
    letter-spacing: 1px;
    white-space: normal;
  }

  /* Smallere tekst = flere, kortere linjer */
  .projects-header .hero-description {
    max-width: 20em;
  }
}

@media (max-width: 650px) {
  .projects-section {
    padding-top: 32px;
  }

  .projects-header h1 {
    font-size: clamp(34px, 11vw, 46px);
  }
}

/* ========================================
   RED BULL – PRIKKER (ALLE SKÆRME)
======================================== */

.redbull-carousel {
  padding-bottom: 28px;
}

.redbull-image-button {
  max-height: 100%;
}

.redbull-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 6px;

  transform: translateX(-50%);
}

/* Billedet tilpasser sig den plads, der er tilbage over prikkerne */
.redbull-image {
  height: 100%;
}

/* NY: Mere højde mellem 481 og 850px, så der er plads til prikkerne */
@media (max-width: 850px) {
  .redbull-preview,
  .redbull-carousel {
    height: 223px;
  }
}

/* ========================================
   LILLE MOBIL – PILE UNDER BILLEDERNE
======================================== */

@media (max-width: 480px) {
  /* ---------- Posters og designs ---------- */

  /* Giv plads i bunden til pile og prikker */
  .mini-carousel-track {
    padding-bottom: 44px;
  }

  .mini-carousel-arrow {
    top: auto;
    bottom: 0;

    width: 32px;
    height: 32px;
    background-size: 32px 32px;

    transform: none;
  }

  .mini-carousel-arrow.mini-previous {
    left: calc(50% - 80px);
  }

  .mini-carousel-arrow.mini-next {
    right: calc(50% - 80px);
  }

  .mini-carousel-arrow:hover {
    transform: scale(1.08);
  }

  .mini-carousel-arrow:active {
    transform: scale(0.95);
  }

  /* Prikkerne på linje med pilene */
  .mini-carousel-dots {
    bottom: 12px;
  }

  /* ---------- Red Bull ---------- */

  .redbull-preview,
  .redbull-carousel {
    height: 240px;
  }

  .redbull-carousel {
    padding-bottom: 44px;
  }

  /* Fjerner den faste bredde på 340px */
  .redbull-image-button,
  .redbull-image {
    width: 100%;
    height: 190px;
  }

  .redbull-arrow {
    top: auto;
    bottom: 0;

    width: 32px;
    height: 32px;
    background-size: 32px 32px;

    transform: none;
  }

  .redbull-arrow.redbull-previous {
    left: calc(50% - 80px);
  }

  .redbull-arrow.redbull-next {
    right: calc(50% - 80px);
  }

  .redbull-arrow:hover {
    transform: scale(1.08);
  }

  .redbull-arrow:active {
    transform: scale(0.95);
  }

  /* Prikkerne på linje med pilene */
  .redbull-dots {
    bottom: 12px;
  }
}
/* ========================================
   PLAKAT-LIGHTBOX – PILE PÅ MOBIL
======================================== */

@media (max-width: 650px) {
  /* Plads i siderne til pilene */
  .poster-lightbox {
    padding: 70px 56px 30px;
  }

  .poster-lightbox-image {
    max-width: 100%;
  }

  .poster-lightbox-arrow {
    display: grid;

    width: 42px;
    height: 42px;
  }

  .poster-lightbox-arrow svg {
    width: 22px;
    height: 22px;
  }

  .poster-lightbox-previous {
    left: 8px;
  }

  .poster-lightbox-next {
    right: 8px;
  }
}
/* ========================================
   PLAKAT-LIGHTBOX – SAMME PILE SOM RED BULL
======================================== */

.poster-lightbox-arrow {
  width: 58px;
  height: 58px;

  border: 1px solid rgb(255 255 255 / 25%);
  background-color: rgb(255 255 255 / 9%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 26px 26px;

  backdrop-filter: none;
}

/* Skjul de hvide SVG-pile */
.poster-lightbox-arrow svg {
  display: none;
}

/* Samme billeder som Red Bull-pilene (også ved hover) */
.poster-lightbox-arrow.poster-lightbox-previous {
  background-image: url("arrowleft.png");
}

.poster-lightbox-arrow.poster-lightbox-next {
  background-image: url("arrowright.png");
}

.poster-lightbox-arrow:hover {
  background-color: rgb(255 255 255 / 18%);
}

/* Samme størrelse som Red Bull-pilene på mobil */
@media (max-width: 700px) {
  .poster-lightbox-arrow {
    width: 42px;
    height: 42px;
  }
}
/* ========================================
   PLAKAT-LIGHTBOX – SAMME KRYDS SOM RED BULL
======================================== */

.poster-lightbox-close {
  top: 24px;
  right: 28px;

  width: 56px;
  height: 56px;

  background-color: rgb(255 255 255 / 9%);

  font-family: Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1;

  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 700px) {
  .poster-lightbox-close {
    top: 14px;
    right: 14px;

    width: 44px;
    height: 44px;

    font-size: 2rem;
  }
}
/* ========================================
   LIGHTBOX-PILE – PLACERES AF JAVASCRIPT
======================================== */

.redbull-lightbox-arrow,
.taste-lightbox-arrow {
  position: absolute;
  top: 50%;

  /* Fjerner pilene fra griddet, så "left" måles fra skærmens kant */
  grid-column: auto;
  grid-row: auto;

  transform: translate(-50%, -50%);
}

.redbull-lightbox-arrow:hover,
.taste-lightbox-arrow:hover {
  transform: translate(-50%, -50%) scale(1.07);
}
/* ========================================
   TASTE CPH – BILLEDET CENTRERES LODRET
======================================== */

.project-card .taste-preview,
.project-card .taste-preview-button,
.project-card .taste-image-wrapper {
  align-items: center;
}

.project-card .taste-image-wrapper img {
  object-position: center center;
}
