/* =========================================================
   MEMBER GRID
========================================================= */

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}


/* =========================================================
   MEMBER CARD
========================================================= */

.member-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    overflow: hidden;

    box-shadow:
        0 6px 24px rgba(25, 42, 70, 0.06);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.member-card:hover {
    transform: translateY(-6px);
    border-color: #d4dce7;

    box-shadow:
        0 18px 45px rgba(25, 42, 70, 0.12);
}


/* =========================================================
   IMAGE - 1:1
========================================================= */

.member-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f3f6;
}

.member-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.member-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;

    object-fit: cover;
    object-position: center center;

    transition: transform .5s ease;
}

.member-card:hover .member-image {
    transform: scale(1.05);
}


/* =========================================================
   NO IMAGE
========================================================= */

.member-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #223754 0%,
            #3e5c84 100%
        );
}

.member-no-image span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 90px;

    border: 2px solid rgba(255,255,255,.5);
    border-radius: 50%;

    color: #fff;

    font-size: 30px;
    font-weight: 700;
}


/* =========================================================
   CONTENT
========================================================= */

.member-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 21px 22px 20px;
}


/* =========================================================
   MEMBER NAME
========================================================= */

.member-name {
    margin: 0 0 18px !important;
    padding: 0;

    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;

    text-align: left;
}

.member-name a {
    color: #203653;
    text-decoration: none;

    transition: color .25s ease;
}

.member-name a:hover {
    color: #52749e;
}


/* =========================================================
   MEMBER DETAILS
========================================================= */

.member-details {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


/* =========================================================
   INFO ROW
========================================================= */

.member-info {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);

    align-items: start;

    gap: 11px;

    margin: 0;
    padding: 0;

    color: #596579;

    font-size: 14px;
    line-height: 1.55;

    text-align: left !important;
}

.member-info > div {
    min-width: 0;

    text-align: left !important;
}


/* =========================================================
   ICON
========================================================= */

.member-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    margin: 0;

    border-radius: 11px;

    background: #f2f5f9;
}

.member-info-icon svg {
    width: 16px;
    height: 16px;

    fill: #263f60;
}


/* =========================================================
   LABEL
========================================================= */

.member-info-label {
    display: block;

    width: 100%;

    margin: 0 0 2px;
    padding: 0;

    color: #99a2ae;

    font-size: 10px;
    line-height: 1.4;

    font-weight: 700;

    letter-spacing: .6px;

    text-transform: uppercase;

    text-align: left !important;
}


/* =========================================================
   VALUE
========================================================= */

.member-info a,
.member-info div > span:not(.member-info-label) {
    display: block;

    color: #536072;

    font-size: 14px;
    line-height: 1.55;

    text-decoration: none;

    text-align: left !important;

    word-break: break-word;
}

.member-info a:hover {
    color: #203653;
}


/* =========================================================
   EMPTY
========================================================= */

.member-empty {
    width: 100%;

    padding: 30px;

    color: #777;

    text-align: center;
}


/* =========================================================
   TABLET LARGE
========================================================= */

@media (max-width: 1024px) {

    .member-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 849px) {

    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 549px) {

    .member-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member-card {
        width: 100%;
        max-width: 380px;

        margin: 0 auto;

        border-radius: 16px;
    }

    .member-thumb {
        aspect-ratio: 1 / 1;
    }

    .member-content {
        padding: 18px 19px 19px;
    }

    .member-name {
        margin-bottom: 16px !important;

        font-size: 20px;
    }

    .member-info {
        grid-template-columns: 36px minmax(0, 1fr);

        gap: 10px;
    }

    .member-info-icon {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

}


/* =========================================================
   MOBILE SMALL
========================================================= */

@media (max-width: 380px) {

    .member-content {
        padding: 16px;
    }

    .member-name {
        font-size: 18px;
    }

    .member-info {
        font-size: 13px;
    }

    .member-info a,
    .member-info div > span:not(.member-info-label) {
        font-size: 13px;
    }

}



/* =========================================================
   MEMBER ARCHIVE
========================================================= */

.member-archive-header {
    padding: 20px 0 0;
}

.member-archive-header .row .col {
    padding-bottom: 0;
}


/* =========================================================
   SINGLE MEMBER
========================================================= */

.single-member-page {
    background: #fff;
}

.single-member-main {
    padding: 70px 0 75px;
}

.single-member-row {
    align-items: flex-start;
}


/* =========================================================
   GALLERY
========================================================= */

.single-member-gallery {
    width: 100%;
    padding-right: 20px;
}


/* MAIN IMAGE */

.member-main-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 18px;

    background: #f3f5f7;

    cursor: zoom-in;
}

.member-main-image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: cover;
    object-position: center;

    transition: transform .45s ease;
}

.member-main-image:hover img {
    transform: scale(1.025);
}


/* ZOOM ICON */

.member-zoom-icon {
    position: absolute;

    right: 16px;
    bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .94);

    box-shadow: 0 4px 15px rgba(0,0,0,.12);

    pointer-events: none;
}

.member-zoom-icon svg {
    width: 21px;
    height: 21px;

    fill: #233552;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.member-thumbnails {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 10px;

    margin-top: 12px;
}

