.noscroll main {
    overflow: hidden;
    height: 100vh;
}

/* Page Loader */
.js .loading::before, .js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}

/* Recommended styles for Splitting */
.splitting .word, .splitting .char {
    display: inline-block;
}

/* Psuedo-element chars */
.splitting .char {
    white-space: nowrap;
    position: relative;
}

@media screen and (min-width: 53em) {
    main {
        grid-template-areas: 'content';
        grid-template-rows: 100%;
        grid-template-columns: 100%;
        width: 100%;
    }
}

.imagesstackgrid-title {
    grid-area: content;
    font-size: 15vw;
    margin: 0;
    font-family: ivypresto-headline, serif;
    font-weight: 100;
    justify-self: center;
    align-self: center;
    position: relative;
    z-index: 1500;
    color: #fff;
    pointer-events: none;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
}

.js .imagesstackgrid-title {
    opacity: 0;
}

.imagesstackgrid {
    display: grid !important;
    grid-area: content;
    justify-self: center;
}

.imagesstackgrid .gallery__item {
    position: relative;
    margin: 8vh 0 !important;
    display: grid !important;
    align-items: center;
    grid-template-areas: 'gallery-caption' 'gallery-image';
    grid-template-columns: 100%;
    justify-content: center;
}

.imagesstackgrid .gallery__item.no-link .gallery__item-img {
    cursor: auto;
}

.imagesstackgrid .has-link .gallery__item-number {
    padding: 0 5px 20px;
}

.imagesstackgrid .has-link .gallery__item-text {
    padding: 0 10px;
}

.imagesstackgrid .has-link .gallery__item-viewmore.moreinfo {
    margin: 0 9px;
}

.imagesstackgrid .gallery__item-img {
    grid-area: gallery-image;
    width: calc(100vw - 30vw);
    max-width: 375px;
    overflow: hidden;
    position: relative;
    will-change: transform, opacity;
    cursor: pointer;
}

.noscroll .imagesstackgrid .gallery__item-img {
    cursor: default;
}

.js .imagesstackgrid .gallery__item-img {
    opacity: 0;
}

.imagesstackgrid-wrap {
    display: grid;
    grid-template-areas: 'content';
}

.imagesstackgrid .gallery__item-imginner {
    background-size: cover;
    background-position: 50% 0;
    width: 100%;
    padding-bottom: 140%;
}

.imagesstackgrid .gallery__item-caption {
    grid-area: gallery-caption;
    padding: 0 0 1rem;
    max-width: 365px;
}

.imagesstackgrid .gallery__item-title {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 89px;
    font-weight: 300;
    font-family: 'Butler';
    display: flex;
    justify-content: center;
    margin: 0;
    top: 0;
    pointer-events: none;
    color: #fff;
    transition: .2s;
    z-index: 1;
}

.imagesstackgrid .gallery__item-caption.active .gallery__item-title {
    top: -145px;
}

.imagesstackgrid span.whitespace {
    padding: 0px 10px;
}

.imagesstackgrid .gallery__item-title span.char {
    opacity: 0;
    will-change: transform;
}

.imagesstackgrid .gallery__item-number {
    font-family: 'Butler';
    font-weight: 300;
    font-size: 72px;
    border-bottom: 1px solid #fff;
    width: 100%;
    display: block;
    margin-bottom: 1rem;
}

.imagesstackgrid .gallery__item-text {
    font-size: 18px;
    font-family: 'Manrope';
    margin: 0;
}

.imagesstackgrid .gallery__item-number, .imagesstackgrid .gallery__item-text {
    opacity: 0;
    will-change: transform, opacity;
    color: #fff;
    font-weight: 300;
}

.white-list-text .imagesstackgrid .gallery__item-number, 
.white-list-text .imagesstackgrid .gallery__item-text, 
.white-list-text .imagesstackgrid .gallery__item-text > p {
    color: #fff;
}

.imagesstackgrid .gallery__item-text > p > strong {
    font-weight: 500;
    text-transform: uppercase;
}

.white-list-text .imagesstackgrid .gallery__item-number {
    font-size: 36px;
    border-color: #fff;
    padding-bottom: 20px;
    margin-top: 80px;
}

