/* ================================
   IMAGE STACK – FIXED 365px MAIN
================================ */
/* ================================
   SUBTLE EDITORIAL TILT
================================ */

/* Big image tilt */
.stack-img-item.img-1 {
    transform: rotate(3.5deg);
    transform-origin: center center;
}

/* Small image tilt (slightly stronger) */
.stack-img-item.img-2 {
    transform: rotate(-4deg);
    transform-origin: center center;
}
/* GRID */
.stack-inner {
    max-width: 1156px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 510px 1fr;
    gap: 120px;
    /* ✅ EXACT GAP */
    align-items: center;
}

/* STACK CONTAINER */
.stack-images {
    position: relative;
    width: 420px;
    /* accommodates overlap */
    height: 365px;
    /* EXACT height of main image */
}

/* IMAGE BASE */
.stack-img-item {
    position: absolute;
}

.stack-img-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* LEFT IMAGE (BIG) */
.stack-img-item.img-1 {
    width: 365px;
    height: 365px;
    left: 0;
    bottom: 0;
    z-index: 2;
}

/* RIGHT IMAGE (SMALL) */
.stack-img-item.img-2 {
    width: 230px;
    height: 230px;
    left: 300px;

    top: 50%;
    transform: translateY(-50%) rotate(-4deg);

    z-index: 3;
}

/* ================================
   TEXT
================================ */

.stack-text {
    max-width: 460px;
}

.stack-title {
    font-size: 32px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.stack-desc {
    font-size: 16px;
    line-height: 1.65;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
    .stack-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .stack-images {
        width: 100%;
        height: 320px;
    }

    .stack-img-item.img-1 {
        width: 395px;
        height: 400px;
    }

    .stack-img-item.img-2 {
        width: 280px;
        height: 300px;
        left: 45%;
    }

    .stack-text {
        max-width: 100%;
    }
}
@media (max-width: 768px) {

    /* Section padding */
    .stack-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Stack layout */
    .stack-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    /* CENTER THE IMAGE STACK (not individual images) */
    .stack-images {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 110px;
    }

    /* Scale the whole pile */
    .stack-images {
        transform: scale(1.15);
        /* 🔥 makes images bigger while keeping overlap */
        transform-origin: center;
    }

    /* Keep original positioning logic */
    .stack-img-item {
        position: absolute;
        /* keep pile behavior */
    }

    /* Make sure the pile has height */
    .stack-images {
        min-height: 320px;
    }

    /* Text centered under pile */
    .stack-text {
        text-align: center;
        max-width: 520px;
    }
}