.elementor-kit-818{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-818 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){margin-block-end:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//*
Vísindasmiðjan WordPress / Elementor global CSS
Global only: shared identity, typography, imported Drupal classes, header/footer,
Stöðvar pages, Verkefni pages, and Námsgagnapakkar/category overview layouts.
*/

:root {
  --vs-blue: #302f80;
  --vs-red: #ec4b2f;
  --vs-ink: #22242a;
  --vs-muted: #666b75;
  --vs-soft: #f4f5f8;
  --vs-border: #d9dde7;
  --vs-white: #fff;
  --vs-radius: 8px;
  --vs-shadow: 0 10px 30px rgba(18, 24, 40, 0.08);
  --vs-content: min(100% - 32px, 1140px);
  --vs-reading: 75ch;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vs-white);
  color: var(--vs-ink);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

.entry-title,
.page .entry-title,
body.single .entry-title,
.single-page .entry-title,
.elementor-page .entry-title,
.elementor-location-single .entry-title {
  display: none !important;
}

a {
  color: var(--vs-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--vs-red);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(236, 75, 47, 0.65);
  outline-offset: 3px;
}

/* Reusable inline color helpers */

.vs-page .vs-color-red {
  color: #c82121;
}

.vs-page .vs-color-green {
  color: #008a35;
}

.vs-page .vs-color-blue {
  color: #2457c5;
}

.vs-page .vs-color-yellow {
  color: #9a6a00;
}

.vs-page .vs-color-cyan {
  color: #007d8f;
}

.vs-page .vs-color-magenta {
  color: #b0007a;
}

/* Base page layout */

.vs-page {
  max-width: var(--vs-content);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 44px) 0;
}

.vs-page-title,
.vs-page h1 {
  margin: 0 0 0.8em;
  color: var(--vs-blue);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  font-weight: 700;
}

.vs-page h2 {
  margin: 2.2em 0 0.75em;
  color: var(--vs-blue);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.vs-page h3 {
  margin: 1.65em 0 0.45em;
  color: var(--vs-ink);
  font-size: 1.25rem;
  line-height: 1.3;
}

.vs-page p,
.vs-page ul,
.vs-page ol,
.vs-page table,
.vs-page blockquote {
  max-width: var(--vs-reading);
}

.vs-page img {
  max-width: 100%;
  height: auto;
  border-radius: var(--vs-radius);
}

.vs-page iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.vs-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  overflow-wrap: anywhere;
}

.vs-page th,
.vs-page td {
  border: 1px solid var(--vs-border);
  padding: 0.7rem;
  vertical-align: top;
}

.vs-page th {
  background: var(--vs-soft);
}

/* Imported Drupal / Bootstrap compatibility */

.vs-page .row,
.vs-page .view-content {
  display: flow-root;
}

.vs-page .col-xs-12,
.vs-page .col-sm-4,
.vs-page .col-sm-6,
.vs-page .col-sm-8,
.vs-page .col-md-3,
.vs-page .col-md-8,
.vs-page .col-md-9,
.vs-page .col-md-12,
.vs-page .col-lg-3 {
  box-sizing: border-box;
}

.vs-page .myndahnappur {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-height: 180px;
  border-radius: var(--vs-radius);
  background: var(--vs-soft);
  box-shadow: var(--vs-shadow);
}

.vs-page .myndahnappur img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 205px;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.vs-page .myndahnappur:hover img,
.vs-page .myndahnappur:focus-within img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.vs-page .myndahnappstexti {
  position: absolute;
  inset: auto 0 0;
  padding: 0.7em 0.85em;
  color: var(--vs-white);
  background: rgba(48, 47, 128, 0.82);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.18;
}

.vs-page .forsidumyndahnappur .myndahnappstexti {
  background: rgba(0, 0, 0, 0.48);
}

.vs-page .verkefnismyndahnappur .myndahnappstexti,
.vs-page .namsgagnahnappur .myndahnappstexti {
  background: rgba(236, 75, 47, 0.88);
}

.vs-page .stodvarmyndahnappur .myndahnappstexti,
.vs-page .stodvaflokkshnappur .myndahnappstexti {
  background: rgba(48, 47, 128, 0.88);
}

.vs-page .myndahnappslysing {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.56em;
  font-weight: 400;
}

.vs-page .frett,
.vs-page .vidburdur {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--vs-border);
}

.vs-page .frettafyrirsogn,
.vs-page .vidburdarfyrirsogn {
  margin-top: 0;
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
}

.vs-page .frettadagsetning,
.vs-page .vidburdardagsetning {
  color: var(--vs-muted);
  font-size: 0.95rem;
}

