/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
  #hero-541 {
    padding: 5.5rem 1rem 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    min-height: auto;
  }

  #hero-541::before,
  #hero-541::after {
    display: none;
    content: none;
  }

  #hero-541 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    position: relative;
    z-index: 2;
    min-height: auto;
    display: block;
  }

  #hero-541 .cs-content {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem 1.75rem;
    position: relative;
    z-index: 3;
    margin-top: 12rem;
  }

  #hero-541 .cs-content::before {
    content: none;
    display: none;
  }

  #hero-541 .cs-title {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
    font-weight: 800;
    line-height: 1.02;
    text-align: left;
    max-width: 17ch;
    margin: 0 0 0.65rem 0;
    color: #4b5d3d;
    letter-spacing: 0.01em;
  }

  #hero-541 .cs-text {
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem 0;
    color: #475043;
  }

  #hero-541 .cs-button-solid {
    font-size: 1rem;
    line-height: 3rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    color: #1f2a17;
    min-width: 11.5rem;
    padding: 0 1.25rem;
    background-color: #e2b63f;
    border: 1px solid rgba(120, 92, 19, 0.18);
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition:
      transform 0.3s,
      background-color 0.3s;
  }

  #hero-541 .cs-button-solid:hover {
    transform: translateY(-0.125rem);
    background-color: #d7aa31;
  }

  #hero-541 .cs-button-solid:before {
    display: none;
  }

  #hero-541 .cs-background {
    width: 100%;
    height: 18rem;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -2;
    overflow: hidden;
  }

  #hero-541 .cs-background:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.8rem;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.12) 35%,
      rgba(255, 255, 255, 0.38) 62%,
      rgba(255, 255, 255, 0.72) 82%,
      rgba(255, 255, 255, 1) 100%
    );
    z-index: 2;
    pointer-events: none;
  }

  #hero-541 .cs-background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 38%;
  }
}

/* Tablet */
@media only screen and (min-width: 48rem) {
  #hero-541 {
    min-height: 28rem;
    padding: 6.5rem 1rem 0;
    display: block;
  }

  #hero-541 .cs-container {
    min-height: 28rem;
    display: flex;
    align-items: center;
  }

  #hero-541 .cs-content {
    width: 58%;
    max-width: 42rem;
    padding: 2rem 1rem 2rem 0;
    margin-top: 0;
  }

  #hero-541 .cs-content::before {
    display: none;
    content: none;
  }

  #hero-541::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: min(66%, 54rem);
    background: linear-gradient(
      180deg,
      rgba(247, 244, 235, 0.9) 0%,
      rgba(243, 239, 228, 0.84) 100%
    );
    clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
    z-index: 0;
  }

  #hero-541::after {
    display: none;
    content: none;
  }

  #hero-541 .cs-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
    overflow: hidden;
  }

  #hero-541 .cs-background::before {
    display: none;
    content: none;
  }

  #hero-541 .cs-background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  #hero-541 .cs-title {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    line-height: 1.3;
    max-width: 25ch;
    margin-bottom: 1.25rem;
  }

  #hero-541 .cs-text {
    font-size: 1.0625rem;
    max-width: 34rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
}

/* Desktop */
@media only screen and (min-width: 64rem) {
  #hero-541 {
    min-height: 31rem;
    padding-top: 7rem;
  }

  #hero-541 .cs-container {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 31rem;
    display: flex;
    align-items: center;
  }

  #hero-541::before {
    display: block;
    width: min(68%, 62rem);
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
  }

  #hero-541 .cs-content {
    width: 43rem;
    max-width: 43rem;
    padding-right: 2rem;
    margin-top: 0;
    margin-left: 5rem;
  }

  #hero-541 .cs-title {
    font-size: 3rem;
    max-width: 25ch;
  }

  #hero-541 .cs-text {
    max-width: 35rem;
  }

  #hero-541 .cs-background img {
    object-position: right center;
  }
}

/* Large Desktop */
@media only screen and (min-width: 90rem) {
  #hero-541 {
    min-height: 33rem;
  }

  #hero-541 .cs-container {
    min-height: 33rem;
  }

  #hero-541::before {
    width: min(68%, 64rem);
  }

  #hero-541 .cs-content {
    margin-left: 5rem;
  }
}

/*-- -------------------------- -->
<---           About            -->
<--- -------------------------- -*/

