
.our-journey-section {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #df5446;
}

.timeline-item {
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding: 20px 40px 20px 0;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  padding: 20px 0 20px 40px;
}

.timeline-item.left::after,
.timeline-item.right::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #df5446;
  border-radius: 50%;
}
.timeline-item.left::after { left:100%; transform:translateX(-50%); }
.timeline-item.right::after{ left:0;     transform:translateX(-50%); }

.timeline-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: right bottom;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.ig-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 10px;
}

.ig-overlay .content {
  display: flex;
  gap: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-width: 70vw;
  max-height: 80vh;
  width: auto;
  height: auto;
}

.ig-overlay .content {
  flex-direction: row;
}

@media (max-aspect-ratio: 1/1) {
  .ig-overlay .content {
    flex-direction: column;
  }
}

.ig-overlay .content img {
  flex-shrink: 0;
  object-fit: contain;
}

@media (min-aspect-ratio: 1/1) {
  .ig-overlay .content {
    height: auto;
    max-width: 900px;
  }
  .ig-overlay .content img {
    width: auto;
    height: 60vh;
    max-width: none;
    
  }
}

@media (max-aspect-ratio: 1/1) {
  .ig-overlay .content {
    width: auto;
  }
  .ig-overlay .content img {
    width: 100%;
    height: auto;
    max-width: 80vw;
    max-height: none;
  }
}

.ig-overlay .text-wrap {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: top;
  overflow: hidden;
}

.ig-overlay .caption {
  font-size: 1rem;
  line-height: 2rem;
  margin-bottom: 0.5em;
  overflow-y: auto;
  text-align: left;
}

.ig-overlay .ig-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #df5446;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

@media screen and (max-width: 600px) {
  .ig-overlay .caption {
    font-size: 0.875rem;
    line-height: 1rem;
  }
  
}

@media screen and (max-width: 600px) {
  .ig-overlay .content img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
  }
}
