:root {
    --red: #FF8484;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Variable.woff2') format('woff2');
    font-weight: 100 900; /* Supports variable weight */
    font-display: swap;
}

html, body {
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-family: "DM Sans", "Inter", serif !important;
    background: #fff;
    /* font-family: 'Cabinet Grotesk', sans-serif; */
    font-weight: 450;
}

h1, h2, h3 {
    font-family: "DM Sans", serif;
    /* font-family: 'Cabinet Grotesk', sans-serif; */
    font-weight: 500;
}

h1 {
    font-size: 70px !important;
    line-height: 66px !important;
    margin-bottom: 30px !important;
    color: #0b4c60 !important;
}

@media only screen and (max-width: 800px) {
    h1 {
        font-size: 45px !important;
        line-height: 45px !important;
    }
} 

h2 {
    font-size: 43px;
    line-height: 40px;
    margin-top: 20px;    
    padding: 1px 13px;
    color: #0b4c60;
}

h2.bigger {
    font-size: 55px;
    margin-top: 40px;
}

/* H3 lenke-tittel */
h3,
.elementor-post__title {
    font-size: 24px !important;
    line-height: 30px !important;
    font-weight: 550 !important;
    color: #0b4c60 !important;
    margin-bottom: 10px !important;
}

/* arkiv-artikkel marginer */
.elementor-post__text {
    margin: 15px !important;
    padding: 0px !important;
}

.elementor-post__thumbnail__link {
    margin-bottom: 0px !important;
}

.elementor-post__read-more {
    display: inline-block !important;
    text-decoration: none !important;
    padding: 8px 15px !important;
    border-radius: 100px !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: "Inter", serif !important;
    line-height: 18px !important;
}

.elementor-post__excerpt p {
    font-family: "DM Sans", serif !important;
    font-size: 15px !important;
}

.elementor-post__text {
    width: auto !important;
}

.material-symbols-outlined {
    font-size: 40px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-variation-settings:
    'FILL' 0,
    'wght' 100,
    'GRAD' 0,
    'opsz' 24
}

.dropdown-toggle::after {
    display: none !important;
}

.nav-item-dropdown:visited {
    color: #fff !important;
}

