* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
header {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 15px;
    padding: 20px;
}
.photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: #fff;
    animation: fade-in 1s ease-in-out;
}
.photo img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.photo:hover img {
    transform: scale(1.1);
}
.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
    }
    .photo:hover .caption {
        opacity: 1;
    }
    footer {
        background: #222;
        color: #fff;
        text-align: center;
        padding: 15px 0;
        margin-top: 300px;
        font-size: 0.9rem;
    }
    @keyframes fade-in {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @media (max-width:600px) {
        header h1 {
            font-size: 1.8rem;
        }
        .caption {
            font-size: 0.9rem;
        }
    }
    