/* LABS / pepe — Pepe gallery grid. Module-local CSS. */

.pepe-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem;
    padding: 0 24px;
}

/* Masonry via CSS columns — tiles pack tight regardless of aspect ratio. */
.pepe-grid {
    column-width: 200px;
    column-gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 24px 48px;
}

.pepe-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 14px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pepe-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pepe-img {
    width: 100%;
    height: auto;
    display: block;
}

.pepe-dl {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.pepe-item:hover .pepe-dl {
    opacity: 1;
}

@media (max-width: 720px) {
    .pepe-grid {
        column-width: 150px;
        column-gap: 10px;
        padding: 8px 12px 32px;
    }

    .pepe-item {
        margin-bottom: 10px;
    }
}
