/* ------------------------------------ *\
  CONTENTS
\* ------------------------------------ */

/**
 * CONTENTS..............You’re reading it!
 * TEASER .............................
 * MEDIA QUERIES ......................
*/

/* ------------------------------------ *\
  ==TEASER
\* ------------------------------------ */
.view-aap-laureats .view-content {
  list-style: none;
  padding-left: 0;
}

.block-views-blockaap-laureats-block-2 h2 {
  padding-left: 1rem;
}

.node--type-laureat.node--view-mode-teaser {
  background: #fff 0 0 no-repeat padding-box;
  box-shadow: 0 3px 6px #00000029;
  border: 1px solid #cbcbcb;
  padding: 1rem 4rem 1.5rem 2rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.aap-laureats .node--type-laureat.node--view-mode-teaser {
  margin-bottom: 1rem;
}

.node--type-laureat.node--view-mode-teaser:after {
  position: absolute;
  bottom: 1rem;
  left: 3rem;
  content: '\e4b2';
  font: var(--fa-font-light);
  font-size: 2rem;
  color: var(--bs-blue);
  transition: left 0.5s;
  display: block;
}

.node--type-laureat.node--view-mode-teaser:hover:after {
  left: 4rem;
}

.field--name-field-laureat-typeprojet .field__item:first-child {
  margin-left: 0;
}

.field--name-field-laureat-typeprojet.field__item,
.laureats-tags__aap {
  width: fit-content;
  padding: 0.3rem;
  margin: 0.3rem;
}

.field--name-field-laureat-typeprojet.field__item {
  background-color: var(--bs-purple);
  color: var(--bs-white);
}

.laureats-tags__aap {
  background-color: var(--bs-gray);
  color: var(--bs-black);
}

.laureats__tags {
  margin-bottom: 1rem;
  flex-direction: row;
}

.node--type-laureat.node--view-mode-teaser h3,
.laureats__modal h3 {
  font-weight: 500;
  color: var(--bs-black);
  font-size: 1.875rem;
  line-height: 1.3;
}

.node--type-laureat.node--view-mode-teaser h4,
.laureats__modal h4 {
  position: relative;
  z-index: 1;
}

.node--type-laureat.node--view-mode-teaser h4:before,
.laureats__modal h4:before {
  content: '';
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  background-color: var(--bs-yellow);
  position: absolute;
  z-index: -1;
  left: -0.8rem;
  top: -0.3rem;
}

.laureats__content {
  margin: 1rem;
  color: var(--bs-black);
}

.btn-laureat-modal.stretched-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-right: 0;
  height: 100%;
  width: 100%;
}

.btn-laureat-modal.stretched-link:focus-visible {
  outline: 2px solid black;
}

.laureats__modal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.laureats__modal .modal-header .laureats-tags {
  margin-bottom: 0;
}

.laureats__modal .field--name-body,
.field--name-field-laureat-linkaap,
.laureats__link-content {
  margin: 2rem 0 1rem;
}

.laureats__modal .field--name-body ul {
  margin-bottom: 0.75rem;
}

.laureats__modal .field--name-body ul li {
  line-height: 1.3;
}

.field--name-field-laureat-linkaap,
.laureats__link-content {
  position: relative;
  width: fit-content;
  border-bottom: 1px solid var(--bs-purple);
}

.field--name-field-laureat-linkaap a,
.laureats__link-content {
  text-decoration: none;
}

.field--name-field-laureat-linkaap a:hover,
.laureats__link-content:hover {
  color: var(--bs-blue);
}

.field--name-field-laureat-linkaap a:after,
.laureats__link-content:after {
  content: '\f061';
  font: var(--fa-font-light);
  position: absolute;
  right: -1.5rem;
  top: 0.3rem;
  color: var(--bs-blue);
}

.field--name-field-laureat-linkaap a:hover:after,
.laureats__link-content:hover:after {
  right: -2.2rem;
  transition: right 0.5s ease-in-out;
}

.node--type-laureat.node--view-mode-teaser .laureats__year {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.5rem;
  background-color: var(--bs-yellow);
  color: var(--bs-black);
  font-weight: 500;
  font-size: 0.938rem;
}

.view-laureats-index
  .node--type-laureat.node--view-mode-teaser
  .laureats__year {
  display: flex;
}

.node--type-laureat.node--view-mode-teaser .laureats__year p {
  margin-bottom: 0;
  margin-right: 0.3rem;
}

.aap-laureats .laureats__year {
  display: none;
}

.laureats-content .field--name-body ul li a {
  color: var(--bs-blue);
  text-decoration: none;
}

.laureats-content .field--name-body ul li a:hover {
  text-decoration: underline;
}

.laureats-content .field--name-body ul li::marker {
  content: '◗';
  color: var(--bs-purple);
}

.laureats-modal .laureats__content ul li {
  margin: 0 0 0 0.5rem;
  padding-left: 0.3rem;
}

/* ------------------------------------ *\
  ==MEDIA QUERIES
\* ------------------------------------ */
@media screen and (min-width: 576px) {
  .modal-dialog {
    max-width: 66.5rem;
  }
}

@media screen and (max-width: 575.98px) {
  .node--type-laureat.node--view-mode-teaser h3,
  .laureats-modal h3 {
    font-size: 1.375rem;
  }

  .node--type-laureat.node--view-mode-teaser:after {
    font-size: 1.25rem;
  }

  .node--type-laureat.node--view-mode-teaser {
    padding-bottom: 2rem;
  }
}
