.item-text{
	position: relative;
}

.item-text__link{
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	/* gör att fokus syns snyggt vid tangentbord */
	border-radius: inherit;
}

.slider .item-thumbnail {
    cursor: default;
}


/* Make each target column behave like a clickable card */
.dp-clickable-column {
  position: relative;
  cursor: pointer;
}

/* The overlay link that covers the whole column */
.dp-clickable-column > a.dp-column-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  /* Keep it accessible but visually invisible */
  color: transparent;
  text-decoration: none;
}

/* Ensure real interactive elements sit above the overlay */
.dp-clickable-column a,
.dp-clickable-column button,
.dp-clickable-column input,
.dp-clickable-column textarea,
.dp-clickable-column select,
.dp-clickable-column [role="button"] {
  position: relative;
  z-index: 2;
}

/* Nice UX: hover/focus styles (just examples) */
.dp-clickable-column:hover {
  filter: brightness(1.03);
}

/*---------------------------------------------------------------*/
/* Hero cover layout: center content + pin label bottom-right */
.wp-block-cover.dp-hero {
  position: relative;
}

/* Make the inner container cover the whole hero and use a 2-row grid */
.wp-block-cover.dp-hero > .wp-block-cover__inner-container {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto; /* middle area + bottom label row */
  padding: clamp(16px, 3vw, 32px);
}

/* Center the main content group */
.wp-block-cover.dp-hero .hero-content {
  align-self: center;
}

/* Pin the label to bottom-right */
.wp-block-cover.dp-hero .hero-label {
  justify-self: end;
  align-self: end;
  text-align: right;
  margin: 0; /* avoid extra spacing */
}

.wp-block-cover.dp-hero .wp-block-group.hero-label p {
  background-color: transparent !important;
  padding: 0 15px !important;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Decorative square */
.wp-block-cover.dp-hero .wp-block-group.hero-label p::before {
  content: '';
  display: inline-block;
  width: 31px;
  height: 31px;
  background-color: inherit;
  z-index: -1;
  margin-right: -15px;
  margin-top: -6px;
  vertical-align: middle;
}

/* Force niagara color for the square */
.wp-block-cover.dp-hero .wp-block-group.hero-label .has-niagara-background-color::before {
  background: #32AE91;
}

/* Force purple color for the square */
.wp-block-cover.dp-hero .wp-block-group.hero-label .has-purple-background-color::before {
  background: #726790;
}
/*----------------------------*/

@media screen and (max-width: 820px) {
    .mastheader.is-opened .container {
        position: static;
    }
}

@media screen and (max-width: 820px) {
    .mastheader__logo img {
        width: 102px;
        height: auto;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened .mastheader__logo {
        opacity: 0;
        visibility: hidden;
    }
}

@media screen and (max-width: 820px) {
    .mastheader__nav {
        display: none;
    }
}

@media screen and (max-width: 820px) {
    .mastheader__toggle {
        display: block;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened .mastheader__nav {
        display: block;
        position: absolute;
        top: 83px;
        background: #fff;
        width: 100%;
        left: 0;
        right: 0;
        height: -webkit-calc(100vh - 83.5px);
        height: -moz-calc(100vh - 83.5px);
        height: calc(100vh - 83.5px);
        padding-top: 30px;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened .mastheader__nav ul {
        display: block;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened .mastheader__nav li {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened .mastheader__nav li a {
        color: #000;
        display: inline-block;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened {
        background: #fff;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened .mastheader__toggle span {
        background: #000;
    }
}

@media screen and (max-width: 820px) {
    .mastheader__switch {
        display: none;
    }
}

@media screen and (max-width: 820px) {
    .mastheader.is-opened .mastheader__switch {
        display: block;
        top: 31px;
        left: 20px;
        right: auto;
    }
}

@media screen and (max-width: 820px) {
  .mastheader.is-opened .mastheader__switch li a {
    color: black;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2226%22%20height%3D%2218%22%20viewBox%3D%220%200%2026%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M22.2494%209L25.9018%201.42905C26.0512%201.11925%2026.029%200.7556%2025.8429%200.4657C25.6567%200.1758%2025.3327%200%2024.9843%200H1.01562C0.454695%200%200%200.4477%200%201V17C0%2017.5523%200.454695%2018%201.01562%2018H24.9843C25.3327%2018%2025.6567%2017.8242%2025.8429%2017.5343C26.029%2017.2444%2026.0512%2016.8808%2025.9017%2016.571L22.2494%209ZM2.03125%2016V2H23.3775L20.2076%208.57095C20.0766%208.84245%2020.0766%209.15755%2020.2076%209.42905L23.3775%2016H2.03125Z%22%20fill%3D%22black%22/%3E%3C/svg%3E");
  }
}

@media screen and (max-width: 820px) {
    .mastheader {
        padding: 24px 0;
    }
}

/* Footer adjustments ----------------------------*/
.mastfooter__top {
    margin-bottom: 24px;
}

.mastfooter__top-left .wp-block-columns {
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 782px) {
     .mastfooter__top-left .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: unset;
        flex-grow: 1;
    }
}

@media screen and (max-width: 576px) {
    .mastfooter__top-left .wp-block-columns {
        gap: 0em;
        padding-left: 0px;
        padding-right: 0px;
    }
}    

@media screen and (max-width: 576px) {

    .mastfooter__top-left .wp-block-columns .wp-block-column  {
        margin-bottom: 12px;
    }
    .mastfooter__top-left .wp-block-column p {
        margin-bottom: 12px;
    }
}   

@media screen and (max-width: 576px) {
    .mastfooter__top-right .wp-block-columns {
    flex-wrap: nowrap!important;
    }
}    


/* Gravity forms styling ---------------------------*/

.gform-theme--foundation.gform_wrapper {
  --gf-ctrl-radius: 0px!important;
}



/* Columns Card: lock top image area to a fixed ratio + crop nicely */

.wp-block-columns.is-style-columns-card {
  --card-media-ratio: 16 / 10; /* byt t.ex. till 4 / 3 om du vill */
}

/* Ratio-box on the figure */
.wp-block-columns.is-style-columns-card .wp-block-column > figure.wp-block-image {
  width: 100%;
  aspect-ratio: var(--card-media-ratio);
  overflow: hidden;
}

/* If image is wrapped in a link, make the link fill the ratio-box */
.wp-block-columns.is-style-columns-card .wp-block-column > figure.wp-block-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Make the image fill and crop */
.wp-block-columns.is-style-columns-card .wp-block-column > figure.wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}