/* ================================================================
   WORLD TENNIS MUSEUM — COLLAGE HOMEPAGE
================================================================ */

.wtm-collage-home {
    --wtm-bg: #f5f3ee;
    --wtm-bg-alt: #ebe8e1;
    --wtm-surface: #ffffff;
    --wtm-dark: #151515;
    --wtm-muted: #696761;
    --wtm-border: rgba(21, 21, 21, 0.12);

    --wtm-collage-gap: 10px;
    --wtm-carousel-gap: 20px;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: var(--wtm-bg);
    color: var(--wtm-dark);
}


.wtm-collage-home,
.wtm-collage-home *,
.wtm-collage-home *::before,
.wtm-collage-home *::after {
    box-sizing: border-box;
}


.wtm-collage-home a {
    color: inherit;
    text-decoration: none;
}


/* ================================================================
   REMOVE GRIDLOVE GAP ABOVE CUSTOM PAGE
================================================================ */

/*
 * Gridlove can add spacing around its normal page-content region.
 *
 * These rules only apply while /test2 exists on the page.
 */

body:has(.wtm-collage-home)
.gridlove-site-content,

body:has(.wtm-collage-home)
.gridlove-content,

body:has(.wtm-collage-home)
.gridlove-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


body:has(.wtm-collage-home)
.gridlove-header-wrapper {
    margin-bottom: 0 !important;
}


.wtm-collage-home {
    margin-top: -1px;
}


/* ================================================================
   DESKTOP WIDTH
================================================================ */

.wtm-collage-shell,
.wtm-section-shell {
    width: calc(100% - 64px);

    max-width: 1440px;

    margin-inline: auto;
}


/* ================================================================
   COLLAGE HERO
================================================================ */

.wtm-collage-hero {
    padding: 0 0 74px;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            var(--wtm-bg) 100%
        );
}


/* ================================================================
   LOGO / WORDMARK
================================================================ */

.wtm-collage-intro {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 48px 20px 42px;

    text-align: center;
}


.wtm-collage-intro__logo {
    width: 210px;
    max-width: 45vw;
}


.wtm-collage-intro__logo-image {
    display: block;

    width: 100%;
    height: auto;
}


.wtm-collage-intro__welcome {
    margin: 20px 0 8px;

    color: #77736b;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.24em;

    text-transform: uppercase;
}


.wtm-collage-intro h1 {
    margin: 0;

    font-family:
        "Cinzel",
        "Times New Roman",
        serif;

    font-size:
        clamp(
            42px,
            5vw,
            72px
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.045em;

    text-transform: uppercase;

    background:
        linear-gradient(
            90deg,
            #e0c354 0%,
            #c89b28 45%,
            #9b6b1e 75%,
            #704317 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color: transparent;
}


.wtm-collage-intro__subtitle {
    max-width: 720px;

    margin: 20px auto 0;

    color: #66625b;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.65;

    letter-spacing: 0.01em;
}


/* ================================================================
   PLAYER COLLAGE
================================================================ */

.wtm-player-collage {
    display: grid;

    /*
     * ALWAYS six cards across.
     */
    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    gap: var(--wtm-collage-gap);
}


/* ================================================================
   PLAYER TILE
================================================================ */

.wtm-player-tile {
    position: relative;

    display: block;

    min-width: 0;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: 0;

    background: #d6d3cb;

    isolation: isolate;

    transform: scale(1);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}


.wtm-player-tile__image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 260ms ease,
        filter 260ms ease;
}


.wtm-player-tile__placeholder {
    background:
        linear-gradient(
            135deg,
            #d3d0c9,
            #ebe8e1
        );
}


/* ================================================================
   HOVER DARKENING
================================================================ */

.wtm-player-tile__shade {
    position: absolute;
    z-index: 2;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.52);

    opacity: 0;

    transition:
        opacity 220ms ease;
}


/* ================================================================
   PLAYER NAME
================================================================ */

