/* Ebdrup: tilpasning til tablet og mobil. Desktop-designet er bygget i 1440 px. */


@media (max-width: 820px) {
  html, body { overflow-x: clip; }
  body > div[style*="width: 1440px"], [style*="width: 1444px"] { width: 100% !important; }

  /* ---------- typografi ---------- */
  [style*="font-size: 150px"], [style*="font-size: 140px"], [style*="font-size: 128px"] { font-size: 48px !important; line-height: .95 !important; }
  [style*="position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="font-size: 120px"], [style*="font-size: 104px"] { font-size: 48px !important; line-height: .98 !important; }
  [style*="font-size: 92px"], [style*="font-size: 84px"], [style*="font-size: 80px"], [style*="font-size: 78px"], [style*="font-size: 76px"] { font-size: 40px !important; line-height: 1.02 !important; }
  [style*="font-size: 64px"], [style*="font-size: 60px"], [style*="font-size: 56px"], [style*="font-size: 52px"] { font-size: 36px !important; }
  [style*="font-size: 50px"], [style*="font-size: 44px"], [style*="font-size: 40px"], [style*="font-size: 38px"] { font-size: 30px !important; }
  [style*="font-size: 17px"], [style*="font-size: 18px"] { font-size: 16px !important; }
  [style*="text-wrap-mode: nowrap"], [style*="white-space: nowrap"] { white-space: normal !important; text-wrap-mode: wrap !important; }
  .wd { white-space: nowrap; }

  /* ---------- generelle layouts ---------- */
  [style*="grid-template-columns"]:not([style*="repeat(7"]) { grid-template-columns: 1fr !important; }
  [style*="grid-template-rows: subgrid"] { grid-row: auto !important; grid-template-rows: auto !important; }
  [style*="width: 560px"], [style*="width: 520px"], [style*="width: 600px"], [style*="width: 700px"],
  [style*="width: 760px"], [style*="width: 820px"], [style*="width: 420px"], [style*="width: 1152px"] { max-width: 100%; }
  [style*="max-width: 1240px"], [style*="max-width: 1200px"], [style*="max-width: 1150px"] { max-width: 100% !important; }
  section[style*="padding"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="padding: 0 40px"], [style*="padding: 40px 40px"], [style*="padding: 60px 40px"], [style*="padding: 110px 40px"], [style*="padding: 120px 40px"], [style*="padding: 170px 40px"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="gap: 110px"], [style*="gap: 100px"] { gap: 40px !important; }
  [style*="gap: 70px"], [style*="gap: 60px"] { gap: 36px !important; }

  /* ---------- header og menu ---------- */
  header.hdr.hdr { height: 76px !important; padding: 0 20px !important; grid-template-columns: 1fr auto 1fr !important; }
  .hdr img { height: 34px !important; width: auto !important; }
  .menu .big { font-size: 46px !important; }
  .menu [style*="bottom: 44px"] { flex-direction: column; align-items: center; gap: 12px !important; }
  .menu [style*="right: 40px"] { right: 20px !important; top: 28px !important; }

  /* ---------- footer ---------- */
  footer { padding-left: 20px !important; padding-right: 20px !important; }
  footer [style*="grid-template-columns"] { gap: 30px !important; text-align: center; }
  footer [style*="grid-template-columns"] > div { align-items: center !important; }

  /* ---------- forside: hero ---------- */
  section[style*="height: 940px"] { height: 100svh !important; min-height: 620px; }
  [style*="padding: 90px 120px 0"] { padding: 76px 20px 0 !important; gap: 20px !important; align-items: center !important; text-align: center !important; }
  [style*="padding: 90px 120px 0"] > * { width: 100%; text-align: center !important; margin-left: auto; margin-right: auto; }
  [style*="padding: 90px 120px 0"] > .in.d1 { font-size: 8px !important; letter-spacing: .3em !important; padding-left: .3em; width: 317px; }
  [style*="padding: 90px 120px 0"] > h1 { font-size: 65px !important; letter-spacing: -1.76px !important; line-height: .98 !important; }
  [style*="padding: 90px 120px 0"] .pill { width: auto; }
  [style*="padding: 90px 120px 0"] h1 [style*="text-wrap-mode: nowrap"] { white-space: nowrap !important; text-wrap-mode: nowrap !important; }
  .pill[style*="font-size: 26px"] { font-size: 18px !important; min-height: 52px !important; padding: 0 30px !important; }
  [style*="flex: none; width:"][style*="border-right: 6px"] { width: 70vw !important; }

  /* "Jeg fotograferer" */
  section[aria-label="Jeg fotograferer"] > div { flex-wrap: wrap; justify-content: center; gap: 6px 18px !important; }
  section[aria-label="Jeg fotograferer"] [style*="font-size: 24px"] { font-size: 20px !important; }

  /* Galleri med scroll: kun to kolonner */
  .gsc { height: 2600px !important; }
  .gsc.gsc [style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }
  .gsc [style*="grid-template-columns"] > div:nth-child(3) { display: none !important; }
  .gsc .zi { height: 300px !important; }
  .gsc .gd.gd, .gsc .gu.gu { --d: calc(100 * var(--vh) - 1820px) !important; }
  .gsc [style*="width: 360px"] { width: 200px !important; margin-left: -100px !important; bottom: 24px !important; }

  /* Mød Line */
  #mod-line { padding: 120px 20px 110px !important; gap: 40px !important; }

  /* Anmeldelser: billede øverst, tekst nedenunder */
  section.tst { height: auto !important; }
  .tst .tR { display: none !important; }
  .tst [style*="width: 50%"] { position: relative !important; width: 100% !important; padding: 130px 24px 60px !important; gap: 22px !important; }
  .tst [style*="width: 260px"] { width: 190px !important; height: 240px !important; }
  .tst p[style*="width: 520px"] { width: 100% !important; max-width: 340px; font-size: 15px !important; line-height: 1.7 !important; }
  .tst span[style*="font-size: 44px"] { font-size: 28px !important; }
  .tst span[aria-hidden="true"][style*="font-size: 2100px"] { font-size: 1500px !important; left: 52% !important; top: 78% !important; transform: translate(-50%, -32%) !important; }
  .tst .tA { position: relative !important; left: auto !important; right: auto !important; bottom: auto !important; width: 100%; max-width: 330px; margin-top: 6px; }
  .tst .arw { font-size: 36px !important; }

  /* Historier (sticky) */
  .stk .sn span, .sn span { font-size: 34px !important; text-align: center; }
  .stk a.sn { height: 70vh !important; }
  .stk > div[style*="200px) 0"] { padding: 15vh 0 15vh !important; }

  /* Albums / Instagram-blok */
  div[style*="grid-template-columns: 720px 1fr"][style*="gap"] { grid-template-columns: 56% 1fr !important; gap: 14px !important; }
  a.cu[style*="height: 1000px"] { height: 320px !important; overflow: visible !important; background: transparent !important; }
  [style*="height: 1180px"][style*="rotate"] { width: 100% !important; height: 290px !important; padding: 12px !important; gap: 10px !important; left: 0 !important; top: 18px !important; transform: rotate(-6deg) !important; }
  [style*="height: 1180px"][style*="rotate"] [style*="gap: 14px"] { gap: 10px !important; }
  a.tl, a.tr { opacity: 1 !important; }
  [style*="height: 1180px"][style*="rotate"][style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; grid-template-rows: minmax(0, 1fr) !important; }
  [style*="height: 1180px"][style*="rotate"] [style*="grid-template-rows"] { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important; min-height: 0; }
  [style*="height: 1180px"][style*="rotate"] img { min-height: 0; height: 100% !important; }
  [style*="padding-top: 70px; padding-right: 60px"] { padding: 0 !important; }
  [style*="padding-top: 70px; padding-right: 60px"] p { font-size: 12.5px !important; line-height: 1.6 !important; }
  [style*="padding-top: 70px; padding-right: 60px"] a.rv { margin-top: 18px !important; }
  [style*="padding-top: 70px; padding-right: 60px"] .nl[style*="font-size: 64px"] { font-size: 21px !important; white-space: nowrap; }
  [style*="height: 520px; margin-top: 70px"] { height: 230px !important; margin-top: 40px !important; }
  a.tl[style*="width: 300px"] { width: 106px !important; height: 148px !important; top: 6px !important; left: auto !important; right: 74px !important; }
  a.tr[style*="left: 290px"] { left: auto !important; right: 2px !important; width: 104px !important; height: 146px !important; top: 34px !important; }
  h2 .ln { white-space: nowrap; }
  section[aria-label="Følg med på Instagram"] h2 { font-size: 9.5vw !important; line-height: 1.12 !important; text-align: right !important; margin: 0 -8px 30px -8px !important; }
  section[aria-label="Følg med på Instagram"] h2 .ln, section[aria-label="Følg med på Instagram"] h2 .lv { text-align: right !important; }
  section[aria-label="Følg med på Instagram"] h2 .ln { padding-bottom: .08em; }
  section[style*="padding: 160px 0 160px"] { padding-top: 90px !important; padding-bottom: 100px !important; }
  [style*="grid-template-columns: 720px 1fr"] > div:first-child { min-height: 0 !important; height: auto !important; }

  /* CTA-kort */
  .m-only { display: inline !important; } .d-only { display: none !important; }
  [style*="width: 420px"][style*="margin: -280px 0 0 -210px"] { padding: 36px 20px !important;  width: 300px !important; height: 400px !important; margin: -200px 0 0 -150px !important; }

  /* ---------- Om ---------- */
  section[style*="height: 940px"] h1[style*="right: 40px"] { right: 20px !important; left: 20px !important; top: 35% !important; text-align: right !important; font-size: 48px !important; }
  div[style*="grid-template-columns: 220px 330px 330px"][style*="position: absolute"] { grid-template-columns: 58px 1fr 1fr !important; gap: 12px !important; left: 16px !important; right: 16px !important; bottom: 130px !important; }
  [style*="grid-template-columns: 220px 330px 330px"] > span { font-size: 9px !important; letter-spacing: .18em !important; }
  [style*="grid-template-columns: 220px 330px 330px"] p { font-size: 12px !important; line-height: 1.55 !important; }
  section[style*="position: sticky"][style*="grid-template-columns: 1fr 560px"] { padding: 30px 20px 34px !important; gap: 20px !important; }
  section[style*="position: sticky"][style*="top: 110px"][style*="1fr 560px"] { top: 52px !important; }
  section[style*="position: sticky"][style*="top: 220px"][style*="1fr 560px"] { top: 104px !important; }
  section[style*="position: sticky"][style*="top: 330px"][style*="1fr 560px"] { top: 156px !important; }
  section[style*="position: sticky"][style*="1fr 560px"] > div:first-child { gap: 16px !important; }
  section[style*="grid-template-columns: 1fr 560px"] .zi { height: 250px !important; }
  section[style*="grid-template-columns: 1fr 560px"] img[style*="height: 551px"] { height: 100% !important; }
  .mq.fast, .mq[style*="font-size: 128px"] { font-size: 54px !important; }

  /* ---------- Priser ---------- */
  h1 br.m-only { display: inline !important; }
  section[style*="height: 760px"] h1 { font-size: 48px !important; line-height: .95 !important; }
  /* Kender I det, Hvad nu hvis, Sådan: lavt billede øverst, tekst nedenunder */
  section[style*="grid-template-columns: 720px 1fr"][style*="align-items: center"],
  div[style*="grid-template-columns: 600px 1fr; gap: 100px"][style*="display: grid"],
  div[style*="grid-template-columns: 600px 1fr; gap: 0"][style*="display: grid"] { grid-template-columns: 1fr !important; gap: 28px !important; align-items: start !important; }
  section[style*="grid-template-columns: 720px 1fr"][style*="align-items: center"] { padding-bottom: 90px !important; }
  section[style*="grid-template-columns: 720px 1fr"] > .cu,
  div[style*="grid-template-columns: 600px 1fr; gap: 100px"] > .cu,
  div[style*="grid-template-columns: 600px 1fr; gap: 0"] > .cu { order: -1; height: 200px !important; width: 100% !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 100px"][style*="display: grid"],
  div[style*="grid-template-columns: 600px 1fr; gap: 0"][style*="display: grid"] { margin: 0 !important; }
  section[style*="grid-template-columns: 720px 1fr"] > div:not(.cu) { padding: 0 20px !important; gap: 18px !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 100px"] > div:not(.cu),
  div[style*="grid-template-columns: 600px 1fr; gap: 0"] > div:not(.cu) { padding: 0 !important; margin: 0 !important; gap: 18px !important; border-left: 0 !important; }
  section[style*="grid-template-columns: 720px 1fr"] h2 { font-size: 40px !important; }
  section[style*="grid-template-columns: 720px 1fr"] p,
  div[style*="grid-template-columns: 600px 1fr; gap: 100px"] p { font-size: 15px !important; line-height: 1.6 !important; }
  [style*="margin: 0 0 110px"] { margin-bottom: 36px !important; }
  [style*="margin: 0 0 80px"] { margin-bottom: 30px !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 100px"] h3 { font-size: 36px !important; margin: 0 !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 0"] .rv { gap: 12px !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 0"] span[style*="width: 54px"] { width: 34px !important; height: 34px !important; font-size: 15px !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 0"] h3 { font-size: 22px !important; line-height: 1.05 !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 0"] p { font-size: 13.5px !important; line-height: 1.5 !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 0"] [style*="gap: 12px"] { gap: 6px !important; }
  /* motiver lidt ned, så ansigterne ses */
  section[style*="grid-template-columns: 720px 1fr"] > .cu img { object-position: 50% 34% !important; }
  div[style*="grid-template-columns: 600px 1fr; gap: 100px"] > .cu img { object-position: 50% 18% !important; }
  /* mindre luft mellem sektionerne */
  section[style*="grid-template-columns: 720px 1fr"][style*="align-items: center"] { padding-bottom: 0 !important; }
  section[style*="padding: 170px 40px 160px"] { padding-top: 110px !important; padding-bottom: 60px !important; }
  section[style*="padding: 120px 40px 140px"] { padding-top: 30px !important; }
  /* Anmeldelser skjules på mobil */
  section:has(> div > figure > blockquote) { display: none !important; }
  /* Detaljerne: to bokse ved siden af hinanden */
  div[style*="grid-template-columns: 540px 540px"][style*="display: grid"] { grid-template-columns: 1fr 1fr !important; column-gap: 8px !important; }
  div[style*="grid-template-columns: 540px 540px"] > div[style*="subgrid"] { grid-row: span 3 !important; grid-template-rows: subgrid !important; padding: 20px 10px !important; row-gap: 14px !important; }
  div[style*="grid-template-columns: 540px 540px"] h3 { font-size: 19px !important; white-space: normal !important; margin-bottom: 10px !important; }
  div[style*="grid-template-columns: 540px 540px"] ol { font-size: 9.5px !important; line-height: 1.35 !important; gap: 12px !important; padding-left: 13px !important; letter-spacing: 0 !important; }
  div[style*="grid-template-columns: 540px 540px"] label > span { font-size: 9px !important; letter-spacing: .14em !important; }
  div[style*="grid-template-columns: 540px 540px"] label > span span[style*="font-size: 16px"] { font-size: 13px !important; }
  div[style*="grid-template-columns: 540px 540px"] p { font-size: 8.5px !important; line-height: 1.35 !important; letter-spacing: 0 !important; }
  div[style*="grid-template-columns: 540px 540px"] [style*="font-size: 56px"] { font-size: 26px !important; white-space: nowrap !important; }
  div[style*="grid-template-columns: 540px 540px"] [style*="justify-content: space-between; align-items: baseline"] { margin-bottom: 10px !important; padding-top: 14px !important; flex-direction: column; align-items: flex-start !important; gap: 4px; }
  div[style*="grid-template-columns: 540px 540px"] .pill { font-size: 11px !important; padding: 0 12px !important; min-height: 38px !important; white-space: nowrap; }
  div[style*="grid-template-columns: 540px 540px"] [style*="gap: 30px"] { gap: 16px !important; }
  [style*="height: 560px"].rv.zi, a.rv.zi[style*="height: 560px"] { height: 460px !important; }

  /* ---------- Portfolio ---------- */
  [data-for-out="pics"] { display: contents; }
  div[style*="grid-template-columns: repeat(3, 1fr); gap: 10px"][style*="display: grid"] { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
  section [style*="justify-content: space-between; align-items: flex-end"] { flex-direction: column; align-items: flex-start !important; gap: 24px !important; padding: 100px 0 30px !important; }
  section [style*="align-items: flex-end; gap: 8px; text-align: right"] { align-items: flex-start !important; text-align: left !important; }
  [role="dialog"] img[style*="max-width: 80%"] { max-width: 100% !important; }
  .arw { width: 46px !important; height: 46px !important; }
  [role="dialog"] .arw.l { left: 10px !important; } [role="dialog"] .arw:not(.l) { right: 10px !important; }

  /* ---------- Kontakt ---------- */
  [style*="width: 340px"][style*="position: absolute"] { width: 100% !important; max-width: 340px; }
  section[style*="min-height: 1150px"] { min-height: 0 !important; }
}
