/**
 * Parallax Floating Inspirations Section (Wonder Theme Style)
 * Replicates the Wonder / Nook "Check over 10,000 Inspirations" Showcase
 */

.wt-parallax {
    position: relative;
    min-height: calc((var(--parallax-image-count, 3) + 1) * 120vh);
    background-color: var(--color-custom-background, #ffffff);
    width: 100%;
}

parallax-section {
    display: block;
    position: relative;
    width: 100%;
    min-height: inherit;
}

.wt-parallax__content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    z-index: 2;
    pointer-events: none;
    background: transparent;
}

.wt-parallax__content .hero__overlay__content {
    max-width: 920px;
    margin: 0 auto;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wt-parallax .hero__subheading {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: #6a6a6a;
    margin-bottom: 22px;
}

.wt-parallax .hero__title {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #1a1a1a;
    margin: 0 0 32px 0;
}

.wt-parallax .hero__button--gap {
    margin-top: 6px;
}

.wt-parallax .hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 38px;
    border-radius: 9999px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Mona Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1.5px solid #1a1a1a;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.wt-parallax .hero__button:hover {
    background-color: transparent;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wt-parallax__additional {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    z-index: 10;
}

.wt-parallax__additional__icon {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    animation: wt-icon-bounce 1.7s ease-in-out infinite;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.wt-parallax__additional__icon:hover {
    transform: scale(1.15);
}

@keyframes wt-icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.wt-parallax__gallery {
    position: relative;
    max-width: 1540px;
    margin: -100vh auto 0 auto; /* Pull gallery up so it starts flowing immediately alongside content */
    padding: 30vh 48px 60vh;
    z-index: 3;
    pointer-events: none;
}

.wt-parallax__gallery__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 48vh;
}

.wt-parallax__gallery__item {
    display: flex;
    width: 100%;
}

.wt-parallax__gallery__item--left {
    justify-content: flex-start;
}

.wt-parallax__gallery__item--right {
    justify-content: flex-end;
}

.wt-parallax__img-wrap {
    pointer-events: auto;
    display: inline-block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.wt-parallax__img-wrap:hover {
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.wt-parallax__img {
    display: block;
    width: 32vw;
    max-width: 460px;
    min-width: 260px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    transition: transform 0.12s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
}

@media (max-width: 1024px) {
    .wt-parallax {
        min-height: calc((var(--parallax-image-count, 3) + 1) * 100vh);
    }
    .wt-parallax__gallery {
        padding: 25vh 32px 50vh;
    }
    .wt-parallax__gallery__list {
        gap: 36vh;
    }
    .wt-parallax__img {
        width: 44vw;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .wt-parallax {
        min-height: calc((var(--parallax-image-count, 3) + 1) * 85vh);
    }
    .wt-parallax .hero__title {
        font-size: 2.25rem;
        line-height: 1.15;
    }
    .wt-parallax .hero__subheading {
        font-size: 11px;
        letter-spacing: 1.8px;
        margin-bottom: 16px;
    }
    .wt-parallax__gallery {
        padding: 20vh 20px 40vh;
    }
    .wt-parallax__gallery__list {
        gap: 32vh;
    }
    .wt-parallax__img {
        width: 58vw;
        max-width: 300px;
    }
    .wt-parallax__img-wrap {
        border-radius: 14px;
    }
}