.vs-page .verkefnisskref {
  clear: both;
  margin: 1.4rem 0 2rem;
}

.vs-page .verkefnisskrefnumer {
  float: left;
  width: 0.85em;
  margin: 0 0.18em 0.1em 0;
  color: #c8ccd5;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.95;
}

.vs-page .float-left,
.vs-page img[class*="left"] {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
}

.vs-page .float-right,
.vs-page img[class*="right"] {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
}

.vs-media-pending {
  background: transparent;
  outline: 0;
}

.vs-media-pending::after {
  content: "";
}

.vs-page-placeholder {
  border: 1px dashed var(--vs-border);
  border-radius: var(--vs-radius);
  background: var(--vs-soft);
  padding-inline: clamp(18px, 3vw, 32px);
}

/* Stöðvar category/detail pages */

.vs-page-stodvar-category,
.vs-page-stodvar-detail {
  padding-top: 30px;
}

.vs-page-stodvar-category .vs-page-title,
.vs-page-stodvar-detail .vs-page-title {
  display: block;
  margin: 0 0 1.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--vs-border);
  color: var(--vs-ink);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 400;
}

/* Local CSS: prettier code snippets for GPIO Python pages */

.vs-page-gpio-python-graf-teiknad pre,
.vs-page-gpio-python-gpiozero pre,
.vs-page-gpio-python-hitanemi pre,
.vs-page-gpio-python-stepper-motorar pre {
  position: relative;
  overflow-x: auto;
  margin: 1.4rem 0 2rem;
  padding: 2.6rem 1.2rem 1.2rem;
  border: 1px solid #d9dde7;
  border-radius: 8px;
  background: #f4f5f8;
  color: #22242a;
  font-size: 0.94rem;
  line-height: 1.55;
  box-shadow: 0 6px 20px rgba(18, 24, 40, 0.06);
}

.vs-page-gpio-python-graf-teiknad pre::before,
.vs-page-gpio-python-gpiozero pre::before,
.vs-page-gpio-python-hitanemi pre::before,
.vs-page-gpio-python-stepper-motorar pre::before {
  content: "Python";
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 7px 0 7px 0;
  background: var(--vs-blue);
  color: var(--vs-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vs-page-gpio-python-graf-teiknad pre code,
.vs-page-gpio-python-gpiozero pre code,
.vs-page-gpio-python-hitanemi pre code,
.vs-page-gpio-python-stepper-motorar pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
}

/* Basic syntax coloring if no syntax highlighter plugin is active */
.vs-page-gpio-python-graf-teiknad code .keyword,
.vs-page-gpio-python-gpiozero code .keyword,
.vs-page-gpio-python-hitanemi code .keyword,
.vs-page-gpio-python-stepper-motorar code .keyword {
  color: #302f80;
  font-weight: 700;
}

.vs-page-gpio-python-graf-teiknad code .string,
.vs-page-gpio-python-gpiozero code .string,
.vs-page-gpio-python-hitanemi code .string,
.vs-page-gpio-python-stepper-motorar code .string {
  color: #7a3e00;
}

.vs-page-gpio-python-graf-teiknad code .comment,
.vs-page-gpio-python-gpiozero code .comment,
.vs-page-gpio-python-hitanemi code .comment,
.vs-page-gpio-python-stepper-motorar code .comment {
  color: #667085;
  font-style: italic;
}

.vs-page-gpio-python-graf-teiknad code .number,
.vs-page-gpio-python-gpiozero code .number,
.vs-page-gpio-python-hitanemi code .number,
.vs-page-gpio-python-stepper-motorar code .number {
  color: #9b1c31;
}

@media (max-width: 620px) {
  .vs-page-gpio-python-graf-teiknad pre,
  .vs-page-gpio-python-gpiozero pre,
  .vs-page-gpio-python-hitanemi pre,
  .vs-page-gpio-python-stepper-motorar pre {
    margin-left: -4px;
    margin-right: -4px;
    padding: 2.4rem 0.9rem 1rem;
    font-size: 0.84rem;
  }
}

/* Samstarfsverkefni detail pages */

.vs-page-samstarfsverkefni-detail {
  padding-top: 30px;
}

.vs-page-samstarfsverkefni-detail .vs-page-title {
  display: block;
  margin: 0 0 1.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--vs-border);
  color: var(--vs-ink);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 400;
}

.vs-page-samstarfsverkefni-detail .vs-language-tools {
  max-width: 92ch;
  margin: -0.5rem 0 1.5rem;
  text-align: right;
}

.vs-page-samstarfsverkefni-detail .vs-language-tools a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--vs-radius);
  background: var(--vs-soft);
  color: var(--vs-blue);
  font-weight: 700;
  text-decoration: none;
}

