/* Colors */
/*
$color-background: #e4ded4;
$color-secondary: #d5ccbf;

$color-background: #f1ede5;
$color-secondary: #e4ded4;

$color-background: #eceae3;
$color-secondary: #dfddd5;

$color-accent: #561201;
$color-alternative-text: #32341b;
*/
.pa-timeline-photo {
  display: flex;
  gap: 20px;
  width: 100%;
}
@media (max-width: 1023px) {
  .pa-timeline-photo {
    display: none;
  }
}
.pa-timeline-photo:has(.pa-timeline-photo-item:not(.active):hover) .pa-timeline-photo-item {
  flex: 1;
}
.pa-timeline-photo:has(.pa-timeline-photo-item:not(.active):hover) .pa-timeline-photo-item:hover {
  flex: 3;
}
.pa-timeline-photo:has(.pa-timeline-photo-item:not(.active):hover) .pa-timeline-photo-item.active {
  flex: 1;
}
.pa-timeline-photo:has(.pa-timeline-photo-item:not(.active):hover) .pa-timeline-photo-item.active .pa-timeline-photo-item__content {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.pa-timeline-photo:has(.pa-timeline-photo-item:not(.active):hover) .pa-timeline-photo-item.active::before {
  background: rgba(51, 51, 51, 0.35);
}
.pa-timeline-photo .pa-timeline-photo-item {
  position: relative;
  overflow: hidden;
  flex: 1;
  transition: flex 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 60vh;
  padding: 25px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.pa-timeline-photo .pa-timeline-photo-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.35);
  transition: background 0.45s ease;
  pointer-events: none;
  z-index: 1;
}
.pa-timeline-photo .pa-timeline-photo-item .pa-timeline-photo-item__year {
  position: absolute;
  bottom: 25px;
  left: 25px;
  font-size: 2.5rem;
  margin: 0;
  padding: 0;
  color: #ffffff;
  z-index: 2;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.pa-timeline-photo .pa-timeline-photo-item .pa-timeline-photo-item__content {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 2;
}
.pa-timeline-photo .pa-timeline-photo-item .pa-timeline-photo-item__content .pa-timeline-photo-item__title, .pa-timeline-photo .pa-timeline-photo-item .pa-timeline-photo-item__content .pa-timeline-photo-item__text {
  color: #ffffff;
}
.pa-timeline-photo .pa-timeline-photo-item:hover {
  flex: 3;
}
.pa-timeline-photo .pa-timeline-photo-item:hover::before {
  background: rgba(51, 51, 51, 0.85);
  transition: background 0.45s ease;
}
.pa-timeline-photo .pa-timeline-photo-item:hover .pa-timeline-photo-item__content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.55s, visibility 0s linear 0.55s;
}
.pa-timeline-photo .pa-timeline-photo-item:hover .pa-timeline-photo-item__year {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.pa-timeline-photo .pa-timeline-photo-item.active {
  flex: 3;
}
.pa-timeline-photo .pa-timeline-photo-item.active::before {
  background: rgba(51, 51, 51, 0.85);
  transition: background 0.45s ease;
}
.pa-timeline-photo .pa-timeline-photo-item.active .pa-timeline-photo-item__content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.55s, visibility 0s linear 0.55s;
}

.pa-timeline-photo-mobile {
  display: flex;
  width: 100%;
  padding-bottom: 50px;
}
.pa-timeline-photo-mobile .swiper-wrapper {
  align-items: stretch;
}
.pa-timeline-photo-mobile .swiper-button-prev, .pa-timeline-photo-mobile .swiper-button-next {
  top: auto;
  bottom: 0;
  margin-top: 0;
  width: 30px;
  height: 30px;
  color: #333333;
}
.pa-timeline-photo-mobile .swiper-button-prev {
  left: calc(50% - 55px);
}
.pa-timeline-photo-mobile .swiper-button-next {
  right: calc(50% - 55px);
}
.pa-timeline-photo-mobile .pa-timeline-photo-item {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  height: auto;
  gap: 50px;
}
.pa-timeline-photo-mobile .swiper-slide {
  transform: scale(0.9);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.pa-timeline-photo-mobile .swiper-slide .pa-timeline-photo-item__content {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.pa-timeline-photo-mobile .swiper-slide-active {
  transform: scale(1);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.pa-timeline-photo-mobile .swiper-slide-active .pa-timeline-photo-item__content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.55s, visibility 0s linear 0.55s;
}
.pa-timeline-photo-mobile .pa-timeline-photo-item__content {
  z-index: 2;
}
.pa-timeline-photo-mobile .pa-timeline-photo-item__title, .pa-timeline-photo-mobile .pa-timeline-photo-item__text {
  color: #ffffff;
}
.pa-timeline-photo-mobile .pa-timeline-photo-item__year {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  color: #ffffff;
  z-index: 2;
}
.pa-timeline-photo-mobile .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.35);
  transition: background 0.45s ease;
  pointer-events: none;
  z-index: 1;
}
.pa-timeline-photo-mobile .swiper-slide-active::before {
  background: rgba(51, 51, 51, 0.8);
  transition: background 0.45s ease;
}
@media (min-width: 1024px) {
  .pa-timeline-photo-mobile {
    display: none;
  }
}
