/* «Flere vitser på veggen» – blokk med diffus bakgrunn og lite galleri.
   Fargene hentes fra sidens egne variabler; navnene under er standardverdier. */
.vv { --papir: var(--paper); --blekk: var(--ink);   /* koblet til sidens farger (følger lys/mørk modus) */
  --vv-papir: var(--papir, #EFE5CF); --vv-blekk: var(--blekk, #1E1B16);
  --vv-demp: color-mix(in srgb, var(--vv-blekk) 62%, var(--vv-papir));
  --vv-flate: color-mix(in srgb, var(--vv-papir) 86%, var(--vv-blekk));
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 136px) 0; }
.vv__bg { position: absolute; inset: -6%; z-index: -2; background-size: cover; background-position: 50% 40%; transform: scale(1.05); }
.vv::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--vv-papir) 0%, color-mix(in srgb, var(--vv-papir) 70%, transparent) 20%,
      color-mix(in srgb, var(--vv-papir) 62%, transparent) 50%, color-mix(in srgb, var(--vv-papir) 70%, transparent) 80%, var(--vv-papir) 100%),
    linear-gradient(to right, color-mix(in srgb, var(--vv-papir) 55%, transparent), transparent 60%); }
.vv__inn { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.vv__over { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--vv-demp); margin: 0 0 1rem; }
.vv h2 { font-family: "Anton", "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1.02;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin: 0 0 1.5rem; color: var(--vv-blekk); }
.vv__tekst { font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.25rem; max-width: 36ch; }
.vv__pris { font-weight: 600; margin: 0 0 2rem; }
.vv__knapp { display: inline-block; padding: .85rem 1.5rem; border: 1px solid var(--vv-blekk); color: var(--vv-blekk);
  text-decoration: none; letter-spacing: .02em; transition: background .2s, color .2s; }
.vv__knapp:hover, .vv__knapp:focus-visible { background: var(--vv-blekk); color: var(--vv-papir); outline: none; }

/* galleri */
.vv__galleri { margin: 0; min-width: 0; }
.vv__scene { position: relative; aspect-ratio: 4 / 5; background: var(--vv-flate); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 15, 10, .55); touch-action: pan-y; }
.vv__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  transition: opacity .45s ease; }
.vv__scene img.er-aktiv { opacity: 1; }
.vv__pil { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--vv-papir) 82%, transparent); color: var(--vv-blekk); font-size: 1.4rem; line-height: 1;
  cursor: pointer; opacity: .85; transition: opacity .2s; }
.vv__pil:hover, .vv__pil:focus-visible { opacity: 1; outline: 2px solid var(--vv-blekk); outline-offset: 2px; }
.vv__pil--forrige { left: 12px; } .vv__pil--neste { right: 12px; }
.vv__tekstlinje { display: flex; justify-content: space-between; gap: 1rem; margin: .9rem 0 0; font-size: .92rem; color: var(--vv-demp); }
.vv__tekstlinje em { font-style: italic; }
.vv__teller { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vv__miniatyrer { display: flex; gap: 8px; margin: 1rem 0 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.vv__miniatyrer button { display: block; width: 56px; height: 70px; padding: 0; border: 0; background: var(--vv-flate);
  cursor: pointer; opacity: .55; outline-offset: 2px; transition: opacity .2s; }
.vv__miniatyrer button[aria-current="true"] { opacity: 1; outline: 1.5px solid var(--vv-blekk); }
.vv__miniatyrer button:hover, .vv__miniatyrer button:focus-visible { opacity: 1; }
.vv__miniatyrer img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 820px) {
  .vv__inn { grid-template-columns: minmax(0, 1fr); }   /* minmax(0,…): miniatyrraden skal rulle, ikke utvide kolonnen */
  .vv::after { background: linear-gradient(to bottom, var(--vv-papir) 0%, color-mix(in srgb, var(--vv-papir) 72%, transparent) 15%,
      color-mix(in srgb, var(--vv-papir) 66%, transparent) 50%, color-mix(in srgb, var(--vv-papir) 72%, transparent) 85%, var(--vv-papir) 100%); }
}
@media (prefers-reduced-motion: reduce) { .vv__scene img, .vv__knapp { transition: none; } }
