body {
    background-image: linear-gradient(to top, #ecedee 0%, #eceeef 75%, #e7e8e9 100%);
    min-height: 100vh;
    font: normal 16px sans-serif;
    padding: 60px 0;
}


.tz-gallery {
    padding: 40px;

}

/* Fade animation */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Masonry-like gallery */
.gallery {
    column-count: 4;
    padding: 20px;
    column-gap: 6px;
}
.item {
    position: relative;
    margin-bottom: 25px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    break-inside: avoid;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}


@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.item img,
.item video {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

/* Hover Animation */
.item:hover img,
.item:hover video {
    transform: scale(1.15);
}

/* POPUP */
#popup {
    display: none;
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup Media */
#popupContent img,
#popupContent video {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 12px;
    animation: zoomFade 0.6s ease;
}
@keyframes zoomFade {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

/* Close Button */
#closeBtn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Navigation Arrows */
.arrow {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
}
#prev { left: 5%; }
#next { right: 5%; }
