/* --------------------------------------- Colours ------------------------------------ */

.bg {
  background-color: var(--bs-body-bg);
}

.sand {
  background-color: #e3dfd9;
  color: #000000;
}

.red {
  background-color: var(--bs-primary);
  color: #ffffff;
}

.blue {
  background-color: #26629e;
  color: #ffffff;
}

.green {
  background-color: #41961a;
  color: #ffffff;
}

.brown {
  background-color: #81725d;
  color: #ffffff;
}

.white {
  background-color: #ffffff;
  color: #ffffff;
}

/* --------------------------------------- Global ------------------------------------ */
html {
  @media (max-width: 960px) {
    font-size: calc(0.8rem + .4vw);
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  margin: 0em 0em;
  background-size: cover;
  /* background-color: #e3dfd9; */
  /* background-image: linear-gradient(45deg,
      #cabfaf 25%, #dbd0c0 25%, #dbd0c0 50%, #cabfaf 50%, #cabfaf 75%, #dbd0c0 75%, #dbd0c0 100%);
  background-size: 10px 10px; */
}

/* Vertical/horizontal ruler */
hr {
  opacity: 0.5;
}
.vr-slim {
  width: 0;
  border-left: 1px solid var(--bs-body-color);
  opacity: 0.5;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

h1,
.h1 {
  font-size: 2.25em;
  margin-bottom: 1em;
}

h2,
.h2 {
  font-size: 1.75em;
  margin-bottom: 1em;
}

h3,
.h3 {
  font-size: 1.25em;
  margin-bottom: 1em;
}

h1 a,
h2 a,
h3 a {
  text-decoration: none;
  color: inherit;
}

h1 a:hover,
h2 a:hover,
h3 a:hover {
  text-decoration: underline;
}

h1 a:active,
.emph {
  padding: 0.1em 0.3em;
  line-height: 1.6em;
  text-decoration: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  /* display: inline-block; */
}

.emph:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
  color: #ffffff;
}

tr th,
tr td {
  border-bottom: 1px solid;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------- Style classes ------------------------------------ */
.spacer-sm {
  height: 1.5em;
  width: 100%;
}

.spacer-md {
  height: 3em;
  width: 100%;
}

.spacer-lg {
  height: 5em;
  width: 100%;
}

nav {
  font-family: var(--bs-font-sans-serif);
}

nav a,
.nav-link,
button {
  font-size: 1em;
  font-weight: 200;
  text-decoration: none !important;
  color: inherit;
}

nav .active,
.nav-link:active,
.nav-link:hover,
button:hover {
  text-decoration: none !important;
  color: var(--bs-primary);
  background-color: transparent !important;
}

footer {
  font-family: var(--bs-font-sans-serif);
}

/* --------------------------------------- Types ------------------------------------ */

.lead {
  font-size: 1.0em;
  font-weight: 400;
  line-height: var(--bs-body-line-height)
}

.date,
.author,
.tags {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.8em;
  font-style: italic;
}

.grey-hover img {
  filter: grayscale(100%);
  transition: filter 0.1s ease-in-out;
}

.grey-hover:hover img {
  filter: grayscale(0%);

}

.caption {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.8em;
  font-style: italic;
}

.content {
  font-family: var(--bs-font-family-serif);
}

.content a,
.content a:active,
.content a:visited,
.content a:focus {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  /* border-bottom: 1px dashed; */
  border-color: inherit;
}

.content a:active,
.content a:hover {
  /* border-bottom: 2px solid; */
  text-decoration-style: solid;
  color: inherit;
  background-color: inherit;
}

.content img {
  max-width: 100%;
  height: auto;
}

.breadcrumb {
  font-size: .8em;
  font-style: italic;
}

.intro-img {
  background-image: url('https://via.placeholder.com/1920x600');
  background-size: cover;
  background-position: center;
  height: clamp(40vh, 40vw, 70vh);
  /* height: calc(20vh + 20vw); */
  position: relative;
}

.intro-img>div {
  width: 100%;
  background: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0));
}

/* .intro-img {
  background-color: #81725d;
  height: 100%;
  max-height: 50vh;
  min-height: 30vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  z-index: -1;
} */

/* --------------------------------------- Elements ------------------------------------ */
.card {
  background-color: transparent;
}

.box {
  /* border-radius: 0.25em;
  border-style: dashed;
  border-width: .05em; */
  padding: 1em;
  /* margin: 1em 0em; */
}

.teaser .date,
.teaser .author,
.teaser .badge {
  font-size: 0.8em !important;
}

.teaser .badge {
  margin: 0em;
  padding: 0.05em 0.15em;
}

.teaser .lead {
  font-size: 1em;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* .teaser-sm {
  max-height: 3.6em;
} */
.teaser-sm .lead {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* number of lines to show */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.teaser-sm .bg-img {
  min-width: 240px;
  width: 100%;
  min-height: 160px;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

.teaser-lg h3,
.teaser-lg h5 {
  background-color: var(--bs-body-bg);
}

.teaser-lg .lead {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  /* number of lines to show */
  line-clamp: 6;
  -webkit-box-orient: vertical;
}

.teaser-lg .bg-img {
  min-width: 320px;
  width: 100%;
  min-height: 320px;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

.cookie-banner {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  z-index: 9999;
  border-radius: 0px;
  display: none;
  background-color: var(--bs-body-bg);
}


/* --------------------------------------- Slides ------------------------------------ */
/* Slideshow */
.slideshow-body {
  /* position: relative; */
  width: 100%;
  /*width: 480px; */

  /* background-image: url('../assets/media/logo_weiss.png'); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  /* Hide overflow */
}

.slideshow-slides {
  display: flex;
  align-items: stretch;
  /* transition: transform 0.3s ease-in-out; */
  /* transition: opacity 0.3s ease-in-out; */
}

.slideshow-el {
  min-width: 100%;
  /* width: 500px; */
  opacity: .9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slideshow-content {
  display: flex;
  flex-grow: 1;
}

.slideshow-content img {
  height: auto;
  width: 100%;
  background-color: rgba(255, 33, 255, 0.2);
  /* Semi-transparent white background */
  padding: 0;
  color: black
}

.slideshow-caption {
  display: flex;
  padding: .1em 0.1em;
}

.slideshow-nav {
  display: inline-block;
  padding: 0.1em 0.1em;
}

.slideshow-btn {
  display: inline-block;
  border: none;
}

.slideshow-btn i,
.slideshow-ctrl i {
  display: inline-block;
  cursor: pointer;
  padding: .1em 0.1em;
}

.slideshow-nav .active {
  background-color: red;
}