/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

/*                                     /*
    Author:      Nathaniel Winningham
    Contact:       nathaniel@asdc.net
/*                                     */

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

* {
    --white: #ffffff;
    --black: #000000;
    --main-bg-color: #ffffff;
    --main-font-color: #000000;
    --grey: #dbdbdb;
    --dark-grey: #949494;
    --light-grey: #eeeeee;
    --off-grey: #d3d3d3;
    --red: #f38686;
    --r: #C51015;
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    color: var(--black);
    font-family: "Lato", sans-serif;
    font-size: 16px;
}

body {
    min-width: 320px;
    background-color: var(--main-bg-color);
}

p {
    line-height: 1.5;
}

img {
    display: block;
}

ul {
   padding-left: 1em;
}

.main-container {
    max-width: 1600px;
    margin: 20px auto 0;
    padding: 0 70px 0 70px;
    position: relative;
    min-height: calc(100vh - 20px);
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     /*
    Custom styles
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.big-bold {
    font-size: 150%;
    font-weight: 700;
    padding-bottom: 20px;
    color: var(--r);
    line-height: 1em;
}

.enlarged {
    font-size: 120%;
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     /*
    Header and navigation
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.main-header {
    margin: 0 0 5px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    width: 100%;
}

.main-header-logo img {
    width: 257px;
}

.main-hide-home .hide-home {
    display: none;
}

.hide-home {
    width: 100% !important;
}

.main-header-right {
    text-align: right;
}

.mht-holder {
    display: inline-block;
    background: var(--r);
    margin-bottom: 10px;
}

.main-header-tagline {
    font-size: 120%;
    color: var(--white);
    font-style: italic;
    padding: 10px 20px;
}

.main-header div img {
    display: block;
}

.main-header-right div {
    cursor: pointer;
}

.main-nav {
    z-index: 9999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.main-nav-list {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.main-nav-link {
    z-index: 9999;
    position: relative;
}

.mobile-nav-arrow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.mna-p-about,
.mna-p-aging,
.mna-p-pro,
.mna-p-consult,
.mna-p-free {
    font-size: 150%;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.mna-fit-about,
.mna-fit-aging,
.mna-fit-pro,
.mna-fit-consult,
.mna-fit-free {
    display: none;
    padding: 10px;
    background: var(--off-grey);
    width: 20%;
    text-align: center;
    border: solid 1px var(--grey);
}

.mna-fit:hover {
    background: var(--red);
}

.nav-link-a {
    padding: 20px;
    display: block;
}

.main-nav-link:hover {
    cursor: pointer;
    background-color: var(--red);
}

.main-nav-link:hover .main-nav-drop {
    display: block;
}

/* These classes are important for
mobile-only to override the absolute
positioning of the nav subpages */
.mnd-about.mobile,
.mnd-aging.mobile,
.mnd-pro.mobile,
.mnd-consult.mobile,
.mnd-free.mobile {
    position: relative !important;
    right: 0 !important;
}

.main-nav-drop {
    z-index: 9999;
    display: none;
    position: absolute;
    right: 0;
    min-width: 300px;
    text-align: right;
}

.main-nav-drop.mobile .mnd-p {
    padding: 10px 20px;
}

.main-nav-icon {
    z-index: 9999;
    position: relative;
    display: none;
    background-color: var(--grey);
    cursor: pointer;
}

.nav-icon {
    margin: 20px;
    width: 20px;
    text-align: center;
}

.main-nav-icon:hover {
    cursor: pointer;
    background-color: var(--red);
}

.mnd-p {
    padding: 20px;
    background-color: var(--grey);
}

.mnd-p:hover {
    background-color: var(--red);
}

.main-nav-list a {
    color: var(--main-font-color);
    text-decoration: none;
}

.left-nav {
    position: fixed;
    top: 250px;
    left: -10px;
    width: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: var(--grey);
    border-radius: 3px;
    z-index: 99;
}

.left-nav-list {
    margin: -10px 0 0 30px;
    z-index: 999;
}
.left-nav-list a {
    z-index: 9999;
}

.left-nav-list a img {
    margin: 0 0 10px 0;
    display: block;
    width: 40px;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     /*
    Section
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

section,
.main-section {
    margin-top: 30px;
}

.main-section-intro {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.slideshow {
    width: 67.5%;
    position: relative;
    min-height: 100px;
}

.ss-img {
    width: 100%;
}

.main-slide-text {
    width: 32.5%;
    margin: 0 0 0 10px;
    text-align: center;
    min-width: 32.5%;
    background: -webkit-gradient(linear, left top, left bottom, from(var(--grey)), to(var(--white)));
    background: linear-gradient(var(--grey), var(--white));
    border: solid 1px var(--grey);
    position: relative;
}

.main-slide-text div {
    text-align: left;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    overflow: auto;
}

.main-slide-text ul {
    text-align: left;
}

.main-slide-text ul li {
    font-weight: 700;
}

.hide-text {
    display: none;
}

.ss-img-only {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.holder-img,
.ss-img {
    width: 100%;
}

/* .ss-btns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ss-prev,
.ss-next {
    color: var(--white);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-weight: 700;
    vertical-align: middle;
    font-size: 300%;
    -webkit-transition: background-color 1s;
    transition: background-color 1s;
    padding-bottom: 5px;
} */

.ss-btns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: space-between;
    align-items: center;
}

.ss-prev,
.ss-next {
    color: var(--white);
    user-select: none;
    font-weight: 600;
    font-size: 50px;
    transition: background-color 1s;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ss-prev:hover,
.ss-next:hover {
    cursor: pointer;
    color: var(--white);
    background-color: #0000007e;
}

.ss-li:hover {
    cursor: pointer;
}

.ss-li {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    margin: 10px 20px;
}

.ss-note {
    margin: 0 20px 0 50px;
    display: none;
}

.ss-note1 {
    margin: 0 20px 0 50px;
}

.main-section-boxes {
    margin: 10px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.msb-holder:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

.msb-holder {
    width: 100%;
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
}

.msb-holder img {
    width: 100%;
}

.msb-b1 {
    overflow: hidden;
    width: 50%;
    margin-right: 5px;
}

.msb-b1 p {
    position: relative;
    font-size: 0.8em;
    background-color: #fff;
}

.msb-b2 {
    width: 50%;
    background-color: var(--light-grey);
    margin-left: 5px;
    padding: 50px;
}

.main-section-outro {
    margin: 10px 0 0 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.mso-textbox {
    margin: 0 0;
    text-align: center;
    min-width: 32.5%;
    padding: 20px;
    border: solid 1px var(--grey);
}

.mso-middle-textbox {
    margin: 0 10px;
}

.mso-textbox div {
    text-align: left;
    height: 80%;
    padding: 20px;
}

.mobile-social-icons {
    display: none;
}

.new-left-nav-list {
    text-align: center;
}

.new-left-nav-list a {
    display: inline-block;
}

.new-left-nav-list a img {
    margin: 0 0 7px 0;
    display: inline-block;
    width: 40px;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     /*
    Footer
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.main-footer {
    background-color: var(--grey);
    padding: 10px;
    text-align: center;
    /* position: absolute; */
    /* width: calc(100% - 140px); */
    /* bottom: 0; */
    max-width: 1460px;
    /* height: 65px; */
}

.pad-footer-p {
    padding: 10px 0;
}

.main-footer p a {
    text-decoration: none;
    border-bottom: solid 1px;
    color: var(--main-font-color);
}
.footer-pipe {
    padding: 0 5px;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     /*
    Child Pages
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.child-section-intro {
    margin: 0 0 10px 0;
    width: 100%;
    min-height: 500px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.cso-textbox {
    margin: 0 0;
}

.cso-left-textbox {
    /* border: solid 1px var(--grey); */
    min-width: 300px;
    width: 25%;
    max-width: 300px;
}

.cso-left-textbox img {
    width: 100%;
    display: block;
}

.cso-middle-textbox {
    padding: 0 20px 20px 20px;
    margin: 0 10px;
    -webkit-box-flex: 2;
    -ms-flex-positive: 2;
    flex-grow: 2;
    /* width: 50%; */
}

.cso-middle-textbox ul {
    padding-left: 20px;
}

.cso-middle-textbox li {
    padding-top: 5px;
}

.cso-right-textbox {
    padding: 20px;
    width: 25%;
    min-width: 300px;
    max-width: 300px;
    background-color: var(--light-grey);
}

.cso-right-textbox ul {
    padding-left: 20px;
}

.cso-right-textbox ul li {
    padding: 5px 0;
}

.cso-textbox div {
    text-align: left;
}

.cso-middle-mobile-left {
    display: none;
}

.cso-middle-mobile-left p,
.cso-left-textbox p {
    font-size: 0.8em;
    margin-bottom: 0.5em;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     /*
    Associates Page
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.intro-text {
    font-size: 150%;
    font-weight: 600;
}

.space-p {
    margin: 20px 0;
}

.float-img-left {
    float: left;
    margin: 0 20px 0 0;
    max-width: 200px;
}

.associate-section {
    width: 70%;
    /* text-align: center; */
    margin: 100px auto;
    text-align: left;
    /* padding: 100px 0; */
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     *
    Form
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.contact-form {
    margin: 0 auto;
    max-width: 500px;

}

.form1-top {
    margin: 20px 50px 0 0;
    width: 100%;
}

.form1-bottom {
    margin: 20px 50px 0 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.tb-button {
    height: 76px;
    width: 100%;
    padding: 10px;
    margin-left: 25px;
    border-radius: 3px;
    border: 1px solid var(--grey);
    background: #ffffff;
    cursor: pointer;
    color: #000;
}

/*@supports (-webkit-touch-callout: none) {
    .tb-button {
        background-color: #000;
    }
}*/

/*input[type="button"] {
    all: revert !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
}*/

.tb-button:hover {
    border: 1px solid var(--dark-grey);
}

.tb-message,
.tb-name,
.tb-email {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    outline-style: none;
    border: 1px solid var(--grey);
    background: #ffffff;
    font-size: 100%;
    font-weight: 400;
}

.tb-phone {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.tb-phone span {
    font-size: 200%;
}

.tb-parea,
.tb-pthree,
.tb-pfour {
    padding: 10px;
    margin-top: 5px;
    outline-style: none;
    border: 1px solid var(--grey);
    background: #ffffff;
    font-size: 100%;
    font-weight: 400;
}

.tb-parea,
.tb-pthree {
    width: 58px;
}

.tb-pfour {
    width: 69px;
}

.tb-message {
    height: 300px;
    resize: none;
}

.tb-parea:focus,
.tb-parea:hover,
.tb-pthree:focus,
.tb-pthree:hover,
.tb-pfour:focus,
.tb-pfour:hover,
.tb-message:focus,
.tb-message:hover,
.tb-name:hover,
.tb-name:focus,
.tb-email:hover,
.tb-email:focus {
    border: 1px solid var(--dark-grey);
}

.alert-success,
.alert-failure {
    padding: 50px 50px 0 100px;
    color: #ff0000;
}

.extra-lspace {
    line-height: 120%;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     *
    Media Queries
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

@media only screen and (max-width: 1240px) {
    .column-at-1240 {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    .cso-left-textbox {
        display: none;
    }
    .cso-middle-mobile-left {
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
        padding-top: 20px;
    }
    .cso-middle-textbox {
        padding: 0 20px 0 0;
        margin: 0 10px 0 0;
    }
}

@media only screen and (max-width: 1050px) {
    .main-section-intro, .column-at-1050 {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .main-slide-text {
        margin: 10px 0 0 0;
        width: 100%;
    }
    .main-slide-text div {
        position: relative;
    }
    .slideshow {
        width: 100%;
    }
    .column-at-1050 > div {
        margin-bottom: 10px;
    }
    .column-at-1050 > div:last-child {
        margin-bottom: 0;
    }
    .main-nav-icon {
        display: block;
    }
    .main-nav-link {
        display: none;
    }
    .main-header-right {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        position: relative;
    }
    .mht-holder {
        margin: 0 10px 0 0;
    }
    .main-header {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    .main-nav-list.mobile {
        position: absolute;
        top: -10px;
        right: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
    }
    .main-nav-link.mobile {
        display: block;
        min-width: 300px;
        background: var(--grey);
    }
    .main-nav-drop.mobile {
        z-index: 9999;
        display: none;
        position: absolute;
        top: 0;
        right: 300px;
        min-width: 300px;
        text-align: right;
        margin: 0 0 0 0;
    }
    .main-nav-link.mobile:hover {
        cursor: pointer;
        background-color: var(--red);
    }
    .main-section-outro {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .mso-middle-textbox {
        margin: 10px 0;
    }
    .main-header-tagline {
        font-size: 100%;
    }

    .cso-middle-textbox {
        margin: 0;
    }
    .main-nav-link.mobile:hover .main-nav-drop {
        display: none;
    }
    .mna-fit-about,
    .mna-fit-aging,
    .mna-fit-pro,
    .mna-fit-consult,
    .mna-fit-free {
        display: block;
    }
    .mnd-p {
        background-color: var(--dark-grey);
    }
}

@media only screen and (max-width: 900px) {
    .main-section-boxes {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .msb-box {
        width: 100%;
    }
    .msb-b1 {
        margin-right: 0;
    }
    .msb-b2 {
        margin-left: 0;
        margin-top: 10px;
    }
    .main-header-tagline {
        display: none;
    }
    .main-nav-list.mobile {
        top: -32px;
    }
    .child-section-intro {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .cso-right-textbox {
        width: 100%;
        max-width: 9999px;
    }
    .cso-middle-textbox {
        padding: 0 0 10px 0;
    }
}

@media only screen and (max-width: 700px) {
    .left-container {
        display: none;
    }
    .main-container {
        margin: 10px auto 0;
        padding: 0 10px 0 10px;
    }
    .mobile-social-icons {
        display: block;
    }


}

@media only screen and (max-width: 500px) {
    .form1-bottom {
        margin: 20px 50px 0 0;
        width: 100%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .tb-button {
        margin-left: 0;
        margin-top: 25px;
    }
}

@media only screen and (max-width: 380px) {
    .main-header-logo img {
        width: 220px;
    }
    .g-recaptcha {
        -webkit-transform: scale(0.77);
        transform: scale(0.77);
        margin-right: calc(304px*0.1);
    }
    .main-footer {
        font-size: 80%;
    }
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*                                     *
    Backoffice
/*                                     */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

select {
    margin-left: 5px;
    padding: 10px;
    outline-style: none;
    border: 1px solid var(--grey);
    background: #ffffff;
}

.column-at-1050 {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.inline-form-group {
    margin-bottom: 10px;
}

.spacer-small {
    width: 10px;
}

.dropdown-header {
    cursor: pointer;
    margin-bottom: 5px;
}

.dropdown-header span {
    display: inline-block;
    -webkit-transition: transform 0.5s, -webkit-transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -ms-transition: transform 0.5s, -webkit-transform 0.5s;
}

.dropdown-header span.active {
    -webkit-transform: rotate(0);
    transform: rotate(0);
}

.dropdown {
    display: block;
    overflow: hidden;
}

.resource-wrapper {
    position: relative;
    border: 1px solid var(--grey);
    padding: 10px;
    margin: 0 0.5em 1em 0.5em;
}

.resource-wrapper img {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--grey);
}

div.image-options-top,
div.image-options-bottom {
    width: 100%;
}

div.details {
    position: absolute;
    top: 0;
    right: 20px;
    padding: 15px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: #eee;
    z-index: 5;
}

div.image-options-top {
    padding-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.7);
}

div.image-options-bottom {
    padding-top: 5px;
}

.gray-out {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.modal {
    position: absolute;
    top: 20%;
    width: 100%;
    max-width: 700px;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 10px;
    background-color: #f7f7f7;
    z-index: 11;
}

.modal-small {
    max-width: 400px;
}

.gray {
    color: #666;
}

div.tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

div.tabs p {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 33.333%;
    flex: 1 1 33.333%;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

div.tabs p:hover,
.tabs p.active {
    background-color: var(--red);
}
