.project-container{
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;

  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}


.project {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size:cover;
  background-color: #0b1620;
  aspect-ratio: 16 / 9;
}

.project.active {
  opacity: 1;
  visibility: visible;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease;
  transition: transform .2s ease;
  border: none;
  z-index: 5;
}

.arrow-left {
  left: 16px;
}

.arrow-right {
  right: 16px;
}

.arrow:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.1);
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}

.dot {
  height: 12px;
  width: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background-color .2s ease, transform .2s ease;
}

.dot.active {
  background: var(--brand);
  transform: scale(1.2);
}