/* =========================================
   MAIN SECTION
========================================= */
.image-stack-section {
    position: relative;
    height: 500vh;
}
/* =========================================
   STICKY SCREEN
========================================= */
.image-stack-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* =========================================
   IMAGE AREA
========================================= */
.image-stack {
    position: relative;
    width: min(1200px, 92vw);
    height: min(680px, 82vh);
    overflow: hidden;
    border-radius: 18px;
}
/* =========================================
   EACH IMAGE
========================================= */
.stack-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
/* Image */
.stack-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* =========================================
   IMAGE ORDER
========================================= */
.image-1 {
    z-index: 1;
}
.image-2 {
    z-index: 2;
}
.image-3 {
    z-index: 3;
}
.image-4 {
    z-index: 4;
}
/* =========================================
   IMPORTANT:
   IMAGES START OUTSIDE THE SCREEN
========================================= */
.stack-image:not(.image-1) {
    transform: translateY(100%);
}
/* =====================================
   COLLECTION BUTTON
===================================== */
.collection-button {
    position: absolute;
    left: 25px;
    bottom: 25px;
    z-index: 999;
    width: 330px;
    height: 68px;
    padding: 0 12px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border-radius: 5px;
    gap: 5px;
    box-shadow: 0 12px 35px rgba(0,0,0,.30);
}
.collection-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.collection-link {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #242424;
    color: #fff;
    text-decoration: none;
    transition: .3s ease;
}
.collection-link:hover {
    background: #333;
    color: #fff;
    transform: translate(2px, -2px);
}
.collection-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media(max-width:576px) {
    .collection-button {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
        height: 58px;
        padding-left: 16px;
        padding-right: 10px;
    }
    .collection-name {
        font-size: 16px;
    }
    .collection-link {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}
/* =========================================
   OPTIONAL DARK GRADIENT
========================================= */

.stack-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            transparent 60%,
            rgba(0,0,0,.25)
        );
}
/* =========================================
   MOBILE
========================================= */
@media(max-width:768px) {
    .image-stack-section {
        height: 450vh;
    }
    .image-stack {
        width: calc(100% - 20px);
        height: 78vh;
        border-radius: 12px;
    }
}