:root {
    --primary-background: white;
    --secondary-background: #54595F;
    --primary-text: black;
    --secondary-text: white;
    --link-color: #145DA0;
    --link-hover: #246DB0;
    --secondary-link-color: #CCC;
    --secondary-link-hover: white;
    --button-background: #051D40;
    --button-text: white;
    --button-background-hover: #253D60;
    --social-background: #145DA0;
    --social-icon: white;
    --social-icon-hover: #649DFF;
}

* {
    box-sizing: border-box;
}

.member-grid {
    display: flex;
    flex-direction: column;
}

.member-grid-item {
    padding: 10px;
    display :flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: white;
}

.member-grid-item:nth-child(2n) {
    background-color: #ddd;
}

.member-social-bar {
    display: flex;
    flex-direction: row;
    align-content: center;
    gap: 20px;
    align-items: center;
}

.member-social-icon {
    font-size: 25px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.member-social-icon i {
    color: black;
}

.member-social-icon i:hover {
    color: var(--social-background);
}

.contact-name {
    font-weight: normal;
    font-size: 14px;
}

.contact-special {
    font-weight: normal;
    font-size: 14px;
    font-style: italic;
}

.member-grid img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    object-position: center;
}

h3 {
    margin: 0;
}

h4 {
    margin: 5px;
}

.grid-logo {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.pillars-popup-bg {
    position: fixed;
    top: 0;
    lefT: 0;
    right: 0;
    bottom: 0;
    background-color: #00000040;
    z-index: 500000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-window {
    max-width: 80%;
    max-height: 80%;
    background-color: white;
}

.popup-header {
    display: flex;
    flex-direction: row;
    background-image: linear-gradient(to bottom, #145DA0, #051D40);
    color: white;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    font-size: 18px;
    padding-right: 30px;
}

.popup-button-close {
    background-image: linear-gradient(to top, #145DA0, #051D40);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #246DB0;
    width: 25px;
    height: 25px;
    font-size: 20px;
}

.popup-body {
    border-bottom: 8px solid #051D40;
    padding: 20px;
}

.popup-body img {
    display: block;
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
    width: 100%;
}

.popup-line {
    margin-top: 10px;
    margin-bottom: 10px;
    display :flex;
    flex-direction: row;
    gap: 20px;
    font-size: 18px;
}

.subnav {
    background-color: #2b3135;
    padding-top: 15px;
    padding-bottom: 15px;
}

.subnav .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
}

.subnav a {
    background-color: #ccc;
    color: #145DA0;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 40px 1fr;
    height: 40px;
    align-items: center;
    padding: 2px;
}

.subnav a i {
    font-size: 24px;
}

.subnav a.active {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #CCC;
}

.subnav a:hover {
    background-color: #AAA;
    color: #145DA0;
}

#AppContainer table {
    margin-top: 20px!important;
}

.shameless-repeater-container.layout-table .shameless-field-title {
    display: none;
}

.collapse {
    max-height: 200px;
}

@media only screen and (max-width: 1023px) {
    .subnav .section-inner {
        display: flex;
        flex-direction: column;
    }
}

@media only screen and (max-width: 767px) {
    .member-grid-item {
        flex-direction: column;
        gap: 10px;
        background-color: white !important;
        box-shadow: 0 0 2px 2px #00000040;
        border-radius: 10px;
        align-items: center;
        text-align: center;
    }

    .member-grid {
        gap :20px;
    }

    .member-social-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .contact-name.separator {
        display: none;
    }

    .contact-name {
        display: block;
    }

    .popup-line {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }

    .member-grid-item h3 br {
        display: none;
    }
}