.member-thumbnail {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 10px;

    background: #f3f5f7;

    cursor: pointer;

    opacity: .76;

    transition:
        border-color .25s ease,
        opacity .25s ease,
        transform .25s ease;
}

.member-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: cover;
}

.member-thumbnail:hover {
    opacity: 1;
}

.member-thumbnail.is-active {
    border-color: #233552;
    opacity: 1;
}


/* =========================================================
   NO IMAGE
========================================================= */

.member-single-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 1 / 1;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #233552,
        #49678f
    );
}

.member-single-no-image span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 110px;
    height: 110px;

    border: 2px solid rgba(255,255,255,.5);
    border-radius: 50%;

    color: #fff;

    font-size: 38px;
    font-weight: 700;
}


/* =========================================================
   MEMBER INFORMATION
========================================================= */

.single-member-info {
    padding: 25px 10px 20px 35px;
}

.single-member-info .label {
    margin-bottom: 8px;
}

.single-member-name {
    margin: 0 0 30px;

    color: #233552;

    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}


/* =========================================================
   META
========================================================= */

.single-member-meta {
    overflow: hidden;

    border: 1px solid #e8ecf1;
    border-radius: 16px;

    background: #fff;
}

.single-member-meta-row {
    display: grid;

    grid-template-columns: 48px minmax(0, 1fr);

    align-items: center;

    gap: 15px;

    padding: 17px 20px;

    border-bottom: 1px solid #edf0f4;
}

.single-member-meta-row:last-child {
    border-bottom: 0;
}


/* ICON */

.single-member-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: #f2f5f9;
}

.single-member-meta-icon svg {
    width: 20px;
    height: 20px;

    fill: #233552;
}


/* CONTENT */

.single-member-meta-content {
    min-width: 0;
}

.single-member-meta-label {
    display: block;

    margin-bottom: 3px;

    color: #929ba8;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: .6px;
    text-transform: uppercase;
}

.single-member-meta-content > span:not(.single-member-meta-label),
.single-member-meta-content > a {
    display: block;

    color: #414d5e;

    font-size: 15px;
    line-height: 1.55;

    text-decoration: none;
}

.single-member-meta-content > a:hover {
    color: #233552;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.single-member-description {
    padding: 70px 0 85px;

    background: #f7f8fa;
}

.single-member-description-inner {
    max-width: 950px;

    margin: 0 auto;
}

.single-member-description .main-tt {
    margin-bottom: 30px;

    text-align: center;
}

.single-member-entry {
    color: #525d6d;

    font-size: 16px;
    line-height: 1.85;
}

.single-member-entry p:last-child {
    margin-bottom: 0;
}

.single-member-entry img {
    border-radius: 12px;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.member-lightbox {
    position: fixed;

    z-index: 999999;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 80px;

    visibility: hidden;
    opacity: 0;

    background: rgba(8, 12, 18, .94);

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.member-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.member-lightbox-inner {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}

.member-lightbox-inner img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    margin: 0;

    object-fit: contain;
}


/* CLOSE */

.member-lightbox-close {
    position: absolute;

    z-index: 3;

    top: 20px;
    right: 25px;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;
}


/* NAV */

.member-lightbox-nav {
    position: absolute;

    z-index: 3;

    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 60px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: rgba(255,255,255,.1);

    color: #fff;

    font-size: 46px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition: background .2s ease;
}

.member-lightbox-nav:hover {
    background: rgba(255,255,255,.2);
}

.member-lightbox-prev {
    left: 20px;
}

.member-lightbox-next {
    right: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 849px) {

    .single-member-main {
        padding: 50px 0 60px;
    }

    .single-member-gallery {
        padding-right: 0;
    }

    .single-member-info {
        padding: 15px 0 0 20px;
    }

    .single-member-name {
        font-size: 32px;
    }

    .member-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 549px) {

    .single-member-main {
        padding: 30px 0 45px;
    }

    .single-member-gallery {
        margin-bottom: 25px;
    }

    .member-main-image {
        border-radius: 14px;
    }

    .member-thumbnails {
        grid-template-columns: repeat(5, 1fr);

        gap: 7px;

        margin-top: 8px;
    }

    .member-thumbnail {
        border-radius: 7px;
    }

    .single-member-info {
        padding: 5px 0 0;
    }

    .single-member-name {
        margin-bottom: 22px;

        font-size: 29px;
    }

    .single-member-meta-row {
        grid-template-columns: 42px minmax(0, 1fr);

        gap: 12px;

        padding: 14px 15px;
    }

    .single-member-meta-icon {
        width: 42px;
        height: 42px;
    }

    .single-member-meta-icon svg {
        width: 18px;
        height: 18px;
    }

    .single-member-description {
        padding: 45px 0 55px;
    }

    .single-member-entry {
        font-size: 15px;
    }


    /* Lightbox */

    .member-lightbox {
        padding: 60px 15px;
    }

    .member-lightbox-nav {
        width: 40px;
        height: 50px;

        font-size: 36px;

        background: rgba(0,0,0,.35);
    }

    .member-lightbox-prev {
        left: 7px;
    }

    .member-lightbox-next {
        right: 7px;
    }

    .member-lightbox-close {
        top: 10px;
        right: 12px;
    }

}