.hero {
    position: relative;
    display: flex;
    align-items: end;
    /* min-height: 810px; */
    min-height: 650px;
    height: 65vh;
    padding: 30px;
    box-sizing: border-box;
    color: white !important;
    width: 100%;
    /* background-image: url("img/hero-bg.png"); */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.hero-filter {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-video-container {
    width: 100%; /* Adjust size as needed */
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    overflow: hidden;
    position: absolute;
    z-index: 0;
}

.hero video {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* VIMEO START */

.hero-video-container {
  width: 100%;
  /* height: 70vh;       /* justér høyde som før */
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #0b3b44; /* fallback */
}

.vimeo-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.vimeo-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;        /* 16:9-forhold */
  min-width: 177.78vh;    /* dekker høyden */
  min-height: 100vh;
  pointer-events: none;   /* gjør den "klikkløs" */
}

/* VIMER END */

.hero .grid {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-first-item {
    max-width: 600px;
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 30px;
}

.hero-first-item p {
    margin-bottom: 0px;
}

section {
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    display: flex;
}

section.content {
    max-width: 1400px;
}

.grid {
    width: 100%;
    display: grid;
}

.grid.item-bottom {
    align-items: end;
}

.grid-item.hero-btn {
    display: flex;
    justify-content: right;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-12 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 30px;
}

.grid-12 .span-4 {
    grid-column: span 4;
}

.grid-12 .v-span-2 {
    grid-column: span 4;
    grid-row-end: span 2;
}

.grid-12 .span-6 {
    grid-column: span 6;
}

.grid-12 .span-8 {
    grid-column: span 8;
}

.grid-12 .span-12 {
    grid-column: span 12;
}

.grid-item {
    position: relative;
    overflow: hidden;
}

.filter {
    background: rgba(0, 0, 0, 0.3);
    width: 100%; /* Adjust size as needed */
    height: 100%;
    top: 0;
    object-fit: cover;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.video-container {
    width: 100%; /* Adjust size as needed */
    height: 100%;
    top: 0;
    object-fit: cover;
    overflow: hidden;
    position: absolute;
    z-index: -2;
}

.hover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content .grid-item {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    padding: 30px;
    min-height: 300px;
    transition: transform 300ms ease;
    transform: scale(1);
    text-align: center;
}

.round-arrow-right {
    width: 40px;
    margin-top: 40px;opacity: 0; /* Default lower visibility */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth animation */
}

.round-arrow-down {
    width: 40px;
}

.content .grid-item:hover {
    transition: transform 300ms ease;
    transform: scale(1.015);
}

.btn {
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 20px;
    border: 2px solid var(--red);
    border-radius: 100px;
    color: white;
    font-size: 12px;
    letter-spacing: 0.75px;
    transition: background 300ms ease;
    backdrop-filter: blur(20px);
    font-weight: 500;
    font-family: "Inter", serif !important;
    line-height: 18px !important;
}

.btn.icon {
    padding-right: 46px;
    position: relative;
}

.btn.icon:after {
    content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOC4wMzU1MzM5MXB4IiBoZWlnaHQ9IjcuMDcxMDY3ODFweCIgdmlld0JveD0iMCAwIDguMDM1NTMzOTEgNy4wNzEwNjc4MSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODU5LjUxNzgsIC01NTYuNDgyMikiIGZpbGw9IiNGRkZGRkYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTg2NC4wMTc3Nyw1NTYuNDgyMjMzIEwxODY3LjU1MzMsNTYwLjAxNzc2NyBMMTg2Ni44NDYxOSw1NjAuNzI0ODc0IEwxODY0LjAxNzc3LDU2My41NTMzMDEgTDE4NjMuMzEwNjYsNTYyLjg0NjE5NCBMMTg2NS42Mzg3Nyw1NjAuNTE3MjMzIEwxODU5LjUxNzc3LDU2MC41MTc3NjcgTDE4NTkuNTE3NzcsNTU5LjUxNzc2NyBMMTg2NS42Mzg3Nyw1NTkuNTE3MjMzIEwxODYzLjMxMDY2LDU1Ny4xODkzNCBMMTg2NC4wMTc3Nyw1NTYuNDgyMjMzIFoiIGlkPSJDb21iaW5lZC1TaGFwZS1Db3B5Ij48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");
    position: absolute;
    right: 23px;
    /* top: 13px; */
    transition: right 300ms ease;
}

.btn.icon:hover:after {
    content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOC4wMzU1MzM5MXB4IiBoZWlnaHQ9IjcuMDcxMDY3ODFweCIgdmlld0JveD0iMCAwIDguMDM1NTMzOTEgNy4wNzEwNjc4MSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODU5LjUxNzgsIC01NTYuNDgyMikiIGZpbGw9IiNGRkZGRkYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTg2NC4wMTc3Nyw1NTYuNDgyMjMzIEwxODY3LjU1MzMsNTYwLjAxNzc2NyBMMTg2Ni44NDYxOSw1NjAuNzI0ODc0IEwxODY0LjAxNzc3LDU2My41NTMzMDEgTDE4NjMuMzEwNjYsNTYyLjg0NjE5NCBMMTg2NS42Mzg3Nyw1NjAuNTE3MjMzIEwxODU5LjUxNzc3LDU2MC41MTc3NjcgTDE4NTkuNTE3NzcsNTU5LjUxNzc2NyBMMTg2NS42Mzg3Nyw1NTkuNTE3MjMzIEwxODYzLjMxMDY2LDU1Ny4xODkzNCBMMTg2NC4wMTc3Nyw1NTYuNDgyMjMzIFoiIGlkPSJDb21iaW5lZC1TaGFwZS1Db3B5Ij48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");
    position: absolute;
    right: 17px;
    /* top: 13px; */
    transition: right 300ms ease;
}

.btn.secondary {
    color: white;
    background: var(--red);
}

.btn:hover {
    background: var(--red);
    transition: background 300ms ease;
}

.tag {
    font-size: 14px;
    padding: 2px 13px;
    border-radius: 30px;
    color: white;
}

.tag.green {background-color: #2C912A }
.tag.purple {background-color: #703FC1 }
.tag.gold {background-color: #91732A }
.tag.dark-purple {background-color: #7F2A91 }
.tag.mint {background-color: #60BD8F }
.tag.purple {background-color: #703FC1 }
.tag.pink {background-color: #b537e2 }
.tag.yellow {background-color: #dfd62f }


/* Hotell og overnatting */ 
.content {
    grid-column-gap: 45px;
    grid-row-gap: 45px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
}

.content .grid-item-card {
    /* border: 1px solid red; */
    text-decoration: none;
    color: white;
    border-radius: 10px; 
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 300ms ease;
    /* aspect-ratio: 1/1; */
    text-wrap: balance;
}

.content .grid-item-card:hover {
    transition: transform 300ms ease;
    transform: scale(1.015);
}

.card-image {
    aspect-ratio: 4/3;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
}

.card-image > img {
    width: 100%; 
    height: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 1;
    object-fit: cover;
}

.card-image > h2 {
    position: relative;
    z-index: 3;
    font-size: 35px;
    line-height: 39px;
    padding: 0 20px 20px 20px;
    margin-bottom: 0px;
}

.month-heading {
    margin-bottom: 30px;
}

.content > .grid-item-card > .bg-image {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    object-fit: cover;
}

.card-exerpt {
    /* background: rgba(234, 234, 234, 0.22); */
    background-image: url('https://bypatriotenstg.wpengine.com/wp-content/uploads/opplev-alesund/card-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 30px 20px 20px 20px;
    margin-top: -10px;
    font-size: 16px;
    font-weight: 350;
    line-height: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: space-between;
}

.card-exerpt p{
    margin: 0;
}

.card-excerpt-text {
    height: 100%;
}

.read-more-btn {
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 13px;
    align-items: flex-end;
    height: 100%;
}

.read-more-icon {
    position: relative;
    top: 2px;
}

.card-gradient {
    height: 40%;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
    background-image: linear-gradient(180deg, rgba(26,97,114,0.00) 0%, rgba(11,50,62,1) 100%);
}

.card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h2 {
    font-size: 24px;
    padding: 0;
    margin: 0;
}

.card-heading-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
}

.opplev-video-background {
  position: absolute;       /* fill the viewport */
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  z-index: -1;            /* send behind everything */
}

/* Stretch the iframe to cover container */
.opplev-video-background iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;        /* 100vh × (16/9) to maintain aspect ratio */
  height: 60vw;
  transform: translate(-50%, -50%);
  pointer-events: none;   /* allow clicks to pass through */
}

/* Ads */ 

.ad-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.26);
}

.ad-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-section-mobile {
    display: none;
}

.ad-section-desktop {
    display: flex;
}

.ad-element-desktop {
    width: 970px;
    /* height: 250px; */ 
    overflow: hidden;
}

.ad-element-mobile {
    width: 320px;
    height: 400px;
    overflow: hidden;
}

.content-main-page {
    grid-template-columns: 1fr !important;
}
.video-container {
    padding-bottom: 0px;
}

.card-image-container {
    width: 100%;
    height: 100%;
}
.card-image-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 1260px)  {
    .content {
        grid-template-columns: 1fr 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-item.hero-btn {
        justify-content: left;
        margin-top: 30px;
    }

    .grid-12 {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .grid-12 .span-4 {
        grid-column: span 1;
    }

    .grid-12 .v-span-2 {
        grid-column: span 1;
        grid-row-end: span 1;
    }

    .grid-12 .span-6 {
        grid-column: span 1;
    }

    .grid-12 .span-8 {
        grid-column: span 1;
    }

    .grid-12 .span-12 {
        grid-column: span 1;
    }

    h2.bigger {
        font-size: 32px;
        line-height: 36px;
        margin-top: 20px;
    }
}

.hero .grid-item {
    padding: 0px !important;
}

@media only screen and (max-width: 1000px) {
    
    .ad-section-desktop {
        display: none;
    }

    .ad-section-mobile {
        display: flex;
    }
}

@media only screen and (max-width: 600px)  {
    .grid-12 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content {
        grid-template-columns: 1fr;
    }
    .grid-item.hero-btn {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-first-item {
        flex-direction: column;
        align-items: flex-start;
    }
}