.memories-page {
    background: #fff;
}


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.memories-hero {
    background: #0c2948;
    color: #fff;
    padding: 42px 0 72px;
}

.memories-hero .gallery-back {
    display: inline-block;
    margin-bottom: 54px;

    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .95rem;

    transition: color .2s ease;
}

.memories-hero .gallery-back:hover {
    color: #fff;
}

.memories-hero .eyebrow {
    margin: 0 0 12px;

    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;

    color: rgba(255,255,255,.68);
}

.memories-hero h1 {
    margin: 0 0 18px;

    color: #fff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: .98;
}

.memories-hero-copy > p:last-child {
    max-width: 690px;
    margin: 0;

    color: rgba(255,255,255,.83);

    font-size: 1.1rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   SECTION
--------------------------------------------------------- */

.memories-section {
    padding: 90px 0 110px;
}

.memories-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 42px;
}

.memories-heading-row h2 {
    margin: 0 0 9px;

    color: #0c2948;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
}

.memories-count {
    margin: 0;

    color: #64748b;
    font-size: 1rem;
}


/* ---------------------------------------------------------
   CAROUSEL
--------------------------------------------------------- */

.memories-gallery-wrap {
    position: relative;
}

.memories-track {
    display: flex;
    gap: 24px;

    overflow-x: auto;

    padding: 4px 4px 26px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.memories-track::-webkit-scrollbar {
    display: none;
}


/* ---------------------------------------------------------
   MEMORY CARD
--------------------------------------------------------- */

.memory-card {
    position: relative;

    min-height: 390px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 42px 34px 34px;

    background: #f7f8fa;

    border: 1px solid #dfe5ec;
    border-radius: 12px;

    scroll-snap-align: start;

    box-sizing: border-box;
}

.memory-card--short {
    flex: 0 0 360px;
}

.memory-card--medium {
    flex: 0 0 520px;
}

.memory-card--long {
    flex: 0 0 min(100%, 980px);
}

.memory-card--long .memory-text {
    font-size: 1.3rem;
    line-height: 1.55;
    max-width: 820px;
}

.memory-card--short .memory-text {
    font-size: 1.55rem;
    line-height: 1.45;
}

.memory-card--medium .memory-text {
    font-size: 1.4rem;
    line-height: 1.5;
}

.memory-quote-mark {
    height: 46px;
    margin-bottom: 12px;

    color: #c6ced8;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    line-height: .8;

    user-select: none;
}

.memory-text {
    margin: 0;

    color: #0c2948;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 1.6vw, 1.55rem);
    font-weight: 400;
    line-height: 1.48;
}

.memory-attribution {
    margin-top: 34px;
    padding-top: 20px;

    border-top: 1px solid #d9e0e7;
}

.memory-name {
    display: block;

    color: #0c2948;

    font-size: .95rem;
    font-weight: 700;
}

.memory-label {
    display: block;

    margin-top: 4px;

    color: #738196;
    font-size: .85rem;
}

/* ---------------------------------------------------------
   SCROLL BUTTONS
--------------------------------------------------------- */

.memories-scroll-button {
    position: absolute;
    z-index: 4;
    top: 50%;

    width: 48px;
    height: 48px;

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

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #0c2948;
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 6px 22px rgba(12, 41, 72, .17);

    transform: translateY(-70%);

    transition:
        opacity .2s ease,
        transform .2s ease,
        background .2s ease;
}

.memories-scroll-button:hover {
    transform: translateY(-70%) scale(1.06);
}

.memories-scroll-button:disabled {
    opacity: .25;
    cursor: default;
}

.memories-scroll-button--prev {
    left: -24px;
}

.memories-scroll-button--next {
    right: -24px;
}


/* ---------------------------------------------------------
   EMPTY STATE
--------------------------------------------------------- */

.memories-empty {
    padding: 75px 30px;

    text-align: center;

    background: #f7f8fa;

    border: 1px solid #dfe5ec;
    border-radius: 22px;
}

.memories-empty h3 {
    margin: 0 0 14px;

    color: #0c2948;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.memories-empty p {
    max-width: 560px;

    margin: 0 auto 27px;

    color: #64748b;

    font-size: 1rem;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.memories-page .site-footer {
    padding: 38px 0;

    background: #0c2948;
    color: rgba(255,255,255,.72);

    text-align: center;
}

.memories-page .site-footer p {
    margin: 0;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 760px) {

    .memories-hero {
        padding: 30px 0 54px;
    }

    .memories-hero .gallery-back {
        margin-bottom: 38px;
    }

    .memories-section {
        padding: 62px 0 80px;
    }

    .memories-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .memory-card {
        flex: 0 0 calc(100vw - 48px);

        min-width: 0;
        min-height: 360px;

        padding: 36px 28px 30px;
    }
  
    .memory-card--short,
    .memory-card--medium,
    .memory-card--long {
        flex: 0 0 calc(100vw - 48px);
        min-width: 0;
    }
  
  
    .memory-text {
        font-size: 1.35rem;
    }

    .memories-scroll-button {
        display: none;
    }

    .memories-track {
        margin-right: -24px;
        padding-right: 24px;
    }

}
