/* Shared rows keep the axis centered when editors add longer descriptions. */
#brand-history .yg-history-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #ce5663 #f4e5e7;
  padding-bottom: 16px;
}
#brand-history .yg-history-scroll:focus-visible { outline: 3px solid #334f69; outline-offset: 4px; }
#brand-history .yg-history-timeline {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  grid-template-rows: 1fr 88px 1fr;
  column-gap: 32px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 12px 24px;
}
#brand-history .yg-history-timeline::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  right: 10px;
  height: 2px;
  background: #c93649;
}
#brand-history .yg-history-timeline::after {
  content: "";
  position: absolute;
  right: 0;
  top: calc(50% - 6px);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 12px solid #c93649;
}
#brand-history .yg-history-event {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / 4;
  margin: 0;
  padding: 0;
  min-width: 0;
}
#brand-history .yg-history-event::before {
  content: "";
  grid-row: 2;
  grid-column: 1;
  place-self: center;
  z-index: 1;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid #c93649;
  border-radius: 50%;
}
#brand-history .yg-history-event::after {
  content: "";
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  align-self: start;
  height: 44px;
  width: 1px;
  background: #c93649;
}
#brand-history .yg-history-event:nth-child(even)::after { align-self: end; }
#brand-history .yg-history-event:nth-child(even)::before { background: #c93649; }
#brand-history .yg-history-event__layout {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
#brand-history .yg-history-event:nth-child(even) .yg-history-event__layout { grid-row: 3; align-self: start; }
#brand-history .yg-history-event__image {
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f2f3;
}
#brand-history .yg-history-event:nth-child(even) .yg-history-event__image { order: 2; }
#brand-history .yg-history-event__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
#brand-history .yg-history-event__content { padding: 0; min-width: 0; overflow-wrap: anywhere; }
#brand-history .yg-history-event__year {
  display: block;
  color: #c93649;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 8px;
}
#brand-history .yg-history-event h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.45; }
#brand-history .yg-history-event p { margin: 0; color: #596273; font-size: 14px; line-height: 1.8; }
@media (max-width: 700px) {
  #brand-history .yg-history-timeline { grid-auto-columns: 224px; column-gap: 28px; padding-inline: 12px 24px; }
}
