/* Shared Wedding Stories and Bloom Bar gallery styles. */
.wedding-stories h2 {
    margin: 0;
    font: 400 clamp(3.5rem, 6vw, 7rem)/.9 var(--serif);
    letter-spacing: -.04em;
    color: var(--brown)
}

.wedding-stories-heading {
    width: min(1380px, 100%);
    margin: 0 auto 70px
}

.wedding-stories {
    padding: clamp(90px, 10vw, 160px) 5vw;
    background: #d9d5b8
}

.wedding-stories-heading p {
    margin: 20px 0 0;
    font: italic 1.25rem/1.4 var(--serif);
    color: var(--brown)
}

.wedding-story-grid {
    width: min(1380px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr .8fr 1fr;
    grid-template-rows: auto auto;
    gap: 28px
}

.wedding-story-grid figure {
    margin: 0;
    overflow: hidden
}

.wedding-story-a {
    height: 660px;
    grid-row: 1/3
}

.wedding-story-b {
    height: 340px
}

.wedding-story-c {
    height: 520px;
    grid-column: 3;
    grid-row: 1/3;
    align-self: end
}

.wedding-story-copy {
    padding: 45px 20px;
    align-self: center
}

.wedding-story-copy p {
    font: 400 1rem/1.8 var(--sans)
}

.wedding-story-copy em {
    display: block;
    margin-top: 35px;
    font: italic clamp(1.7rem, 2.5vw, 2.8rem)/1.05 var(--serif);
    color: var(--brown)
}

.wedding-story-grid blockquote {
    margin: 0;
    padding: 38px 25px 0;
    border-top: 1px solid rgba(74, 36, 18, .25)
}

.wedding-story-grid blockquote p {
    margin: 0 0 18px;
    font: italic clamp(1.35rem, 2vw, 2rem)/1.25 var(--serif);
    color: var(--brown)
}

.wedding-story-grid cite {
    font: .65rem/1 var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase
}

@media screen and (max-width:1280px) {
    .wedding-story-a {
        height: 590px
    }
}

@media screen and (max-width:1080px) {
    .wedding-story-grid {
        grid-template-columns: 1fr 1fr
    }

    .wedding-story-a {
        grid-row: auto;
        height: 520px
    }

    .wedding-story-c {
        grid-column: auto;
        grid-row: auto;
        height: 520px
    }
}

@media screen and (max-width:820px) {
    .wedding-story-grid {
        grid-template-columns: 1fr 1fr
    }

    .wedding-story-a,
    .wedding-story-b,
    .wedding-story-c {
        height: 58vw
    }

    .wedding-story-copy {
        padding: 25px 5px
    }

    .wedding-story-grid blockquote {
        padding: 28px 10px
    }
}

@media screen and (max-width:736px) {
    .wedding-stories h2 {
        font-size: clamp(3rem, 14vw, 5rem)
    }

    .wedding-story-grid {
        grid-template-columns: 1fr
    }

    .wedding-story-a,
    .wedding-story-b,
    .wedding-story-c {
        grid-column: auto;
        grid-row: auto;
        height: 105vw;
        max-height: 620px
    }

    .wedding-story-copy {
        padding: 30px 0 45px
    }
}

@media screen and (max-width:480px) {
    .wedding-stories {
        padding-top: 80px;
        padding-bottom: 80px
    }
}

.wedding-stories-carousel {
    width: min(1380px, 100%);
    margin: auto;
}

.wedding-stories-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.wedding-stories-track::-webkit-scrollbar {
    display: none;
}

.wedding-story-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.wedding-story-photos {
    display: grid;
    grid-template-columns: repeat(var(--story-photo-count, 3), minmax(0, 1fr));
    gap: 20px;
}

.wedding-story-photos figure {
    height: clamp(300px, 36vw, 510px);
    margin: 0;
    overflow: hidden;
}

.wedding-story-testimonial {
    margin: 28px auto 0;
    max-width: 850px;
    text-align: center;
    padding: 0 20px;
}

.wedding-story-testimonial p {
    margin: 0 0 16px;
    font: italic clamp(1.5rem, 2.5vw, 2.5rem)/1.3 var(--serif);
    color: var(--brown);
}

.wedding-story-testimonial cite {
    display: block;
    font: 600 .7rem/1.5 var(--sans);
    font-style: normal;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brown);
}

