/* ------------------------------ */
/* ------------ Tile ------------ */
/* ------------------------------ */
.tile {
    position: relative;
    padding-bottom: 1.5rem;
}

.tile:nth-child(2n+1) {
    padding-right: .75rem;
}

.tile:nth-of-type(2n) {
    padding-left: .75rem;
    -webkit-transition-delay: .5s;
         -o-transition-delay: .5s;
            transition-delay: .5s;
}
  
.tile__container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1.25rem 1.4rem .5rem;
    -webkit-box-shadow: inset 0 0 0 3px var(--brand-background-color-transparent);
            box-shadow: inset 0 0 0 3px var(--brand-background-color-transparent);
}

.tile .tile__container::before, .tile .tile__container::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 3px solid transparent;
    -webkit-box-sizing: inherit;
            box-sizing: inherit;
    -webkit-transition: border-color .5s, width 0s linear .5s, height 0s linear .5s;
    -o-transition: border-color .5s, width 0s linear .5s, height 0s linear .5s;
    transition: border-color .5s, width 0s linear .5s, height 0s linear .5s;
}

.tile .tile__container::before {
    top: 0;
    left: 0;
}

.tile .tile__container::after {
    top: 0;
    left: 0;
}

.no-touchevents .tile:hover .tile__container::before, .no-touchevents .tile:hover .tile__container::after {
    width: 100%;
    height: 100%;
}

.no-touchevents .tile:hover .tile__container::before {
    border-top-color: var(--brand-color);
    border-right-color: var(--brand-color);
    -webkit-transition: width 0.5s ease-out, height 0.5s ease-out 0.5s, border-right-color 0s ease-out 0.5s;
    -o-transition: width 0.5s ease-out, height 0.5s ease-out 0.5s, border-right-color 0s ease-out 0.5s;
    transition: width 0.5s ease-out, height 0.5s ease-out 0.5s, border-right-color 0s ease-out 0.5s;
}

.no-touchevents .tile:hover .tile__container::after {
    border-bottom-color: var(--brand-color);
    border-left-color: var(--brand-color);
    -webkit-transition: height 0.5s ease-out, width 0.5s ease-out 0.5s, border-bottom-color 0s ease-out 0.5s;
    -o-transition: height 0.5s ease-out, width 0.5s ease-out 0.5s, border-bottom-color 0s ease-out 0.5s;
    transition: height 0.5s ease-out, width 0.5s ease-out 0.5s, border-bottom-color 0s ease-out 0.5s;
}
  
.tile__caption {
    position: relative;
    background-color: var(--brand-white);
}



/* ------------------------------ */
/* -------- Media Queries ------- */
/* ------------------------------ */

@media (max-width: 767.98px) {  

    .tile {
        padding-bottom: 15px;
    }

    .tile:nth-child(2n+1) {
        padding-right: 15px;
    }

    .tile:nth-of-type(2n) {
        padding-left: 15px;
    }

    .tile__container {
        padding: 19px 22px;
    }

}