.allcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.all {
    position: relative;
    overflow: hidden;
    width: 350px;
    height:550px;
    max-width: 400px;

    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.all img {
    width: 350px;
    height:550px;
    display: block;
    transition: transform 0.3s;
}

.all p {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size:30px;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.all:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.all:hover img {
    transform: scale(1.1);
}

.all:hover p {
    opacity: 1;
}

@media (max-width: 600px) {
    .allcontainer {
        flex-direction: column;
        align-items: center;
    }
}