.projects-list {
  max-width: var(--max-width);
  margin: auto;
  list-style: none;
  padding: 0;
}

.projects-item {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: fit-content;
  /* Fixed row height */
  padding: 20px 0;
}

.projects-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-info p {
  margin-bottom: 1rem;
  color: #555;
}

.projects-images {
  height: 100px;
  flex: 2;
  display: flex;
  gap: 10px;
  justify-content: end;
}

.projects-images img {
  /* Ensures images stay inside the row */
  width: auto;
  /* Maintains aspect ratio */
  max-width: 100%;
  /* Prevents images from exceeding container width */
  object-fit: contain;
  /* Ensures full image is visible without cropping */
  border-radius: 2px;
}

hr {
  margin: 0;
  width: 100%;
  border: 0;
  height: 1px;
  background-color: #969696;
}

@media (max-width: 768px) {
  .projects-item {
    flex-direction: column;
  }

  .projects-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: start;
    height: auto;
    margin-top: 10px;
  }

.projects-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
}

}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:var(--color-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: rgb(0, 0, 0);
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: rgb(0, 0, 0);
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.lightbox .prev {
  left: 1rem;
}

.lightbox .next {
  right: 1rem;
}