.vs-page-samstarfsverkefni-detail .vs-language-tools a:hover,
.vs-page-samstarfsverkefni-detail .vs-language-tools a:focus-visible {
  background: var(--vs-blue);
  color: var(--vs-white);
}

.vs-partner-logo-strip {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1.2rem;
  align-items: center;
  max-width: 900px;
  margin: 1.3rem 0 2rem;
  padding: 1.2rem;
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius);
  background: var(--vs-soft);
}

.vs-partner-logo-strip img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 86px;
  margin: 0 auto;
  border-radius: 0;
  object-fit: contain;
}

@media (max-width: 760px) {
  .vs-page-samstarfsverkefni-detail .vs-language-tools {
    text-align: left;
  }

  .vs-partner-logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .vs-partner-logo-strip {
    grid-template-columns: 1fr;
  }
}

/* Stöðvar category card grid */

.vs-stodvar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px 30px;
  max-width: 1080px;
  margin: 1.6rem 0 2.8rem;
}

.vs-stodvar-card {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-height: 168px;
  border-radius: 5px;
  background: var(--vs-soft);
  color: var(--vs-white);
  text-decoration: none;
  box-shadow: none;
}

.vs-stodvar-card img {
  display: block;
  width: 100%;
  height: 168px;
  border-radius: 0;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.vs-stodvar-card span {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 0.65rem 0.85rem;
  background: rgba(48, 47, 128, 0.78);
  color: var(--vs-white);
  font-size: clamp(1.2rem, 1.75vw, 1.7rem);
  font-weight: 700;
  line-height: 1.12;
}

.vs-stodvar-card:hover img,
.vs-stodvar-card:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.vs-stodvar-card:hover span,
.vs-stodvar-card:focus-visible span {
  background: rgba(236, 75, 47, 0.86);
}

/* Stöðvar detail/article pages */

.vs-stodvar-article {
  max-width: 92ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.vs-stodvar-article::after,
.vs-stodvar-section::after {
  content: "";
  display: block;
  clear: both;
}

.vs-stodvar-article h2 {
  clear: none;
  margin: 1.7rem 0 0.85rem;
  color: var(--vs-ink);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 400;
}

.vs-stodvar-article p,
.vs-stodvar-article ul,
.vs-stodvar-article ol {
  max-width: none;
}

.vs-stodvar-section {
  margin-bottom: 2.1rem;
}

.vs-stodvar-media {
  margin: 0 0 1rem;
}

.vs-stodvar-media.right {
  float: right;
  width: min(38%, 360px);
  min-width: 260px;
  margin: 0.25rem 0 1.1rem 1.8rem;
}

.vs-stodvar-media.full {
  clear: both;
  width: 100%;
  max-width: 900px;
  margin: 1.25rem 0 1.6rem;
}

.vs-stodvar-media img,
.vs-stodvar-media.full img,
.vs-stodvar-media-row img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.vs-stodvar-media-row {
  float: right;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 1rem;
  width: min(56%, 540px);
  margin: 0.25rem 0 1.1rem 1.8rem;
}

.vs-stodvar-media-row.three {
  clear: both;
  float: none;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  width: 100%;
  max-width: 780px;
  margin: 1.25rem 0 1.6rem;
}

.vs-stodvar-media-row figure {
  margin: 0;
}

.vs-stodvar-video {
  clear: both;
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 1.4rem 0 2rem;
  aspect-ratio: 16 / 9;
  background: #222;
}

.vs-stodvar-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vs-stodvar-video-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin: 1.25rem 0 1.8rem;
}

.vs-stodvar-video-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vs-stodvar-video-grid .vs-stodvar-video {
  margin: 0;
  max-width: none;
}

.vs-stodvar-embed-wide {
  clear: both;
  width: 100%;
  max-width: 820px;
  margin: 1.25rem 0 1.8rem;
}

.vs-stodvar-embed-wide iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.vs-stodvar-gallery {
  clear: both;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin: 1.25rem 0 1.8rem;
}

.vs-stodvar-gallery.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vs-stodvar-gallery.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vs-stodvar-gallery figure {
  margin: 0;
}

.vs-stodvar-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.vs-stodvar-gallery figcaption,
.vs-stodvar-media figcaption {
  margin-top: 0.35rem;
  color: var(--vs-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.vs-stodvar-gallery.mixed {
  grid-template-columns: minmax(110px, 0.55fr) minmax(220px, 1.35fr) minmax(220px, 1.25fr);
  align-items: start;
  max-width: 820px;
}

.vs-stodvar-gallery.mixed figure:first-child {
  max-width: 190px;
}

.vs-stodvar-gallery.mixed figure:first-child img {
  width: auto;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.vs-stodvar-canvas {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 320px;
  border: 1px solid var(--vs-border);
  background: var(--vs-soft);
}

.vs-stodvar-empty {
  max-width: 70ch;
  color: var(--vs-muted);
}

.vs-stodvar-callout {
  clear: both;
  margin: 1.2rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--vs-blue);
  background: var(--vs-soft);
}

/* Verkefni detail pages */

.vs-page-verkefni-detail {
  padding-top: 30px;
}

.vs-page-verkefni-detail .vs-page-title {
  display: block;
  margin: 0 0 1.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--vs-border);
  color: var(--vs-ink);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 400;
}

.vs-project-article {
  max-width: 92ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.vs-project-article::after,
.vs-project-section::after,
.vs-project-step::after {
  content: "";
  display: block;
  clear: both;
}

.vs-project-article h2 {
  clear: both;
  margin: 1.8rem 0 0.85rem;
  color: var(--vs-ink);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 400;
}

.vs-project-article h3 {
  clear: both;
  margin: 1.45rem 0 0.7rem;
  color: var(--vs-ink);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

.vs-project-article p,
.vs-project-article ul,
.vs-project-article ol {
  max-width: none;
}

.vs-project-section {
  margin-bottom: 2.1rem;
}

.vs-project-media {
  margin: 0 0 1rem;
}

.vs-project-media.right {
  float: right;
  width: min(38%, 360px);
  min-width: 260px;
  margin: 0.25rem 0 1.1rem 1.8rem;
}

.vs-project-media.full {
  clear: both;
  width: 100%;
  max-width: 900px;
  margin: 1.25rem 0 1.6rem;
}

.vs-project-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.vs-project-gallery {
  clear: both;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin: 1.25rem 0 1.8rem;
}

.vs-project-gallery.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vs-project-gallery.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vs-project-gallery.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vs-project-gallery figure {
  margin: 0;
}

.vs-project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.vs-project-step {
  clear: both;
  margin: 1.6rem 0 2rem;
}

.vs-project-step-number {
  float: left;
  width: 0.85em;
  margin: 0 0.2em 0.1em 0;
  color: #c8ccd5;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.95;
}

.vs-project-callout {
  clear: both;
  margin: 1.2rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--vs-blue);
  background: var(--vs-soft);
}

.vs-project-table-wrap {
  clear: both;
  overflow-x: auto;
  margin: 1.25rem 0 1.8rem;
}

.vs-project-image-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 1.25rem 0 2rem;
}

.vs-project-image-grid a,
.vs-project-image-grid figure {
  display: block;
  margin: 0;
}

.vs-project-image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.vs-project-embed {
  clear: both;
  width: 100%;
  max-width: 720px;
  margin: 1.25rem 0 1.8rem;
}

.vs-project-embed iframe {
  display: block;
  width: 100%;
  min-height: 400px;
  border: 0;
}

.vs-project-video-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin: 1.25rem 0 1.8rem;
}

.vs-project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #222;
}

