
.smugi-tlo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.smugi-tlo__plotno {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    filter: blur(22px);
    opacity: 0;
    transition: opacity 0.9s ease;
}

.smugi-tlo__plotno.is-widoczne { opacity: 1; }


.tasma-zdjec {
    --tasma-proporcja: 1 / 1;
    --tasma-szerokosc: clamp(220px, 23vw, 430px);
    --tasma-odstep: 72px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: var(--tasma-odstep);
    padding: 30px 32px;
    overflow: hidden;
}

.tasma-zdjec__foto {
    flex: 0 0 auto;
    width: var(--tasma-szerokosc);
    aspect-ratio: var(--tasma-proporcja);
    object-fit: cover;
    
    object-position: var(--poz, center top);
    padding: 9px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(13, 21, 38, .22);
    transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0));
    cursor: zoom-in;
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow .45s ease;
}


.tasma-zdjec__foto + .tasma-zdjec__foto { margin-left: -18px; }
.tasma-zdjec__foto:nth-child(1) { --rot: -4deg; --ty:  12px; z-index: 1; }
.tasma-zdjec__foto:nth-child(2) { --rot:  3deg; --ty: -14px; z-index: 2; }
.tasma-zdjec__foto:nth-child(3) { --rot: -2deg; --ty:  10px; z-index: 3; }
.tasma-zdjec__foto:nth-child(4) { --rot:  5deg; --ty: -10px; z-index: 4; }
.tasma-zdjec__foto:nth-child(5) { --rot: -3deg; --ty:  12px; z-index: 5; }


.tasma-zdjec__foto:hover {
    transform: rotate(calc(var(--rot, 0deg) * .2)) translateY(calc(var(--ty, 0px) - 16px)) scale(1.04);
    box-shadow: 0 28px 56px rgba(13, 21, 38, .34);
    z-index: 9;
}




[data-lightbox] {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    background: rgba(18, 22, 18, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 90vw;
    max-height: 88vh;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    color: #f2efe6;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 60ch;
}

.lightbox__close,
.lightbox__nav {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
}

.lightbox__nav {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    flex: 0 0 auto;
}


.lightbox--single .lightbox__nav {
    display: none;
}


body.lightbox-open {
    overflow: hidden;
}

