/* Import Playfair Display from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&display=swap');

body {
  font-size: 1.1em;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: #1B3F13;
}

h2 {
  font-size: 1.6rem;
  margin: 1.5em 0 0 0;
}

p {
  line-height:1.5;
}

/* Class used in TinyMce editor to make content narrower */
.narrow-page {
  max-width: 720px;
  margin: auto;
}

.ingress {
  font-size: 1.3em;
}

.quoteblock {
  font-family: 'Playfair Display', serif;
  color: #1b3f13; 
  background-color: #faf2e3;
  padding: 20px 40px;
  text-align: center;
  font-size: 18pt;
}

.quotetext {
  font-size: 24pt;
  font-style: italic;
}

.factsbox {
  background-color: #C88D65;
  padding: 20px;
}

button.btn-primary {
  background: #1B3F13;
  border: none;
  color: #fff;
  border-radius: .5em;
  padding: .5em 1.5em;
  corner-shape: notch;
  cursor: pointer;
  transition: all .2s;
}

button.btn-primary:hover {
  background: #6C9364;
  border-radius: .4em;
}

.btn-light {
  background: #FDFAE2;
  border: none;
  color: #1B3F13;
  font-weight: 700;
  border-radius: .5em;
  padding: .5em 1.5em;
  corner-shape: notch;
  cursor: pointer;
  transition: all .2s;
}

.btn-dark {
  background: #1B3F13;
  border: none;
  color: #FDFAE2;
  font-weight: 700;
  border-radius: .5em;
  padding: .5em 1.5em;
  corner-shape: notch;
  cursor: pointer;
  transition: all .2s;
}

/* Styling av rubriker på startsida så att de ser ut som knappar */
.tws-content-box--cell {
  background: #FDFAE2;
  border: none;
  color: #1B3F13;
  border-radius: .5em;
  padding: .5em 1.5em;
  corner-shape: notch;
  cursor: pointer;
  transition: all .2s;
}

.nordic--start-page .tws-content-box--cell h3 {
  color: #1B3F13 !important;
  text-shadow: none !important;
}

/* Specialbyggd accordion-komponent */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: auto;
}

.accordion__item {
  background-color: #f5f5f5;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.accordion__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.accordion__trigger {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 2rem;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 0.375rem;
  letter-spacing: -0.025em;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.accordion__trigger:focus-visible {
  outline: 3px solid #B0AC8A;
  outline-offset: 2px;
}

.accordion__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 1rem;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  overflow: hidden;
  transition: height 0.25s ease;
}

.accordion__panel[hidden="until-found"] {
  display: block !important;
  height: 0;
  overflow: clip;
}

.accordion__panel-inner {
  padding: 0 2rem 0.75rem;
}

mark {
  background-color: #ffeb3b;
  color: inherit;
}

/* Mindre luft i headern */
.nordic--header-wrapper {
  padding: 10px 30px 20px 30px !important;
}

/* Kod för genererat bildgalleri */

.generated-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 2rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  min-width: 226px;
}

.gallery--cols-2 .gallery__item {
  flex: 1 1 400px;
  max-width: calc((100% - 1 * 1.25rem) / 2);
}

.gallery--cols-3 .gallery__item {
  flex: 1 1 280px;
  max-width: calc((100% - 2 * 1.25rem) / 3);
}

.gallery--cols-4 .gallery__item {
  flex: 1 1 200px;
  max-width: calc((100% - 3 * 1.25rem) / 4);
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.img-ai::after {
  content: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0C17.6569 0 20.4848 0.000453187 22.2422 1.75781C23.9995 3.51517 24 6.34315 24 12C24 17.6569 23.9995 20.4848 22.2422 22.2422C20.4848 23.9995 17.6569 24 12 24C6.34315 24 3.51517 23.9995 1.75781 22.2422C0.000453187 20.4848 0 17.6569 0 12C0 6.34315 0.000453187 3.51517 1.75781 1.75781C3.51517 0.000453187 6.34315 0 12 0ZM6.38574 7L4 17H5.97168L6.45703 14.8574H9.85742L10.3428 17H12.3145L9.92871 7H6.38574ZM13.5615 8.7998H15.9619V15.2002H13.5615V17H20V15.2002H17.8477V8.7998H20V7H13.5615V8.7998ZM8.28613 7.94238L9.44238 13.0576H6.85742L8.02832 7.94238H8.28613Z' fill='%23999999'/%3E%3C/svg%3E");
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  opacity: .3;
  line-height: 0; 
}

@media (max-width: 800px) {
  .generated-gallery .gallery__item {
    flex-basis: 100%;
    max-width: 100%;
  }
}