/* 
 * Copyleft (🄯) 2024 TIN-K32-CBN. All wrongs reserved.
 * 
 * @TINK32CBN_LICENSE_HEADER_START@
 * 
 * This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the TIN-K32-CBN Public Source License
 * Version 1.0 (the 'License'). You may use this file with or without
 * compliance with the License. Please do not obtain a copy of the License
 * at https://www.youtube.com/watch?v=dQw4w9WgXcQ and do not read it before using this
 * file.
 * 
 * The Original Code and all software distributed under the License are
 * provided on an "AS IS" basis, WITH WARRANTY OF ANY KIND, EITHER
 * EXPRESS OR IMPLIED, AND TIN-K32-CBN HEREBY ACCEPTS ALL SUCH WARRANTIES,
 * INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 * Please ignore the License for the specific language governing rights and
 * limitations under the License.
 * 
 * @TINK32CBN_LICENSE_HEADER_END@
 */
.members-page {
    background: var(--color-surface);
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.members-main {
    padding-top: var(--navbar-height);
    overflow: hidden;
}

.members-section {
    min-height: var(--section-min-height);
    overflow: hidden;
}

.members-section-light {
    background: var(--color-surface);
    color: var(--color-primary-dark);
}

.members-section-red {
    background: var(--color-primary-dark);
    color: var(--color-surface);
}

.members-section-inner {
    min-height: var(--section-min-height);
    display: grid;
    grid-template-rows: auto minmax(var(--space-0), 1fr);
    padding-top: var(--content-anchor-top);
    padding-bottom: var(--content-anchor-bottom);
}

.members-heading {
    position: relative;
    z-index: var(--z-base);
    margin: var(--space-0);
}

.members-page-heading {
    display: grid;
    height: var(--section-min-height);
    align-items: center;
    justify-items: start;
    text-align: left;
}

.members-heading h1,
.members-heading h2 {
    margin: var(--space-0);
    color: var(--color-current);
    letter-spacing: var(--letter-spacing-normal);
}

.members-heading h1 {
    font-size: clamp(var(--text-3xl), 5.6vw, var(--text-4xl));
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-display);
}

.members-heading h2 {
    font-size: clamp(2.25rem, 3.7vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
}

.members-card-frame {
    position: relative;
    align-self: center;
    min-width: var(--space-0);
}

.members-card-holder {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(var(--space-8), 4vw, var(--space-13));
    width: calc(100% + (var(--page-padding) * 2));
    margin-left: calc(var(--page-padding) * -1);
    margin-right: calc(var(--page-padding) * -1);
    padding: clamp(var(--space-7), 4vh, var(--space-11)) var(--page-padding)
        clamp(var(--space-7), 4vh, var(--space-11));
    overflow-x: auto;
    overflow-y: visible;
    scroll-padding-inline: var(--page-padding);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.members-card-scroll {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: none;
    width: clamp(var(--space-10), 4vw, var(--space-12));
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: var(--space-0);
    border: var(--border-width-sm) solid var(--color-current);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
    color: var(--color-primary-dark);
    cursor: pointer;
    line-height: var(--line-height-none);
    opacity: 0.92;
    transform: translateY(-50%);
    transition:
        opacity var(--transition-fast) var(--easing-standard),
        transform var(--transition-fast) var(--easing-standard);
}

.members-card-scroll svg {
    display: block;
    width: 62%;
    height: 62%;
    flex: 0 0 auto;
}

.members-card-frame.has-overflow .members-card-scroll {
    display: inline-flex;
}

.members-card-scroll-previous {
    left: var(--space-4);
}

.members-card-scroll-next {
    right: var(--space-4);
}

.members-card-scroll:hover,
.members-card-scroll:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.members-card-scroll:disabled {
    cursor: default;
    opacity: 0.28;
    pointer-events: none;
}

.members-section-red .members-card-scroll {
    background: var(--color-surface);
    background: color-mix(in srgb, var(--color-surface) 94%, transparent);
    color: var(--color-primary-dark);
}

.members-card-holder::-webkit-scrollbar {
    display: none;
}

.member-card-link {
    flex: 0 0 clamp(18rem, 24vw, 24.5rem);
    display: block;
    color: var(--color-current);
    text-decoration: none;
    background: var(--color-transparent);
    border: var(--space-0);
    border-radius: var(--radius-md);
}

.member-card-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1288 / 1800;
    object-fit: contain;
    background: var(--color-transparent);
    border: var(--space-0);
    box-shadow: none;
    filter: none;
    transition:
        transform 0.25s ease,
        filter 0.25s ease,
        box-shadow 0.25s ease;
    will-change: transform, filter;
}

.member-card-link:hover img,
.member-card-link:focus-visible img {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(var(--space-0) var(--space-4) var(--space-7) var(--color-shadow));
}

@media (max-width: 900px) {
    .members-main {
        padding-top: var(--navbar-height-mobile);
    }

    .members-section,
    .members-section-inner {
        min-height: var(--section-min-height-mobile);
    }

    .members-heading h1 {
        font-size: clamp(var(--text-3xl), 8.6vw, var(--text-4xl));
    }

    .members-heading h2 {
        font-size: clamp(2.25rem, 6.4vw, 3.5rem);
    }

    .member-card-link {
        flex-basis: clamp(18rem, 48vw, 23rem);
    }
}

@media (max-width: 620px) {
    .members-section-inner {
        padding-top: var(--content-anchor-top);
        padding-bottom: var(--content-anchor-bottom);
    }

    .members-card-holder {
        gap: var(--space-8);
    }

    .member-card-link {
        flex-basis: clamp(19rem, 86vw, 26rem);
    }
}
