.gallery-artistic {
    background: var(--dark);
    padding-block: 5rem;
}

.gallery-artistic__header {
    max-width: 600px;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-artistic .heading--label {
    color: rgba(255,255,255,0.45);
}

/* Siatka — asymetryczna, zachodzące na siebie elementy */
.gallery-artistic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
    padding-inline: var(--container-px);
    max-width: 1200px;
    margin-inline: auto;
}

/* Sloty — layout mobilny (prostszy) */
.ga-slot--wide-1    { grid-column: 1 / -1; }
.ga-slot--portrait-1{ grid-column: 1; }
.ga-slot--wide-2    { grid-column: 2; }
.ga-slot--portrait-2{ grid-column: 1; }
.ga-slot--accent    { grid-column: 2; }
.ga-slot--overlay   { grid-column: 1 / -1; }

.gallery-artistic__item {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gray-200);
    isolation: isolate;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    clip-path: polygon(1% 4%, 97% 0%, 100% 95%, 4% 100%, 0% 42%);
    cursor: zoom-in;
}

.gallery-artistic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(18%) contrast(1.02);
    transition:
        transform var(--dur-slow) var(--ease),
        filter    var(--dur-slow) var(--ease);
}

.gallery-artistic__item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.gallery-artistic__item::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 22%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(28,43,26,0.16) 100%),
        radial-gradient(circle at 12% 0%, rgba(255,255,255,0.18), transparent 35%);
    pointer-events: none;
}

/* Hint — widoczny tylko w edytorze WP */
.ga-slot-hint {
    display: none;
}

/* Desktop — pełna asymetryczna siatka */
@media (min-width: 992px) {
    .gallery-artistic__grid {
        grid-template-columns: 2fr 1.2fr 1.6fr;
        gap: 1rem;
    }

    /* Slot 1 — szeroki, cały lewy rząd */
    .ga-slot--wide-1 {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 16 / 10;
        transform: rotate(-1deg);
        z-index: 1;
    }

    /* Slot 2 — pionowe, środek góra */
    .ga-slot--portrait-1 {
        grid-column: 2;
        grid-row: 1 / span 2;
        aspect-ratio: 3 / 4;
        transform: translateY(1.25rem) rotate(-2deg);
        z-index: 3;
    }

    /* Slot 3 — wide, prawy góra */
    .ga-slot--wide-2 {
        grid-column: 3;
        grid-row: 1;
        aspect-ratio: 4 / 3;
        transform: translateY(-1rem) rotate(1.5deg);
    }

    /* Slot 4 — pionowe, środek dół (zachodzi na slot 1) */
    .ga-slot--portrait-2 {
        grid-column: 1;
        grid-row: 2;
        aspect-ratio: 4 / 5;
        margin-top: -1.25rem;
        transform: rotate(2deg);
        z-index: 4;
    }

    /* Slot 5 — akcentowe, prawy dół */
    .ga-slot--accent {
        grid-column: 3;
        grid-row: 2;
        aspect-ratio: 1 / 1;
        margin-top: -3rem;
        margin-left: -1rem;
        transform: rotate(-3deg);
        z-index: 5;
    }

    .ga-slot--overlay {
        grid-column: 2 / 4;
        grid-row: 2;
        aspect-ratio: 16 / 10;
        width: min(100%, 430px);
        justify-self: start;
        align-self: end;
        margin-left: 5.5rem;
        margin-bottom: -1.75rem;
        transform: rotate(-2.5deg);
        z-index: 2;
    }
}
