/* Timeline Section Base */
.maeveport-about-us-history-timeline-section {
  width: 100vw;
  background: #000;
  padding: 0;
  min-height: calc(100vh - 72px);
  height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow-x: hidden;
}

.maeveport-about-us-history-timeline-container {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 13vh;
}

/* Timeline List */
.maeveport-about-us-history-timeline-list {
  display: flex;
  flex-direction: row;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
  width: 100vw;
  will-change: transform;
  transition: none;
  height: 100%;
}

/* Timeline Slide */
.maeveport-about-us-history-timeline-slide {
  flex: 0 0 100vw;
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  transition: opacity 0.4s;
  opacity: 1;
  z-index: 1;
  height: 100%;
  position: relative;
}
.maeveport-about-us-history-timeline-slide[aria-current='true'] {
  opacity: 1;
  z-index: 2;
}

/* Article Content */
.maeveport-about-us-history-timeline-article {
  background: #000;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 0;
  gap: 0;
  width: 80vw;
  max-width: 1200px;
  min-height: 0;
  height: 80vh;
  position: relative;
}

/* Image Container and Image Styles */
.history_image.cc-first {
  position: absolute;
  left: calc(3.5rem + 3vw);
  bottom: 0;
  width: 32vw;
  max-width: 420px;
  min-width: 260px;
  height: 70vh;
  max-height: 700px;
  min-height: 320px;
  overflow: hidden;
  box-shadow: 0 4px 32px 0 #000a;
  z-index: 1;
}
.c-image {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: block;
}
.c-image.cover {
  object-fit: cover;
}
.c-image img {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  vertical-align: middle;
  max-width: 100%;
}

/* Text Box with Blurred Gradient Background */
.maeveport-about-us-history-timeline-textbox {
  position: absolute;
  left: 32vw;
  width: 520px;
  max-width: 700px;
  min-width: 380px;
  height: calc(0.6 * 70vh);
  bottom: 0;
  top: unset;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  backdrop-filter: blur(10px);
  background-image: linear-gradient(#46464699, #0f0f0fdb);
  z-index: 3;
  gap: 1.2rem;
  box-shadow: 0 4px 32px 0 #000a;
}

/* Year Styling */
.maeveport-about-us-history-timeline-year {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 3rem;
  font-weight: 700;
  color: #252525;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.1em;
  margin-right: 0;
  flex-shrink: 0;
  line-height: 1;
  text-align: center;
  z-index: 4;
}

/* Text Box */
.maeveport-about-us-history-timeline-heading {
  font-size: var(--font-size-heading-md);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem 0;
}
.maeveport-about-us-history-timeline-paragraph {
  font-size: var(--font-size-body-md);
  color: #ccc;
  margin: 0;
  line-height: 1.7;
}

/* Responsive: Mobile */
@media (max-width: 900px) {
  .maeveport-about-us-history-timeline-container {
    height: 320px;
    width: 100vw;
    max-width: 100vw;
    margin-top: 0;
  }
  .maeveport-about-us-history-timeline-slide {
    min-width: 100vw;
    max-width: 100vw;
    flex: 0 0 100vw;
    height: 280px;
  }
  .maeveport-about-us-history-timeline-article {
    height: 100%;
    width: 95vw;
    min-height: 0;
    max-width: 98vw;
  }
  .history_image.cc-first {
    position: static;
    width: 10em;
    height: 13em;
    margin-left: 1vw;
    margin-right: -2vw;
    left: unset;
    right: unset;
    top: unset;
    transform: none;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    max-height: 100%;
  }
  .maeveport-about-us-history-timeline-textbox {
    left: 8vw;
    top: 2vh;
    min-width: 180px;
    max-width: 320px;
    width: 80vw;
    height: auto;
    padding: 1.2rem 1rem 1rem 1.2rem;
    position: static;
    bottom: unset;
  }
  .maeveport-about-us-history-timeline-year {
    font-size: 2rem;
    margin-right: 1rem;
  }
  .maeveport-about-us-history-timeline-heading {
    font-size: var(--font-size-heading-md);
  }
  .maeveport-about-us-history-timeline-paragraph {
    font-size: var(--font-size-body-md);
  }
}

@media (max-width: 599.98px) {
  .maeveport-about-us-history-timeline-section {
    min-height: unset;
    display: block;
    padding: 2rem 0;
    width: 100%;
    overflow-x: unset;
    height: auto;
  }
  .maeveport-about-us-history-timeline-container {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin-top: 0;
  }
  .maeveport-about-us-history-timeline-list {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
    height: auto;
  }
  .maeveport-about-us-history-timeline-slide {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
    opacity: 1 !important;
    transition: none;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    position: static;
  }
  .maeveport-about-us-history-timeline-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: unset;
    height: auto;
    left: unset !important;
    width: 100%;
  }
  .maeveport-about-us-history-timeline-article {
    position: static;
    width: 100%;
    height: auto;
    min-height: unset;
    max-width: 100vw;
    background: #000;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .maeveport-about-us-history-timeline-year {
    position: static;
    left: unset;
    bottom: unset;
    writing-mode: horizontal-tb;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-right: 0;
    text-align: center;
    z-index: 1;
  }
  .history_image.cc-first {
    position: static;
    width: 100%;
    height: 10em;
    margin-left: 0;
    margin-right: 0;
    left: unset;
    right: unset;
    top: unset;
    bottom: unset;
    transform: none;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .maeveport-about-us-history-timeline-textbox {
    position: static;
    left: unset;
    top: unset;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 1rem 0.5rem;
    border-radius: 1em;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 16px 0 #000a;
    bottom: unset;
    align-items: center;
    text-align: center;
  }
  .marquee,
  .marquee-desktop-only {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .maeveport-about-us-history-timeline-container {
    height: 100vh;
  }
  .maeveport-about-us-history-timeline-article {
    min-height: 320px;
    max-height: 520px;
    height: 60vh;
  }
  .history_image.cc-first {
    position: absolute;
    left: 2.2rem;
    bottom: 0;
    min-height: 220px;
    max-height: 400px;
    height: 36vh;
    width: 32vw;
    max-width: 420px;
    min-width: 180px;
    border-radius: 1.2em;
    overflow: hidden;
    box-shadow: 0 4px 32px 0 #000a;
    z-index: 1;
  }
  .maeveport-about-us-history-timeline-textbox {
    position: absolute;
    left: 32vw;
    width: 420px;
    max-width: 420px;
    min-width: 180px;
    /* height: min(210px, calc(0.7 * 36vh)); */
    bottom: 0;
    top: unset;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.5rem 1rem 1rem 1.5rem;
    border-radius: 1.2em;
    backdrop-filter: blur(10px);
    background-image: linear-gradient(#46464699, #0f0f0fdb);
    z-index: 3;
    gap: 1.2rem;
    box-shadow: 0 4px 32px 0 #000a;
  }
  .maeveport-about-us-history-timeline-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 72px);
    height: 100%;
    left: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1299.98px) {
  .maeveport-about-us-history-timeline-container {
    height: 100vh;
  }
  .maeveport-about-us-history-timeline-article {
    min-height: 320px;
    max-height: 520px;
    height: 60vh;
  }
  .history_image.cc-first {
    min-height: 320px;
    max-height: 520px;
    height: 48vh;
  }
  .maeveport-about-us-history-timeline-textbox {
    /* height: min(220px, calc(0.6 * 48vh)); */
    height: auto;
    min-width: 220px;
    max-width: 420px;
    padding: 1.5rem 1rem 1rem 1.5rem;
  }
  .maeveport-about-us-history-timeline-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 72px);
    height: 100%;
  }
}

