/* =============================================================================
   DCE
   ========================================================================== */

/* Link-/Textbox */
.linkbox {
  position: relative;
  background: rgb(var(--c-neutral-lighter));
}

.content > .frame:nth-child(2n) .linkbox {
  background: rgb(var(--c-neutral-lightest));
}

.linkbox__link {
  position: relative;
  display: block;
  color: rgb(var(--c-neutral-dark));
}

.linkbox__link[rel="noreferrer"]::after {
  content: '\f08e';
  font-family: 'FaRegular', sans-serif;
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  line-height: 100%;
  font-size: 80%;
  vertical-align: baseline;
  color: rgb(var(--c-primary));
  background: rgba(var(--c-neutral-lightest), 0.7);
}

.linkbox__inner {
  padding: 20px;
}

.linkbox.-withlink .linkbox__inner {
  padding: 20px 60px 20px 20px;
}

.linkbox.-withlink .linkbox__inner::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 23px;
  height: 50px;
  margin-top: -25px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 50'%3E%3Cpolyline points='0.8,49.8 22.4,25 0.8,0.2' fill='none' stroke='%23232323' stroke-width='0.75'/%3E%3C/svg%3E") no-repeat center;
}

.linkbox__title {
  margin-bottom: 0.2em;
  font-size: 120%;
  line-height: 140%;
  text-transform: uppercase;
  color: rgb(var(--c-primary));
}

.linkbox__title p,
.linkbox__subtitle p {
  margin: 0;
}

.linkbox__subtitle {
  color: rgb(var(--c-neutral-dark));
}

@media (hover: hover) {
  .linkbox.-withlink:hover,
  .content > .frame:nth-child(2n) .linkbox.-withlink:hover {
    background: rgb(var(--c-primary));
  }

  .linkbox.-withlink:hover .linkbox__title,
  .linkbox.-withlink:hover .linkbox__subtitle,
  .linkbox.-withlink:hover .linkbox__link::after {
    color: rgb(var(--c-neutral-lightest));
  }

  .linkbox.-withlink:hover .linkbox__inner::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 50'%3E%3Cpolyline points='0.8,49.8 22.4,25 0.8,0.2' fill='none' stroke='%23ffffff' stroke-width='0.75'/%3E%3C/svg%3E");
  }
}

/* Photo gallery */
.photogallery__items {
  display: flex;
  flex-wrap: wrap;
}

.photogallery__item {
  position: relative;
  display: block;
  width: 25%;
  overflow: hidden;
  border: 3px solid rgb(var(--c-neutral-lightest));
}

.photogallery__item.-hidden {
  display: none;
}

.photogallery__image {
  display: block;
  padding-top: 100%;
  background-position: center;
  background-size: cover;
  transition: all 0.4s ease 0s;
}

.photogallery__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1em 0 0;
  padding: 0;
}

.photogallery__pager:empty {
  display: none;
}

.photogallery__page {
  min-width: 48px;
  height: 48px;
  margin: 0 0 1em 5px;
  line-height: 48px;
  text-align: center;
  list-style-type: none;
  border-radius: 5px;
  background: rgb(var(--c-neutral-lighter));
  cursor: pointer;
}

.photogallery__page a {
  display: block;
  color: rgb(var(--c-neutral-dark));
}

.photogallery__page.-active {
  background: rgb(var(--c-primary));
}

.photogallery__page.-active a {
  color: rgb(var(--c-neutral-lightest));
}

@media (hover: hover) {
  .photogallery__item:hover .photogallery__image {
    transform: scale(1.1);
  }

  .photogallery__page:hover {
    background: rgb(var(--c-primary));
  }

  .photogallery__page:hover a {
    color: rgb(var(--c-neutral-lightest));
  }
}

@media (min-width: 641px) {
  .photogallery__item {
    width: 16.66%;
  }
}

@media (min-width: 1181px) {
  .photogallery__item {
    width: 12.5%;
  }
}

/* Scroll image */
.scrollimage__image {
  width: 100%;
  height: 34vw;
  max-height: 700px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (hover: hover) {
  .scrollimage__image {
    background-attachment: fixed;
  }
}
