/* Shahmeer Custom Sections - Stacked Cards (click to fullscreen) */

.scs-stacked-cards {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    --scs-card-width: 280px;
    --scs-card-height: 340px;
    --scs-gap: 45px;
    --scs-lift: 35px;
}

.scs-stack-wrap {
    position: relative;
    width: var( --scs-card-width );
    /* enough room for the front card fully visible + the two gaps peeking above it */
    height: calc( var( --scs-card-height ) + ( var( --scs-gap ) * 2 ) );
}

.scs-stack-card {
    position: absolute;
    left: 0;
    width: var( --scs-card-width );
    height: var( --scs-card-height );
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba( 0, 0, 0, 0.22 );
    cursor: pointer;
    transition: transform 0.35s cubic-bezier( 0.22, 1, 0.36, 1 ), box-shadow 0.35s ease;
}

.scs-stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

/* Straight top-to-bottom stack, same size, each one revealing a gap above the next */
.scs-stack-back {
    top: 0;
    z-index: 1;
}

.scs-stack-middle {
    top: var( --scs-gap );
    z-index: 2;
}

.scs-stack-front {
    top: calc( var( --scs-gap ) * 2 );
    z-index: 3;
}

/* Hover = pick the card up and set it back down */
.scs-stack-card:hover {
    transform: translateY( calc( var( --scs-lift ) * -1 ) );
    box-shadow: 0 30px 55px rgba( 0, 0, 0, 0.32 );
    z-index: 10;
}

/* ---- Fullscreen lightbox ---- */
.scs-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba( 0, 0, 0, 0.88 );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    padding: 30px;
    box-sizing: border-box;
    transition: opacity 0.25s ease;
}

.scs-lightbox-overlay.is-visible {
    opacity: 1;
}

.scs-lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba( 0, 0, 0, 0.5 );
    transform: scale( 0.92 );
    transition: transform 0.25s ease;
}

.scs-lightbox-overlay.is-visible img {
    transform: scale( 1 );
}

.scs-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba( 255, 255, 255, 0.12 );
    color: #fff;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scs-lightbox-close:hover {
    background: rgba( 255, 255, 255, 0.22 );
}

@media (max-width: 480px) {
    .scs-stacked-cards {
        --scs-card-width: 220px;
        --scs-card-height: 270px;
        --scs-gap: 30px;
    }
}