@media (min-width: 1300px) {
  .maeveport-about-us-history-timeline-textbox {
    height: calc(0.5 * 70vh);
  }
}

.maeveport-about-us-history-timeline-content-inner {
  position: relative;
  left: calc(50vw - 4rem - 32vw);
  /* Ensure the inner content does not exceed the slide width */
  width: fit-content;
  height: 100%;
}

.marquee {
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100vw;
  min-height: 15vh;
  display: flex;
  position: absolute;
  inset: 0% auto auto 0%;
  z-index: 10;
  pointer-events: none;
}
.marquee-desktop-only {
  /* Hide on mobile */
  display: flex;
}
.m-items_wrapper {
  border-bottom: 1px solid var(--grey-700, #444);
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem 1em 1rem;
  display: flex;
  position: relative;
  pointer-events: auto;
}
.m-past_items {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  color: var(--grey-700, #444);
  flex: none;
  width: 33%;
  display: flex;
  justify-content: flex-end;
}
.m-current_item {
  flex: none;
  width: 34%;
  display: flex;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}
.m-future_items {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  color: var(--grey-700, #444);
  flex: none;
  width: 33%;
  display: flex;
  justify-content: flex-start;
}
.marquee-center {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grey-700, #444);
  opacity: 0.3;
  transform: translateX(-50%);
  z-index: 1;
}

.m-items_wrapper > .m-past_items > div,
.m-items_wrapper > .m-current_item > div,
.m-items_wrapper > .m-future_items > div {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
  padding: 0 0.5em;
}

/* Hide the editable slides container on the frontend */
.maeveport-about-us-history-timeline-editable-slides {
  display: none !important;
}

/* Globally hide marquee as requested */
.marquee,
.marquee-desktop-only {
  display: none !important;
}