.wtm-player-tile__name {
    position: absolute;
    z-index: 3;

    top: 50%;
    right: 10px;
    left: 10px;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size:
        clamp(
            13px,
            1.35vw,
            21px
        );

    font-weight: 600;

    line-height: 1.08;

    text-align: center;

    opacity: 0;

    transform:
        translateY(
            calc(-50% + 8px)
        );

    transition:
        opacity 220ms ease,
        transform 220ms ease;
}


/* ================================================================
   PLAYER HOVER
================================================================ */

@media (hover: hover) and (pointer: fine) {

    .wtm-player-tile:hover {
        z-index: 20;

        transform:
            scale(1.075);

        box-shadow:
            0 20px 40px
            rgba(0, 0, 0, 0.25);
    }


    .wtm-player-tile:hover
    .wtm-player-tile__image {
        transform:
            scale(1.04);

        filter:
            brightness(0.62);
    }


    .wtm-player-tile:hover
    .wtm-player-tile__shade {
        opacity: 1;
    }


    .wtm-player-tile:hover
    .wtm-player-tile__name {
        opacity: 1;

        transform:
            translateY(-50%);
    }

}


/* ================================================================
   SECTIONS
================================================================ */

.wtm-section {
    padding: 90px 0;
}


.wtm-section--alternate {
    background: var(--wtm-bg-alt);
}


.wtm-section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 36px;
}


.wtm-eyebrow {
    margin: 0 0 12px;

    color: var(--wtm-muted);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}


.wtm-section-title {
    max-width: 900px;

    margin: 0;

    color: var(--wtm-dark);

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size:
        clamp(
            34px,
            4vw,
            56px
        );

    font-weight: 600;

    line-height: 1.04;

    letter-spacing: -0.025em;
}


/* ================================================================
   CAROUSELS
================================================================ */

.wtm-carousel {
    position: relative;
}


.wtm-carousel__viewport {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    overscroll-behavior-x: contain;
}


.wtm-carousel__viewport::-webkit-scrollbar {
    display: none;
}


.wtm-carousel__track {
    display: flex;

    gap: var(--wtm-carousel-gap);
}


.wtm-carousel-card {
    flex:
        0
        0
        calc(
            (
                100% -
                (var(--wtm-carousel-gap) * 3)
            )
            / 4
        );

    min-width: 0;

    background: var(--wtm-surface);

    scroll-snap-align: start;

    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}


.wtm-carousel-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 15px 34px
        rgba(0, 0, 0, 0.1);
}


.wtm-carousel-card__media {
    display: flex;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}


.wtm-carousel-placeholder {
    background:
        linear-gradient(
            135deg,
            #d7d4cc,
            #ece9e2
        );
}


.wtm-placeholder {
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #d7d4cc,
            #ece9e2
        );
}


.wtm-placeholder span {
    padding: 12px;

    color: #77736c;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.wtm-carousel-card__content {
    padding: 21px;
}


.wtm-carousel-card__content h3 {
    margin: 0 0 15px;

    color: var(--wtm-dark);

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size: 21px;
    font-weight: 600;

    line-height: 1.15;
}


.wtm-carousel-card__content span {
    color: var(--wtm-muted);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* ================================================================
   CAROUSEL BUTTONS
================================================================ */

.wtm-carousel-controls {
    display: flex;

    flex-shrink: 0;

    gap: 8px;
}


.wtm-carousel-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;

    border:
        1px solid
        var(--wtm-border);

    border-radius: 50%;

    background: transparent;

    color: var(--wtm-dark);

    font: inherit;
    font-size: 19px;

    cursor: pointer;

    transition:
        background 180ms ease,
        color 180ms ease;
}


.wtm-carousel-button:hover {
    background: var(--wtm-dark);

    color: #ffffff;
}


/* ================================================================
   FINAL CTA
================================================================ */

