/* Card hover: scale */
.portfolio-item-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: scale(1.05);
}

.gallery-cards__card {
    transition: transform 0.3s ease;
}
.gallery-cards__card:hover {
    transform: scale(1.05);
}
.gallery-cards__img {
    height: 16rem;
}

/* Декор картки + великі лапки — позиціонування; розміри медіа в @sem */
.quote-decor-a {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  transform: translate(4rem, -4rem);
  opacity: 0.3;
}

.quote-decor-b {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 6rem;
  transform: translate(-3rem, 3rem);
  opacity: 0.3;
}

.quote-mark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 6rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  opacity: 0.2;
}

.staircase-bauhaus-timeline__triangle-tr {
    width: 20rem;
    height: 20rem;
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.staircase-bauhaus-timeline__triangle-bl {
    width: 14rem;
    height: 14rem;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.staircase-bauhaus-timeline__accent {
    width: 1.5rem;
    height: 8rem;
    top: 50%;
    left: 25%;
}

.staircase-bauhaus-timeline__sidebar {
    width: 36px;
}

.staircase-bauhaus-timeline__sidebar-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.25em;
}

.staircase-bauhaus-timeline__sidebar-line {
    width: 1px;
    min-height: 120px;
}

.staircase-bauhaus-timeline__stairs > * + * {
    margin-top: 1.5rem;
}

.staircase-bauhaus-timeline__stairs [data-indent] {
    margin-left: calc(var(--staircase-bauhaus-timeline__indent, 0) * 1px);
}

.staircase-bauhaus-timeline__number {
    width: 3.5rem;
    height: 3.5rem;
}

.staircase-bauhaus-timeline__connector {
    left: 1.75rem;
    top: 3.5rem;
    width: 1px;
    height: calc(100% + 1.5rem);
}

@keyframes staircase-bauhaus-timeline__draw {
    from { height: 0; }
    to { height: 100%; }
}

.staircase-bauhaus-timeline__line-animated {
    animation: staircase-bauhaus-timeline__draw 1.2s ease forwards;
}

