﻿/* 
=======================================
 TILES
======================================= */

.nav-tiles-container .columns:last-child:not(:first-child) {
    float: left;
}

.nav-tiles-container a,
.nav-tiles-container a:visited,
.nav-tiles-container a:link {
    color: #fafafa;
    font-size: 1.333rem;
    transition: all 0.33333s ease-in-out;
    max-width: 212.61px;
    max-height: 200.94px;
    padding: .5rem;
}

#s4-workspace .nav-tiles-container a:hover {
    color: #2a578d;
}

    #s4-workspace .nav-tiles-container a:hover span, #s4-workspace .nav-tiles-container a:hover i {
        color: #2a578d;
    }

#s4-workspace .nav-tiles-container a:focus {
    color: #2a578d;
    background-color: #fafafa;
}

.nav-tiles-container * {
    text-decoration: none !important;
}

.nav-tiles-container i {
    position: absolute;
    top: 5px;
    right: 5px;
}

.nav-tiles-container div {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 1rem;
    transition: all 0.33333s ease-in-out;
}

.nav-tile {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1em;
    background: #2a578d;
    border: 0.1875rem solid #2a578d;
    transition: all 0.33333s ease-in-out;
    height: 12em;
}

    .nav-tile:hover {
        background: #fafafa;
        border: 0.1875rem solid #2a578d;
    }

.nav-tileImage {
    min-height: 12em;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.contentTileImage {
    min-height: 6em;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.nav-tile-text {
    text-transform: none;
    text-align: center;
    max-width: 80%;
    display: block;
}

/*Subnav */
.sidebar .nav-tile {
    max-height: 5.5em !important;
}

.sidebar .nav-tiles-container div {
    width: 100%;
    padding: 0rem;
    margin: 0rem;
}

.sidebar .nav-tiles-container a {
    min-height: 65px;
    max-width: none;
    justify-content: flex-start;
    padding: 1rem;
}

.sidebar .nav-tile-text {
    font-size: 1em;
    text-align: left;
    padding: .5rem;
}

@media screen and (max-width: 1023px) {
    .nav-tiles-container a,
    .nav-tiles-container a:visited,
    .nav-tiles-container a:link {
        margin: auto;
    }
}