.vs-project-video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Saga og gerð alheims image grid */

.vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: 28px 24px;
  align-items: start;
  justify-content: start;
  max-width: none;
  margin: 1.25rem 0 2rem;
}

.vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid p {
  display: contents;
  margin: 0;
}

.vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid p:empty {
  display: none;
}

.vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid a,
.vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid figure {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0;
}

.vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid img {
  display: block;
  width: 180px;
  height: 180px;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

/* Hexaflexagonaföndur */

.vs-page-verkefni-hexaflexagonafondur .vs-project-article {
  max-width: 86ch;
}

.vs-page-verkefni-hexaflexagonafondur .vs-flexagon-download {
  clear: both;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  max-width: 760px;
  margin: 1rem 0 1.8rem;
  padding: 1rem;
  border: 1px solid var(--vs-border);
  background: var(--vs-soft);
}

.vs-page-verkefni-hexaflexagonafondur .vs-flexagon-download img {
  display: block;
  width: 170px;
  height: auto;
  border-radius: 0;
}

.vs-page-verkefni-hexaflexagonafondur .vs-flexagon-download p {
  margin: 0 0 0.7rem;
}

.vs-page-verkefni-hexaflexagonafondur .vs-flexagon-download p:last-child {
  margin-bottom: 0;
}

.vs-page-verkefni-hexaflexagonafondur .vs-project-step {
  margin-top: 1.35rem;
  margin-bottom: 2rem;
}

.vs-page-verkefni-hexaflexagonafondur .vs-project-step-number {
  font-size: 3.8rem;
  margin-right: 0.28em;
}

.vs-page-verkefni-hexaflexagonafondur .vs-project-diagram {
  clear: both;
  width: 100%;
  max-width: 740px;
  margin: 0.8rem 0 1.6rem;
}

.vs-page-verkefni-hexaflexagonafondur .vs-project-diagram.narrow {
  max-width: 680px;
}

.vs-page-verkefni-hexaflexagonafondur .vs-project-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Námsgagnapakkar / Verkefni category overview pages */

.vs-page-namsgagnapakki-category {
  padding-top: 30px;
}

.vs-page-namsgagnapakki-category .vs-page-title {
  display: block;
  margin: 0 0 1.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--vs-border);
  color: var(--vs-ink);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 400;
}

