#project-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translate(0, 18vh);
    display: grid;
    grid-template-columns: 280px 280px 280px;
    gap: 30px;
    padding-bottom: 5vh;
    justify-content: center;
    align-content: center;
    overflow: auto;
}

.project-btn {
    position: relative;
    aspect-ratio: 1/1;
    border: none;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    z-index: -1;
}

.project-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0, 0, 0);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-btn:hover::after {
    opacity: 0.25;
}

.project-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
    display: block;
}

.project-btn:hover img {
    transform: scale(1.1);
}

.project-btn span {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    opacity: 0;
    transition: 
        opacity 0.4s ease,
        transform 0.4s ease;
    z-index: 3;
    transform: translateY(10px);
}

.project-btn:hover span {
    opacity: 1;
    transform: translateY(0);
}

@media all and (max-width: 910px) {
    #project-container {
        grid-template-columns: 280px 280px;
    }
}

@media all and (max-width: 780px) {
    #project-container {
        transform: translate(0, calc(18vh + 70px));
    }
}

@media all and (max-width: 600px) {
    #project-container {
        grid-template-columns: 280px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .project-btn img {
      transition: transform 2s ease;
    }
  
    .project-btn:active img {
      transform: scale(1.1);
    }

    .project-btn:active span {
        opacity: 1;
        transform: translateY(0);
      }
  }