.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

img {
    max-width: 100%;
    max-height: 100%;
}

.gallery-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    transform-origin: top;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.icon {
    position: absolute;
    width: 100%;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.desc {
    position: absolute;
    width: 96%;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .desc {
    transform: translateY(0%);
}

.gallery-item:hover .icon {
    transform: translateY(100%);
}