  /* app.css */
 
/* ==========================================================================
   SearchAbroad main app styles
   ========================================================================== */

/* Layout */

.sa_results-container {

}

.sa_grid-item {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 0;
    max-height: 100%;
    width: 100%;
    background: #4b4b4b;
    text-align: center;
    height: auto;
    border: 0 none;

    height: 0;
    padding-bottom: 100%;
    width: 100%;
}

.sa_grid-item > img {
    object-fit: cover;
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
}

.sa_grid-item a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
}

.sa_list-detail-item {
    padding-top: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.sa_list-detail-item p {
    font-size: 20px;
    line-height: 1.5;
}

@media only screen and (min-width: 520px) {
    .sa_grid-item {
        height: 0;
        padding-bottom: 50%;
        width: 50%;
    }  
}

@media only screen and (min-width: 840px) {
    .sa_grid-item {    
        height: 0;
        padding-bottom: 33.333%;
        width: 33.333%;
    }  
}

@media only screen and (min-width: 992px) {
	.sa_list-detail-item {
		padding-top: 45px;
		padding-bottom: 30px;
	}
}

@media only screen and (min-width: 1160px) {
    .sa_grid-item {
        height: 0;
        padding-bottom: 25%;
        width: 25%;
    }
}

/* Grid Layout */

.whole,
.one-half,
.one-third, .two-third,
.one-quarter, .three-quarter,
.one-fifth,
.one-sixth {
    width: 100%;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px 20px 10px;
}

@media only screen and (min-width: 960px) {
    .margin-top {
        margin-top: 40px;
    }
    .margin-bottom,
    .section-border-bottom .margin-bottom {
        margin-bottom: 40px;
    }
    .whole,
    .one-half,
    .one-third, .two-third,
    .one-quarter, .three-quarter,
    .one-fifth,
    .one-sixth {
        display: inline-block;
        float: left;
        padding: 15px;
    }

    .one-half {
        width: 50%;
    }

    .one-quarter {
        width: 25%;
    }

    .three-quarter {
        width: 75%;
    }

    .one-third {
        width: 33.333%;
    }

    .two-third {
        width: 66.667%;
    }

    .one-fifth {
        width: 20%;
    }

    .one-sixth {
        width: 16.66%;
    }
}

/* Title */

.sa_grid-item_title {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 28px;
}

/*
@media (max-width: 1319px) and (min-width: 990px), 
(max-width: 1979px) and (min-width: 1650px), 
(max-width: 2639px) and (min-width: 2310px), 
(max-width: 3299px) and (min-width: 2970px) {
    .sa_grid-item_title {
        font-size: 34px;
    }
}
*/

@media (max-width: 1979px) and (min-width: 1650px), 
(max-width: 2639px) and (min-width: 2310px), 
(max-width: 3299px) and (min-width: 2970px) {
    .sa_grid-item_title {
        font-size: 34px;
    }
}

.sa_grid-item_title .sa_grid-item_title_content {
    text-transform: none;
    margin-top: 0;
    margin-bottom: 10px;
    display: inline-block;
    padding: 0;

    position: absolute;
    top: 43%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 95%;
    left: 2.5%;
    right: 2.5%;
    cursor: pointer;
    font-family: "Roboto", "Arial", sans-serif;
    text-align: center;
    color: #fff;
    font-size: 1em;
    line-height: 1.3em;
    text-shadow: 0 0 20px rgba(0,0,0,.6);
}

.sa_grid-item_title .sa_grid-item_title_content h3 {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 700;
    color: #fff;
}

/* Bagdes */

.sa_grid-item .sa_grid-item_title p {
    position: relative;
    width: 90%;
    margin: 20px auto 0;
    color: #fff;
    font-family: "Roboto Slab", "Times", serif;
    font-weight: 500;
    font-style: normal;
    font-size: .65em;
    line-height: 1.3em;
    display: none;
    text-transform: none;
}

.key-icons--icon {
    display: inline-block;
    padding: 4px 3px;
    width: 22px;
    height: 22px;
    text-align: center;
    font-size: 14px;
    line-height: 14px;
    cursor: pointer;
    font-weight: bold;
    font-family: "Roboto Slab", "Times", serif;
}

.key-icons--icon_red {
    color: #fff;
    background: #900;
}

.key-icons--icon_blue {
    color: #fff;
    background: #106ab7;
}

.key-icons--icon_darkblue {
    color: #fff;
    background: #001489;
}

.key-icons--icon_green {
    color: #fff;
    background: #007c17;
}

.key-icons--icon_black {
    color: #fff;
    background: #000;
}

.key-icons--icon_grey {
    color: #000;
    background: #ddd;
}

.key-icons--icon_aqua {
    color: #fff;
    background: #00acc6;
}

.key-icons--icon_orange {
    color: #fff;
    background: #ffa34c;
}

.key-icons--icon_yellow {
    color: #000;
    background: #f1c200;
}

.key-icons--icon_gold {
    color: #fff;
    background: #c59f00;
}

.key-icons--icon_purple {
    color: #fff;
    background: #660096;
}

.key-icons--icon_white {
    color: #333;
    background: #fff;
}

.key-icons--icon_square {
    border-radius: 0;
    width: auto !important;
    padding-left: 4px;
    padding-right: 4px;
}

.key-icons--icon_circle {
    border-radius: 50%;
}

.key-icons--item {
    display: inline-block;
    margin: 0 5px 5px 0;
}

/* Button */

.sa_brand-button {
    color: #fff;
    background: transparent;
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .025em;
    word-spacing: .3em;
    border: 2px solid #fff;
    padding: 10px 15px;
    margin: 0 auto;
    transition: none;

    display: block;
    position: absolute;
    top: 83%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 36%;
    left: 32%;
    right: 32%;
    font-size: .5em;
    opacity: 0;
    cursor: pointer;

    width: 58%;
    left: 21%;
    right: 21%;
    max-width: 180px;
    box-shadow: 0 0 20px rgba(0,0,0,.25);
}

[data-options-button-style="round-1"] .sa_brand-button {
    border-radius: 10px;
}

[data-options-button-style="round-2"] .sa_brand-button {
    border-radius: 20px;
}

@media only screen and (max-width: 479px) {
    .sa_brand-button {
        opacity: 1;
        font-size: 18px;
        letter-spacing: 0;
        width: 220px !important;
        max-width: 220px !important;
        top: 76%;
        left: 16%;
        right: 16%;
        color: #fff;
    }
}

@media only screen and (min-width: 480px) {
    .sa_brand-button:hover {
        background: #fff;
        color: #333;
        box-shadow: 0 0 20px rgba(0,0,0,.45);
    }
}

@media only screen and (min-width: 1320px) {
    .sa_brand-button {
        font-size: .4em;
        max-width: 185px;
    }
}

/* Brand Form */

.brand-form {
    display: block;
    padding: 0;
    background: transparent;
    text-align: center;
    width: 100%;
    /*max-width: 1160px;*/
    margin: 0 auto;
}

.brand-form h3 {
    font-family: "Museo Slab W01", "Times", serif;
    font-weight: 300;
    font-size: 1.75em;
    color: #fff;
}

.brand-form input[type="text"],
.brand-form input[type="email"],
.brand-form select {
    border: 0 none;
    line-height: 1;
    display: inline-block;
    width: auto;
    border: 2px solid #ddd;
    font-family: "Effra W01", "Arial", sans-serif;
    font-weight: 700;
    text-align: left;
    color: #000;
    font-size: 1em;
    padding: 10px 15px;
    outline: none;
    width: 145px;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 41px;
    appearance: none;
    border-radius: 0;
    background: #fff;
}

.brand-form select {
    cursor: pointer;
}

.brand-form .brand-form_container_select {
    position: relative;
    overflow: none;
}

.brand-form input[type="text"]:hover,
.brand-form input[type="email"]:hover,
.brand-form select:hover {
    background: #f8f8f8;
}

.brand-form input[type="text"]:focus,
.brand-form input[type="email"]:focus,
.brand-form select:focus,
.brand-form input[type="text"].active,
.brand-form input[type="email"].active,
.brand-form select.active {
    border-color: #900;
    color: #900;
    background: #f8f8f8;
}

.brand-form_container.one-quarter input,
.brand-form_container.one-quarter select {
    width: 92%;
}

.brand-form_container.one-half input,
.brand-form_container.one-half select {
    width: 95%;
}

.brand-form_container.three-quarter input,
.brand-form_container.three-quarter select {
    width: 97.25%;
}

.brand-form_container.one-fifth input,
.brand-form_container.one-fifth select {
    width: 91%;
}

.brand-form_container.one-third input,
.brand-form_container.one-third select {
    width: 93.5%;
}

.brand-form_container.two-third input,
.brand-form_container.two-third select {
    width: 97%;
}

.brand-form_container.whole input,
.brand-form_container.whole select {
    width: 98%;
}

.brand-form_control-label,
.brand-form_label_above .brand-form_control-label {
    font-family: "Roboto Slab", "Arial", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: #555;
    margin: 0 0 3px;
}

.brand-form_label_above .brand-form_control-label,
.brand-form_label_above .brand-form_control-label + input,
.brand-form_label_above .brand-form_control-label + select {
    display: block;
    float: left;
    clear: both;
}

.brand-form_label_above button[type="submit"],
.brand-form_label_above button.sa_clear-isotope {
    margin: 21px 0;
}

.brand-button {
    color: #000;
    outline: 0 none;
    background: none;
    border: 2px solid #000;
    font-size: 1em;
    text-transform: uppercase;
    padding: 9px 15px;
    font-weight: bold;
    cursor: pointer;
}

.brand-button:hover {
    color: #fff;
    border-color: #000;
    background: #000;
}

.brand-form .brand-button {
    float: left;
    width: 50%;
}

/*.brand-button {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
}*/

[data-options-flag-color="blue"] .brand-button,
[data-options-flag-color="blue"] .brand-form input[type="text"]:focus,
[data-options-flag-color="blue"] .brand-form input[type="email"]:focus, 
[data-options-flag-color="blue"] .brand-form select:focus, 
[data-options-flag-color="blue"] .brand-form input[type="text"].active,
[data-options-flag-color="blue"] .brand-form input[type="email"].active, 
[data-options-flag-color="blue"] .brand-form select.active {
    background: transparent;
    color: #106ab7;
    border-color: #106ab7;
}

[data-options-flag-color="darkblue"] .brand-button,
[data-options-flag-color="darkblue"] .brand-form input[type="text"]:focus,
[data-options-flag-color="darkblue"] .brand-form input[type="email"]:focus, 
[data-options-flag-color="darkblue"] .brand-form select:focus, 
[data-options-flag-color="darkblue"] .brand-form input[type="text"].active,
[data-options-flag-color="darkblue"] .brand-form input[type="email"].active, 
[data-options-flag-color="darkblue"] .brand-form select.active {
    background: transparent;
    color: #001489;
    border-color: #001489;
}

[data-options-flag-color="red"] .brand-button,
[data-options-flag-color="red"] .brand-form input[type="text"]:focus,
[data-options-flag-color="red"] .brand-form input[type="email"]:focus,
[data-options-flag-color="red"] .brand-form select:focus, 
[data-options-flag-color="red"] .brand-form input[type="text"].active,
[data-options-flag-color="red"] .brand-form input[type="email"].active, 
[data-options-flag-color="red"] .brand-form select.active {
    background: transparent;
    color: #900;
    border-color: #900;
}

[data-options-flag-color="green"] .brand-button,
[data-options-flag-color="green"] .brand-form input[type="text"]:focus, 
[data-options-flag-color="green"] .brand-form input[type="email"]:focus,
[data-options-flag-color="green"] .brand-form select:focus, 
[data-options-flag-color="green"] .brand-form input[type="text"].active,
[data-options-flag-color="green"] .brand-form input[type="email"].active, 
[data-options-flag-color="green"] .brand-form select.active {
    background: transparent;
    color: #007c17;
    border-color: #007c17;
}

[data-options-flag-color="black"] .brand-button,
[data-options-flag-color="black"] .brand-form input[type="text"]:focus, 
[data-options-flag-color="black"] .brand-form input[type="email"]:focus,
[data-options-flag-color="black"] .brand-form select:focus, 
[data-options-flag-color="black"] .brand-form input[type="text"].active,
[data-options-flag-color="black"] .brand-form input[type="email"].active, 
[data-options-flag-color="black"] .brand-form select.active {
    background: transparent;
    color: #000;
    border-color: #000;
}

[data-options-flag-color="grey"] .brand-button,
[data-options-flag-color="grey"] .brand-form input[type="text"]:focus,
[data-options-flag-color="grey"] .brand-form input[type="email"]:focus, 
[data-options-flag-color="grey"] .brand-form select:focus, 
[data-options-flag-color="grey"] .brand-form input[type="text"].active,
[data-options-flag-color="grey"] .brand-form input[type="email"].active, 
[data-options-flag-color="grey"] .brand-form select.active {
    background: #ddd;
    color: #333;
    border-color: #ddd;
}

[data-options-flag-color="aqua"] .brand-button,
[data-options-flag-color="aqua"] .brand-form input[type="text"]:focus,
[data-options-flag-color="aqua"] .brand-form input[type="email"]:focus,
[data-options-flag-color="aqua"] .brand-form select:focus,
[data-options-flag-color="aqua"] .brand-form input[type="text"].active,
[data-options-flag-color="aqua"] .brand-form input[type="email"].active,
[data-options-flag-color="aqua"] .brand-form select.active {
    background: transparent;
    color: #00acc6;
    border-color: #00acc6;
}

[data-options-flag-color="orange"] .brand-button,
[data-options-flag-color="orange"] .brand-form input[type="text"]:focus,
[data-options-flag-color="orange"] .brand-form input[type="email"]:focus,
[data-options-flag-color="orange"] .brand-form select:focus, 
[data-options-flag-color="orange"] .brand-form input[type="text"].active,
[data-options-flag-color="orange"] .brand-form input[type="email"].active, 
[data-options-flag-color="orange"] .brand-form select.active {
    background: #ffa34c;
    color: #333;
    border-color: #ffa34c;
}

[data-options-flag-color="yellow"] .brand-button,
[data-options-flag-color="yellow"] .brand-form input[type="text"]:focus,
[data-options-flag-color="yellow"] .brand-form input[type="email"]:focus,
[data-options-flag-color="yellow"] .brand-form select:focus, 
[data-options-flag-color="yellow"] .brand-form input[type="text"].active,
[data-options-flag-color="yellow"] .brand-form input[type="email"].active, 
[data-options-flag-color="yellow"] .brand-form select.active {
    background: #f1c200;
    color: #333;
    border-color: #f1c200;
}

[data-options-flag-color="gold"] .brand-button,
[data-options-flag-color="gold"] .brand-form input[type="text"]:focus,
[data-options-flag-color="gold"] .brand-form input[type="email"]:focus, 
[data-options-flag-color="gold"] .brand-form select:focus, 
[data-options-flag-color="gold"] .brand-form input[type="text"].active,
[data-options-flag-color="gold"] .brand-form input[type="email"].active, 
[data-options-flag-color="gold"] .brand-form select.active {
    background: transparent;
    color: #c59f00;
    border-color: #c59f00;
}

[data-options-flag-color="brown"] .brand-button,
[data-options-flag-color="brown"] .brand-form input[type="text"]:focus, 
[data-options-flag-color="brown"] .brand-form input[type="email"]:focus,
[data-options-flag-color="brown"] .brand-form select:focus, 
[data-options-flag-color="brown"] .brand-form input[type="text"].active,
[data-options-flag-color="brown"] .brand-form input[type="email"].active, 
[data-options-flag-color="brown"] .brand-form select.active {
    background: transparent;
    color: #b15500;
    border-color: #b15500;
}

[data-options-flag-color="purple"] .brand-button,
[data-options-flag-color="purple"] .brand-form input[type="text"]:focus,
[data-options-flag-color="purple"] .brand-form input[type="email"]:focus,
[data-options-flag-color="purple"] .brand-form select:focus, 
[data-options-flag-color="purple"] .brand-form input[type="text"].active,
[data-options-flag-color="purple"] .brand-form input[type="email"].active, 
[data-options-flag-color="purple"] .brand-form select.active {
    background: transparent;
    color: #660096;
    border-color: #660096;
}

[data-options-flag-color="white"] .brand-button,
[data-options-flag-color="white"] .brand-form input[type="text"]:focus, 
[data-options-flag-color="white"] .brand-form input[type="email"]:focus,
[data-options-flag-color="white"] .brand-form select:focus, 
[data-options-flag-color="white"] .brand-form input[type="text"].active,
[data-options-flag-color="white"] .brand-form input[type="email"].active, 
[data-options-flag-color="white"] .brand-form select.active {
    background: #fff;
    color: #333;
    border-color: #333;
}

.brand-form input[type="text"]:focus,
.brand-form input[type="email"]:focus, 
.brand-form select:focus, 
.brand-form input[type="text"].active,
.brand-form input[type="email"].active, 
.brand-form select.active {
    background: #fff !important;
}

[data-options-flag-color="blue"] .brand-button:hover {
    background: #106ab7;
    color: #fff;
    border-color: #106ab7;
}

[data-options-flag-color="darkblue"] .brand-button:hover {
    background: #001489;
    color: #fff;
    border-color: #001489;
}

[data-options-flag-color="red"] .brand-button:hover {
    background: #900;
    color: #fff;
    border-color: #900;
}

[data-options-flag-color="green"] .brand-button:hover {
    background: #007c17;
    color: #fff;
    border-color: #007c17;
}

[data-options-flag-color="black"] .brand-button:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

[data-options-flag-color="grey"] .brand-button:hover {
    background: #333;
    color: #ddd;
    border-color: #333;
}

[data-options-flag-color="aqua"] .brand-button:hover {
    background: #00acc6;
    color: #fff;
    border-color: #00acc6;
}

[data-options-flag-color="orange"] .brand-button:hover {
    color: #ffa34c;
    background: #333;
    border-color: #333;
}

[data-options-flag-color="yellow"] .brand-button:hover {
    color: #f1c200;
    background: #333;
    border-color: #333;
}

[data-options-flag-color="gold"] .brand-button:hover {
    color: #333;
    background: #c59f00;
}

[data-options-flag-color="brown"] .brand-button:hover {
    color: #fff;
    background: #b15500;
}

[data-options-flag-color="purple"] .brand-button:hover {
    color: #fff;
    background: #660096;
}

[data-options-flag-color="white"] .brand-button:hover {
    color: #fff;
    background: #333;
}

.brand-form_status-message {
    font-family: "Effra W01", "Arial", sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 18px;
}

@media only screen and (min-width: 960px) {
    .brand-form .brand-form_container_select:after {
        content: "\f107";
        font-family: FontAwesome;
        font-style: normal;
        font-weight: normal;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        position: absolute;
        z-index: 1;
        font-size: 24px;
        padding: 0;
        top: 25px;
        right: 34px;
        color: #999;
    }

    .brand-form .brand-form_container_select:hover:after {
        top: 550px;
        -webkit-transition: all .2s ease-in-out;
        -moz-transition: all .2s ease-in-out;
        -o-transition: all .2s ease-in-out;
    }
}

/* Sort-by buttons */

.sort-by-button-group {
    margin: 0 0 24px 0;
}

.sort-by-button-group .brand-button {
    border: 2px solid #ddd;
    color: #333;
    font-size: 14px;
    padding: 6px 10px;
    font-weight: bold;
}

.sort-by-button-group .brand-button + .brand-button {
    margin-left: -2px;
}

.sort-by-button-group .brand-button:hover {
    border: 2px solid #ddd;
    background: #f8f8f8;
    color: #000;
}

.sort-by-button-group .brand-button.is-checked {
    border: 2px solid #ddd;
    color: #fff;
    background: #001489;
    border-color: #001489;
}

/* Promo Overlay */

.brand-form_container input,
.brand-form_container select {
    margin-bottom: 15px;
}

.brand-form-promo-overlay .brand-form {
    width: 100%;
    margin: 0;
}

.brand-form-promo-overlay .brand-form .brand-form_container {
    margin-left: 0;
    padding-left: 0;
}

.brand-form .brand-form_container {
    padding-left: 0;
}

.brand-form .brand-form_container_break-left {
    clear: left;
}

.brand-form .submit-container {
    max-width: 700px;
}

@media only screen and (min-width: 960px) {
    .brand-form-promo-overlay .brand-form .brand-form_container:first-child {
        margin-left: 0;
        padding-left: 0;
    }

    .brand-form .brand-form_container {
        padding: 0;
    }

    .brand-form_container input,
    .brand-form_container select {
        margin-bottom: 20px;
    }
}

/* Filter Container */

.sa_filter-container {
    padding: 0 0 20px;
    /*background: #f3f3f3;
    background: repeating-linear-gradient(
        -45deg, 
        #f9f9f9, 
        #f2f2f2 2px, 
        #fcfcfc 480px, 
        #fcfcfc 12px);*/
}

.sa_filter-container h1 {
    margin: 0 0 20px;
    font-weight: bold;
    font-family: "Roboto Slab", "Times", serif;
}

/* Close X */

.sa_grid-item_close-overlay {
    display: none;
    text-indent: -9999px;
    padding: 12px;
    opacity: .5;
    z-index: 20;
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    box-sizing: border-box;
    cursor: pointer;
}

.sa_grid-item_close-overlay .sa_grid-item_close-overlay_x {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    background: url(https://www.stonybrook.edu/far-beyond/img/controls/x.png) no-repeat center center;
    background-size: cover;
}

/* Hover State */

.sa_grid-item--hover-image .sa_grid-item_title p:before, 
.no-touchevents .sa_grid-item:hover .sa_grid-item_title p:before {
    content: "";
    position: absolute;
    border-bottom: 2px solid #fff;
    width: auto;
    top: -30%;
    left: 35%;
    right: 35%;
}

@media only screen and (min-width: 400px) {
    .sa_grid-item--hover-image .sa_grid-item_title p:before, 
    .no-touchevents .sa_grid-item:hover .sa_grid-item_title p:before {
        top: -20%;
    }
}

.no-touchevents .sa_grid-item:hover img {
    opacity: .1;
}

.sa_grid-item--hover-image .sa_grid-item_title .sa_grid-item_title_content, 
.no-touchevents .sa_grid-item:hover .sa_grid-item_title .sa_grid-item_title_content {
    font-size: .625em;
    width: 68%;
    left: 16%;
    right: 16%;
    top: 38%;
}

.no-touchevents .sa_grid-item:hover .sa_grid-item_title p,
.sa_grid-item--hover-image .sa_grid-item_title p {
    display: block;
}

.no-touchevents .sa_grid-item:hover .sa_grid-item_title button {
    opacity: 1;
}

/* Tooltips */

.tooltipster-sidetip.tooltipster-light .tooltipster-content {
    font-family: 'Roboto', serif;
    font-weight: 400;
    font-size: .9em;
    box-shadow: 0 0 20px rgba(0,0,0,.3);
}


/* ==========================================================================
   OPTIONS
   ========================================================================== */

/* ==========================================================================
   Title Options
   ========================================================================== */

/* Title: Font Family (default, etc) */

.sa_grid-item_title .sa_grid-item_title_content {
    /*font-family: 'Roboto Slab', serif;*/
}



/* ==========================================================================
   Flag Options
   ========================================================================== */

/* Badge: Background (image, color, pattern) */

.sa_grid-item_category {
    position: absolute;
    top: 0;
    left: 0;
    /*background: url(https://www.stonybrook.edu/far-beyond/img/branding/rays/triangles/red-triangle-1.png);*/
    background-size: 100%;
    background-repeat: no-repeat;
    width: 234px;
    height: 88px;
    padding: 15px 0 0 15px;
    margin: 0;
    text-align: left;
    color: #fff;
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.1em;
    letter-spacing: .025em;
    opacity: .875;
    z-index: 1;
}

/* flag */

span.sa_grid-item_category > span {
    z-index: 100;
    position: relative;
    text-shadow: 0 0 10px #092a46;
}

.sa_grid-item_category:before {
    content: "";
    background: #333;
}

[data-options-show-flag="hide"] .sa_grid-item_category {
    display: none !important;
}

[data-options-show-flag="hover"][data-options-flag-style="default"] .sa_grid-item_category,
[data-options-show-flag="hover"][data-options-flag-style="large-triangle"] .sa_grid-item_category {
    top: -20%;
    left: -20%;
    opacity: 0;
    transition: all ease .25s, opacity ease .7s;
    font-size: 0;
}

[data-options-show-flag="hover"][data-options-flag-style="banner"] .sa_grid-item_category {
    top: -100%;
    opacity: 0;
    transition: all ease .25s, opacity ease .7s;
    font-size: 0;
}

[data-options-show-flag="hover"] .sa_grid-item--hover-image .sa_grid-item_category,
.no-touchevents [data-options-show-flag="hover"] .sa_grid-item:hover .sa_grid-item_category {
    top: 0;
    left: 0;
    opacity: 1;
    font-size: 1em;
}

[data-options-flag-style="large-triangle"] .sa_grid-item_category {
    width: 100%;
    padding-right: 45%;
    height: 98px;
}

[data-options-flag-style="large-triangle"] .sa_grid-item_category span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
}

[data-options-flag-style="banner"] .sa_grid-item_category {
    width: 100%;
}

[data-options-flag-style="default"] span.sa_grid-item_category:before {
    content: "";
    width: 130%;
    height: 130%;
    display: block;
    transform: rotate(-20deg);
    left: -70px;
    top: -60px;
    position: absolute;
}

[data-options-flag-style="large-triangle"] span.sa_grid-item_category:before {
    content: "";
    width: 160%;
    height: 160%;
    display: block;
    transform: rotate(-20deg);
    left: -70px;
    top: -110px;
    position: absolute;
}

[data-options-flag-style="large-triangle"][data-options-show-flag="default"] .sa_grid-item_title .sa_grid-item_title_content {
    top: 55%;
}

[data-options-flag-style="large-triangle"][data-options-show-flag="default"] .sa_grid-item--hover-image .sa_grid-item_title .sa_grid-item_title_content,
.no-touchevents [data-options-flag-style="large-triangle"][data-options-show-flag="default"] .sa_grid-item:hover .sa_grid-item_title .sa_grid-item_title_content {
    top: 44%;
}

/* banner */

[data-options-flag-style="banner"] span.sa_grid-item_category {
    height: auto;
    padding: 16px 15px 12px;
    text-align: center;
    max-height: 76px;
    top: -6px;
    transition: all ease .2s;
}

.no-touchevents [data-options-flag-style="banner"] .sa_grid-item:hover span.sa_grid-item_category {
    top: 0;
}

[data-options-flag-style="banner"] span.sa_grid-item_category span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
}