.white-list-text .imagesstackgrid .gallery__item-caption.active .gallery__item-viewmore > div ul {
    color: #fff;
}

.white-list-text .imagesstackgrid .gallery__item-link > a {
    color: #2b2b2b;
    background: #fff;
}

.white-list-text .imagesstackgrid .gallery__item-link > a:hover {
    background: #2b2b2b;
    color: #fff;
}

.white-list-text .imagesstackgrid .gallery__item-link.extralink {
    margin: 0 10px;
}

.white-list-text .imagesstackgrid .gallery__item-link.extralink > a {
    color: #2b2b2b;
    background: #fff;
    max-width: 190px;
    margin-top: 10px;
}

.white-list-text .imagesstackgrid .gallery__item-link.extralink > a:hover {
    background: #2b2b2b;
    color: #fff;
}

.white-list-text .imagesstackgrid .gallery__item-viewmore.moreinfo span {
    color: #fff;
    border-color: #fff;
}

.white-list-text .imagesstackgrid .gallery__item-viewmore.moreinfo > a:hover span {
    border-color: #fff;
}

.white-list-text .imagesstackgrid .gallery__item-viewmore span {
    color: #fff;
}

.white-list-text .imagesstackgrid .gallery__item-caption.active .gallery__item-viewmore > div {
    color: #fff;
}

body.home .imagesstackgrid .gallery__item-text,
body.home .white-list-text .imagesstackgrid .gallery__item-viewmore span,
body.home .white-list-text .imagesstackgrid .gallery__item-caption.active .gallery__item-viewmore > div,
body.home .white-list-text .imagesstackgrid .gallery__item-caption.active .gallery__item-viewmore > div > ul{
    color: #fff;
}

body.home .white-list-text .imagesstackgrid .gallery__item-link > a:hover {
    background: #fff;
    color: #000;
}

body.home .imagesstackgrid .gallery__item-viewmore {
    border-color: #fff;
}

.imagesstackgrid-black .imagesstackgrid .gallery__item-text {
    color: #000;
}

.imagesstackgrid .gallery__item-viewmore {
    padding-top: 20px;
    border-top: 1px solid #2b2b2b;
    border-bottom: 1px solid #2b2b2b;
    margin-top: 20px;
    cursor: pointer;
    padding-bottom: 20px;
}

.imagesstackgrid .gallery__item-viewmore span {
    color: #fff;
    text-transform: uppercase;
    font-family: 'Manrope';
    font-size: 16px;
}

.imagesstackgrid .gallery__item-viewmore span:after {
    content: '+';
    margin-left: 5px;
}

.imagesstackgrid .gallery__item-viewmore.moreinfo {
    padding-bottom: 0;
    border-top: none;
    border-bottom: none;
}

.imagesstackgrid .gallery__item-viewmore.moreinfo span:after {
    display: none;
}

.imagesstackgrid .gallery__item-viewmore.moreinfo span {
    border: 1px solid #fff;
    max-width: 190px;
    width: 100%;
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    transition: .2s;
}

.imagesstackgrid .gallery__item-viewmore.moreinfo:hover span {
    background: #fff;
    color: #2b2b2b !important;
}

.imagesstackgrid .gallery__item-caption.active .gallery__item-viewmore span:after {
    content: '-';
}

.imagesstackgrid .gallery__item-viewmore > div {
    font-family: 'Manrope';
    max-height: 0;
    transition: max-height 0.15s ease-out;
    overflow: hidden;
}

.imagesstackgrid .gallery__item-caption.active .gallery__item-viewmore > div {
    max-height: 400px;
    transition: max-height 0.25s ease-in;
    color: #fff;
    overflow: visible;
}

.imagesstackgrid .gallery__item-caption.active .gallery__item-viewmore > div ul {
    margin: 15px 0;
    padding-left: 20px;
}

.imagesstackgrid .gallery__item-link > a {
    background: #fff;
    color: #2b2b2b;
    text-transform: uppercase;
    font-size: 14px;
    font-family: 'Manrope';
    font-weight: 300;
    max-width: 190px;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-top: 20px;
    transition: .2s;
    display: block;
    border: 1px solid transparent;
}


