.widget.popup-show {
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 101;
  inset: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget.popup-show > div {
  position: relative;
  max-width: 50vw;
}
.widget.popup-show > div img {
  border-radius: 12px;
}
.widget.popup-show > div::after {
  content: "\f00d";
  position: absolute;
  top: -3px;
  right: -3px;
  cursor: pointer;
  transform: translate(100%, -100%);
  font-family: Font Awesome\ 6 Free;
  font-weight: 600;
  color: #fff;
  font-size: 20px;
}

.timeline {
  margin-top: 40px;
}
.timeline ul {
  padding: 0;
}
.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding: 0 !important;
  background-color: #003a73;
}
.timeline ul li::marker {
  content: unset !important;
}
.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: inherit;
  z-index: 1;
  transition: background 0.5s ease-in-out;
  outline: 4px solid #fff;
  background-color: #0089bf;
  box-shadow: inset 0 0 0 2px #fff;
  border: 6px solid #003a73;
}
.timeline ul li div {
  position: relative;
  width: min(40vw, 500px);
  transition: all 0.5s ease-in-out;
}
@media (min-width: 901px) {
  .timeline ul li div {
    visibility: hidden;
    opacity: 0;
  }
}
.timeline ul li div::before {
  content: "";
  position: absolute;
  top: 7.5px;
  width: 20px;
  height: 20px;
  background-color: #0089bf;
  right: calc(100% + 25px);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.timeline ul li time {
  display: block;
  font-size: 28px;
  color: #003a73;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 7px;
}
.timeline ul li p {
  background-color: #eaeaea;
  padding: 30px;
  margin-bottom: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 2px #ccc;
}
.timeline ul li p + p {
  margin-top: 20px;
}
.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
  border-radius: 8px;
}
.timeline ul li:nth-child(odd) div {
  left: 65px;
}
@media (min-width: 769px) {
  .timeline ul li:nth-child(even) div {
    left: 0;
    transform: translateX(calc(-100% - 60px));
  }
  .timeline ul li:nth-child(even) div time {
    text-align: right;
  }
  .timeline ul li:nth-child(even) div::before {
    left: calc(100% + 25px);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }
}
.timeline ul li:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.timeline ul li:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
@media (max-width: 768px) {
  .timeline ul li {
    margin-left: 18px;
  }
  .timeline ul li > div {
    width: 80vw;
    left: 65px;
  }
  .timeline ul li + li > div {
    padding-top: 60px;
  }
  .timeline ul li + li > div::before {
    margin-top: 60px;
  }
  .timeline ul li + li::after {
    margin-top: 60px;
  }
}
@media (max-width: 768px) {
  .timeline {
    margin-left: -20px;
  }
}

/* .timeline {
margin-top: 40px;
ul {
--col-gap: 2rem;
--row-gap: 6rem;
--line-w: 0.25rem;
display: grid;
padding-left: 0;
grid-template-columns: var(--line-w) 1fr;
grid-auto-columns: max-content;
column-gap: var(--col-gap);
list-style: none;
width: min(80rem, 100%);
margin-inline: auto;

&::before {
content: "";
grid-column: 1;
grid-row: 1 / span 50;
background: $corporatiu;
border-radius: calc(var(--line-w) / 2);
}

li {
$inlineP: 24px;
grid-column: 2;
position: relative;
margin-inline: $inlineP;
grid-row: span 2;
display: grid;
padding: 0 !important;
grid-template-rows: min-content min-content min-content;
transition: all 0.5s ease-in-out;

&:not(.in-view) {
visibility: hidden;
opacity: 0;
}
&.in-view {
visibility: visible;
opacity: 1;
}

&::after {
content: "";
position: absolute;
top: 2px;
width: 36px;
height: 36px;
border-radius: 50%;
background: inherit;
z-index: 1;
transition: background 0.5s ease-in-out;
background-size: cover;
outline: 4px solid $blanc;
background-color: $complementari;
box-shadow: inset 0 0 0 2px #fff;
border: 6px solid $corporatiu;
}

> div {
border-radius: 8px;
margin-top: -18px;
&::before {
content: '';
position: absolute;
top: -5px;
width: 20px;
height: 15px;
background-color: $complementari;
}
}

time {
display: block;
font-size: 28px;
font-weight: 500;
margin-bottom: 8px;
color: $corporatiu;

&::after {
content: "";
position: absolute;
width: 2rem;
aspect-ratio: 1;
background: var(--bgColor);
border: 0.3rem solid var(--accent-color);
border-radius: 50%;
top: 50%;

transform: translate(50%, -50%);
right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}
}

p {
background-color: $grisClar;
padding: 30px;
}

&:nth-child(even) {
&::after {
left: -(34px + $inlineP);
transform: translate(-50%, -50%);
}
> div {
time { text-align: left; }
border-top-left-radius: 0;
&::before {
right: calc(100% + 20px);
clip-path: polygon(0 0, 100% 50%, 0 100%);
}
}
}

&:nth-child(odd) {
&::after {
right: -(34px + $inlineP);
transform: translate(50%, -50%);
}
> div {
time { text-align: right; }
border-top-right-radius: 0;
&::before {
left: calc(100% + 20px);
clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
}
}

&:not(:last-child) {
margin-bottom: var(--row-gap);
}
}

@media (min-width: 40rem) {
grid-template-columns: 1fr var(--line-w) 1fr;
&::before {
grid-column: 2;
}
li {
&:nth-child(odd) {
grid-column: 1;
.date {
border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
&::before {
clip-path: polygon(0 0, 100% 0, 100% 100%);
left: 0;
}
&::after {
transform: translate(-50%, -50%);
left: calc(100% + var(--col-gap) + var(--line-w) / 2);
}
}
}

&:nth-child(even) {
grid-column: 3;
}

&:nth-child(2) {
grid-row: 2/4;
}
}
}
}
}
*/