/* Mobile */
@media only screen and (min-width: 0rem) {
  #sbs-2348 {
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #sbs-2348 .cs-container {
    width: 100%;
    max-width: 112.5rem;
    margin: auto;
    /* padding: clamp(1rem, 5vw, 5rem); */
    padding: clamp(0.5rem, 3vw, 1.5rem) clamp(1rem, 5vw, 5rem)
      clamp(2rem, 5vw, 5rem);
    box-sizing: border-box;
    /* background-color: #F1EEEC; */
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  #sbs-2348 .cs-content {
    text-align: left;
    width: 100%;
    max-width: 47.875rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
  }
  #sbs-2348 .cs-text {
    margin-bottom: 1rem;
  }
  #sbs-2348 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #sbs-2348 .cs-button-solid {
    font-size: 1rem;
    font-weight: 700;
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-align: center;
    text-decoration: none;
    min-width: 9.375rem;
    margin: 0;
    padding: 0 1.5rem;
    background-color: var(--primary);
    color: var(--bodyTextColor);
    display: inline-block;
    position: relative;
    z-index: 1;
  }
  #sbs-2348 .cs-button-solid:before {
    content: "";
    width: 0%;
    height: 100%;
    background: #000;
    opacity: 1;
    border-radius: 0.25rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #sbs-2348 .cs-button-solid:hover {
    color: var(--bodyTextColorWhite);
  }
  #sbs-2348 .cs-button-solid:hover:before {
    width: 100%;
  }
  #sbs-2348 .cs-picture {
    width: 100%;
    height: 95vw;
    max-height: 28.125rem;
    display: block;
    order: -1;
    position: relative;
    z-index: 1;
  }
  #sbs-2348 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #sbs-2348 .cs-container {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }
  #sbs-2348 .cs-content {
    padding: clamp(3rem, 6vw, 5rem) 0;
  }
  #sbs-2348 .cs-picture {
    width: 43vw;
    height: auto;
    max-height: 100%;
    max-width: 50.625rem;
    flex: none;
  }
}

/*-- -------------------------- -->
<---           Books            -->
<--- -------------------------- -*/

#books {
  padding: 4rem 1rem;
  background: #f7f4eb;
}

#books .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

#books .cs-content {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

#books .cs-title {
  /* font-size: clamp(2rem, 3.5vw, 2.5rem); */
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #4b5d3d;
}

#books .cs-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #475043;
  margin: 0;
}

.books-group + .books-group {
  margin-top: 2.5rem;
}

.books-heading {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #4b5d3d;
  text-align: center;
  margin-top: 6rem;
}

.books-subtext {
  /* width: 60%; */
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475043;
  text-align: center;
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.book-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  height: 100%;
}

.book-card img {
  width: 100%;
  height: 14rem;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}

.book-card h4 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  color: #2f382b;
  min-height: auto;
}

.book-card .cs-button-solid,
.feature-content .cs-button-solid {
  font-size: 0.95rem;
  line-height: 2.75rem;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  min-width: 8rem;
  padding: 0 1.1rem;
  background-color: #4b5d3d;
  border: none;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition:
    transform 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.book-card .cs-button-solid:hover,
.feature-content .cs-button-solid:hover {
  background-color: #3f4e33;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.book-feature {
  margin-top: 3rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.feature-img img {
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
  display: block;
}

.feature-content h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #4b5d3d;
}

.feature-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: #475043;
}

/* Tablet */
@media only screen and (min-width: 48rem) {
  #books {
    padding: 5rem 1rem;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .book-card h4 {
    min-height: 3.5rem;
  }

  .book-feature {
    padding: 1.5rem;
    gap: 1.5rem;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .feature-img {
    flex: 0 0 12rem;
  }

  .feature-img img {
    max-width: 12rem;
  }

  .feature-content {
    flex: 1;
  }
}

/* Desktop */
@media only screen and (min-width: 64rem) {
  #books {
    padding: 6rem 1rem;
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .books-heading {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .book-card {
    padding: 1.25rem;
  }

  .book-card img {
    height: 15rem;
  }

  .book-card h4 {
    font-size: 1.05rem;
    min-height: 3.75rem;
  }

  .book-feature {
    margin-top: 3.5rem;
    padding: 2rem;
    gap: 2rem;
  }

  .feature-img {
    flex: 0 0 14rem;
  }

  .feature-img img {
    max-width: 14rem;
  }

  .feature-content h3 {
    font-size: 1.8rem;
  }
}

/*-- -------------------------- -->
<---         Book Modal         -->
<--- -------------------------- -*/

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 7rem 1rem 1rem;
}

.book-modal.active {
  display: flex;
}

.book-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 34, 25, 0.5);
  backdrop-filter: blur(4px);
}

.book-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 58rem);
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  background: #fcfbf7;
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.18);
}

.book-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: #ece6d7;
  color: #2f382b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.book-modal__body {
  padding: 1.25rem;
}

.book-modal__top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.book-modal__image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f1e7;
  border-radius: 1rem;
  padding: 1rem;
  min-height: 18rem;
}