.imagesstackgrid .gallery__item-link > a:hover {
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #fff;
}

.imagesstackgrid .gallery__item-number.hide {
    display: none;
}

body.home .imagesstackgrid button.slick-prev, 
body.home .imagesstackgrid button.slick-next {
    border: none;
    text-indent: -99999px;
    width: 30px;
    position: absolute;
    right: 0;
    left: 0;
    margin: 0 auto;
    cursor: pointer;
    outline: none;
    z-index: 1;
}

body.home .imagesstackgrid button.slick-prev.slick-disabled, body.home .imagesstackgrid button.slick-next.slick-disabled {
    opacity: 0.5;
    cursor: auto;
}

body.home .imagesstackgrid button.slick-prev {
    background-color: transparent;
    background-image: url('../../images/arrow2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    bottom: -20px;
    transform: translateY(-50%);
    right: 80px;
    top: auto;
}

body.home .imagesstackgrid button.slick-next {
    background-color: transparent;
    background-image: url('../../images/arrow2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    bottom: 0;
    transform: rotate(180deg) translateY(-50%);
    right: -80px;
    top: auto;
}

body.home .imagesstackgrid .slick-counter {
    position: absolute;
    bottom: -21px;
    transform: translateY(-50%);
    right: 0;
    left: 0;
    color: #fff;
    font-family: 'Butler';
    font-size: 14px;
    margin: 0 auto;
    text-align: center;
    width: 40px;
}

@media screen and (min-width: 53em) {
    .imagesstackgrid-wrap {
        grid-template-areas: 'content';
        grid-template-rows: 100%;
        grid-template-columns: 100%;
        width: 100%;
    }

    .imagesstackgrid .gallery__item {
        grid-template-areas: 'gallery-filler gallery-image gallery-caption';
        grid-template-columns: 25vw auto 25vw;
    }

    .imagesstackgrid .gallery__item-caption {
        padding: 0 0 0 1rem;
    }
}

@media only screen and (max-width: 1220px) {
    .imagesstackgrid .gallery__item-title {
        font-size: 60px;
    }
}

@media only screen and (max-width: 848px) {
    .imagesstackgrid .gallery__item {
        grid-template-columns: auto auto auto;
    }

    .imagesstackgrid .gallery__item-caption {
        max-width: 100%;
    }

    .imagesstackgrid .gallery__item-viewmore {
        width: 100%;
    }

    .imagesstackgrid .has-link .gallery__item-viewmore.moreinfo {
        margin: 0 auto;
    }
}

@media only screen and (max-width: 53em) {
    .imagesstackgrid {
        width: 100%;
    }

    .imagesstackgrid .gallery__item .gallery__item-title {
        display: block;
        font-size: 45px;
        justify-content: center;
    }

    .imagesstackgrid span.whitespace {
        padding: 0 3px;
    }

    .imagesstackgrid .gallery__item {
        grid-template-areas:
            'gallery-image'
            'gallery-caption';
        margin-top: 0px !important;
    }

    .imagesstackgrid .gallery__item-img {
        margin: 0 auto;
        width: calc(100vw - 20vw);
    }

    .imagesstackgrid .gallery__item-number {
        font-size: 48px;
        max-width: 190px;
        margin: -40px auto 15px;
    }

    .imagesstackgrid .gallery__item-text {
        font-size: 16px;
        text-align: center;
        max-width: 280px;
        margin: 20px auto;
    }

    .imagesstackgrid .gallery__item-viewmore.moreinfo span {
        margin: 0 auto;
    }
    
    .white-list-text .imagesstackgrid .gallery__item-number {
        font-size: 24px;
        text-align: center;
        margin-top: 20px;
    }

    .imagesstackgrid .gallery__item-viewmore {
        width: 87%;
        margin: 20px auto 0;
        text-align: center;
        border-bottom: 1px solid #2b2b2b;
        padding-bottom: 20px;
    }

    .imagesstackgrid .gallery__item-link > a {
        margin: 20px auto 0;
    }
}
