/**
 * Sticky Block Styles
 * Frontend styles for the Sticky Block component
 */

 .sticky-block {
    padding: 12px;
    background-color: #F2EEE6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    min-height: 150vh;
}

.sticky-block-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-block-cell {
    min-height: 780px;
    position: relative;
    overflow: hidden;
}

.sticky-block-cell-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.sticky-block-cell-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    z-index: 1;
    transition: .6s;
    --parallax-y: 0%;
    transform: translateY(var(--parallax-y)) scale(1);
}

.sticky-block-cell-link:hover .sticky-block-cell-img {
    transform: translateY(var(--parallax-y)) scale(1.13);
}

.sticky-block-cell-overline {
    position: relative;
    z-index: 2;
}

.sticky-block-cell-overline .overlay-tag {
    --overlay-tag-bg-color: #F2EEE6;
    --overlay-tag-text-color: #0D0D0D;
}

.sticky-block-cell-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
    transition: .4s;
    max-width: 470px;
    margin: 0 auto;
}

.sticky-block-cell-link:hover .sticky-block-cell-text {
    transform: translateY(-20px);
}

.sticky-block-cell-text h4 {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 44px;
    line-height: 90%;
    text-align: center;
    text-transform: uppercase;
    color: #F2EEE6;
    margin: 0;
}

.sticky-block-cell-text span {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 15px;
    line-height: 140%;
    text-align: center;
    text-transform: uppercase;
    color: #F2EEE6;    
}

.sticky-block-content {
    height: 100vh;
    transition: all 0.2s ease-out;
    padding-bottom: 40px;
}

.sticky-block-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 0 30px;
}

.sticky-block-content-overline {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 15px;
    line-height: 140%;
    text-transform: uppercase;
    color: var(--color-text-dark);
}

.sticky-block-content p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .sticky-block {
        grid-template-columns: 1fr;
        min-height: unset;
        padding: 12px 0;
    }

    .sticky-block-content {
        order: 1;
        height: auto;
        padding-bottom: 80px;
    }

    .sticky-block-images {
        order: 2;
        flex-wrap: nowrap;
        flex-direction: row;
        overflow-x: auto;
        gap: 5px;
        scroll-snap-type: x mandatory;
    }

    .sticky-block-images::-webkit-scrollbar {
        display: none;
    }

    .sticky-block-images {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .sticky-block-cell {
        flex-shrink: 0;
        width: calc(100vw - 50px);
        min-height: 520px;
        scroll-snap-align: center;
    }

    .sticky-block-cell-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 110%;
        object-fit: cover;
        z-index: 1;
    }

    .sticky-block-content-inner {
        padding: 0;
    }

    .sticky-block-cell-text {
        padding: 0 10px 20px;
    }

    .sticky-block-cell-text h4 {
        font-size: 28px;
    }

    .sticky-block-cell-text h4 br {
        display: none;
    }
}