.history-photo-rows-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
  gap: 2rem;
  background: var(--primary-3);
}

.history-photos-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--neutral-light);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1rem;
}

.history-photos-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--primary-1), var(--primary-2), var(--primary-1));
  border-radius: 2rem;
}

.history-photo-rows-section h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  color: var(--neutral-light);
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.history-photo-rows-section h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: linear-gradient(
    90deg,
    var(--primary-1),
    var(--primary-2),
    var(--primary-1)
  );
  background-size: 200% 100%;
  border-radius: 2rem;
  animation: shimmer 3s ease-in-out infinite;
  box-shadow: 0 0 1rem rgba(48, 92, 222, 0.5);
}

.leadership-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.history-photo-rows-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 35rem;
}

.history-photo-rows-container img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.history-photo-rows-container img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.main-photo-history-container {
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-photo-history-container img {
  width: 100%;
  max-height: 29rem;
  object-fit: cover;
  border-radius: 1rem;
  object-position: center 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .history-photo-rows-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .leadership-container {
    gap: 0.75rem;
  }

  .history-photo-rows-container {
    max-width: 28rem;
    flex: 1;
  }

  .history-photo-rows-container img {
    width: 6.5rem;
    height: 6.5rem;
  }

  .main-photo-history-container {
    flex: 1.5;
  }

  .main-photo-history-container img {
    max-height: 23rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .history-photo-rows-section {
    padding: 2rem;
  }

  .history-photo-rows-section h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .leadership-container {
    gap: 0.5rem;
    align-items: flex-start;
  }

  .history-photo-rows-container {
    max-width: 21rem;
    flex: 1;
    gap: 0.35rem;
    align-content: flex-start;
  }

  .history-photo-rows-container img {
    width: 5rem;
    height: 8rem;
  }

  .main-photo-history-container {
    flex: 1.5;
  }

  .main-photo-history-container img {
    max-height: 20rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .history-photo-rows-section {
    padding: 1rem 0.5rem;
  }

  .leadership-container {
    gap: 0.35rem;
  }

  .history-photo-rows-container {
    max-width: 12rem;
    flex: 1;
    gap: 0.35rem;
  }

  .history-photo-rows-container img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .main-photo-history-container {
    flex: 1.5;
  }

  .main-photo-history-container img {
    max-height: 16rem;
    width: 100%;
  }
}

