/*
Theme Name:     Respons
Theme URI:      http://tidskriftenrespons.se
Template:       kadence
Author:         Joao Neves, Hey Jay
Author URI:     https://heyjay.se
Description:    Custom WordPress theme for Tidskriften Respons.
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Typography */

@font-face {
  font-family: 'Tiempos Text';
  src: url('type/tiempos-text-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: auto;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('type/tiempos-text-regular-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: auto;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('type/tiempos-text-medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: auto;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('type/tiempos-text-medium-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: auto;
}

@font-face {
  font-family: 'Gothia Serif';
  src: url('type/gothia-serif-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Gothia Serif';
  src: url('type/gothia-serif-regular-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: auto;
}

@font-face {
  font-family: 'Gothia Serif';
  src: url('type/gothia-serif-medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: auto;
}

@font-face {
  font-family: 'Gothia Serif';
  src: url('type/gothia-serif-medium-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: auto;
}

blockquote {
  font-family: 'Gothia Serif', Cambria, Georgia, Times, serif;
  font-size: 2em;
  line-height: 1.4em !important;
  font-weight: 500;
  color: #292929;
  text-align: center;
  margin: 1.600em auto !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}
 
blockquote p:before {
  display: inline;
  content: '\00BB';
}

blockquote p:after {
  display: inline;
  content: '\00AB';
}

blockquote.is-style-plain {
  font-family: "Tiempos Text", Cambria, Georgia, Times, serif;
  font-size: 0.900em;
  font-weight: 400;
  line-height: 1.667em !important;
  max-width: 608px !important;
  text-align: left !important;
  margin: 3.556em auto !important;
}

blockquote.is-style-plain p:before,
blockquote.is-style-plain p:after { display: none; }

blockquote p,
blockquote.is-style-plain p { line-height: inherit !important; }

blockquote cite {
  font-family: "Tiempos Text", Cambria, Georgia, Times, serif;
  color: #292929 !important;
  font-weight: 400;
  font-size: 15px !important;
  line-height: 1.5;
  margin-top: 1em !important;
}

strong { font-weight: 500; }

.text-medium { font-weight: 500; }

strong.small-caps { 
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.text-small { 
  font-size: 18px;
  line-height: 1.5;
}

.text-margin-small { margin-bottom: 0.75em !important; }

p.has-background { padding: 1.5em 2em !important; }

body {
  font-variant-numeric: oldstyle-nums;
  moz-font-feature-settings: 'onum';
  -webkit-font-feature-settings: 'onum';
  font-feature-settings: 'onum' on; 
}


/* General */

.site-container, 
.site-header-row-layout-contained, 
.site-footer-row-layout-contained, 
.entry-hero-layout-contained, 
.comments-area, .alignfull > .wp-block-cover__inner-container, 
.alignwide > .wp-block-cover__inner-container,
.popup-drawer .drawer-header,
.popup-drawer .drawer-content .header-widget2,
.start-section-current > .kt-row-column-wrap,
.tax-amne-header-section > .kt-row-column-wrap,
.single-artikel .article-feat-img > .kt-row-column-wrap {
  padding-left: clamp(16px, calc(16px + (92 - 16) * ((100vw - 375px) / (1440 - 375))), 92px);
  padding-right: clamp(16px, calc(16px + (92 - 16) * ((100vw - 375px) / (1440 - 375))), 92px);
}

.popup-drawer .drawer-header,
.popup-drawer .drawer-content .header-widget2 { 
  max-width: var(--global-content-width) !important;
  width: 100%;
  margin: 0 auto;
}


/* Header */

.site-header .main-navigation ul.menu li { margin-right: calc(10px + (30 - 10) * ((100vw - 320px) / (1440 - 320))); }

.site-header .main-navigation ul li a {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-header .header-button-inner-wrap { line-height: 0; }

.site-header .drawer-toggle { border: none !important; }

.site-header .drawer-toggle:hover svg { 
   fill: #CBA100;
}

.popup-drawer .drawer-header {
 min-height: 90px;
 align-items: center; 
 background-color: #fff;
}

.popup-drawer .drawer-header .drawer-toggle { 
  padding: 0;
  width: 30px;
  height: 30px;
}

.popup-drawer .drawer-header .drawer-toggle:hover svg { 
   fill: #CBA100;
}

.popup-drawer .drawer-content { 
  background-color: #fff;
  font-family: 'Gothia Serif', Cambria, Georgia, Times, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.3;
  padding: 0;
}

.popup-drawer .drawer-content #block-23 { 
  margin-top: -66px; 
  z-index: 100;
}

.popup-drawer .drawer-content #block-23 figure { margin: 0 auto; }

.popup-drawer .drawer-content .menu-section-wrap > .kt-row-column-wrap { grid-template-columns:  auto minmax(284px, 1fr); }

.popup-drawer .drawer-content .menu-section-search { 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.popup-drawer .drawer-content .menu-section-search .kt-inside-inner-col {  grid-column: span 3; }

.popup-drawer .drawer-content .wp-block-search__label { display: none; }

.popup-drawer .drawer-content .wp-block-search__input { 
  padding-right: 36px;
  border: none;
  border-bottom: 1px solid #333;
  border-radius: unset;
  margin-bottom: 1px;
  color: #292929;
  font-family: 'Gothia Serif', Cambria, Georgia, Times, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  padding: 1px 0 3px 0;
}

.popup-drawer .drawer-content .wp-block-search__input:focus { 
  border-width: 2px;
  margin-bottom: 0px;
}

.popup-drawer .drawer-content .wp-block-search__input::placeholder { color: #292929; }

.popup-drawer .drawer-content .wp-block-search__button {
  background-image: url('images/icon-arrow.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 32px 20px;
  width: 36px;
  height: 39px;
  border: none ;
  margin-left: -36px;
  padding: 5px 10px;
  cursor: pointer;
  opacity: 1;
  transform: translateX(-2px);
}

.popup-drawer .drawer-content .wp-block-search__input:focus + .wp-block-search__button,
.popup-drawer .drawer-content .wp-block-search__button:hover,
.popup-drawer .drawer-content .wp-block-search__button:focus {
  transform: translateX(2px);
}

.popup-drawer .drawer-content .wp-block-search__input:focus,
.popup-drawer .drawer-content .wp-block-search__button:hover { box-shadow: none }

.popup-drawer .drawer-content .widget_nav_menu a { padding: 0; }


/* Content */

.single-content ul, 
.single-content ol {
  padding-left: 1.1em;
  margin-bottom: 2.100em;
}

.single-content ul li, 
.single-content ol li {
  padding-left: 0.3em;
  margin-bottom: 0.4em;
}

.single-content ul li.kb-dynamic-list-item { 
  padding: 0; 
  margin: 0;
}

.single-content ul li.kb-dynamic-list-divider { padding: 0 0.3em !important; } 


/* Startpage */

.start-posts-banner .kt-blocks-post-grid-item-inner { 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.start-posts-banner .kt-blocks-post-grid-item-inner-wrap { gap: 40px 40px; }

.start-posts-banner .kadence-post-image {  order: 1; }

.start-posts-second .kt-post-grid-wrap { grid-template-columns: 5fr 3fr 4fr !important; }

.start-posts-second .kt-blocks-post-grid-item:nth-child(1) .kadence-post-image > div { padding-bottom: 65.307% !important; }
.start-posts-second .kt-blocks-post-grid-item:nth-child(2) .kadence-post-image > div { padding-bottom: 61.82% !important; }
.start-posts-second .kt-blocks-post-grid-item:nth-child(3) .kadence-post-image > div { padding-bottom: 112.245% !important; }

.start-posts-third .kt-post-grid-wrap { grid-template-columns: 4fr 5fr 3fr !important; }

.start-posts-third .kt-blocks-post-grid-item:nth-child(1) .kadence-post-image > div { padding-bottom: 112.245% !important; }
.start-posts-third .kt-blocks-post-grid-item:nth-child(2) .kadence-post-image > div { padding-bottom: 65.307% !important; }
.start-posts-third .kt-blocks-post-grid-item:nth-child(3) .kadence-post-image > div { padding-bottom: 61.82% !important; }

.start-posts-theme .kt-blocks-post-grid-item .kadence-post-image > div { padding-bottom: 63.776% !important; }

.start-posts-current .kt-post-grid-wrap { grid-template-columns: repeat(12, 1fr) !important; }

.start-posts-current .kt-blocks-post-grid-item:nth-child(1) {
  grid-column: 2 / span 4;
  max-width: 392px;
}

.start-posts-current .kt-blocks-post-grid-item:nth-child(2) {
  grid-column: 7 / span 5;
  max-width: 500px;
}

.start-posts-current .kt-blocks-post-grid-item:nth-child(1) .kadence-post-image > div { padding-bottom: 112.245% !important; }
.start-posts-current .kt-blocks-post-grid-item:nth-child(2) .kadence-post-image > div { padding-bottom: 65.307% !important; }

.kt-blocks-post-grid-item .kadence-post-image-inner-wrap { overflow: hidden; }

.kt-blocks-post-grid-item .kadence-post-image-inner-wrap:focus { outline-offset: -2px; }

.kt-blocks-post-grid-item .kadence-post-image img { 
  transition: transform 800ms ease-in-out;
  transform-origin: center center;
}

.kt-blocks-post-grid-item .kadence-post-image:hover img { transform: scale(1.1); }

.kt-blocks-post-grid-item .kt-blocks-above-categories,
.kt-blocks-post-grid-item .kt-blocks-above-authors { 
  float: left;
  font-size: 14px;
  line-height: 21px;
}

.kt-blocks-post-grid-item .kt-blocks-above-categories { padding-right: 0.5em; }

.kt-blocks-post-grid-item .kt-blocks-above-authors { font-weight: 500; }

.kt-blocks-post-grid-item .kt-blocks-above-categories a,
.kt-blocks-post-grid-item .kt-blocks-above-authors a { text-decoration: none; }

.kt-blocks-post-grid-item .kt-blocks-above-categories a:hover,
.kt-blocks-post-grid-item .kt-blocks-above-categories a:focus,
.kt-blocks-post-grid-item .kt-blocks-above-authors a:hover,
.kt-blocks-post-grid-item .kt-blocks-above-authors a:focus { text-decoration: underline; }

.kt-blocks-post-grid-item .entry-title { 
  clear: both;
  padding-top: 0.4em !important;
  padding-bottom: 0.5em !important;
}

.kt-blocks-post-grid-item .entry-content { padding-bottom: 1em !important; }

.kt-blocks-post-grid-item .entry-title a:hover,
.kt-blocks-post-grid-item .entry-title a:focus { 
  text-decoration: underline !important;
}

.custom-archive-loop-item .kt-blocks-post-footer-review,
.kt-blocks-post-grid-item .kt-blocks-post-footer-review {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1.25em;
}

.custom-archive-loop-item .kt-blocks-post-footer-review:before,
.kt-blocks-post-grid-item .kt-blocks-post-footer-review:before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 20px;
  height: 14px;
  background-image: url('images/icon-book.svg');
  background-size: cover;
}

.custom-archive-loop-item .kt-blocks-post-footer-review { 
  font-family: Roboto, Helvetica, sans-serif;
  font-size: 15px !important;
  line-height: 1.5;
  color: #292929 !important;
  text-align: left !important;
}

.start-reviews-header a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
}

.start-reviews-header a:hover,
.start-reviews-header a:focus { text-decoration: underline; }

.start-reviews-header a:after {
  content: '';
  width: 32px;
  height: 20px;
  margin-left: 0.5em;
  background-image: url('images/icon-arrow.svg');
  background-size: cover;
}

.start-reviews-link { display: none; }

.start-posts-reviews .kt-blocks-above-icon {
  display: inline-block;
  margin: 0 auto 0 auto;
}

.start-posts-reviews .kt-blocks-post-grid-item-inner-wrap, 
.start-posts-reviews .kt-blocks-post-grid-item-inner { height: 100%; }

.start-posts-reviews .kt-blocks-post-grid-item-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.start-posts-reviews .kt-blocks-post-grid-item-inner header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.start-posts-reviews .kt-blocks-post-grid-item-inner h4.entry-title {
  text-align: center;
  margin: auto; 
  padding: 0 0 1em !important;
}

.start-posts-reviews .entry-content { display: none; }

.start-posts-reviews .kt-blocks-post-grid-item {
  background-color: #E4DECD;
  aspect-ratio: 2 / 3;
  padding: 1.850em 1.650em 1.650em;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 400ms;
  height: 100%;
}

.start-posts-reviews .kt-blocks-post-grid-item:nth-child(1) { background-image: url('images/bg-book-review-1.svg'); }
.start-posts-reviews .kt-blocks-post-grid-item:nth-child(2) { background-image: url('images/bg-book-review-2.svg'); }
.start-posts-reviews .kt-blocks-post-grid-item:nth-child(3) { background-image: url('images/bg-book-review-3.svg'); }
.start-posts-reviews .kt-blocks-post-grid-item:nth-child(4) { background-image: url('images/bg-book-review-4.svg'); }
.start-posts-reviews .kt-blocks-post-grid-item:nth-child(5) { background-image: url('images/bg-book-review-5.svg'); }
.start-posts-reviews .kt-blocks-post-grid-item:nth-child(6) { background-image: url('images/bg-book-review-6.svg'); }
.start-posts-reviews .kt-blocks-post-grid-item:nth-child(7) { background-image: url('images/bg-book-review-7.svg'); }
.start-posts-reviews .kt-blocks-post-grid-item:nth-child(8) { background-image: url('images/bg-book-review-8.svg'); }

.start-posts-reviews .kt-blocks-post-grid-item:hover,
.start-posts-reviews .kt-blocks-post-grid-item:focus { background-color: #FF6900; }

.start-posts-reviews .kt-blocks-post-grid-item a:hover,
.start-posts-reviews .kt-blocks-post-grid-item a:focus { 
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

.start-posts-reviews .kt-blocks-post-footer { margin: 0 auto; }

.start-posts-reviews .kt-blocks-post-footer-auth {
  font-family: "Tiempos Text", Cambria, Georgia, Times, serif;
  font-weight: 400;
  line-height: 1.6;
}

.start-posts-feat .kadence-post-image-intrisic { height: 100%; }

.start-posts-feat .kt-blocks-post-grid-item-inner { 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.start-posts-feat .kt-blocks-post-readmore-wrap { margin-top: 1.5em; }

.start-posts-feat .kt-blocks-post-readmore { 
  font-weight: 500 !important;
  padding: 0.75em 1.333em 0.75em 1.333em !important;
}

.start-posts-feat .kt-blocks-post-footer { display: none; }

.start-posts-top .kt-post-grid-layout-grid-wrap {
    counter-reset: grid-item-counter;
}

.start-posts-top .kt-blocks-post-grid-item::before {
  display: block;
  content: counter(grid-item-counter);
  counter-increment: grid-item-counter;
  font-family: 'Gothia Serif', Cambria, Georgia, Times, serif;
  font-size: 56px;
  line-height: 1.2em;
  background: url('images/graph-parentheses.svg') no-repeat right bottom;
  float: left;
  width: 50px;
  margin-left: 10px;
  margin-right: 20px;
}

.start-posts-top .kt-blocks-post-grid-item-inner-wrap {
  float: right;
  width: calc(100% - 80px);
}

.start-posts-top .kt-blocks-post-grid-item::after {
    content: '';
    display: table;
    clear: both;
}

.start-posts-top .entry-title {
  clear: both;
  padding-top: 0.25em !important;
  padding-bottom: 0.35em !important;
}

.start-posts-top .entry-content { display: none; }

.start-header-top::after {
  display: inline-block;
  content: '';
  width: 115px;
  height: 27px;
  background: url('images/graph-eyes.svg') no-repeat right bottom;
  margin-left: 0.250em;
}

/* .page-id-54 .site-header-wrap,
.page-id-54 .site-mobile-header-wrap,
.page-id-54 .entry-hero-container-inner { background: #F5E7C1; } */


/* Article */





/* Taxonomy */

body.tax-amne {
  background: #f5e7c1;
  transition: background 0.5s ease-in-out;
}

body.tax-amne #wrapper  { background: transparent; }
body.tax-amne #masthead  { background: transparent; }
body.tax-amne #inner-wrap .entry-hero-container-inner { background: transparent; }

body.tax-amne.primary-active {
    background: #fff9f1; /* New background color when active */
}

body.tax-amne.primary-inactive {
    background: #f5e7c1; /* Original background color when inactive */
}

body.tax-amne.paged .tax-amne-header-section { display: none; } 

.tax-amne .hero-container { padding-top: 96px; }

.tax-amne .page-title,
.page-title-squiggly {
  text-align: center;
  margin-left: auto !important;
  margin-right: auto !important;
  background-image: url('images/graph-line-squiggly.svg');
  background-repeat: no-repeat;
  background-position: center bottom; 
  background-size: 100% auto; 
  max-width: 394px;
  width: 100%; 
  padding: 0;
  padding-bottom: 1.75rem; 
}

.tax-amne .tax-amne-header-posts { text-align: left; }

.tax-amne-header-posts .kt-post-grid-wrap { grid-template-columns: repeat(12, 1fr) !important; }

.tax-amne-header-posts .kt-blocks-post-grid-item:nth-child(1) {
  grid-column: 2 / span 5;
  max-width: 500px;
}

.tax-amne-header-posts .kt-blocks-post-grid-item:nth-child(2) {
  grid-column: 8 / span 4;
  max-width: 392px;
}

.tax-amne-header-posts .kt-blocks-post-grid-item:nth-child(1) .kadence-post-image > div { padding-bottom: 65.307% !important; }
.tax-amne-header-posts .kt-blocks-post-grid-item:nth-child(2) .kadence-post-image > div { padding-bottom: 112.245% !important; }

.tax-skribent .hero-container,
.tax-kategori .hero-container { padding-top: 90px; }

.tax-skribent .hero-container,
.tax-skribent .content-container,
.tax-kategori .hero-container, 
.tax-kategori .content-container { max-width: var(--global-content-narrow-width); }

.tax-skribent .grid-cols,
.tax-kategori .grid-cols,
.search-results .grid-cols { 
  grid-template-columns: 1fr !important;
  column-gap: 0; 
  row-gap: 0;
}


/* Search page */

.search .search-archive-title { 
  text-align: center;
  margin-bottom: 0;
}

.search .search-result-title { margin-bottom: 1rem; }

.search .search-result-form { margin-bottom: 1.5rem; }

.search .search-result-form .search-form {
    position: relative;
    display: block;
    width: 100%;
}

.search .search-result-form .search-input-container { position: relative; }

.search .search-result-form .search-field {
  width: 100%;
  padding: 1.2rem 1rem;
  border: 1px solid #333;
  margin: 1px;
  font-family: 'Gothia Serif', Cambria, Georgia, Times, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #292929;
  background-color: transparent;
  padding-right: calc(2.8125rem + 2rem); /* Adjust padding to make space for the button */
}

.search .search-result-form .search-field:focus {
  border-width: 2px;
  margin: 0;
}

.search .search-result-form .search-field::placeholder { color: #292929; }

.search .search-result-form .search-submit {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 0;
    width: 2.8125rem; 
    height: 100%; 
    border: none;
    background: none;
    padding: 0;
    margin: 0 1rem;
    cursor: pointer;
    transform: translateX(-2px);
    overflow: visible;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search .search-field:focus + .search-submit,
.search .search-result-form .search-submit:hover,
.search .search-result-form .search-submit:focus {
  transform: translateX(2px);
}

.search .search-result-form .search-icon {
  fill: currentColor;
}

.search .search-archive { padding-top: var(--global-kb-spacing-xl, 4rem);; }

.search .search-archive .kb-is-ratio-image { background-color: rgba(0,0,0,0.08); }

/* Footer */

.site-footer-wrap .widget_nav_menu li { margin-bottom: 0.25em; }

.site-footer-wrap .widget_nav_menu li a { display: inline-block; }

.site-footer-wrap .site-footer-middle-section-4 #block-16 { margin-bottom: 1.1em; }


/* Links & Buttons */

a {
  text-decoration: underline  rgba(29, 29, 29, 0) !important;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 400ms;
}

a:hover,
a:focus { 
  text-decoration: underline  rgba(29, 29, 29, 1) !important;
}

h1 a, 
h2 a, 
h3 a { 
  text-underline-offset: 0.1em;
}

a.button:hover,
a.button:focus,
a.kt-blocks-post-readmore:hover,
a.kt-blocks-post-readmore:focus { text-decoration: none  rgba(29, 29, 29, 0) !important; }

.kb-button { font-weight: 500; }


/* Utility */

.line-fancy {
  position: relative;
  height: 1px;
  background-color: #333;
  width: 100%;
}

.line-fancy::before,
.line-fancy::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 9px;
  background-color: #333;
  top: 50%;
  transform: translateY(-50%);
}

.line-fancy::before { left: 0; }
.line-fancy::after { right: 0; }


/* Wordpress */

.blocks-gallery-caption figcaption, 
.wp-block-embed figcaption, 
.wp-block-image figcaption, 
.wp-block-table figcaption, 
.wp-block-audio figcaption, 
.wp-block-video figcaption,
.wp-block-kadence-image figcaption { 
  font-family: Roboto, Helvetica, sans-serif;
  font-size: 14px !important;
  line-height: 1.3;
  color: #292929 !important;
  text-align: left !important;
  margin-top: 0.6em;
}

.single-content figure.wp-block-image,
.single-content .wp-block-kadence-image figure { 
  margin-top: 3em;
  margin-bottom: 3em;
}

.pagination-wrap {
  text-align: center;
  margin-top: 80px;
}

.pagination { margin-top: 0.3em !important; }

.pagination .page-numbers {
  font-family: 'Gothia Serif', Cambria, Georgia, Times, serif;
  font-size: 28px;
  min-width: 40px;
  line-height: 38px;
  font-weight: 500;
  margin-right: 0;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  color: inherit;
  text-decoration: none !important;
}

.pagination .current {
  border-color: #CBC3A7;
  background: #CBC3A7;
  color: #292929;
}

.pagination a:hover, 
.pagination a:focus, 
.pagination a:active {
  border-color: #292929;
  text-decoration: none !important;
  transition: none !important;
}


/* Forms */

input[type='search']::-ms-clear { display: none; width : 0; height: 0; }
input[type='search']::-ms-reveal { display: none; width : 0; height: 0; }

input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-results-button,
input[type='search']::-webkit-search-results-decoration { display: none; }


/* Animations */

@keyframes shake-horizontal {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(1px); }
  40%, 80% { transform: translateX(-1px); }
}


/* Media Queries */

@media (max-width: 1400px) {
  
  .site-header .site-branding img,
  .popup-drawer .drawer-content #block-23 figure { max-width: 260px !important; }
  
  .popup-drawer .drawer-content #block-23 { margin-top: -64px; }
  
  .site-header .header-button { margin-right: 2em !important; }
  
}

@media (max-width: 1233px) {
  
  .site-header .site-branding img,
  .popup-drawer .drawer-content #block-23 figure { max-width: 220px !important; }
  .popup-drawer .drawer-content #block-23 { margin-top: -58px; }

}

@media (max-width: 1200px) {
  
  .site-header .header-button { margin-right: 1.5em !important; }
  
  .site-header .site-branding img,
  .popup-drawer .drawer-content #block-23 figure { max-width: 180px !important; }
  
  .popup-drawer .drawer-content { font-size: 26px; }
  .popup-drawer .drawer-content .wp-block-search__input { font-size: 26px; }
  .popup-drawer .drawer-content .wp-block-search__button { height: 36px; }

}

@media (max-width: 1140px) {
  
  .site-header .main-navigation ul li a { font-size: 14px !important; }
  .site-header .header-button { font-size: 14px !important; margin-right: 1.3em !important; }
  .site-header .drawer-toggle svg { width: 50px; height: auto; }
  
  .popup-drawer .drawer-header .widget-toggle-close,
  .popup-drawer .drawer-header .widget-toggle-close svg { width: 25px; height: 25px;  }
  
}

@media (max-width: 1024px) {
  
  .text-small { font-size: 17px; }
  
  .popup-drawer .drawer-header { min-height: 80px; }
  
  .popup-drawer .drawer-content #block-23 { margin-top: -53px; }
  .popup-drawer .drawer-content #block-23 figure { margin: 0; margin-right: 75px; }
  
  .popup-drawer .drawer-content .menu-section-wrap > .kt-row-column-wrap { grid-template-columns: minmax(0, 1fr); }
  .popup-drawer .drawer-content .menu-section-wrap .menu-section-wrap-col2 { display: none; }
  .popup-drawer .drawer-content .menu-section-search .kt-inside-inner-col {  grid-column: span 4; }
  
  .popup-drawer .drawer-content { font-size: 24px; }
  .popup-drawer .drawer-content .wp-block-search__input { font-size: 24px; }
  .popup-drawer .drawer-content .wp-block-search__button { height: 34px; }
  
  .start-posts-banner .kt-blocks-post-grid-item-inner-wrap { gap: 30px 30px; }
  
  .start-posts-second .kt-post-grid-wrap { grid-template-columns: minmax(0,1fr) minmax(0,1fr)!important; }
  
  .start-posts-third .kt-post-grid-wrap { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  
  .start-posts-current .kt-post-grid-wrap,
  .tax-amne-header-posts .kt-post-grid-wrap { grid-template-columns: 4fr 5fr !important; }
  
  .start-posts-current .kt-blocks-post-grid-item:nth-child(1),
  .tax-amne-header-posts .kt-blocks-post-grid-item:nth-child(1)  {
    grid-column: unset;
    max-width: none;
  }
  
  .start-posts-current .kt-blocks-post-grid-item:nth-child(2),
  .tax-amne-header-posts .kt-blocks-post-grid-item:nth-child(2) {
    grid-column: unset;
    max-width: none;
  }
  
  .start-posts-top .kt-blocks-post-grid-item::before {
    font-size: 44px;
    line-height: 1.5em;
    background-size: 24px 52px;
    width: 42px;
    margin-left: 8px;
    margin-right: 16px;
  }
  
  .start-posts-top .kt-blocks-post-grid-item-inner-wrap {
    float: right;
    width: calc(100% - 66px);
  }
  
  .tax-amne .hero-container,
  .tax-kategori .hero-container { padding-top: 32px; }
  
  .tax-amne .page-title,
  .page-title-squiggly {
    background-size: 320px auto; 
    padding-bottom: 1.3rem; 
  }
  
  .tax-amne .grid-cols { column-gap: 30px; row-gap: 30px; }

}

@media (max-width: 767px) {

  .text-small { font-size: 16px; }
  
  p.has-background { padding: 1.125em 1.25em !important; }

  .popup-drawer .drawer-content { font-size: 20px; }
  .popup-drawer .drawer-content .wp-block-search__input { font-size: 20px; padding: 2px 0 5px 0; }
  .popup-drawer .drawer-content .wp-block-search__button { height: 32px; }
  
  .start-posts-banner .kt-blocks-post-grid-item-inner-wrap { gap: 20px 20px; }
  
  .start-posts-banner .kadence-post-image { 
    order: 1;
    padding-bottom: 0.8em !important;
  }
  
  .custom-archive-loop-item .kt-blocks-post-footer-review,
  .kt-blocks-post-grid-item .kt-blocks-post-footer-review { 
    font-size: 14px !important;
    line-height: 1.45;
  }
  
  .start-posts-second .kt-post-grid-wrap,
  .start-posts-third .kt-post-grid-wrap,
  .start-posts-current .kt-post-grid-wrap,
  .tax-amne-header-posts .kt-post-grid-wrap { grid-template-columns: minmax(0,1fr) !important; }
  
  .start-posts-top .kt-blocks-post-grid-item::before {
    font-size: 40px;
    line-height: 1.3em;
    background-size: 20px 43px;
    width: 38px;
    margin-left: 6px;
    margin-right: 14px;
  }
  
  .start-posts-top .kt-blocks-post-grid-item-inner-wrap {
    float: right;
    width: calc(100% - 58px);
  }
  
  .tax-amne .hero-container,
  .tax-kategori .hero-container { padding-top: 16px; }
  
  .tax-amne .page-title,
  .page-title-squiggly {
    background-size: 224px auto; 
    padding-bottom: 0.75rem; 
  }
  
  .tax-amne .grid-cols { 
    column-gap: 20px; 
    row-gap: 20px;
  }

}


@media (max-width: 480px) { 
  
  .start-reviews-header h3 { text-align: center !important; }
  
  .start-posts-reviews .kt-post-grid-wrap { grid-template-columns: minmax(0,1fr) !important; }
  
  .start-posts-reviews .kt-post-grid-layout-grid-wrap.resizing .kt-blocks-post-grid-item:not(:first-child) { display: none; }
  
  .start-posts-reviews h4.entry-title { font-size: 28px; }
  
  .start-reviews-link { display: block; }
  
}

@media (max-width: 374px) {

  .site-mobile-header-wrap .site-branding .brand img { 
    width: 100% !important;
    max-width: 260px;
  }
  
  .site-mobile-header-wrap .site-branding { padding-right: 25px; }
  
  .start-posts-reviews h4.entry-title { font-size: 24px; }
  
}
