@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather-Bold.ttf');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather-Italic.ttf');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather-BoldItalic.ttf');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Italic.ttf');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.ttf');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-BoldItalic.ttf');
  font-weight: bold;
  font-style: italic;
}

h1, h2, h3, h4, h5, h6, #navbarMainMenu, #sitename  {
    font-family: 'Lato';
    font-weight: bold;
}

h1, h2 {
    text-align: center;
}

.content p,
.content li {
    font-size: 1.2rem;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Lato';
}

body {
    font-family: 'Lato';
}

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 21px;
}

.divider::before {
    content: url('../img/divider.png');
    width: auto;
    height: 18px;
    object-fit: contain;
}

.navbar-nav {
    flex-wrap: wrap;
    justify-content: space-around;
}

.accordion-item {
    color: revert;
    border: 0;
}

.accordion-button {
    color: revert;
    font-size: unset !important;
}

.accordion-button:not(.collapsed) {
    color: revert;
    background-color: transparent;
    box-shadow: none; 
}

.accordion-button:focus {
  border: 0;
  box-shadow: none;
}

.single-new-image-container {
    background: linear-gradient(to right, #ebccd0 0%, #ebccd0 50%, transparent 50%, transparent 100%);
}

.single-new-image {
    max-height: 400px;
}

.new-in-archive {
    justify-content: start;
    text-align: left;
}

.splide__pagination {
    bottom: 1em;
}

.splide__pagination__page {
    background-color: #aaaaaa;
}

.splide__pagination__page.is-active {
    background-color: #ffffff;
}

.new-img-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.new-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#single-new {
    justify-content: start;
    text-align: left;
    background-image: url('../img/bg06.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#hero {
    background-image: url('../img/bg01.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#hero-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    max-height: 400px;
    max-width: 400px;
}

#news-carousel-container,
#news-container  {
    background-image: url('../img/bg06.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#selected-projects {
    background-image: url('../img/bg04.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#other-projects {
    background-image: url('../img/bg02.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#project-header {
    background-image: url('../img/bg02.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#activities-container {
    background-image: url('../img/bg08.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#activity-header {
    background-image: url('../img/bg08.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#teaching-container {
    background-image: url('../img/bg05.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#teaching-header {
    background-image: url('../img/bg05.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#students-container {
    background-image: url('../img/bg07.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#collaborations-container {
    background-image: url('../img/bg09.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#collaboration-header {
    background-image: url('../img/bg09.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

#invited-talks {
    background-image: url('../img/bg03.jpg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

p.collaboration-date,
p.project-date,
p.activity-date {
    font-size: 1.2rem;
}

.project:nth-of-type(2n),
.activity:nth-of-type(2n), 
.collaboration:nth-of-type(2n) {
    margin-left: auto;
    margin-right: 0;
}

.teaching:nth-of-type(2n) {
    text-align: right;
}
