/* Additions to the original site.css (Tailwind build of the old site). */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
[data-reveal] { transition: opacity .6s cubic-bezier(.21,.47,.32,.98), transform .6s cubic-bezier(.21,.47,.32,.98); }
[data-reveal].reveal-pending { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
}
#ts-box { position: fixed; bottom: 0; right: 0; z-index: 60; }
/* header: Vidas's emblem before the name */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-logo { height: 40px; width: auto; flex: none; }
@media (min-width: 640px) { .brand-logo { height: 46px; } .brand { gap: .75rem; } }
@media (max-width: 359px) { .brand { gap: .35rem; letter-spacing: .04em; font-size: .875rem; } .brand-logo { height: 28px; } }
/* Christmas emblem (logo-emblem-xmas.png, 201x257: a Santa hat 62 px above the 195 px emblem; build_pages.py XMAS_HAT):
   the emblem is --eh tall and the hat stands above it, out of the layout; in the header the emblem is 2-4 px smaller
   than the plain one (40 / 46 px), or the hat's top would be cut by the window's edge */
.brand-logo.xmas { --eh: 38px; height: calc(var(--eh) * 257 / 195); margin-top: calc(var(--eh) * -62 / 195); }
@media (min-width: 640px) { .brand-logo.xmas { --eh: 42px; } }
@media (max-width: 359px) { .brand-logo.xmas { --eh: 28px; } }
/* desktop header: no phone button (2026-11-16), so the menu stays in the middle and the
   language switch sits at the right edge */
@media (min-width: 1024px) {
  header > div { display: grid; grid-template-columns: 1fr auto 1fr; }
  header > div > .brand { justify-self: start; }
  header > div > :last-child { justify-self: end; }
}
/* services: a "bento" grid (2026-11-16). Engine repairs is a big photo tile, BMW diagnostics
   a wide one, remap and A/C (2026-11-18) big photo tiles too, the rest are compact tiles with an icon.
   Built by tools/build_pages.py. */
.svc-grid { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cell.big, .svc-cell.wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); }
  .svc-cell.big { grid-row: span 2; }
}
.svc-cell { display: flex; }
.svc { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  padding: 1.5rem; border-radius: 16px; background: #141414; border: 1px solid rgb(255 255 255 / .08);
  transition: border-color .3s; }
.svc:hover { border-color: rgb(255 212 0 / .4); }
.svc-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; color: #FFD400;
  background: rgb(255 212 0 / .1); border: 1px solid rgb(255 212 0 / .2); }
