* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.gallery {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.gallery h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.gallery-image {
    width: 80%;
    height: 80%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-description {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-description {
    opacity: 1;
}

.gallery-description h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.gallery-description p {
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}