.book-modal__image-wrap img {
  max-height: 16rem;
  width: auto;
  object-fit: contain;
}

.book-modal__intro h3 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: #4b5d3d;
  max-width: 25ch;
}

.book-modal__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475043;
  margin: 0;
}

.book-modal__sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-modal__section {
  background: #ffffff;
  border: 1px solid #eee7d8;
  border-radius: 1rem;
  padding: 1rem;
}

.book-modal__section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4b5d3d;
  margin: 0 0 0.75rem;
}

.book-modal__section p,
.book-modal__section div {
  font-size: 1rem;
  line-height: 1.75;
  color: #475043;
}

.book-modal__section p {
  margin: 0;
}

.book-modal__section--purchase {
  background: #f7f4eb;
}

.book-modal__purchase-list {
  margin: 0;
  padding-left: 1.1rem;
}

.book-modal__purchase-list li {
  margin-bottom: 0.5rem;
  color: #475043;
}

.book-modal__extra {
  margin-top: 1rem;
}

.book-modal__extra-card {
  background: #ffffff;
  border: 1px solid #eee7d8;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-modal__extra-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f4eb;
  border-radius: 0.85rem;
  padding: 0.75rem;
}

.book-modal__extra-image-wrap img {
  width: 100%;
  max-width: 20rem;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.4rem;
  cursor: zoom-in;
  transition: transform 0.3s;
}
.book-modal__extra-image-wrap img:hover {
  transform: scale(1.03);
}

.book-modal__extra-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #475043;
}

.book-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9e3d4;
}

.book-modal__actions .cs-button-solid,
.book-modal__actions .cs-button-secondary {
  text-decoration: none;
}

.cs-button-link {
  font-size: 1rem;
  line-height: 3rem;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  min-width: 11rem;
  padding: 0 1.25rem;
  background-color: #4b5d3d;
  border: 1px solid rgba(75, 93, 61, 0.16);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition:
    transform 0.3s,
    background-color 0.3s;
  cursor: pointer;
}

.cs-button-link:hover {
  transform: translateY(-0.125rem);
  background-color: #3f4e33;
}

.cs-button-secondary {
  font-size: 1rem;
  line-height: 3rem;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  color: #2f382b;
  min-width: 11rem;
  padding: 0 1.25rem;
  background-color: #ece6d7;
  border: 1px solid rgba(75, 93, 61, 0.16);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition:
    transform 0.3s,
    background-color 0.3s;
  cursor: pointer;
}

.cs-button-secondary:hover {
  transform: translateY(-0.125rem);
  background-color: #e4ddcb;
}

/* Tablet */
@media only screen and (min-width: 48rem) {
  .book-modal__body {
    padding: 2rem;
  }

  .book-modal__top {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .book-modal__image-wrap {
    min-height: 20rem;
  }

  .book-modal__image-wrap img {
    max-height: 18rem;
  }

  .book-modal__intro h3 {
    font-size: 2.25rem;
  }
  .book-modal__extra-card {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1.25rem;
    align-items: center;
  }

  .book-modal__extra-image-wrap img {
    max-width: 100%;
  }
}

/* Desktop */
@media only screen and (min-width: 64rem) {
  .book-modal__body {
    padding: 2.25rem;
  }

  .book-modal__sections {
    gap: 1.25rem;
  }

  .book-modal__section {
    padding: 1.25rem;
  }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.image-lightbox img {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
}

/*-- -------------------------- -->
<---        Intressen           -->
<--- -------------------------- -*/

#interests {
  padding: 4rem 1rem;
  background: #f7f4eb;
}

#interests .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

#interests .cs-content {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

#interests .cs-title {
  /* font-size: clamp(2rem, 6vw, 2.75rem); */
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #4b5d3d;
}

#interests .cs-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #475043;
  margin: 0;
}

.interests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.interest-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.interest-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

.interest-card__image-wrap {
  border-radius: 0.85rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.interest-card__image-wrap img {
  width: 100%;
  height: 14rem;
  object-fit: contain;
  display: block;
}

.interest-card__video-button {
  font-size: 0.95rem;
  line-height: 2.75rem;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  min-width: 8rem;
  padding: 0 1.1rem;
  background-color: #4b5d3d;
  border: none;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition:
    transform 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  margin-top: 0.75rem;
}

.interest-card__video-button:hover {
  background-color: #3f4e33;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.video-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 52rem);
  background: #111;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

.video-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.video-lightbox__dialog video {
  width: 100%;
  max-height: 80vh;
  display: block;
  background: #000;
}

.interest-card__caption {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #2f382b;
  font-weight: 600;
}

.interest-card__tag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #e7e0cf;
  color: #4b5d3d;
  border-radius: 999px;
}

.interest-card--highlight {
  border: 1px solid #e5decf;
}

.interests-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.interest-feature-card {
  background: #ffffff;
  border: 1px solid #e5decf;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.interest-feature-card__title {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #4b5d3d;
}

.interest-feature-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: #475043;
  margin: 0 0 1rem;
}