.svc h3 { margin-top: 1.2rem; font: 800 1.05rem/1.25 var(--font-heading); text-transform: uppercase;
  letter-spacing: .03em; color: #fff; }
.svc p { margin-top: .55rem; flex: 1; font-size: .86rem; line-height: 1.55; color: #a3a3a3; }
.svc--photo { justify-content: flex-end; min-height: 300px; }
.svc--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.7); transition: transform .6s; }
.svc--photo:hover img { transform: scale(1.04); }
.svc--photo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgb(0 0 0 / .8) 65%, #000 100%); }
.svc--photo p { flex: none; color: rgb(255 255 255 / .7); }
.svc--wide img { object-position: 70% 50%; }
/* the A/C photo has dark space under the panel, so its display shows above the text on any screen */
#aircondition img { object-position: 50% 25%; }
/* the Tesla photo: keep the logo on the wheel and the screen in view on a tablet's wide, low tile */
#tesla img { object-position: 50% 15%; }
/* the EV photo: keep the plug in the charging port above the text */
#elbil img { object-position: 30% 35%; }
/* the suspension photo: the strut and its spring above the text */
#understell img { object-position: 50% 20%; }
.svc-txt { display: flex; flex-direction: column; }
.svc-tag { align-self: flex-start; margin-bottom: .8rem; padding: .35rem .5rem; border-radius: 4px;
  background: #FFD400; color: #0a0a0a; font: 800 .65rem/1 var(--font-heading); letter-spacing: .15em; }
.svc--wide h3 { margin-top: 0; }
@media (min-width: 1024px) {
  .svc--big h3 { font-size: 1.7rem; }
  .svc--big p { max-width: 30rem; font-size: 1rem; }
  .svc--wide { justify-content: center; }
  .svc--wide .svc-txt { max-width: 55%; }
  .svc--wide::after { background: linear-gradient(90deg, #000 0, rgb(0 0 0 / .8) 45%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .svc--photo img { transition: none; }
}
/* BMW diagnostics: a BMW steering wheel and iDrive screen (2026-11-16, instead of the AI laptop).
   On desktop the photo is as tall as the text column beside it. */
@media (min-width: 1024px) {
  #bmw .bmw-media { align-self: stretch; display: flex; flex-direction: column; }
  #bmw .bmw-media > div { flex: 1; min-height: 420px; }
  #bmw .bmw-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
/* ---- the site split into pages (2026-11-17): Hjem, Tjenester, BMW-diagnose, Kontakt ---- */
/* one card style everywhere: the rounded dark tile of the service grid */
.ub-card { border-radius: 16px; background: #141414; border: 1px solid rgb(255 255 255 / .08); }
/* header: the page you are on, and the yellow "Bestill time" button (from 640px; on phones it is in the menu) */
header nav:not(#mobile-menu) a { position: relative; }
header nav:not(#mobile-menu) a[aria-current="page"] { color: #fff; }
header nav:not(#mobile-menu) a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; border-radius: 2px; background: #FFD400; }
.hdr-book { display: none; }
@media (min-width: 640px) {
  .hdr-book { display: inline-flex; align-items: center; height: 34px; padding: 0 1rem; margin-right: .5rem;
    border-radius: 2px; background: #FFD400; color: #0a0a0a; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; transition: filter .2s; }
  .hdr-book:hover { filter: brightness(.95); }
}
#mobile-menu a[aria-current="page"] { color: #FFD400; }
#mobile-menu a.mm-book[aria-current="page"] { color: #0a0a0a; }
.hdr-book[aria-current="page"] { box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3px #FFD400; }
/* Kontakt: the contact lines a size larger (they are the page) */
.ub-contact { font-size: 1rem; }
@media (min-width: 1024px) { .ub-contact-side { padding-top: 2.6rem; } }
#mobile-menu .mm-book { display: flex; justify-content: center; margin: .5rem 0 .75rem; padding: .9rem 1rem;
  border-radius: 2px; background: #FFD400; color: #0a0a0a; font-size: .875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; }
.arr { flex: none; width: 1.1rem; height: 1.1rem; transition: transform .25s; }
/* home: the hero leaves room for the strengths row below it */
#top { min-height: min(80svh, 820px); }
/* home: three strengths in a row */
.ub-strengths { border-bottom: 1px solid rgb(255 255 255 / .08); background: #0d0d0d; }
.ub-str-grid { display: grid; gap: 1.5rem; padding: 2.25rem 0; }
@media (min-width: 768px) { .ub-str-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 2.75rem 0; } }
.ub-str-grid li { display: flex; align-items: flex-start; gap: 1rem; }
.ub-str-grid .svc-ic { flex: none; }
.ub-str-grid h3 { font: 800 .95rem/1.3 var(--font-heading); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.ub-str-grid p { margin-top: .35rem; font-size: .875rem; line-height: 1.55; color: #a3a3a3; }
.ub-link:hover .arr, .ub-cta-btn:hover .arr, .svc-more:hover .arr { transform: translateX(4px); }
.ub-link:focus-visible, .ub-cta-btn:focus-visible, .svc-more:focus-visible,
.hdr-book:focus-visible { outline: 2px solid #FFD400; outline-offset: 3px; }
.ub-cta-btn:focus-visible { outline-color: #0a0a0a; }
/* home: a narrow BMW band (the BMW-diagnose page's photo on the right) */
.ub-band { position: relative; isolation: isolate; overflow: hidden; background: #111;
  border-block: 1px solid rgb(255 212 0 / .3); }
.ub-band-img { position: absolute; inset: 0; z-index: -1; }
.ub-band-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .35; }
.ub-band-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(17 17 17 / .6), #111); }
.ub-band-txt { max-width: 38rem; padding: 4rem 0; }
.ub-band h2 { margin-top: .75rem; font: 800 1.6rem/1.15 var(--font-heading); text-transform: uppercase; color: #fff; }
.ub-band p:not(:first-child) { margin-top: 1rem; color: rgb(255 255 255 / .72); line-height: 1.6; }
.ub-link { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; color: #FFD400; font-size: .875rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 1024px) {
  .ub-band-img { left: 52%; }
  .ub-band-img img { opacity: 1; object-position: 40% 42%; }
  .ub-band-img::after { background: linear-gradient(90deg, #111 0, rgb(17 17 17 / .55) 35%, transparent 75%); }
  .ub-band-txt { max-width: 46%; padding: 4.5rem 0; }
  .ub-band h2 { font-size: 2rem; }
}
/* the call to action at the bottom of Hjem and Tjenester */
.ub-cta { background: #FFD400; color: #0a0a0a; }
.ub-cta-in { display: flex; flex-direction: column; gap: 1.75rem; padding: 3.5rem 0; }
.ub-cta h2 { font: 900 1.9rem/1.05 var(--font-heading); text-transform: uppercase; letter-spacing: -.01em; }
.ub-cta p { margin-top: .75rem; max-width: 34rem; font-size: 1rem; line-height: 1.55; color: rgb(10 10 10 / .78); }
.ub-cta-btn { align-self: flex-start; flex: none; display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.75rem; border-radius: 2px; background: #0a0a0a; color: #fff; font-size: .875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; transition: background .2s; }
.ub-cta-btn:hover { background: #262626; }
@media (min-width: 768px) {
  .ub-cta-in { flex-direction: row; align-items: center; justify-content: space-between; padding: 4rem 0; }
  .ub-cta h2 { font-size: 2.6rem; }
  .ub-cta-btn { align-self: center; }
}
/* Tjenester: the home page's links land on a tile; the BMW tile links to its page */
/* site.css keeps 5rem free above an anchor (scroll-padding-top); a new page opens at its tile at once,
   not with the one-page site's smooth scroll */
html { scroll-behavior: auto; }
.svc-cell { scroll-margin-top: 1rem; }
.svc-cell:target .svc { border-color: #FFD400; }
.svc-more { margin-top: 1rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .86rem; font-weight: 600; color: #FFD400; }
.svc-more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .arr { transition: none; } }
input[name="reg_no"] { text-transform: uppercase; }
input[name="reg_no"]::placeholder { text-transform: none; }
/* the plate field: the car found for it below (site.js); "Bilmerke og modell" opens only when needed */
#booking-form [hidden] { display: none !important; }
.plate-cell { display: grid; gap: .5rem; align-content: start; }
.plate-status { font-size: .875rem; line-height: 1.4; color: #a3a3a3; }
.plate-status.ok { color: #FFD400; font-weight: 600; }
.car-toggle { justify-self: start; text-align: left; font-size: .8rem; color: rgb(255 255 255 / .6);
  text-decoration: underline; text-underline-offset: 3px; }
.car-toggle:hover { color: #fff; }
.car-toggle:focus-visible { outline: 2px solid #FFD400; outline-offset: 3px; }
/* BMW-diagnose: each card has "Les mer", which opens a window with the details (2026-11-17);
   the whole card is the button (its ::after covers the card) */
.bmw-card { position: relative; display: flex; flex-direction: column; transition: border-color .3s; }
.bmw-card > p { flex: 1; }
.bmw-card:hover { border-color: rgb(255 212 0 / .4); }
.bmw-more { margin-top: 1rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem;
  color: #FFD400; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.bmw-more::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.bmw-more svg { transition: transform .3s; }
.bmw-card:hover .bmw-more svg { transform: rotate(90deg); }
.bmw-more:focus-visible { outline: none; }
.bmw-more:focus-visible::after { outline: 2px solid #FFD400; outline-offset: 2px; }
html:has(dialog.ub-dialog[open]) { overflow: hidden; }
.ub-dialog { margin: auto; padding: 0; width: min(38rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem);
  overflow-y: auto; overscroll-behavior: contain; color: #e5e5e5; background: #141414;
  border: 1px solid rgb(255 255 255 / .1); border-radius: 16px; box-shadow: 0 24px 60px rgb(0 0 0 / .6); }
.ub-dialog::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(3px); }
.ub-dialog[open] { animation: ub-dlg-in .22s cubic-bezier(.21,.47,.32,.98); }
.ub-dialog[open]::backdrop { animation: ub-fade .22s ease-out; }
@keyframes ub-dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes ub-fade { from { opacity: 0; } }
.ub-dlg-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: .9rem;
  padding: 1.25rem 1.25rem 1rem; background: #141414; border-bottom: 1px solid rgb(255 255 255 / .08); }
.ub-dlg-head .svc-ic { flex: none; width: 2.6rem; height: 2.6rem; }
.ub-dlg-head h2 { flex: 1; font: 800 1.15rem/1.2 var(--font-heading); text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.ub-dlg-x { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin: -.25rem -.4rem -.25rem 0;
  border-radius: 10px; color: #a3a3a3; cursor: pointer; transition: color .2s, background .2s; }
.ub-dlg-x:hover { color: #fff; background: rgb(255 255 255 / .08); }
.ub-dlg-x:focus-visible, .ub-dlg-book:focus-visible { outline: 2px solid #FFD400; outline-offset: 2px; }
.ub-dlg-body { padding: 1.25rem; font-size: .925rem; line-height: 1.65; color: #c4c4c4; }
.ub-dlg-body .ub-dlg-lead { color: #e5e5e5; }
.ub-dlg-body h3 { margin-top: 1.4rem; font: 800 .8rem/1.3 var(--font-heading); text-transform: uppercase;
  letter-spacing: .12em; color: #FFD400; }
.ub-dlg-body h3 + p, .ub-dlg-body ul { margin-top: .6rem; }
.ub-dlg-body li { position: relative; padding-left: 1.4rem; }
.ub-dlg-body li + li { margin-top: .45rem; }
.ub-dlg-body li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .45rem; height: .45rem;
  border-radius: 2px; background: #FFD400; }
.ub-dlg-note { margin-top: 1.4rem; padding: .85rem 1rem; border-radius: 10px; font-size: .85rem; color: #d4d4d4;
  background: rgb(255 212 0 / .07); border: 1px solid rgb(255 212 0 / .18); }
.ub-dlg-foot { padding: 0 1.25rem 1.25rem; }
.ub-dlg-book { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.5rem;
  border-radius: 4px; background: #FFD400; color: #0a0a0a; font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; transition: filter .2s; }
.ub-dlg-book:hover { filter: brightness(.95); }
.ub-dlg-book:hover .arr { transform: translateX(4px); }
@media (min-width: 640px) {
  .ub-dlg-head { padding: 1.5rem 1.75rem 1.1rem; }
  .ub-dlg-body { padding: 1.4rem 1.75rem 1.5rem; }
  .ub-dlg-foot { padding: 0 1.75rem 1.75rem; }
}
@media (max-width: 639px) { .ub-dlg-book { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .ub-dialog[open], .ub-dialog[open]::backdrop { animation: none; }
  .bmw-more svg { transition: none; }
}
/* Hjem: the header's "Bestill time" waits until the hero's button is scrolled away (site.js);
   it fades in place, so the menu and the language switch do not move */
.hdr-book { transition: filter .2s, opacity .25s, visibility .25s; }
.hdr-book.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hdr-book { transition: none; } }
/* footer: the emblem beside the name, as in the header (2026-11-17) */
.ft-brand { display: inline-flex; align-items: center; gap: .9rem; }
.ft-logo { height: 60px; width: auto; flex: none; }
@media (min-width: 768px) { .ft-logo { height: 68px; } }
.ft-logo.xmas { --eh: 60px; height: calc(var(--eh) * 257 / 195); margin-top: calc(var(--eh) * -62 / 195); }
@media (min-width: 768px) { .ft-logo.xmas { --eh: 68px; } }
.ft-brand:focus-visible { outline: 2px solid #FFD400; outline-offset: 4px; border-radius: 4px; }
/* Hjem: SjekkPunkt and the Statens vegvesen "Godkjent bilverksted" mark at the top of the hero, above
   "Bilverksted i Sandnes" (2026-11-17) */
.ub-trust { margin-bottom: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; }
.ub-trust li { display: flex; align-items: center; }
.ub-trust-sp img { height: 24px; width: auto; }
.ub-trust-vv { gap: .9rem; }
.ub-trust-vv img { height: 54px; width: auto; flex: none; }
.ub-trust-vv strong { display: block; font: 800 .9rem/1.15 var(--font-heading); text-transform: uppercase;
  letter-spacing: .06em; color: #fff; }
.ub-trust-vv small { display: block; margin-top: .3rem; font-size: .72rem; color: rgb(255 255 255 / .6); }
@media (min-width: 640px) {
  .ub-trust { margin-bottom: 2.75rem; gap: 1rem 2rem; }
  .ub-trust li + li { padding-left: 2rem; border-left: 1px solid rgb(255 255 255 / .15); }
  .ub-trust-sp img { height: 28px; }
  .ub-trust-vv img { height: 62px; }
}
/* Personvern (2026-11-17): a readable text page */
.ub-legal-lead { margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.65; color: rgb(255 255 255 / .8); }
.ub-legal-date { margin-top: .75rem; font-size: .8rem; color: rgb(255 255 255 / .45); }
.ub-legal-body { margin-top: 2.5rem; font-size: .95rem; line-height: 1.7; color: #c4c4c4; }
.ub-legal-body h2 { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / .08);
  font: 800 1.05rem/1.3 var(--font-heading); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.ub-legal-body h2:first-child { margin-top: 0; }
.ub-legal-body p, .ub-legal-body ul { margin-top: .85rem; }
.ub-legal-body li { position: relative; padding-left: 1.4rem; }
.ub-legal-body li + li { margin-top: .5rem; }
.ub-legal-body li::before { content: ""; position: absolute; left: .2rem; top: .68em; width: .4rem; height: .4rem;
  border-radius: 2px; background: #FFD400; }
.ub-legal-body strong { color: #fff; font-weight: 600; }
.ub-legal-body a, .ub-note-link { color: #FFD400; text-decoration: underline; text-underline-offset: 3px; }
.ub-legal-body a:hover, .ub-note-link:hover { color: #fff; }
/* footer: the Personvern link beside the org. number */
.ft-legal { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.ft-legal a { text-decoration: underline; text-underline-offset: 3px; }
.ft-legal a:hover { color: #fff; }
/* the long word "Personvernerklæring" fits a phone (2026-11-17) */
.ub-legal h1 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 639px) { .ub-legal h1 { font-size: clamp(1.25rem, 6vw, 1.875rem); } }

/* Galleri (2026-11-17): the photos Vidas adds in /admin; the Worker fills #gal */
.gal-grid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.gal-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #141414;
  border: 1px solid rgb(255 255 255 / .08); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.21,.47,.32,.98), filter .3s; }
.gal-item:hover img { transform: scale(1.04); filter: brightness(1.06); }
.gal-item:focus-visible { outline: 2px solid #FFD400; outline-offset: 3px; }
.gal-cap { margin-top: .55rem; font-size: .875rem; line-height: 1.45; color: #a3a3a3; overflow-wrap: anywhere; }
.gal-empty { margin-top: 2.5rem; padding: 2.5rem 1.5rem; border-radius: 16px; text-align: center; color: #a3a3a3;
  border: 1px dashed rgb(255 255 255 / .15); }
@media (max-width: 639px) {
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 2rem; }
  .gal-item { border-radius: 8px; }
  .gal-cap { font-size: .8rem; }
}
/* gallery folders (2026-11-21): a tile per folder (a car brand's logo, or the folder's first photo) above the photos
   in no folder; a folder's own page has a link back. The Worker fills #gal-folders (src/worker.js albumTile). */
.gal-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.5rem; font-size: .9rem; font-weight: 600;
  color: rgb(255 255 255 / .7); transition: color .2s; }
.gal-back:hover { color: #FFD400; }
#gallery-title { display: flex; align-items: center; gap: .3em; overflow-wrap: anywhere; }
.gal-title-logo { flex: none; width: 1em; height: 1em; object-fit: contain; }
.gal-folders { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.gal-folder { display: block; border-radius: 14px; }
.gal-folder-art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 14px; border: 1px solid rgb(255 255 255 / .08);
  background: linear-gradient(145deg, #1d1d1d, #121212); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  transition: border-color .25s; }
.gal-folder-art.logo img { width: 46%; height: 54%; object-fit: contain; opacity: .92;
  transition: transform .45s cubic-bezier(.21,.47,.32,.98), opacity .25s; }
.gal-folder-art.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.21,.47,.32,.98); }
.gal-folder:hover .gal-folder-art, .gal-folder:focus-visible .gal-folder-art { border-color: #FFD400; }
.gal-folder:hover .gal-folder-art.logo img { transform: scale(1.06); opacity: 1; }
.gal-folder:hover .gal-folder-art.photo img { transform: scale(1.04); }
.gal-folder:focus-visible { outline: 2px solid #FFD400; outline-offset: 3px; }
.gal-folder-name { display: block; margin-top: .65rem; font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.gal-folder-n { display: block; margin-top: .15rem; font-size: .8rem; color: #a3a3a3; }
.gal-sub { margin-top: 3.5rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; }
.gal-sub + .gal-grid { margin-top: 1.25rem; }
@media (max-width: 639px) {
  .gal-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 2rem; }
  .gal-folder, .gal-folder-art { border-radius: 10px; }
  .gal-folder-name { font-size: .9rem; margin-top: .5rem; }
  .gal-sub { margin-top: 2.5rem; font-size: 1.05rem; }
  .gal-sub + .gal-grid { margin-top: 1rem; }
}
html:has(dialog.gal-lb[open]) { overflow: hidden; }
.gal-lb { margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; color: #e5e5e5;
  background: rgb(6 6 6 / .97); overflow: hidden; }
.gal-lb::backdrop { background: rgb(0 0 0 / .92); }
.gal-lb[open] { display: flex; animation: ub-fade .2s ease-out; }
.gal-lb figure { margin: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .9rem; padding: 4rem 4.5rem 3rem; }
.gal-lb img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px rgb(0 0 0 / .6); }
.gal-lb figcaption { max-width: 48rem; text-align: center; font-size: .95rem; line-height: 1.5; color: #e5e5e5; }
.gal-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px;
  color: #fff; background: rgb(255 255 255 / .08); cursor: pointer; transition: background .2s; }
.gal-btn:hover { background: rgb(255 255 255 / .16); }
.gal-btn:focus-visible { outline: 2px solid #FFD400; outline-offset: 2px; }
.gal-btn[hidden] { display: none; }
.gal-x { top: 1rem; right: 1rem; }
.gal-prev, .gal-next { top: 50%; transform: translateY(-50%); }
.gal-prev { left: 1rem; }
.gal-next { right: 1rem; }
.gal-n { position: absolute; top: 1.6rem; left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .1em; color: #a3a3a3; }
@media (max-width: 639px) {
  .gal-lb figure { padding: 4rem .5rem 4.5rem; }
  .gal-lb img { max-height: calc(100dvh - 11rem); border-radius: 4px; }
  .gal-prev, .gal-next { top: auto; bottom: 1rem; transform: none; }
  .gal-prev { left: calc(50% - 3.75rem); }
  .gal-next { right: calc(50% - 3.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  .gal-item img { transition: none; }
  .gal-lb[open] { animation: none; }
}
/* what the owner sets in /admin -> Nettside (2026-11-17); the Worker puts it into the pages */
/* the notice bar above the header, on every page */
.ub-notice { background: #FFD400; color: #0a0a0a; }
.ub-notice-in { max-width: 80rem; margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center;
  justify-content: center; gap: .6rem; font-size: .875rem; font-weight: 600; line-height: 1.4; text-align: center; }
.ub-notice-in svg { flex: none; }
.ub-notice-in p { overflow-wrap: anywhere; }
@media (max-width: 639px) { .ub-notice-in { justify-content: flex-start; text-align: left; font-size: .82rem; padding: .55rem 1rem; } }
/* the opening hours card: the closed days still to come */
.ub-closed { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; background: rgb(255 212 0 / .07);
  border: 1px solid rgb(255 212 0 / .2); font-size: .875rem; }
.ub-closed-h { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: #FFD400; }
.ub-closed ul { margin-top: .4rem; }
.ub-closed li { display: flex; flex-wrap: wrap; gap: .15rem .6rem; padding: .25rem 0; }
.ub-closed-d { font-weight: 600; color: #fff; }
.ub-closed-n { color: #a3a3a3; }
.ub-closed li.now .ub-closed-d::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .45rem;
  border-radius: 50%; background: #FFD400; vertical-align: middle; }
/* Tjenester: the price list */
.ub-prices { border-top: 1px solid rgb(255 255 255 / .06); background: #0d0d0d; }
.ub-prices-in { display: grid; gap: 2rem; padding: 4rem 0; }
@media (min-width: 1024px) { .ub-prices-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; padding: 5.5rem 0; } }
.ub-prices-lead { margin-top: 1rem; color: rgb(255 255 255 / .72); line-height: 1.6; max-width: 32rem; }
.price-list { border-top: 1px solid rgb(255 255 255 / .1); }
.price-list li { display: flex; align-items: baseline; gap: .75rem; padding: .95rem 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
.pl-name { color: #fff; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pl-dots { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgb(255 255 255 / .25); transform: translateY(-.25rem); }
.pl-price { flex: none; max-width: 55%; text-align: right; color: #FFD400; font-weight: 700; white-space: nowrap; }
.price-note { margin-top: 1rem; font-size: .875rem; line-height: 1.6; color: #a3a3a3; }
@media (max-width: 479px) { .pl-price { white-space: normal; } }
/* Hjem: news and offers */
.ub-news { padding: 4rem 0; border-bottom: 1px solid rgb(255 255 255 / .06); }
@media (min-width: 768px) { .ub-news { padding: 5.5rem 0; } }
.news-grid { margin-top: 2.25rem; display: grid; gap: 1.25rem; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }

.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #141414;
  border: 1px solid rgb(255 255 255 / .08); }
/* the whole photo, in its own shape (a tall one is not cut to a strip); one taller than 32rem is shown whole, smaller */
.news-img { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0d0d0d; }
.news-img img { width: 100%; height: auto; max-height: 32rem; object-fit: contain; display: block; }
.news-body { padding: 1.25rem 1.35rem 1.5rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: #a3a3a3; }
.news-card h3 { margin-top: .6rem; font: 800 1.15rem/1.25 var(--font-heading); text-transform: uppercase; letter-spacing: .02em;
  color: #fff; overflow-wrap: anywhere; }
.news-text { margin-top: .7rem; font-size: .925rem; line-height: 1.65; color: #c4c4c4; overflow-wrap: anywhere; }
.news-text p + p { margin-top: .7rem; }
.news-text a { color: #FFD400; text-decoration: underline; text-underline-offset: 3px; }
.news-text a:hover { color: #fff; }
@media (min-width: 768px) {
  .news-grid.one { grid-template-columns: minmax(0, 60rem); }
  .news-grid.one .news-card:not(.no-img) { flex-direction: row; }
  .news-grid.one .news-img { flex: 0 0 44%; }
  .news-grid.one .news-img img { max-height: 36rem; }
  .news-grid.one .news-body { padding: 1.75rem 2rem; }
}

/* Hjem: the Google rating under the hero's buttons (2026-11-18) */
.ub-rating { margin-top: 1.4rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem;
  color: rgb(255 255 255 / .85); font-size: .95rem; text-decoration: none; }
.ub-rating b { color: #fff; font-weight: 700; }
.ub-rating-stars { display: inline-flex; gap: 2px; }
.ub-rating-stars svg { width: 15px; height: 15px; fill: #FFD400; }
.ub-rating-arr { color: #FFD400; font-weight: 700; transition: transform .15s; }
.ub-rating:hover b, .ub-rating:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.ub-rating:hover .ub-rating-arr { transform: translateX(3px); }
/* the booking form: what is wrong with a field, under it (site.js; 2026-12-04) */
.field-err { color: #ef4444; font-size: .875rem; font-weight: 400; line-height: 1.4; }
/* a label as tall as its neighbour (a message under the phone, the plate's cell) must not spread its own text and
   input apart: they stay at the top, level with the neighbour's (the plate's cell does the same, .plate-cell) */
#booking-form > label { align-content: start; }