.vs-package-intro {
  max-width: 78ch;
  margin-bottom: 2rem;
}

.vs-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 24px;
  max-width: 1120px;
  margin: 1.6rem 0 2.8rem;
}

.vs-package-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  border-radius: 7px;
  background: var(--vs-soft);
  color: var(--vs-white);
  text-decoration: none;
}

.vs-package-card img {
  display: block;
  width: 100%;
  height: 180px;
  border-radius: 0;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.vs-package-card span {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 0.72rem 0.9rem;
  background: rgba(236, 75, 47, 0.82);
  color: var(--vs-white);
  font-size: clamp(1.18rem, 1.75vw, 1.65rem);
  font-weight: 700;
  line-height: 1.12;
}

.vs-package-card:hover img,
.vs-package-card:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.vs-package-card:hover span,
.vs-package-card:focus-visible span {
  background: rgba(48, 47, 128, 0.86);
}

.vs-package-grid {
  grid-auto-flow: dense;
}

.vs-package-grid p,
.vs-package-grid .block,
.vs-package-grid .view,
.vs-package-grid .view-content {
  display: contents;
  margin: 0;
}

.vs-package-grid p:empty,
.vs-package-grid br {
  display: none;
}

.vs-package-grid > *:not(.vs-package-card):empty {
  display: none;
}

/* Front page layout */

.vs-page-front {
  max-width: none;
}

.vs-front-hero {
  width: var(--vs-content);
  margin: 0 auto 2rem;
}

.vs-front-hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow);
  background: var(--vs-blue);
  color: var(--vs-white);
}

.vs-front-hero-card img {
  width: 100%;
  height: 460px;
  display: block;
  object-fit: cover;
}

.vs-front-hero-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
  color: var(--vs-white);
}

.vs-front-hero-text h2 {
  margin: 0 0 0.6rem;
  color: var(--vs-white);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.vs-front-hero-text p {
  max-width: 74ch;
  margin: 0;
  color: var(--vs-white);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.vs-front-card-grid {
  width: var(--vs-content);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.vs-front-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow);
  background: var(--vs-blue);
  text-decoration: none;
}

.vs-front-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.vs-front-card:hover img,
.vs-front-hero-card:hover img {
  transform: scale(1.025);
}

.vs-front-card span {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 0.9rem 1rem;
  background: rgba(48, 47, 128, 0.82);
  color: var(--vs-white);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
}

/* News archive and front page news */

.vs-front-news,
.vs-page-frettir {
  width: var(--vs-content);
  margin-left: auto;
  margin-right: auto;
}

.vs-page-frettir {
  padding-top: 30px;
}

.vs-page-frettir .vs-page-title {
  display: block;
  margin: 0 0 1.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--vs-border);
  color: var(--vs-ink);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 400;
}

.vs-section-title {
  margin: 0 0 1.2rem;
  color: var(--vs-ink);
  font-size: clamp(1.75rem, 2.45vw, 2.15rem);
  font-weight: 400;
}

.vs-news-list {
  display: grid;
  gap: 1.15rem;
  max-width: 900px;
}

.vs-page-frettir .vs-news-list {
  max-width: 940px;
  margin-bottom: 2.5rem;
}

.vs-news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius);
  background: var(--vs-white);
  box-shadow: 0 6px 20px rgba(18, 24, 40, 0.05);
}

.vs-news-item.no-image {
  grid-template-columns: 1fr;
}

.vs-news-thumb {
  display: block;
  width: 180px;
  height: 120px;
  overflow: hidden;
  border-radius: var(--vs-radius);
  background: var(--vs-soft);
}

.vs-news-thumb img {
  display: block;
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
}

.vs-news-body {
  min-width: 0;
}

.vs-news-title {
  margin: 0 0 0.25rem;
  color: var(--vs-blue);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.22;
}

.vs-news-title a {
  color: var(--vs-blue);
  text-decoration: none;
}

.vs-news-title a:hover,
.vs-news-title a:focus-visible {
  color: var(--vs-red);
  text-decoration: underline;
}

