/* Recent Projects Section */
.project-container {
  position: relative;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    transition: transform 0.3s ease;
  }
  
  .project-item {
    background-color: var(--clr-darknavy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
    margin: 0 auto;
  }
  
  .project-item:hover {
    transform: translateY(-5px);
  }

  .project-item-image-wrapper {
    padding: 0.5rem;
  }
  
  .project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
  }

  .project-item h3 {
    text-align: center;
    padding: 1rem 1rem 0.5rem;
    font-size: var(--size-lg);
    color: var(--clr-light);
  }
  
  .project-description {
    text-align: center;
    padding: 0 1rem 1rem;
    font-size: var(--size-sm);
    color: var(--clr-light);
  }

  .project-slideshow-controls {
    display: none;
  }

  .project-indicators {
    display: none;
    justify-content: center;
    margin-top: 1rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .indicator.active {
    background-color: var(--clr-lightgold);
  }

  /* mobile-first media queries */
/* xs */
@media (min-width: 475px) {
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* sm */
@media (min-width: 640px) {
  .project-item h3 {
    font-size: var(--size-xl);
  }
  
  .project-description {
    font-size: var(--size-base);
  }
}

/* md */
@media (min-width: 768px) {
  .project-grid {
    gap: 2.5rem;
  }
}

/* lg */
@media (min-width: 1024px) {
  .project-container {
    position: relative;
    background-color: rgba(23, 37, 84, 0.5);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
  }

  .project-grid {
    display: flex;
    transition: transform 0.3s ease;
    gap: 0;
  }

  .project-item {
    flex: 0 0 100%;
    max-width: none;
  }

  .project-item:hover {
    transform: none;
  }

  .project-item img {
    height: 300px;
  }

  .project-slideshow-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
  }

  .prev-project,
  .next-project {
    color: var(--clr-dark);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px 15px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease, filter 0.3s;
  }

  .prev-project:hover,
  .next-project:hover,
  .prev-project:focus,
  .next-project:focus {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--clr-light);
  }

  .prev-project:focus,
  .next-project:focus {
    outline: none; /* Remove default focus outline */
    filter: brightness(1.2) drop-shadow(0 0 5px var(--clr-light));
}

  .project-indicators {
    display: flex;
    padding-bottom: 0.5rem;
  }
}

/* xl */
@media (min-width: 1280px) {
  .project-container {
    max-width: 700px;
  }

  .project-item {
    max-width: 700px;
  }

  .project-item img {
    height: 350px;
  }
}

/* 2xl */
/* @media (min-width: 1536px) {} */