.movies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
  gap: 0;
}

.movies .movie {
    height: 300px;
    transition: transform 0.3s ease;
}

.movie .poster {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie .overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--darkMaincolor);
    color: black;
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    text-align: center;
}

.movie .title {
    font-weight: bold;
    margin-bottom: 5px;
}

.movie:hover .overlay {
    opacity: 1;
}