.vs-news-date {
  margin-bottom: 0.45rem;
  color: var(--vs-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.vs-news-excerpt {
  max-width: 68ch;
  margin: 0;
  color: var(--vs-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.vs-news-more {
  max-width: 900px;
  margin-top: 1.2rem;
  text-align: right;
}

.vs-news-more a,
.vs-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--vs-radius);
  background: var(--vs-blue);
  color: var(--vs-white);
  font-weight: 800;
  text-decoration: none;
}

.vs-news-more a:hover,
.vs-news-more a:focus-visible,
.vs-news-pagination .page-numbers:hover,
.vs-news-pagination .page-numbers:focus-visible,
.vs-news-pagination .page-numbers.current {
  background: var(--vs-red);
  color: var(--vs-white);
}

.vs-news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 940px;
  margin: 2rem 0 3rem;
}

.vs-news-empty {
  max-width: 70ch;
  color: var(--vs-muted);
}

/* Front page news should be slimmer than the full archive */

.vs-page-front .vs-front-news {
  width: var(--vs-content);
  margin: 2rem auto 3rem;
}

.vs-page-front .vs-news-list {
  max-width: 780px;
}

.vs-page-front .vs-news-item {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0 1.65rem;
  max-width: 780px;
  padding: 0 0 1.4rem;
  border: 0;
  border-bottom: 1px solid var(--vs-border);
  border-radius: 0;
  box-shadow: none;
}

.vs-page-front .vs-news-item.no-image {
  grid-template-columns: 1fr;
  padding-left: 0;
}

.vs-page-front .vs-news-thumb,
.vs-page-front .vs-news-thumb img {
  width: 160px;
  height: 106px;
}

.vs-page-front .vs-news-title {
  margin: 0 0 0.15rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.vs-page-front .vs-news-date {
  font-size: 1rem;
  font-weight: 400;
}

.vs-page-front .vs-news-excerpt {
  margin-top: 0.35rem;
  color: #111;
}

/* Category cards hover text fix */

.vs-page-front .vs-front-card span {
  color: var(--vs-white);
  background: rgba(48, 47, 128, 0.82);
  transition: color 160ms ease, background 160ms ease;
}

.vs-page-front .vs-front-card:hover span,
.vs-page-front .vs-front-card:focus-visible span {
  color: var(--vs-red);
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 760px) {
  .vs-news-item,
  .vs-page-front .vs-news-item {
    grid-template-columns: 1fr;
  }

  .vs-news-thumb,
  .vs-news-thumb img,
  .vs-page-front .vs-news-thumb,
  .vs-page-front .vs-news-thumb img {
    width: 100%;
    height: 190px;
  }

  .vs-news-more {
    text-align: left;
  }
}

/* Header */

.vs-site-header {
  position: relative;
  z-index: 20;
  background: var(--vs-white);
  border-top: 5px solid var(--vs-red);
  border-bottom: 1px solid var(--vs-border);
  box-shadow: 0 6px 22px rgba(18, 24, 40, 0.05);
}

.vs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 36px);
  max-width: var(--vs-content);
  margin-inline: auto;
  padding: 14px 0 13px;
}

.vs-logo {
  flex: 0 0 auto;
}

.vs-logo img {
  display: block;
  width: min(285px, 58vw);
  height: auto;
  border-radius: 0;
}

.vs-main-nav {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}

.vs-main-nav a,
.vs-nav-dropdown summary {
  white-space: nowrap;
}

.vs-main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  color: var(--vs-blue);
  text-decoration: none;
  line-height: 1.15;
}

.vs-main-nav a:hover,
.vs-main-nav a:focus-visible {
  background: rgba(48, 47, 128, 0.08);
  color: var(--vs-blue);
}

.vs-main-nav a[href="/boka-tima/"] {
  background: var(--vs-red);
  color: var(--vs-white);
}

.vs-main-nav a[href="/boka-tima/"]:hover,
.vs-main-nav a[href="/boka-tima/"]:focus-visible {
  background: #d83f28;
  color: var(--vs-white);
}

.vs-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.vs-nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  color: var(--vs-blue);
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}

.vs-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.vs-nav-dropdown summary::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.75em;
  line-height: 1;
}

.vs-nav-dropdown summary:hover,
.vs-nav-dropdown summary:focus-visible,
.vs-nav-dropdown[open] summary {
  background: rgba(48, 47, 128, 0.08);
  color: var(--vs-blue);
}

.vs-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 190px;
  padding: 0.4rem;
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius);
  background: var(--vs-white);
  box-shadow: var(--vs-shadow);
}

.vs-main-nav .vs-nav-dropdown-menu a {
  justify-content: flex-start;
  min-height: 38px;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
}