.wtm-final-cta {
    padding: 110px 0;

    background: #151515;

    color: #ffffff;
}


.wtm-final-cta__inner {
    max-width: 920px;
}


.wtm-final-cta h2 {
    margin: 0;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size:
        clamp(
            42px,
            6vw,
            76px
        );

    font-weight: 600;

    line-height: 1;

    letter-spacing: -0.03em;
}


.wtm-final-cta
.wtm-eyebrow {
    color:
        rgba(
            255,
            255,
            255,
            0.58
        );
}


.wtm-final-cta__inner
> p:not(.wtm-eyebrow) {
    max-width: 690px;

    margin:
        28px
        0
        34px;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size: 18px;

    line-height: 1.7;
}


.wtm-button {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding:
        16px
        22px;

    background: #ffffff;

    color:
        var(--wtm-dark)
        !important;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 180ms ease;
}


.wtm-button:hover {
    transform:
        translateY(-2px);
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1000px) {

    .wtm-collage-shell,
    .wtm-section-shell {
        width:
            calc(
                100% - 36px
            );
    }


    .wtm-carousel-card {
        flex-basis:
            calc(
                (
                    100% -
                    (var(--wtm-carousel-gap) * 2)
                )
                / 3
            );
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 560px) {
    
    /*
    |--------------------------------------------------------------------------
    | Force section headings left aligned on mobile
    |--------------------------------------------------------------------------
    */
    
    .wtm-section-header {
        text-align: left;
    }
    
    
    .wtm-section-header > div:first-child {
        width: 100%;
    
        text-align: left;
    }
    
    
    .wtm-section-header .wtm-eyebrow,
    .wtm-section-header .wtm-section-title {
        text-align: left !important;
    }

    .wtm-collage-home {
        --wtm-collage-gap: 3px;
        --wtm-carousel-gap: 12px;
    }


    .wtm-collage-shell,
    .wtm-section-shell {
        width:
            calc(
                100% - 16px
            );
    }


    .wtm-collage-hero {
        padding-bottom: 46px;
    }


    .wtm-collage-intro {
        padding:
            26px
            10px
            24px;
    }


    .wtm-collage-intro__logo {
        width: 120px;
    }


    .wtm-collage-intro__welcome {
        margin-top: 14px;
        margin-bottom: 7px;
    
        font-size: 9px;
    
        letter-spacing: 0.2em;
    }
    
    
    .wtm-collage-intro h1 {
        margin: 0;
    
        font-size: 26px;
    
        letter-spacing: 0.04em;
    }
    
    
    .wtm-collage-intro__subtitle {
        max-width: 330px;
    
        margin-top: 13px;
    
        font-size: 12px;
    
        line-height: 1.55;
    }


    /*
    |--------------------------------------------------------------------------
    | Still six columns on mobile
    |--------------------------------------------------------------------------
    */

    .wtm-player-collage {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            );
    }


    /*
     * Names remain hidden on mobile because there is no reliable hover.
     */
    .wtm-player-tile__name,
    .wtm-player-tile__shade {
        display: none;
    }


    .wtm-section {
        padding: 58px 0;
    }


    .wtm-section-header {
        gap: 14px;

        margin-bottom: 25px;
    }


    .wtm-section-title {
        font-size: 32px;
    }


    .wtm-carousel-card {
        /*
         * Show most of one card and hint at the next.
         */
        flex-basis: 82%;
    }


    .wtm-carousel-card__content {
        padding: 18px;
    }


    .wtm-carousel-button {
        width: 39px;
        height: 39px;
    }


    .wtm-final-cta {
        padding: 72px 0;
    }


    .wtm-final-cta h2 {
        font-size: 43px;
    }

}


/* ================================================================
   REDUCED MOTION
================================================================ */

@media (
    prefers-reduced-motion: reduce
) {

    .wtm-collage-home *,
    .wtm-collage-home *::before,
    .wtm-collage-home *::after {
        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;
    }

}