.interest-feature-card__link {
  font-size: 0.95rem;
  line-height: 2.75rem;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  min-width: 8rem;
  padding: 0 1.1rem;
  background-color: #4b5d3d;
  border: none;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition:
    transform 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  margin-top: 0.75rem;
}

.interest-feature-card__link:hover {
  background-color: #3f4e33;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

/* Tablet */
@media only screen and (min-width: 48rem) {
  #interests {
    padding: 5rem 1rem;
  }

  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .interest-card__image-wrap img {
    height: 15rem;
  }

  .interests-featured {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
}

/* Desktop */
@media only screen and (min-width: 64rem) {
  #interests {
    padding: 6rem 1rem;
  }

  .interests-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .interest-card__image-wrap img {
    height: 14rem;
  }

  .interest-card__caption {
    font-size: 1.05rem;
  }
}

/*-- -------------------------- -->
<--- Släktforskning / forskning -->
<--- -------------------------- -*/

#research {
  padding: 4rem 1rem;
  background: #ffffff;
}

#research .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

#research .cs-content {
  max-width: 42rem;
  margin: 0 0 2rem;
}

#research .cs-title {
  /* font-size: clamp(2rem, 6vw, 2.75rem); */
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #4b5d3d;
}

#research .cs-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #475043;
}

.research-accordion {
  border-top: 1px solid #ddd6c7;
}

.research-item {
  border-bottom: 1px solid #ddd6c7;
}

.research-item__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
}

.research-item__summary::-webkit-details-marker {
  display: none;
}

.research-item__title {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #4b5d3d;
}

.research-item__icon {
  width: 1rem;
  height: 1rem;
  position: relative;
  flex-shrink: 0;
}

.research-item__icon::before,
.research-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 2px;
  background: #4b5d3d;
  transform: translate(-50%, -50%);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.research-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.research-item[open] .research-item__icon::after {
  opacity: 0;
}

.research-item__content {
  padding: 0 0 1.25rem;
}

.research-item__desc,
.research-item__note {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #475043;
  max-width: 48rem;
}

.research-item__note {
  color: #6b4b3e;
}

.research-item__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.research-item__link {
  display: inline-block;
  width: fit-content;
  font-size: 0.98rem;
  font-weight: 700;
  color: #4b5d3d;
  text-decoration: none;
  position: relative;
}

.research-item__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.25s ease;
}

.research-item__link:hover::after {
  transform: scaleX(0.65);
}

.research-doc {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.research-doc__intro {
  font-size: 0.95rem;
  color: #475043;
  margin: 0;
}

.research-doc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.research-doc__year {
  font-size: 0.95rem;
  color: #4b5d3d;
  font-weight: 500;
  flex-shrink: 0;
}
.research-doc + .research-doc {
  margin-top: 1rem;
}

.research-doc__row--stack {
  margin-bottom: 0.35rem;
}

.research-item__content .research-item__desc:last-of-type {
  margin-top: 1.25rem;
}

/* Tablet */
@media only screen and (min-width: 48rem) {
  #research {
    padding: 5rem 1rem;
  }

  .research-item__summary {
    padding: 1.35rem 0;
  }

  .research-item__title {
    font-size: 1.18rem;
  }

  .research-item__links {
    gap: 0.9rem;
  }
}

/* Desktop */
@media only screen and (min-width: 64rem) {
  #research {
    padding: 6rem 1rem;
  }

  .research-item__title {
    font-size: 1.25rem;
  }

  .research-item__content {
    padding-bottom: 1.5rem;
  }
}

/*-- -------------------------- -->
<---         Bild modal         -->
<--- -------------------------- -*/

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.gallery-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 70rem);
  height: min(84vh, 46rem);
  padding: 3.5rem 3.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-modal__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__stage img {
  width: 100%;
  height: 100%;
  max-width: 52rem;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.gallery-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2a17;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.9rem;
  height: 2.9rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2a17;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.gallery-modal__nav--prev {
  left: 0.75rem;
}

.gallery-modal__nav--next {
  right: 0.75rem;
}

.gallery-modal__counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 3;
}

/* Mobile */
@media only screen and (max-width: 47.99rem) {
  .gallery-modal__dialog {
    width: 100%;
    height: min(84vh, 38rem);
    padding: 3.25rem 2.75rem 2.25rem;
  }

  .gallery-modal__close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .gallery-modal__nav--prev {
    left: 0.35rem;
  }

  .gallery-modal__nav--next {
    right: 0.35rem;
  }
}