/* Footer */

.vs-site-footer {
  max-width: var(--vs-content);
  margin: clamp(44px, 6vw, 76px) auto 0;
  border-top: 1px solid var(--vs-border);
  background: var(--vs-white);
  color: var(--vs-ink);
}

.vs-footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) minmax(160px, 0.6fr) minmax(190px, 0.75fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(34px, 5vw, 58px) 0 34px;
}

.vs-site-footer h2 {
  margin: 0 0 0.75rem;
  color: var(--vs-ink);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  font-weight: 400;
}

.vs-site-footer p {
  margin: 0 0 0.9rem;
  max-width: 65ch;
}

.vs-site-footer a {
  color: #006cb7;
  text-decoration: none;
}

.vs-site-footer a:hover,
.vs-site-footer a:focus-visible {
  color: var(--vs-red);
  text-decoration: underline;
}

.vs-footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.vs-footer-logo img {
  display: block;
  width: min(250px, 100%);
  height: auto;
  border-radius: 0;
}

.vs-footer-small {
  font-size: 0.95rem;
}

.vs-footer-links nav {
  display: grid;
  gap: 0.35rem;
}

.vs-footer-links nav a {
  width: fit-content;
}

.vs-footer-contact h2:not(:first-child) {
  margin-top: 1.55rem;
}

.vs-footer-sponsors {
  grid-column: 1 / -1;
  padding-top: 1.6rem;
  border-top: 1px solid var(--vs-border);
}

.vs-sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.2rem;
  margin-top: 1rem;
}

.vs-sponsor-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 70px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--vs-radius);
  background: var(--vs-white);
  filter: grayscale(1);
  opacity: 0.82;
  transition: opacity 160ms ease, filter 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.vs-sponsor-grid a:hover,
.vs-sponsor-grid a:focus-visible {
  border-color: var(--vs-border);
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}

.vs-sponsor-grid img {
  display: block;
  max-width: 190px;
  max-height: 58px;
  width: auto;
  height: auto;
  border-radius: 0;
}

.vs-page .vs-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.vs-page .vs-card-link:hover .myndahnappstexti,
.vs-page .vs-card-link:focus-visible .myndahnappstexti {
  color: var(--vs-red);
}

/* Imported view grids */

@media (min-width: 700px) {
  .vs-page .view-stodvar .view-content,
  .vs-page .view-verkefni .view-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .vs-page .col-lg-3,
  .vs-page .col-sm-6 {
    width: auto;
    float: none;
  }
}

@media (min-width: 1024px) {
  .vs-page .view-stodvar .view-content,
  .vs-page .view-verkefni .view-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Responsive */

@media (max-width: 980px) {
  .vs-header-inner {
    gap: 14px;
  }

  .vs-logo img {
    width: min(245px, 52vw);
  }

  .vs-main-nav {
    font-size: 0.95rem;
    gap: 0.15rem;
  }

  .vs-main-nav a,
  .vs-nav-dropdown summary {
    padding-inline: 0.58rem;
  }

  .vs-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-footer-sponsors {
    grid-column: 1 / -1;
  }

  .vs-package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vs-stodvar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }

  .vs-stodvar-media.right,
  .vs-stodvar-media-row {
    float: none;
    width: 100%;
    max-width: 620px;
    margin: 1rem 0;
  }

  .vs-stodvar-media-row.three {
    width: 100%;
    max-width: 760px;
  }

  .vs-project-media.right {
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 620px;
    margin: 1rem 0;
  }

  .vs-project-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid {
    grid-template-columns: repeat(3, 180px);
  }
}

@media (max-width: 760px) {
  .vs-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .vs-logo img {
    width: min(285px, 78vw);
  }

  .vs-main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 0.35rem;
  }

  .vs-nav-dropdown {
    display: block;
  }

  .vs-nav-dropdown-menu {
    position: static;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .vs-stodvar-video-grid,
  .vs-stodvar-video-grid.three {
    grid-template-columns: 1fr;
  }

  .vs-stodvar-embed-wide iframe {
    min-height: 320px;
  }

  .vs-stodvar-gallery.two,
  .vs-stodvar-gallery.three,
  .vs-project-gallery.two,
  .vs-project-gallery.three,
  .vs-project-gallery.four {
    grid-template-columns: 1fr;
  }

  .vs-stodvar-gallery.mixed {
    grid-template-columns: 1fr;
  }

  .vs-stodvar-gallery.mixed figure:first-child {
    max-width: none;
  }

  .vs-stodvar-gallery.mixed figure:first-child img {
    width: 100%;
    max-height: none;
  }

  .vs-stodvar-canvas {
    height: 260px;
  }

  .vs-project-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-project-embed iframe {
    min-height: 320px;
  }

  .vs-project-video-grid {
    grid-template-columns: 1fr;
  }

  .vs-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vs-page-verkefni-hexaflexagonafondur .vs-flexagon-download {
    grid-template-columns: 1fr;
  }

  .vs-page-verkefni-hexaflexagonafondur .vs-flexagon-download img {
    width: min(220px, 100%);
  }

  .vs-page-verkefni-hexaflexagonafondur .vs-project-step-number {
    font-size: 3.2rem;
  }
}

