@font-face {
    font-family: 'Ubuntu';
    src: url(Ubuntu.ttf);
}

body {
    margin: 0;
    background: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
}

.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5vw;
    grid-auto-flow: dense;
    justify-content: start;
    align-items: start;
    padding: 4vh 2vw;
}

.gallery img {
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    margin: 0.5vw;
    transform-origin: center;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
}

.gallery img:hover {
    border-radius: 8px;
    transform: 
        perspective(1200px)
        translateZ(60px)
        rotateX(2deg)
        rotateY(2deg)
        scale(1.05);
    z-index: 3;
}

.img-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.meta-overlay {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.img-card:hover .meta-overlay {
    opacity: 1;
}
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    
    .gallery img {
        max-height: 85vh;
        margin: 1vw;
        border-radius: 12px;
    }
    .meta-overlay {
        font-size: 12px;
        padding: 0.5rem;
    }
}