#arbeider.vestlys-works {
  --vestlys-ratio: 3 / 2;
  --vestlys-paper: #fff7e8;
  --vestlys-ground: #0b1922;
  display: block;
  min-height: 0;
  padding: clamp(43px, 7svh, 90px) 0 clamp(34px, 4.5vw, 70px);
  overflow: visible;
  background: linear-gradient(#0d2028, #132c34 57%, #10262d);
  color: var(--paper);
}

#arbeider .section-heading {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: none;
  margin: 0 var(--gutter);
  padding: 0;
}

#arbeider .section-heading .vestlys-instruction { max-width: 27ch; }
.vestlys-works [hidden] { display: none !important; }

.vestlys-stage {
  --vestlys-angle: -4.25deg;
  --vestlys-pointer: 0px;
  --vestlys-exit: 0px;
  --vestlys-open: 0;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(40px, 6.5svh, 90px) 0 clamp(54px, 6vw, 106px);
}

.vestlys-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 57px) clamp(19px, 2vw, 34px);
  width: min(85vw, 1420px);
  margin-inline: auto;
  transform: rotate(var(--vestlys-angle));
}

.vestlys-card {
  --vestlys-weight: .85;
  --vestlys-direction: -1;
  position: relative;
  min-width: 0;
  margin: 0;
  transform: translateX(calc(var(--vestlys-pointer) * var(--vestlys-weight) + var(--vestlys-exit) * var(--vestlys-direction)));
  opacity: calc(1 - var(--vestlys-open) * .73);
}

.vestlys-card:nth-child(4n + 3), .vestlys-card:nth-child(4n + 4) {
  --vestlys-direction: 1;
  --vestlys-weight: 1;
}

.vestlys-card[data-work="horisont-sunnmorsalpene"] {
  --vestlys-weight: .65;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(76%, 1050px);
}

.vestlys-poster, .vestlys-destination {
  aspect-ratio: var(--vestlys-ratio);
  border-radius: 7px;
  overflow: hidden;
}

.vestlys-poster {
  position: relative;
  background: #09151b;
  box-shadow: 0 0 0 1px #e7d7b945, 0 12px 35px #020b135c;
}

.vestlys-card[data-work="brovold"] .vestlys-poster {
  box-shadow: 0 0 0 1px #c8a36a99, 0 16px 35px #020b1370;
}

.vestlys-card[data-work="horisont-sunnmorsalpene"] .vestlys-poster { aspect-ratio: 1440 / 920; }
.vestlys-poster img, .vestlys-flight img, .vestlys-destination img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vestlys-open {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.vestlys-poster:has(.vestlys-open:is(:hover, :focus-visible)) {
  box-shadow: 0 0 0 2px var(--brass, #c8a36a), 0 12px 34px #020b1370;
}
.vestlys-open:focus-visible { outline: 2px solid #f9e2b8; outline-offset: -4px; }

.vestlys-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: 12px;
  color: var(--vestlys-paper);
  transform: rotate(calc(var(--vestlys-angle) * -1));
  transform-origin: left top;
}

.vestlys-caption h3 {
  margin: 0;
  font: 630 clamp(1.17rem, 1.6vw, 1.72rem)/1.08 Hanken, 'Segoe UI', sans-serif;
  letter-spacing: -.031em;
}
.vestlys-status, .vestlys-preview-status {
  margin: 0 0 .23rem;
  color: #f1d3a6;
  font-size: clamp(.8rem, .89vw, .97rem);
  font-weight: 530;
  line-height: 1.25;
}
.vestlys-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--vestlys-paper);
  font-size: clamp(.85rem, 1vw, 1rem);
  text-decoration: underline;
  text-decoration-color: #e8c28c9e;
  text-underline-offset: .28em;
}
.vestlys-link:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
.vestlys-link:focus-visible, .vestlys-action:focus-visible { outline: 2px solid #f9e2b8; outline-offset: 4px; }

.vestlys-preview {
  --vestlys-progress: 0;
  --vestlys-copy: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: transparent;
  color: var(--vestlys-paper);
  font-family: Hanken, 'Segoe UI', sans-serif;
}
.vestlys-preview::backdrop { background: transparent; }
.vestlys-preview-surface { position: fixed; z-index: 0; inset: 0; background: var(--vestlys-ground); opacity: var(--vestlys-progress); }
.vestlys-preview-inner { position: relative; min-height: 100%; }
.vestlys-preview-top {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: clamp(10px, 1.55vh, 20px) var(--gutter);
  background: rgb(11 25 34 / calc(var(--vestlys-progress) * .96));
}
.vestlys-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .6em 1.05em;
  border: 1px solid #e4c39299;
  border-radius: 7px;
  background: #0f222af2;
  color: var(--vestlys-paper);
  font: 620 clamp(.84rem, 1vw, 1rem)/1.2 Hanken, 'Segoe UI', sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.vestlys-action:hover { background: #263c45; }
.vestlys-preview-link { color: #16242c; background: #f2e7d3; }
.vestlys-preview-link:hover { background: #fcefd9; }

.vestlys-preview-content {
  position: relative;
  width: min(calc(100% - 2 * var(--gutter)), max(320px, 110svh), 1380px);
  margin-inline: auto;
  padding: 12px 0 clamp(35px, 7vh, 90px);
}
.vestlys-destination { margin: 0; }
.vestlys-destination:has(img) { box-shadow: 0 0 0 1px #f6e3bb45, 0 14px 50px #0004; }
.vestlys-flight { position: fixed; z-index: 1; top: 0; left: 0; overflow: hidden; pointer-events: none; }

.vestlys-preview-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  align-items: start;
  gap: clamp(15px, 3.5vw, 62px);
  margin-top: clamp(22px, 4vh, 55px);
  padding-top: clamp(17px, 2.2vw, 34px);
  border-top: 1px solid #f4d5a448;
  opacity: var(--vestlys-copy);
}
.vestlys-preview-copy h2 {
  margin: 0;
  color: var(--vestlys-paper);
  font-size: clamp(2rem, 4.35vw, 4.6rem);
  font-weight: 610;
  line-height: 1;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.vestlys-preview-description, .vestlys-preview-about {
  max-width: 52ch;
  margin: 0;
  color: #d9dfdc;
  font-size: clamp(1.01rem, 1.4vw, 1.29rem);
  line-height: 1.48;
}
.vestlys-preview-description { margin-bottom: .45em; color: var(--vestlys-paper); font-weight: 580; }

@media (max-width: 1020px) {
  .vestlys-stage { --vestlys-angle: -3deg; }
}

@media (max-width: 720px) {
  #arbeider.vestlys-works { padding-top: 49px; }
  .vestlys-stage { --vestlys-angle: 0deg; padding: 22px var(--gutter) 16px; }
  .vestlys-collage { width: auto; grid-template-columns: minmax(0, 1fr); gap: 24px; transform: none; }
  .vestlys-card { transform: none; }
  .vestlys-card[data-work="horisont-sunnmorsalpene"] { width: 100%; }
  .vestlys-caption { margin-top: 9px; transform: none; }
  .vestlys-preview-top { padding-inline: var(--gutter); }
  .vestlys-preview-content { width: calc(100% - 2 * var(--gutter)); padding-top: 7px; }
  .vestlys-preview-copy { grid-template-columns: 1fr; gap: 12px; }
  .vestlys-preview-copy h2 { font-size: clamp(2.02rem, 9vw, 3.5rem); }
  .contact-form > .contact-fold-stage { inset-inline: max(-24px, calc(-1 * var(--gutter))); }
}