.wedding-story-venue {
    display: block;
    margin-top: 8px;
    font: .8rem/1.5 var(--sans);
}

.wedding-stories-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
}

.wedding-stories-controls[hidden] {
    display: none;
}

.wedding-stories-controls button {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(74, 36, 18, .3);
    color: var(--brown);
    cursor: pointer;
    box-shadow: none;
}

.wedding-story-prev,
.wedding-story-next {
    width: 44px;
    height: 44px;
    padding: 0;
    font: 1.3rem/1 var(--sans);
    border-radius: 50%;
}

.wedding-stories-controls button:disabled {
    opacity: .3;
    cursor: default;
}

.wedding-story-dots {
    display: flex;
    gap: 2px;
}

.wedding-story-dots button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    border: 0;
    padding: 0;
}

.wedding-story-dots button::before {
    content: '';
    width: 7px;
    height: 7px;
    border: 1px solid var(--brown);
    border-radius: 50%;
}

.wedding-story-dots button[aria-current="true"]::before {
    background: var(--brown);
}

.wedding-stories-track:focus-visible,
.wedding-stories-controls button:focus-visible {
    outline: 2px solid var(--brown);
    outline-offset: 3px;
}

.wedding-story-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media screen and (max-width:820px) {
    .wedding-story-photos {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wedding-story-photos figure {
        height: auto;
        aspect-ratio: 4/5;
    }

    .wedding-story-photos figure:not(:first-child) {
        display: none;
    }

    .wedding-story-testimonial {
        padding: 0;
        margin-top: 24px;
    }

    .wedding-story-testimonial p {
        font-size: 1.65rem;
    }
}

.wedding-story-slide .wedding-story-grid {
    width: 100%;
}

.wedding-story-slide .wedding-story-testimonial {
    max-width: none;
    text-align: left;
    margin: 0;
}

.wedding-story-slide .wedding-story-testimonial p {
    font: italic clamp(1.35rem, 2vw, 2rem)/1.25 var(--serif);
}

.wedding-story-slide .wedding-story-testimonial cite {
    font: .65rem/1 var(--sans);
}

.wedding-story-slide .wedding-story-extra {
    height: 340px;
}

@media screen and (min-width:821px) {
    .wedding-story-slide .wedding-story-grid {
        grid-template-columns: 1.1fr .8fr 1fr;
        grid-template-rows: auto auto;
    }

    .wedding-story-slide .wedding-story-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .wedding-story-slide .wedding-story-b {
        grid-column: 2;
        grid-row: 2;
    }

    .wedding-story-slide .wedding-story-testimonial {
        grid-column: 1;
        grid-row: 3;
    }

    .wedding-story-slide .wedding-story-a {
        grid-column: 1;
        grid-row: 1/3;
    }

    .wedding-story-slide .wedding-story-c {
        grid-column: 3;
        grid-row: 1/3;
        align-self: end;
    }
}

@media screen and (max-width:820px) {
    .wedding-story-slide .wedding-story-grid {
        display: block;
    }

    .wedding-story-slide .wedding-story-grid figure {
        height: auto;
        max-height: none;
        aspect-ratio: 4/5;
    }

    .wedding-story-slide .wedding-story-grid figure:not(:first-child),
    .wedding-story-slide .wedding-story-copy {
        display: none;
    }

    .wedding-story-slide .wedding-story-testimonial {
        margin: 24px 0 0;
        padding: 24px 0 0;
        text-align: center;
    }

    .wedding-story-slide .wedding-story-testimonial p {
        font-size: 1.65rem;
    }
}

.wedding-story-slide .wedding-story-copy em {
    white-space: pre-line;
}

.wedding-stories {
    padding-top: 72px;
}

.wedding-stories-heading {
    margin-bottom: 36px;
}

.wedding-story-placeholder-label {
    display: block;
    margin-bottom: 12px;
    font: 600 .65rem/1.5 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media screen and (min-width:821px) {
    .wedding-story-layout-split .wedding-story-grid {
        grid-template-columns: .85fr 1.15fr 1fr;
        grid-template-rows: 180px 280px 170px auto;
        gap: 28px;
    }

    .wedding-story-layout-split .wedding-story-a {
        grid-column: 1;
        grid-row: 1/3;
        height: 360px;
        align-self: start;
    }

    .wedding-story-layout-split .wedding-story-b {
        grid-column: 2;
        grid-row: 1/4;
        height: 100%;
        align-self: stretch;
    }

    .wedding-story-layout-split .wedding-story-c {
        grid-column: 3;
        grid-row: 2/4;
        height: 100%;
        align-self: stretch;
    }

    .wedding-story-layout-split .wedding-story-testimonial {
        grid-column: 1;
        grid-row: 3/5;
        text-align: left;
        padding: 24px 0 0;
        align-self: start;
    }

    .wedding-story-layout-split .wedding-story-copy {
        grid-column: 3;
        grid-row: 1;
        padding: 0;
        align-self: start;
    }

    .wedding-story-layout-triptych .wedding-story-grid {
        grid-template-columns: 1.15fr .8fr 1fr;
        grid-template-rows: 120px 270px 230px auto;
        gap: 28px;
    }

    .wedding-story-layout-triptych .wedding-story-a {
        grid-column: 1;
        grid-row: 2/4;
        height: 100%;
        align-self: stretch;
    }

    .wedding-story-layout-triptych .wedding-story-b {
        grid-column: 2;
        grid-row: 1/3;
        height: 310px;
        align-self: start;
    }

    .wedding-story-layout-triptych .wedding-story-c {
        grid-column: 3;
        grid-row: 1/4;
        height: 100%;
        align-self: stretch;
    }

    .wedding-story-layout-triptych .wedding-story-testimonial {
        grid-column: 2;
        grid-row: 3/5;
        text-align: left;
        padding: 24px 0 0;
        align-self: start;
    }

    .wedding-story-layout-triptych .wedding-story-copy {
        grid-column: 1;
        grid-row: 1;
        padding: 0;
        align-self: start;
    }
}

@media screen and (max-width:820px) {
    .wedding-stories {
        padding-top: 56px;
    }

    .wedding-stories-heading {
        margin-bottom: 28px;
    }
}

.wedding-story-slide .wedding-story-long-quote p {
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    line-height: 1.65;
}

.wedding-story-description h3 {
    margin: 0 0 16px;
    font: 400 clamp(1.5rem, 2vw, 2.2rem)/1.15 var(--serif);
    color: var(--brown);
}

.wedding-story-slide .wedding-story-description p {
    font: 400 .95rem/1.75 var(--sans);
    margin: 0;
}

@media screen and (max-width:820px) {
    .wedding-story-slide .wedding-story-long-quote p {
        font-size: 1.1rem;
        line-height: 1.65;
    }
}

@media screen and (max-width:820px) {
    .wedding-story-slide .wedding-story-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wedding-story-slide .wedding-story-grid figure,
    .wedding-story-slide .wedding-story-grid figure:not(:first-child) {
        display: block;
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 4/5;
        align-self: stretch;
    }

    .wedding-story-slide .wedding-story-testimonial {
        grid-column: 1;
        grid-row: auto;
        margin: 8px 0 0;
    }
}

.wedding-stories-heading h2 {
    margin: 0;
    font: 400 clamp(3.5rem, 6vw, 7rem)/.9 var(--serif);
    letter-spacing: -.04em;
    color: var(--brown);
}

.wedding-stories-heading .wedding-eyebrow {
    display: block;
    margin: 0 0 18px;
    font: 600 .66rem/1 var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brown);
}

.wedding-story-grid img,
.wedding-story-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wedding-story-quote-placeholder-label {
    display: block;
    margin-bottom: 12px;
    font: 600 .65rem/1.4 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media(max-width:736px) {
    .wedding-stories-heading h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }
}

/* Compact Bloom Bar gallery; wedding layouts retain their own sizing. */
@media screen and (min-width:821px) {
    .bloom-stories {
        box-sizing: border-box;
        height: calc(100svh - var(--site-nav-height));
        min-height: 600px;
        padding: 28px 5vw;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 24px;
        scroll-margin-top: var(--site-nav-height);
    }

    .bloom-stories .wedding-stories-heading {
        width: 100%;
        margin: 0;
    }

    .bloom-stories .wedding-stories-heading h2 br {
        display: none;
    }

    .bloom-stories .wedding-stories-heading .wedding-eyebrow {
        margin-bottom: 12px;
    }

    .bloom-stories .wedding-stories-heading p {
        margin: 12px 0 0;
        font-size: 1rem;
    }

    .bloom-stories .wedding-stories-carousel {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 18px;
    }

    .bloom-stories .wedding-stories-track {
        height: 100%;
        min-height: 0;
        align-items: stretch;
    }

    .bloom-stories .wedding-story-slide {
        height: 100%;
        min-height: 0;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid {
        height: 100%;
        min-height: 0;
        grid-template-columns: .85fr .75fr 1.2fr;
        grid-template-rows: 1fr 1fr;
        gap: 20px;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid figure {
        height: 100%;
        min-height: 0;
        align-self: stretch;
    }

    .bloom-stories .wedding-story-slide .wedding-story-a {
        grid-column: 1;
        grid-row: 1/3;
    }

    .bloom-stories .wedding-story-slide .wedding-story-b {
        grid-column: 2;
        grid-row: 1;
    }

    .bloom-stories .wedding-story-slide .wedding-story-c {
        grid-column: 2;
        grid-row: 2;
    }

    .bloom-stories .wedding-story-slide .wedding-story-copy {
        display: none;
    }

    .bloom-stories .wedding-story-slide .wedding-story-testimonial {
        grid-column: 3;
        grid-row: 1/3;
        align-self: center;
        box-sizing: border-box;
        padding: 24px 0 24px 24px;
        margin: 0;
        max-width: none;
        text-align: left;
        border-top: 0;
        border-left: 1px solid rgba(74, 36, 18, .2);
    }

    .bloom-stories .wedding-story-slide .wedding-story-testimonial p {
        font-size: clamp(1.1rem, 1.55vw, 1.6rem);
        line-height: 1.55;
    }

    .bloom-stories .wedding-story-slide .wedding-story-long-quote p {
        font-size: clamp(1rem, 1.2vw, 1.25rem);
        line-height: 1.65;
    }

    .bloom-stories .wedding-stories-controls {
        margin-top: 0;
    }
}

/* Dot-only navigation for both galleries. */
.wedding-stories-controls {
    gap: 0;
    margin-top: 12px;
}

.wedding-story-dots button {
    width: 32px;
    height: 32px;
}

@media screen and (min-width:821px) {
    .bloom-stories {
        gap: 18px;
    }

    .bloom-stories .wedding-stories-carousel {
        gap: 10px;
    }

    .bloom-stories .wedding-stories-controls {
        margin: 0;
    }

    .bloom-stories .wedding-story-slide {
        container-type: size;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid {
        display: block;
        position: relative;
        isolation: isolate;
        width: min(100%, 170cqh);
        height: 100%;
        margin: 0 auto;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid figure {
        position: absolute;
        margin: 0;
        min-height: 0;
        width: auto;
        max-width: none;
    }

    /* Reference one: dominant left portrait, overlapping centre, small lower right. */
    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-a {
        left: 0;
        top: 0;
        width: 46%;
        height: 100%;
        z-index: 1;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-b {
        left: 33%;
        right: auto;
        top: 25%;
        width: 26%;
        height: 50%;
        z-index: 2;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-c {
        left: auto;
        right: 0;
        top: auto;
        bottom: 0;
        width: 23%;
        height: 50%;
        z-index: 1;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-testimonial {
        position: absolute;
        left: 63%;
        top: 2%;
        width: 35%;
        height: auto;
        margin: 0;
        padding: 8px 0;
        border: 0;
        z-index: 3;
        text-align: left;
    }

    .bloom-stories .wedding-story-slide .wedding-story-testimonial p {
        font-size: clamp(1rem, 1.15vw, 1.3rem);
        line-height: 1.55;
    }

    .bloom-stories .wedding-story-slide .wedding-story-long-quote p {
        font-size: clamp(.9rem, 1vw, 1.1rem);
        line-height: 1.6;
    }

    /* Reference two: small upper left, dominant right, lower overlapping detail. */
    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-a {
        left: 0;
        top: 0;
        width: 28%;
        height: 59%;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-b {
        left: auto;
        right: 0;
        top: 0;
        width: 43%;
        height: 94%;
        z-index: 1;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-c {
        left: 44%;
        right: auto;
        top: auto;
        bottom: 0;
        width: 21%;
        height: 42%;
        z-index: 2;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-testimonial {
        left: 31%;
        top: 3%;
        width: 23%;
    }
}

/* Let the collage reach the page edges, as in the reference. */
@media screen and (min-width:821px) {
    .bloom-stories {
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .bloom-stories .wedding-stories-heading {
        padding-left: 3vw;
        box-sizing: border-box;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

/* Narrower portraits while retaining the outer edge positions. */
@media screen and (min-width:821px) {
    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-a {
        width: 31%;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-b {
        left: 25%;
        width: 19%;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-c {
        width: 18%;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-testimonial {
        left: 48%;
        width: 31%;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-a {
        width: 20%;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-b {
        left: auto;
        right: 0;
        width: 30%;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-c {
        left: 62%;
        right: auto;
        width: 17%;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-testimonial {
        left: 26%;
        width: 33%;
    }
}

/* Portrait ratios stay fixed as the viewport changes. Outer edges match the heading. */
@media screen and (min-width:821px) {
    .bloom-stories {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .bloom-stories .wedding-stories-heading {
        padding-left: 0;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-a {
        left: 0;
        right: auto;
        width: auto;
        height: 100%;
        aspect-ratio: 4/5;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-b {
        left: 70cqh;
        right: auto;
        width: auto;
        height: 50%;
        aspect-ratio: 9/10;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-c {
        left: auto;
        right: 0;
        width: auto;
        height: 50%;
        aspect-ratio: 4/5;
    }

    .bloom-stories .wedding-story-slide .wedding-story-grid .wedding-story-testimonial {
        left: calc(115cqh + 24px);
        right: 0;
        width: auto;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-a {
        left: 0;
        right: auto;
        width: auto;
        height: 59%;
        aspect-ratio: 4/5;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-b {
        left: auto;
        right: 0;
        width: auto;
        height: 94%;
        aspect-ratio: 4/5;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-c {
        left: auto;
        right: 67.2cqh;
        width: auto;
        height: 42%;
        aspect-ratio: 4/5;
    }

    .bloom-stories .wedding-story-layout-split .wedding-story-grid .wedding-story-testimonial {
        left: calc(47.2cqh + 24px);
        right: calc(75.2cqh + 24px);
        width: auto;
    }
}

/* More photo room, while retaining the portrait proportions and outer alignment. */
@media screen and (min-width:821px) {
    .bloom-stories {
        padding-top: 24px;
        padding-bottom: 6px;
        gap: 22px;
    }

    .bloom-stories .wedding-stories-carousel {
        gap: 0;
    }

    .bloom-stories .wedding-stories-controls {
        transform: none;
    }

    .bloom-stories .wedding-story-dots button {
        height: 20px;
    }
}

.bloom-stories .wedding-story-grid img {
    cursor: zoom-in;
}