.activity-container {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.1);
  align-items: center;
  position: relative;
}

.activity {
  position: relative;
  top: 0;
  width: 100%;
  height: 46.875rem;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  flex: 1;
  padding-left: 1rem;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  padding-top: calc(9.375rem * 2); /* 頂部留出兩個 item 的高度 */
  padding-bottom: calc(9.375rem * 2); /* 底部留出兩個 item 的高度 */
  overscroll-behavior: auto;
  overflow-x: hidden;
}
.activity::-webkit-scrollbar {
  display: none;
}

.activity-item:last-child {
  padding-bottom: 3rem;
}
.activity-item {
  height: 10.5625rem;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
  padding: 0 2.25rem;
  margin: 2rem 0;
}
.activity-item.active {
  transform: scale(1.1);
  opacity: 1;
}

.activity-time {
  font-size: 1.5rem;
  color: #ff6700;
  padding: 0;
  margin: 0;
  line-height: 1.8;
  text-align: left;
  font-family: "Inter", sans-serif;
}
.activity-title {
  font-size: 1.875rem;
  color: #fff;
  padding: 0;
  margin: 0.475rem 0;
  text-align: left;
  font-family: "Inter", sans-serif;
}
.activity-desc {
  font-size: 1.875rem;
  color: #fff;
  padding: 0;
  margin: 0.475rem 0;
  text-align: left;
  font-family: "Inter", sans-serif;
  display: -webkit-box; /* 必須配合 -webkit-box 才能使用 */
  -webkit-line-clamp: 1; /* 限制行數 */
  -webkit-box-orient: vertical; /* 垂直排列 */
  overflow: hidden; /* 超出隱藏 */
  text-overflow: ellipsis; /* 顯示省略號 */
}
.activity-button,
.activity-button2 {
  color: #fff;
  background: url("../image/btn-outline-schedule.png") no-repeat center/contain;
  border-radius: 1.5rem;
  width: 7.125rem;
  height: 2.5rem;
  min-width: 7.125rem;
  min-height: 2.5rem;
  border: none;
  cursor: pointer;
}
.activity-button:hover {
  color: #fff;
  background: url("../image/btn-outline-schedule-active.png") no-repeat
    center/contain;
  border-radius: 1.5rem;
  width: 7.125rem;
  height: 2.5rem;
  border: none;
  cursor: pointer;
}
.activity-personal {
  flex: 1;
}
.timeline-image {
  display: flex;
  justify-content: center;
}
.timeline-image img {
  height: 100%;
  max-height: 750px;
  object-fit: contain;
  transform: translateY(-3rem); /* 往上偏移 30px */
}
.activity-more {
  position: absolute;
  top: 6.25rem;
  right: -10rem;
  color: #878787;
  font-size: 1.625rem;
  letter-spacing: 0.125rem;
  font-family: "Noto Sans CJK TC", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}
.personal-img {
  width: 20.875rem;
  height: 20.875rem;
  object-fit: cover;
  border-radius: 50%;
}
.personal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.personal-text {
  font-size: 1.5rem;
  color: #fff;
  text-align: justify;
  font-family: "Noto Sans CJK TC", sans-serif;
  line-height: 1.6;
  min-height: 30rem;
  height: 30rem;
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
}
.personal-text::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.personal-name {
  font-size: 2.2rem;
  line-height: 1.2;
  color: #ff6700;
  padding-top: 5rem;
  text-align: center;
  font-weight: 700;
  font-family: "Noto Sans TC", sans-serif;
}
.personal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-family: "Noto Sans CJK TC", sans-serif;
}
@media (max-width: 1024px) {
}
@media (max-width: 820px) {
  .activity-more {
    top: 1rem;
    right: 4rem;
    letter-spacing: 0.125rem;
  }
}
@media (max-width: 768px) {
  .activity-more {
    top: 1rem;
    right: 4rem;
    letter-spacing: 0.125rem;
    line-height: 1;
    display: flex;
    flex-direction: row;
  }
  .activity-item {
    padding-left: 2.25rem;
  }
  .personal-title {
    padding-top: 2px;
    font-size: 1.8rem;
    line-height: 1.3;
  }
}
@media (max-width: 480px) {
  .activity-title {
    line-height: 1.2;
  }
  .activity-item {
    padding-left: 0;
    margin: 3rem 0;
  }
  .activity-container {
    padding: 0 3rem;
  }
  .personal-title {
    height: auto;
  }
  .activity-more {
    flex-direction: column;
    right: 6rem;
  }
}

@media (max-width: 430px) {
  .activity-item{
    margin: 4rem 0;
    padding-left: 1rem;
  }
  .timeline-image img{
    height: 70%;
    transform: translateY(14rem);
  }
}