[data-options-flag-style="banner"] span.sa_grid-item_category span .key-icons--icon {
    margin: 0 auto;
    display: inline-block;
}

[data-options-flag-style="banner"] span.sa_grid-item_category:before {
    content: "";
    width: 96%;
    height: 100%;
    height: auto;
    display: block;
    left: 2%;
    top: 0;
    bottom: 0;
    right: 2%;
    position: absolute;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 0 14px rgb(0 0 0 / 50%);
}

/* grid gap */

[data-options-grid-gap="x-small"] .sa_grid-item {
    border: 1px solid #fff;
}

[data-options-grid-gap="x-small"] {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

@media only screen and (min-width: 520px) {
    [data-options-grid-gap="x-small"] .sa_grid-item {
        padding-bottom: calc(50% - 2px);
    }  
}

@media only screen and (min-width: 840px) {
    [data-options-grid-gap="x-small"] .sa_grid-item {
        padding-bottom: calc(33.333% - 2px);
    }  
}

@media only screen and (min-width: 1160px) {
    [data-options-grid-gap="x-small"] .sa_grid-item {
        padding-bottom: calc(25% - 2px);
    }
}

[data-options-grid-gap="small"] .sa_grid-item {
    border: 2px solid #fff;
}

[data-options-grid-gap="small"] {
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
}

@media only screen and (min-width: 520px) {
    [data-options-grid-gap="small"] .sa_grid-item {
        padding-bottom: calc(50% - 4px);
    }  
}

@media only screen and (min-width: 840px) {
    [data-options-grid-gap="small"] .sa_grid-item {
        padding-bottom: calc(33.333% - 4px);
    }  
}

@media only screen and (min-width: 1160px) {
    [data-options-grid-gap="small"] .sa_grid-item {
        padding-bottom: calc(25% - 4px);
    }
}

[data-options-grid-gap="large"] .sa_grid-item {
    border: 4px solid #fff;
}

[data-options-grid-gap="large"] {
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
}

@media only screen and (min-width: 520px) {
    [data-options-grid-gap="large"] .sa_grid-item {
        padding-bottom: calc(50% - 8px);
    }  
}

@media only screen and (min-width: 840px) {
    [data-options-grid-gap="large"] .sa_grid-item {
        padding-bottom: calc(33.333% - 8px);
    }  
}

@media only screen and (min-width: 1160px) {
    [data-options-grid-gap="large"] .sa_grid-item {
        padding-bottom: calc(25% - 8px);
    }
}

[data-options-grid-gap="x-large"] .sa_grid-item {
    border: 8px solid #fff;
}

[data-options-grid-gap="x-large"] {
    border-left: 8px solid #fff;
    border-right: 8px solid #fff;
}

@media only screen and (min-width: 520px) {
    [data-options-grid-gap="x-large"] .sa_grid-item {
        padding-bottom: calc(50% - 16px);
    }  
}

@media only screen and (min-width: 840px) {
    [data-options-grid-gap="x-large"] .sa_grid-item {
        padding-bottom: calc(33.333% - 16px);
    }  
}

@media only screen and (min-width: 1160px) {
    [data-options-grid-gap="x-large"] .sa_grid-item {
        padding-bottom: calc(25% - 16px);
    }
}

/* Shape style */

[data-options-shape-style="circle"] .sa_grid-item {
    border-radius: 50%;
}

[data-options-shape-style="round-1"] .sa_grid-item {
    border-radius: 15px;
}

[data-options-shape-style="round-2"] .sa_grid-item {
    border-radius: 30px;
}

[data-options-shape-style="round-3"] .sa_grid-item {
    border-radius: 45px;
}


/* ==========================================================================
   Badge Options
   ========================================================================== */

/* Badge: Size (default, larger) */

.key-icons-wrapper--larger {
    padding-top: 7px;
}

.key-icons-wrapper--larger .key-icons--icon {
    display: inline-block;
    padding: 6px 3px;
    width: 28px;
    height: 28px;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
}

.sa_list-detail-item .key-icons-wrapper--larger {
    padding-top: 0;
    padding-left: 7px;
}

/* ==========================================================================
   Color options
   ========================================================================== */

/* Grid items: Hover color */

[data-options-accent-color="blue"] .sa_grid-item,
[data-options-flag-color="blue"] span.sa_grid-item_category:before,
[data-options-button-color="blue"] span.sa_grid-item_category:before {
    background: #106ab7;
}

[data-options-accent-color="darkblue"] .sa_grid-item,
[data-options-flag-color="darkblue"] span.sa_grid-item_category:before,
[data-options-button-color="darkblue"] span.sa_grid-item_category:before {
    background: #001489;
}

[data-options-accent-color="red"] .sa_grid-item,
[data-options-flag-color="red"] span.sa_grid-item_category:before,
[data-options-button-color="red"] span.sa_grid-item_category:before {
    color: #fff;
    background: #900;
}

[data-options-accent-color="green"] .sa_grid-item,
[data-options-flag-color="green"] span.sa_grid-item_category:before,
[data-options-button-color="green"] span.sa_grid-item_category:before {
    color: #fff;
    background: #007c17;
}

[data-options-accent-color="black"] .sa_grid-item,
[data-options-flag-color="black"] span.sa_grid-item_category:before,
[data-options-button-color="black"] span.sa_grid-item_category:before {
    color: #fff;
    background: #000;
}

[data-options-accent-color="grey"] .sa_grid-item,
[data-options-flag-color="grey"] span.sa_grid-item_category:before,
[data-options-button-color="grey"] span.sa_grid-item_category:before {
    color: #000;
    background: #ddd;
}

[data-options-accent-color="aqua"] .sa_grid-item,
[data-options-flag-color="aqua"] span.sa_grid-item_category:before,
[data-options-button-color="aqua"] span.sa_grid-item_category:before {
    color: #fff;
    background: #00acc6;
}

[data-options-accent-color="orange"] .sa_grid-item,
[data-options-flag-color="orange"] span.sa_grid-item_category:before,
[data-options-button-color="orange"] span.sa_grid-item_category:before {
    color: #fff;
    background: #ffa34c;
}

[data-options-accent-color="yellow"] .sa_grid-item,
[data-options-flag-color="yellow"] span.sa_grid-item_category:before,
[data-options-button-color="yellow"] span.sa_grid-item_category:before {
    color: #000;
    background: #f1c200;
}

[data-options-accent-color="gold"] .sa_grid-item,
[data-options-flag-color="gold"] span.sa_grid-item_category:before,
[data-options-button-color="gold"] span.sa_grid-item_category:before {
    color: #000;
    background: #c59f00;
}

[data-options-accent-color="brown"] .sa_grid-item,
[data-options-flag-color="brown"] span.sa_grid-item_category:before,
[data-options-button-color="brown"] span.sa_grid-item_category:before {
    color: #000;
    background: #b15500;
}

[data-options-accent-color="purple"] .sa_grid-item,
[data-options-flag-color="purple"] span.sa_grid-item_category:before,
[data-options-button-color="purple"] span.sa_grid-item_category:before {
    color: #fff;
    background: #660096;
}

[data-options-accent-color="white"] .sa_grid-item,
[data-options-flag-color="white"] span.sa_grid-item_category:before,
[data-options-button-color="white"] span.sa_grid-item_category:before {
    color: #333;
    background: #fff;
}

.no-touchevents [data-options-accent-color="grey"] .sa_grid-item:hover h3,
.no-touchevents [data-options-accent-color="grey"] .sa_grid-item:hover .sa_brand-button,
.no-touchevents [data-options-flag-color="grey"] span.sa_grid-item_category > span,
.no-touchevents [data-options-accent-color="white"] .sa_grid-item:hover h3,
.no-touchevents [data-options-accent-color="white"] .sa_grid-item:hover .sa_brand-button,
.no-touchevents [data-options-flag-color="white"] span.sa_grid-item_category > span,
.no-touchevents [data-options-accent-color="yellow"] .sa_grid-item:hover h3,
.no-touchevents [data-options-accent-color="yellow"] .sa_grid-item:hover .sa_brand-button,
.no-touchevents [data-options-flag-color="yellow"] span.sa_grid-item_category > span,
.no-touchevents [data-options-accent-color="gold"] .sa_grid-item:hover h3,
.no-touchevents [data-options-accent-color="gold"] .sa_grid-item:hover .sa_brand-button,
.no-touchevents [data-options-flag-color="gold"] span.sa_grid-item_category > span {
    color: #333;
    border-color: #333;
    text-shadow: none;
    box-shadow: none;
}

.no-touchevents [data-options-accent-color="grey"] .sa_grid-item:hover .sa_brand-button:hover,
.no-touchevents [data-options-accent-color="white"] .sa_grid-item:hover .sa_brand-button:hover,
.no-touchevents [data-options-accent-color="yellow"] .sa_grid-item:hover .sa_brand-button:hover,
.no-touchevents [data-options-accent-color="gold"] .sa_grid-item:hover .sa_brand-button:hover {
    background: #333;
    color: #eee;
}

.sa_grid-item--hover-image [data-options-accent-color="grey"] .sa_grid-item_title p:before, 
.no-touchevents [data-options-accent-color="grey"]:hover .sa_grid-item_title p:before,
.sa_grid-item--hover-image [data-options-accent-color="white"] .sa_grid-item_title p:before, 
.no-touchevents [data-options-accent-color="white"]:hover .sa_grid-item_title p:before,
.sa_grid-item--hover-image [data-options-accent-color="yellow"] .sa_grid-item_title p:before, 
.no-touchevents [data-options-accent-color="yellow"]:hover .sa_grid-item_title p:before,
.sa_grid-item--hover-image [data-options-accent-color="gold"] .sa_grid-item_title p:before, 
.no-touchevents [data-options-accent-color="gold"]:hover .sa_grid-item_title p:before {
    border-color: #333;
}

@media only screen and (max-width: 479px) {
    .sa_brand-button {
        background: rgba(153,0,0,.8);
        border-color: rgba(153,0,0,.8);
    }

    [data-options-accent-color="blue"] .sa_brand-button {
        color: #fff;
        background: #106ab7;
        border-color: #106ab7;
    }

    [data-options-accent-color="darkblue"] .sa_brand-button {
        color: #fff;
        background: #001489;
        border-color: #001489;
    }

    [data-options-accent-color="red"] .sa_brand-button {
        color: #fff;
        background: #900;
        border-color: #900;
    }

    [data-options-accent-color="green"] .sa_brand-button {
        color: #fff;
        background: #007c17;
        border-color: #007c17;
    }

    [data-options-accent-color="black"] .sa_brand-button {
        color: #fff;
        background: #000;
        border-color: #000;
    }

    [data-options-accent-color="grey"] .sa_brand-button {
        color: #000;
        background: #ddd;
        border-color: #ddd;
    }

    [data-options-accent-color="aqua"] .sa_brand-button {
        color: #fff;
        background: #00acc6;
        border-color: #00acc6;
    }

    [data-options-accent-color="orange"] .sa_brand-button {
        color: #fff;
        background: #ffa34c;
        border-color: #ffa34c;
    }

    [data-options-accent-color="yellow"] .sa_brand-button {
        color: #000;
        background: #f1c200;
        border-color: #f1c200;
    }

    [data-options-accent-color="gold"] .sa_brand-button {
        color: #000;
        background: #c59f00;
        border-color: #c59f00;
    }

    [data-options-accent-color="brown"] .sa_brand-button {
        color: #fff;
        background: #b15500;
        border-color: #b15500;
    }

    [data-options-accent-color="purple"] .sa_brand-button {
        color: #fff;
        background: #660096;
        border-color: #660096;
    }

    [data-options-accent-color="white"] .sa_brand-button {
        color: #333;
        background: #fff;
        border-color: #fff;
    }
}




