/*
Theme Name: GMSMC
Theme URI: https://gmsmc.no
Version: 1.50
Author: Michael Urrang
Author URI: https://comple.no
License: MIT
License URI: http://opensource.org/licenses/mit-license.php
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Barlow+Condensed:wght@600;700;800;900&display=swap');

/* ------------------------------------ *\
   BASE
\* ------------------------------------ */

html {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    /*
	font-family: var(--wp--preset--font-family--inter, sans-serif);
    */
	font-size: var(--wp--preset--font-size--base, 1.125rem);
	line-height: 1.6;
	font-weight: 400;
	color: var(--wp--preset--color--base, #101010);
	background: var(--wp--preset--color--background, #ffffff);
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0 0 1rem;
}

a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

input,
select,
textarea,
button {
	font: inherit;
}

button {
	cursor: pointer;
}

/* ------------------------------------ *\
   TYPOGRAPHY
\* ------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 1rem;
	line-height: 1.1;
	font-weight: 600;
	text-wrap: balance;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

h1 {
	font-size: var(--wp--preset--font-size--xxl, 3.25rem);
}

h2 {
	font-size: var(--wp--preset--font-size--xl, 2.25rem);
}

h3 {
	font-size: var(--wp--preset--font-size--large, 1.75rem);
}

h4 {
	font-size: var(--wp--preset--font-size--medium, 1.375rem);
}

h5 {
	font-size: var(--wp--preset--font-size--base, 1.125rem);
}

h6 {
	font-size: var(--wp--preset--font-size--small, 1rem);
}

p,
ul,
ol,
blockquote {
	margin: 0 0 1.5rem;
}

ul,
ol {
	padding-left: 1.25rem;
}

small {
	font-size: var(--wp--preset--font-size--xs, 0.875rem);
}

.underline {
    text-decoration: underline;
}

/* ------------------------------------ *\
   FORMS
\* ------------------------------------ */

input,
textarea,
select {
	width: 100%;
	max-width: 100%;
	border: 1px solid rgba(16, 16, 16, 0.15);
	border-radius: 0;
	background: #fff;
	padding: 0.85rem 1rem;
}

textarea {
	min-height: 10rem;
	resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
}

button,
input[type="submit"],
input[type="button"] {
	width: auto;
	border: 0;
	background: var(--wp--preset--color--base, #101010);
	color: #fff;
	padding: 0.9rem 1.4rem;
	line-height: 1;
}

/* ------------------------------------ *\
   LAYOUT HELPERS
\* ------------------------------------ */

.container,
.container-wide,
.container-wider, 
.container-full {
	max-width: 100%;
	margin-inline: auto;
	padding-inline: 20px;
}

.container {
	max-width: 1100px;
}

.container-wide {
	max-width: 1440px;
}

.container-full {
	max-width: none;
}

.page-wrapper {
	position: relative;
	z-index: 1;
}

/* ------------------------------------ *\
   WORDPRESS / GUTENBERG
\* ------------------------------------ */

.entry-content {
	max-width: var(--content-width);
	margin-inline: auto;
}

.entry-content > * {
	margin-block-start: 0;
}

.entry-content > * + * {
	margin-block-start: 1.5rem;
}

/*
.entry-content .alignwide {
	max-width: var(--wp--style--global--wide-size, 1680px);
	width: calc(100% + 12rem);
	margin-left: calc(-6rem);
	margin-right: calc(-6rem);
}

.entry-content .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}
*/
.entry-content .container > .alignwide {
    width: min(
        var(--wp--style--global--wide-size, 1440px),
        calc(100vw - 48px)
    );
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.entry-content .container > .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.entry-content .wp-block-image.alignfull img {
	width: 100%;
}

.wp-block-group.alignwide,
.wp-block-cover.alignwide,
.wp-block-columns.alignwide {
	max-width: var(--wp--style--global--wide-size, 1680px);
	margin-left: auto;
	margin-right: auto;
}

.wp-block-group.alignfull,
.wp-block-cover.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-block-image figcaption,
.wp-caption-text {
	font-size: var(--wp--preset--font-size--xs, 0.875rem);
	line-height: 1.4;
	color: rgba(16, 16, 16, 0.7);
	text-align: left;
}

.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
	margin-bottom: 1rem;
}

/* ------------------------------------ *\
   HEADER
\* ------------------------------------ */

.alert {
    position: relative;
    width: 100%;
    background: transparent;
    z-index: 20;
}

.alert__inner {
    position: relative;
    margin-left: auto;
    width: 80%;
    background: #ed1c24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 8vw, 160px);
    padding: 10px 20px;
}

/* Skrå venstrekant */
.alert__inner::before {
    content: "";
    position: absolute;
    left: -64px;
    top: 0;
    width: 65px;
    height: 100%;
    background: #ed1c24;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.alert a {
    color: #FFF;
    font-size: 17px;
}

.alert .fa-solid {
    margin-right: 6px;
}

.header {
    position: relative;
    padding: 10px 0;
}

.header .container-wide {
    position: relative;
    display: flex;
    align-items: center;
}

.header .container-wide:before {
    content: '';
    background: url(img/red-lines.svg);
    background-size: 600px;
    background-repeat: no-repeat;
    height: 600px;
    position: absolute;
    left: -250px;
    width: 600px;
    top: 220px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

.home .header .container-wide:before, .single-kjoretoy .header .container-wide:before {
    opacity: 1;
}

.header .logo {
    position: relative;
    top: -15px;
    z-index: 9999;
}

.header .logo img {
    height: 90px;
}

body.home .logo {
    animation: logo-drive-in 1.35s cubic-bezier(.17,.84,.44,1) 0.25s both;
}

/* Litt "motor-vibrasjon" etter at den har parkert */
body.home .logo img {
    animation: logo-idle 0.18s linear 1.65s 5;
}

@keyframes logo-drive-in {
    0% {
        opacity: 0;
        transform: translateX(520px) translateY(-34px) scale(0.55) rotate(-3deg);
    }

    12% {
        opacity: 1;
    }

    62% {
        transform: translateX(-18px) translateY(0) scale(1.03) rotate(1deg);
    }

    78% {
        transform: translateX(10px) translateY(0) scale(0.98) rotate(-0.5deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1) rotate(0deg);
    }
}


/* Liten sluttvibrasjon, som om motoren står og putrer */
@keyframes logo-idle {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-1px) rotate(-0.3deg);
    }

    50% {
        transform: translateX(1px) rotate(0.3deg);
    }

    75% {
        transform: translateX(-0.5px) rotate(-0.2deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

.header .main-menu {
    margin-left: auto;
}

.header .main-menu ul {
    margin: 0;
}

.header .nav-toggle {
    display: none;
}

.search-form {
    display: none;
}

.topbar {
    position: relative;
    width: 100%;
    background: transparent;
    z-index: 9999;
}

.topbar__inner {
    position: relative;
    margin-left: auto;
    width: 55%;
    background: #100d0d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 8vw, 160px);
    padding: 15px 20px;
}

/* Skrå venstrekant */
.topbar__inner::before {
    content: "";
    position: absolute;
    left: -64px;
    top: 0;
    width: 65px;
    height: 100%;
    background: #100d0d;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/*
.topbar__inner::after {
    content: '';
    position: absolute;
    top: -10px;
    z-index: -10;
    background: url(img/red2.svg);
    height: 300px;
    width: 720px;
    background-repeat: no-repeat;
    left: -143px;
    transform: rotate(-5deg);
    pointer-events: none;
}
*/

.topbar__item {
    position: relative;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.topbar__item:hover {
    color: #ed1c24;
}

.topbar__link {
    text-underline-offset: 3px;
}

.topbar__item:nth-child(1):before {
    font: var(--fa-font-solid); /* Uses Solid style. Use --fa-font-regular for regular icons */
    content: '\f003';           /* Example: User icon unicode */
    padding-right: 5px;  
    color: #ed1c24;
}

.topbar__item:nth-child(2):before {
    font: var(--fa-font-solid); /* Uses Solid style. Use --fa-font-regular for regular icons */
    content: '\f095';           /* Example: User icon unicode */
    padding-right: 5px;
    color: #ed1c24;
}

.topbar__item:nth-child(3):before {
    font: var(--fa-font-solid); /* Uses Solid style. Use --fa-font-regular for regular icons */
    content: '\f0ad';           /* Example: User icon unicode */
    padding-right: 5px;
    color: #ed1c24;
}

:root {
    --side-rail-width: 55px;
}

body {
    overflow-x: hidden;
}

/* Selve svarte rammen */
.site-side-rail {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: var(--side-rail-width);
    height: 100vh;
    background: #101010;
    z-index: 999;
}

/* Innholdet inni høyrekolonnen */
.site-side-rail__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 50px;
}

/* Ikoner */
.site-side-rail__inner a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #FFF;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-side-rail__inner a:hover {
    color: #ed1c24;
    transform: translateX(-3px);
}

/* ------------------------------------ *\
   NAVIGATION
\* ------------------------------------ */

.main-menu {
    background: transparent;
    position: relative;
    padding: 0;
    z-index: 10;
}

.main-menu__list,
.main-menu__list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu__list {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-menu__list > li {
    position: relative;
}

.main-menu__list a {
    position: relative;
    display: block;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.main-menu__list li a:before {
    content: '';
    position: absolute;
    bottom: -7px;
    height: 2px;
    width: 0;
    background: #ed1c24;
    transition: all 0.3s;
}

.main-menu__list li a:hover:before {
    width: 100%;
}

.main-menu__list li.current_page_item a {
    color: #ed1c24;
}

.main-menu__list li.current_page_item a:before {
    display: none;
}

/* Foreldre med barn */
.main-menu__list > .menu-item-has-children > a::after {
    content: "+";
    margin-left: 6px;
    font-weight: 800;
}

/* Submeny */
.main-menu__list .sub-menu {
    position: absolute;
    top: 30px;
    left: 0;
    min-width: 210px;
    padding: 20px 25px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    z-index: 100;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

/* Usynlig bro mellom hovedpunkt og dropdown */
.main-menu__list .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

/* Åpne på hover og tastaturfokus */
.main-menu__list > .menu-item-has-children:hover > .sub-menu,
.main-menu__list > .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-menu__list .sub-menu li {
    margin: 0;
}

.main-menu__list .sub-menu a {
    display: inline-block;
    padding: 0;
    font-size: 16px;
    color: #111;
    white-space: nowrap;
}

/* ------------------------------------ *\
   FRONT PAGE
\* ------------------------------------ */

/* HERO */
.hero {
    margin-bottom: 50px;
}

.hero.front .container-wide {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(320px, 1fr);
    gap: 20px;
    min-height: 580px;
}

.hero-section__slider,
.main-hero-swiper,
.main-hero-swiper .swiper-wrapper,
.main-hero-swiper .swiper-slide {
    height: 100%;
}

.hero-section__slider {
    min-width: 0;
}

.main-hero-slide {
    position: relative;
    overflow: hidden;
}

.main-hero-slide__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.main-hero-slide__image {
    width: 100%;
    height: 580px;
    object-fit: cover;
    display: block;
}

/* Valgfri mørk gradient over bilde */
.main-hero-slide__link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.main-hero-slide__content {
    position: absolute;
    left: clamp(24px, 5vw, 72px);
    bottom: clamp(32px, 7vw, 90px);
    z-index: 2;
    max-width: 560px;
}

.main-hero-slide__title {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 76px);
    line-height: 0.95;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

.main-hero-slide__desc {
    margin: 0 0 24px;
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.35;
    color: #fff;
}

.main-hero-slide__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: #ed1c24;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.main-hero-slide__link:hover .main-hero-slide__button {
    background: #c81018;
    transform: translateY(-2px);
}

/* Pagination / røde firkanter */
.main-hero-swiper__pagination {
    position: absolute;
    left: 32px !important;
    bottom: 24px !important;
    width: auto !important;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.main-hero-swiper__pagination .swiper-pagination-bullet {
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: #ed1c24;
    opacity: 0.45;
    margin: 0 !important;
}

.main-hero-swiper__pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* FRONT SHORTCUTS */
.hero-section__boxes {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
}

.hero-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 25px;
    color: #fff;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.hero-box:hover {
    transform: scale(1.02);
}

.hero-box:nth-child(1) {
    background: #ed1c24;
}

.hero-box:nth-child(2) {
    background: #111;
}

.hero-box:nth-child(3) {
    background: #454545;
}

.hero-box:nth-child(1) .hero-box__title:before {
  font: var(--fa-font-solid); /* Uses Solid style. Use --fa-font-regular for regular icons */
  content: '\f0ad';           /* Example: User icon unicode */
  padding-right: 8px;  
}

.hero-box:nth-child(2) .hero-box__title:before {
  font: var(--fa-font-solid); /* Uses Solid style. Use --fa-font-regular for regular icons */
  content: '\f085';           /* Example: User icon unicode */
  padding-right: 8px;  
}

.hero-box:nth-child(3) .hero-box__title:before {
  font: var(--fa-font-solid); /* Uses Solid style. Use --fa-font-regular for regular icons */
  content: '\f21c';           /* Example: User icon unicode */
  padding-right: 8px;  
}

.hero-box__title {
    position: relative;
    margin: 0 0 24px;
    font-size: var(--wp--preset--font-size--large, 1.75rem);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

.hero-box__desc {
    margin: 0;
    font-size: var(--wp--preset--font-size--base, 1.125rem);
    line-height: 1.35;
    color: #fff;
    margin-bottom: 0;
}

.kjoretoy-card .wp-block-post-excerpt {
    margin: 0;
}

.kjoretoy-card .wp-block-post-excerpt p {
    font-size: 16px;
}

.kjoretoy-card li {
    position: relative;
}

.kjoretoy-card-price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: -20px;
}

.kjoretoy-card-price-offer {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: -5px;
}

.kjoretoy-card-price-offer .value {
    position: relative;
    display: inline-block;
    color: #101010;
    font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
    font-weight: 700;
    line-height: 1;
}

.kjoretoy-card-price-offer .value:before {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 1px;
    background: #ed1c24;
    transform: rotate(-4deg);
}

.kjoretoy-card-price .value {
    color: #ed1c24;
    font-weight: 700;
    font-size: 22px;
}

.kjoretoy-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 12px;
    background: #ed1c24;
    color: #fff;
    font-family: var(--font-heading, inherit);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 10;
}

/* ------------------------------------ *\
   PAGE
\* ------------------------------------ */

.title-wrapper {
    margin-bottom: 60px;
}

.page-intro {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.hero-image {
    margin-bottom: 30px;
}

/* ------------------------------------ *\
   SINGLE
\* ------------------------------------ */

/* ------------------------------------ *\
   SINGLE = KJORETOY
\* ------------------------------------ */

.kjoretoy-header {
    padding: clamp(40px, 6vw, 90px) 24px;
}

.kjoretoy-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}

.kjoretoy-header__gallery {
    min-width: 0;
}

.kjoretoy-gallery-main {
    display: flex;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.kjoretoy-gallery-main__image {
    display: block;
    width: 100%;
    height: 28vw;
    max-height: 600px;
    object-fit: contain;
}

.kjoretoy-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.kjoretoy-gallery-thumb {
    appearance: none;
    border: 2px solid #101010;
    background: #fff;
    border-radius: 0;
    padding: 5px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
}

.kjoretoy-gallery-thumb.is-active {
    border-color: #ed1c24;
}

.kjoretoy-gallery-thumb__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kjoretoy-header__content .kjoretoy-badge {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 8px;
}

.kjoretoy-header__content {
    padding-top: 8px;
}

.kjoretoy-header__eyebrow {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

.kjoretoy-header__title {
    margin: 0 0 24px;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
}

.kjoretoy-header__intro {
    max-width: 560px;
    margin-bottom: 36px;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.55;
    color: #444;
}

.kjoretoy-header__intro p {
    margin: 0 0 1em;
}

.kjoretoy-header__price {
    margin-bottom: 32px;
}

.kjoretoy-header__price span {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.kjoretoy-header__price strong {
    display: block;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1;
    font-weight: 900;
    color: #ed1c24;
}

.kjoretoy-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 54px;
    padding: 15px 28px;
    border-radius: 999px;
    background: #ed1c24;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.kjoretoy-header__button:hover {
    background: #c81018;
    color: #fff;
    transform: translateY(-2px);
}

.kjoretoy-metadata {
    padding: clamp(56px, 7vw, 110px) 24px;
    background: #fff;
}

.kjoretoy-metadata__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.kjoretoy-metadata__header {
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 70px);
}

.kjoretoy-metadata__header h2 {
    display: inline-block;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #111;
    font-size: clamp(34px, 3.5vw, 52px);
    line-height: 1;
    font-weight: 900;
    color: #111;
}

.kjoretoy-metadata__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(60px, 8vw, 140px);
}

.kjoretoy-metadata__row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr);
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.35;
}

.kjoretoy-metadata__name {
    font-weight: 700;
    color: #111;
}

.kjoretoy-metadata__value {
    color: #222;
}

/* ------------------------------------ *\
   ARCHIVE
\* ------------------------------------ */

.archive-header {
    margin-bottom: 50px;
}

.archive-grid {
	display: grid;
	gap: var(--wp--style--block-gap, 24px);
	grid-template-columns: repeat(var(--grid-columns, 3), minmax(0, 1fr));
}

.post-item {
	min-width: 0;
}

.post-link {
	display: block;
	height: 100%;
}

.post-item-image {
	margin: 0 0 1rem;
}

.post-item-image img {
	display: block;
	width: 100%;
	height: auto;
}

.post-item-title {
	margin: 0 0 0.5rem;
}

.post-item-excerpt {
	margin-top: 0.5rem;
}

/* ------------------------------------ *\
   FOOTER
\* ------------------------------------ */

.footer {
    background: #101010;
    color: #FFF;
    padding: 100px 0 50px;
    margin-top: 160px;
}

.footer a {
    color: #FFF;
}

.footer .container {
    position: relative;
}

.footer_logo {
    position: absolute;
    top: -200px;
    height: 130px;
    width: auto;
    left: 20px;
}

.footer .fa-facebook {
    font-size: 45px;
}

/* ------------------------------------ *\
   RESPONSIVE
\* ------------------------------------ */

@media (min-width: 1800px) {

    .header .logo img {
        height: 100px;
    }

    .container-wide {
        max-width: 1600px;
    }

    .header .container-wide:before {
        top: 255px;
    }

    .main-hero-slide__image {
        height: 620px;
    }

}

@media (min-width: 1600px) {

    .site-side-rail {
        display: block;
    }

}

@media (max-width: 1280px) {

    .main-menu ul li a {
        font-size: 16px;
    }

}

@media (min-width: 1201px) {

    .main-menu {
        display: block !important;
    }

}

@media (max-width: 1200px) {

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

	.entry-content .alignwide {
		max-width: 100%;
        margin: 0;
	}

/*------------------------------------*\
    HEADER
\*------------------------------------*/
    
    .header .main-menu {
        display: none;
    }
    
    .header .nav-toggle {
        position: relative;
        margin-left: auto;
        display: block;
        padding: 0;
        z-index: 9999;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
    }    
    
    .header .nav-toggle-burger:before {
        content: '';
        background: #ed1c24;
        height: 4px;
        width: 40px;
        display: block;
        position: relative;
        transition: all 0.3s;
    }
    
    .header .nav-toggle-burger:after {
        content: '';
        background: #101010;
        width: 40px;
        height: 4px;
        display: block;
        margin-top: 9px;
        position: relative;
        transition: all 0.3s;
    }
    
    .header .nav-toggle.is-active .nav-toggle-burger:before {
        left: -5px;
    }

    
    .header .nav-toggle.is-active .nav-toggle-burger:after {
        left: 5px;
    }

    .topbar__inner {
        width: 65%;
        gap: clamp(48px, 4vw, 160px);
    }

/*------------------------------------*\
    NAVIGATION
\*------------------------------------*/
    
    .main-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background: #FFF;
        padding: 120px 20px 25px;
    }

    .main-menu__list {
        display: block;
        list-style: none;
        margin: 0;
    }

    .main-menu__list li a {
        display: block;
        font-size: 1.3rem;
        padding: 10px 0;
    }

    .main-menu__list li a:before {
        display: none;
    }

}

@media (max-width: 990px) {

/* ------------------------------------ *\
   FRONT PAGE
\* ------------------------------------ */

    .hero-section__inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-section__slider {
        grid-column: 1 / -1;
        width: 100%;
        height: 480px;
    }

    .hero-section__boxes {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        height: auto;
    }

/* ------------------------------------ *\
   ARCHIVE
\* ------------------------------------ */

	.archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 768px) {

/* ------------------------------------ *\
   HEADER
\* ------------------------------------ */

	body {
		font-size: 1rem;
	}

	h1 {
		font-size: clamp(2.25rem, 7vw, 3.25rem);
	}

	h2 {
		font-size: clamp(1.75rem, 5.5vw, 2.25rem);
	}

	h3 {
		font-size: clamp(1.375rem, 4.5vw, 1.75rem);
	}

	.alignleft,
	.alignright {
		float: none;
		margin-left: 0;
		margin-right: 0;
	}

    .header .logo img {
        height: 52px;
    }

    .topbar__inner {
        padding: 8px 10px;
        gap: 15px;
    }

    .topbar__item {
        font-size: 13px;
    }

    .topbar__item:nth-child(2):before, .topbar__item:nth-child(3):before {
        padding-right: 3px;
    }

    .topbar__item:nth-child(1) {
        display: none;
    }

    .main-menu ul li a {
        font-size: 1.2rem;
    }

    .header .container-wide:before {
        background-size: 520px;
        top: 40px;
    }

/* ------------------------------------ *\
   FRONT PAGE
\* ------------------------------------ */

    .hero.front .container-wide {
        gap: 10px;
    }

    .hero-section__slider {
        height: 75vw;
        min-height: 250px;
    }

    .hero-section__slider img {
        height: 75vw;
        min-height: 250px;
        object-fit: cover;
    }

    .hero-section__boxes {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-box {
        min-height: auto;
        padding: 28px 24px;
    }

    .hero-box:hover {
        transform: none;
    }

    .hero-box__title {
        font-size: var(--wp--preset--font-size--xl);
    }

    .hero-box__desc {
        font-size: var(--wp--preset--font-size--medium);
    }

/* ------------------------------------ *\
   PAGE
\* ------------------------------------ */

    .title-wrapper {
        margin-bottom: 40px;
    }

/* ------------------------------------ *\
   ARCHIVE
\* ------------------------------------ */

	.archive-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

/* ------------------------------------ *\
   SINGLE = KJØRETØY
\* ------------------------------------ */

    .kjoretoy-header__inner {
        grid-template-columns: 1fr;
    }

    .kjoretoy-gallery-main__image {
        height: 50vw;
    }

    .kjoretoy-metadata__header {
        text-align: left;
    }

    .kjoretoy-metadata__grid {
        grid-template-columns: 1fr;
    }

    .kjoretoy-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr))
    }

}

/* ------------------------------------ *\
   UTILITIES
\* ------------------------------------ */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

::selection {
	background: var(--wp--preset--color--accent, #d7a181);
	color: #fff;
}