/* Impressions / Portfolio Page Styles */

/* Header */
.portfolio-header {
    padding: 8rem 5% 4rem;
    text-align: left;
    background: var(--bg-color);
}

.portfolio-header h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    /* Larger, Hero-like */
    margin-bottom: 0;
    line-height: 0.85;
    letter-spacing: -0.03em;
    color: var(--text-color);
    margin-left: -5px;
    /* Visual optical alignment */
}

/* Masonry Grid */
.impressions-grid {
    column-count: 3;
    column-gap: 1rem;
    /* Generous gap */
    padding: 0 5% 8rem;
    width: 100%;
    margin: 0 auto;
}

.impression-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Interaction hint */
}

/* Asymmetric spacing classes (applied randomly/sequentially) */
.impression-item:nth-child(odd) {
    margin-top: 0;
}

.impression-item:nth-child(even) {
    margin-top: 3rem;
    /* Extreme Stagger for "Sophie Brand" feel */
}

.impression-item:nth-child(3n) {
    margin-top: 1.5rem;
    /* Variance */
}

.impression-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: grayscale(0%);
    /* Full color by default or keep BW? User said "Focus rein auf Bilder" - usually color. JvM is often Color on BW. Let's keep images authentic. */
}

.impression-item:hover img {
    transform: scale(1.02);
}

/* Mobile */
@media (max-width: 968px) {
    .impressions-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    .impression-item:nth-child(even) {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        padding: 8rem 5% 2rem;
        /* Increased padding-top to clear navbar comfortably */
    }

    .portfolio-header h1 {
        font-size: 2.8rem;
        /* Fit 'IMPRESSIONEN' on screen */
        word-break: break-word;
        margin-left: 0;
    }

    .impressions-grid {
        column-count: 1;
        /* Vertical Stack */
    }

    .impression-item {
        margin-bottom: 1.5rem;
    }

    .impression-item:nth-child(even) {
        margin-top: 0;
    }
}