@media (max-width: 660px) {
  .vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid a,
  .vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid figure,
  .vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid img {
    width: 100%;
    height: auto;
  }

  .vs-page-verkefni-saga-gerd-alheims .vs-project-image-grid img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .vs-page {
    padding-top: 20px;
  }

  .vs-main-nav a,
  .vs-nav-dropdown summary {
    min-height: 38px;
    padding-inline: 0.62rem;
    font-size: 0.95rem;
  }

  .vs-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .vs-footer-sponsors {
    padding-top: 1.3rem;
  }

  .vs-sponsor-grid {
    align-items: stretch;
    gap: 0.8rem;
  }

  .vs-sponsor-grid a {
    width: 100%;
    justify-content: flex-start;
  }

  .vs-page .myndahnappstexti {
    position: static;
    color: var(--vs-white);
  }

  .vs-page .float-left,
  .vs-page .float-right,
  .vs-page img[class*="left"],
  .vs-page img[class*="right"] {
    float: none;
    display: block;
    width: 100%;
    margin: 1rem 0;
  }
}

@media (max-width: 620px) {
  .vs-stodvar-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .vs-stodvar-card img {
    height: 190px;
  }

  .vs-stodvar-media.right {
    min-width: 0;
    max-width: 100%;
  }

  .vs-stodvar-media-row,
  .vs-stodvar-media-row.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .vs-project-image-grid {
    grid-template-columns: 1fr;
  }

  .vs-project-step-number {
    font-size: 3.6rem;
  }

  .vs-package-grid {
    grid-template-columns: 1fr;
  }

  .vs-package-card img {
    height: 190px;
  }
}

/* ---------------------------------------------------------
Imported Drupal single posts
Keeps old imported news posts readable without editing each post.
--------------------------------------------------------- */

body.single .field-item[property="content:encoded"],
body.single .entry-content > .field-item {
  max-width: min(100% - 32px, 900px);
  margin-inline: auto;
}

body.single .field-item[property="content:encoded"]::after,
body.single .entry-content > .field-item::after {
  content: "";
  display: block;
  clear: both;
}

body.single .field-item[property="content:encoded"] > p,
body.single .entry-content > .field-item > p {
  max-width: none;
}

@media (min-width: 761px) {
  body.single .field-item[property="content:encoded"] > p:first-child,
  body.single .entry-content > .field-item > p:first-child {
    margin-top: 0;
  }

  body.single .field-item[property="content:encoded"] > p:first-child img:first-child,
  body.single .entry-content > .field-item > p:first-child img:first-child {
    float: right;
    display: block;
    width: min(38%, 360px);
    min-width: 240px;
    max-height: 320px;
    margin: 0.15rem 0 1rem 1.6rem;
    object-fit: contain;
    border-radius: var(--vs-radius);
  }

  body.single .field-item[property="content:encoded"] > p:first-child + p,
  body.single .entry-content > .field-item > p:first-child + p {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  body.single .field-item[property="content:encoded"] > p:first-child img:first-child,
  body.single .entry-content > .field-item > p:first-child img:first-child {
    float: none;
    display: block;
    width: 100%;
    min-width: 0;
    max-height: none;
    margin: 0 0 1rem;
    object-fit: contain;
  }
}

/* ---------------------------------------------------------
Front page mobile polish
--------------------------------------------------------- */

@media (max-width: 980px) {
  .vs-front-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-front-card img {
    height: 210px;
  }
}

@media (max-width: 640px) {
  .vs-front-hero-card {
    min-height: 0;
  }

  .vs-front-hero-card img {
    height: 300px;
  }

  .vs-front-hero-text {
    position: static;
    padding: 1rem;
    background: var(--vs-blue);
  }

  .vs-front-hero-text h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .vs-front-card-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .vs-front-card {
    min-height: 0;
  }

  .vs-front-card img {
    height: 190px;
  }

  .vs-front-card span {
    position: static;
    background: var(--vs-blue);
  }
}

/* ---------------------------------------------------------
Tablet header polish
--------------------------------------------------------- */

@media (max-width: 1080px) {
  .vs-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .vs-main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}/* End custom CSS */