/* ── YYZ Gallery – Front End ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap');

.yyz-gallery-wrap { width: 100%; font-family: 'DM Sans', sans-serif; }

/* ── Masonry ── */
.yyz-masonry {
    columns: 4 220px;
    column-gap: 14px;
}
@media (max-width: 900px)  { .yyz-masonry { columns: 3 160px; } }
@media (max-width: 600px)  { .yyz-masonry { columns: 2 140px; } }
@media (max-width: 380px)  { .yyz-masonry { columns: 1; } }

.yyz-masonry-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.yyz-masonry-inner {
    position: relative;
    overflow: hidden;
    line-height: 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    transition: transform .25s ease, box-shadow .25s ease;
}
.yyz-masonry-item:hover .yyz-masonry-inner {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

.yyz-masonry-inner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.yyz-masonry-item:hover .yyz-masonry-inner img {
    transform: scale(1.04);
}

/* Hover overlay */
.yyz-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(232,201,109,.12) 0%, rgba(0,0,0,.18) 100%);
    opacity: 0;
    transition: opacity .25s ease;
    border-radius: 10px;
}
.yyz-masonry-item:hover .yyz-hover-overlay { opacity: 1; }

/* Video play overlay */
.yyz-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.28);
    transition: background .2s;
    border-radius: 10px;
}
.yyz-play-overlay span {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a1000;
    padding-left: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    transition: transform .2s, background .2s;
}
.yyz-masonry-item:hover .yyz-play-overlay span {
    transform: scale(1.12);
    background: #e8c96d;
}

/* ── Lightbox ── */
.yyz-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.yyz-lightbox.active { display: flex; }

.yyz-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,8,14,.92);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.yyz-lb-content {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: yyzFadeIn .2s ease;
}
@keyframes yyzFadeIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.yyz-lb-media img,
.yyz-lb-media video {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    display: block;
}
.yyz-lb-media video { background: #000; }

/* Nav buttons */
.yyz-lb-close,
.yyz-lb-prev,
.yyz-lb-next {
    position: fixed;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, transform .18s;
    font-size: 20px;
    line-height: 1;
    z-index: 2;
}
.yyz-lb-close:hover, .yyz-lb-prev:hover, .yyz-lb-next:hover {
    background: rgba(232,201,109,.3);
    border-color: #e8c96d;
    transform: scale(1.08);
}
.yyz-lb-close {
    top: 20px; right: 24px;
    width: 44px; height: 44px;
    font-size: 18px;
}
.yyz-lb-prev {
    left: 20px; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; font-size: 28px;
}
.yyz-lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.yyz-lb-next {
    right: 20px; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; font-size: 28px;
}
.yyz-lb-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 600px) {
    .yyz-lb-prev { left: 8px; width: 40px; height: 40px; }
    .yyz-lb-next { right: 8px; width: 40px; height: 40px; }
}
