/* Soft Things: a full-width photographic gallery within the case-study page. */
.rr-evidence-page .rr-case > #soft-things.sm-gallery {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: clamp(72px, 8vw, 116px) 0 clamp(88px, 10vw, 140px);
    border: 0;
    background: #0A0A0A;
    color: #FAFAFA;
}

.rr-evidence-page .rr-case > #soft-things.sm-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100vw;
    background: #0A0A0A;
    pointer-events: none;
}

#soft-things .sm-gallery-inner {
    width: min(calc(100% - 2 * var(--page-padding)), 1200px);
    margin-inline: auto;
}

#soft-things .sm-gallery-opening {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 90px);
    align-items: start;
    padding-bottom: clamp(42px, 6vw, 78px);
    border-bottom: 1px solid #565656;
}

#soft-things .sm-gallery-opening h2 {
    margin: 0;
    color: #FAFAFA;
    font: 400 clamp(56px, 7.5vw, 108px)/.92 var(--font-display);
    letter-spacing: -.065em;
}

#soft-things .sm-gallery-opening h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 28px;
    background: #40C1AC;
}

#soft-things p {
    margin: 0;
    color: #F3F1EA;
}

#soft-things .sm-gallery-opening p {
    max-width: 38ch;
    font: 400 clamp(19px, 2vw, 25px)/1.5 var(--font-body);
}

#soft-things .sm-gallery-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
    margin-top: clamp(70px, 8vw, 126px);
}

#soft-things .sm-gallery-text {
    min-width: 0;
    padding-top: 20px;
    border-top: 2px solid #40C1AC;
}

#soft-things .sm-gallery-text p {
    max-width: 40ch;
    font: 400 clamp(17px, 1.55vw, 21px)/1.65 var(--font-body);
}

#soft-things .sm-gallery-text p + p { margin-top: 28px; }

.rr-evidence-page .rr-case #soft-things figure.sm-gallery-figure,
.rr-evidence-page .rr-case #soft-things figure.sm-gallery-figure:hover {
    position: relative;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
}

.rr-evidence-page .rr-case #soft-things figure.sm-gallery-figure::before {
    content: none;
}

#soft-things .sm-gallery-figure img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: 1px solid rgb(250 250 250 / 42%);
}

.rr-evidence-page #soft-things figure.sm-gallery-figure figcaption {
    position: static;
    width: auto;
    margin: 0;
    padding: 10px 0 0 11px;
    border-left: 2px solid #40C1AC;
    color: #B8C5C2;
    background: transparent;
    font: 400 12px/1.5 var(--font-body);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
}

#soft-things .sm-gallery-row--scale { align-items: start; }
#soft-things .sm-gallery-row--scale figure:first-child { grid-column: span 7; }
#soft-things .sm-gallery-row--scale figure:last-child { grid-column: span 5; }
#soft-things .sm-gallery-row--scale img { height: clamp(340px, 38vw, 510px); }

#soft-things .sm-gallery-row--making .sm-gallery-text { grid-column: span 4; }
#soft-things .sm-gallery-row--making figure:nth-child(2) { grid-column: span 3; }
#soft-things .sm-gallery-row--making figure:nth-child(3) { grid-column: span 5; }
#soft-things .sm-gallery-row--making figure:nth-child(2) img { height: 520px; }
#soft-things .sm-gallery-row--making figure:nth-child(3) img { height: 390px; }

#soft-things .sm-gallery-row--temporary figure { grid-column: span 7; }
#soft-things .sm-gallery-row--temporary .sm-gallery-text { grid-column: span 5; }
#soft-things .sm-gallery-row--temporary img { height: 510px; }

#soft-things .sm-gallery-panorama { margin-top: clamp(74px, 9vw, 142px) !important; }
#soft-things .sm-gallery-panorama img { height: clamp(420px, 54vw, 700px); }

#soft-things .sm-gallery-row--show .sm-gallery-text { grid-column: span 5; }
#soft-things .sm-gallery-row--show figure { grid-column: span 7; }
#soft-things .sm-gallery-row--show img { height: 490px; }

#soft-things .sm-gallery-row--visitors { align-items: start; }
#soft-things .sm-gallery-row--visitors figure { grid-column: span 4; }
#soft-things .sm-gallery-row--visitors img { height: 315px; }

#soft-things .sm-gallery-row--coexist figure { grid-column: span 7; }
#soft-things .sm-gallery-row--coexist .sm-gallery-text { grid-column: span 5; }
#soft-things .sm-gallery-row--coexist img { height: 500px; }

#soft-things .sm-gallery-row--ending .sm-gallery-text { grid-column: span 5; }
#soft-things .sm-gallery-row--ending figure { grid-column: span 7; }
#soft-things .sm-gallery-row--ending img { height: 490px; }
#soft-things .sm-gallery-text--ending p {
    max-width: 12ch;
    font: 400 clamp(34px, 4.3vw, 62px)/1.04 var(--font-display);
    letter-spacing: -.05em;
}

#soft-things .sm-gallery-link {
    display: inline-block;
    max-width: 34ch;
    margin-top: 52px;
    padding-bottom: 4px;
    border-bottom: 2px solid #40C1AC;
    color: #D9F5EF;
    font: 600 13px/1.5 var(--font-body);
}

#soft-things .sm-gallery-link:hover,
#soft-things .sm-gallery-link:focus-visible { color: #40C1AC; }
#soft-things .sm-gallery-link:focus-visible { outline: 2px solid #40C1AC; outline-offset: 4px; }

@media (max-width: 900px) {
    #soft-things .sm-gallery-opening { grid-template-columns: 1fr; align-items: start; }
    #soft-things .sm-gallery-opening p { max-width: 56ch; }
    #soft-things .sm-gallery-row--making { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #soft-things .sm-gallery-row--making .sm-gallery-text { grid-column: 1 / -1; }
    #soft-things .sm-gallery-row--making figure:nth-child(2),
    #soft-things .sm-gallery-row--making figure:nth-child(3) { grid-column: span 1; }
    #soft-things .sm-gallery-row--making figure:nth-child(2) img,
    #soft-things .sm-gallery-row--making figure:nth-child(3) img { height: 390px; }
    #soft-things .sm-gallery-row--temporary,
    #soft-things .sm-gallery-row--show,
    #soft-things .sm-gallery-row--coexist,
    #soft-things .sm-gallery-row--ending { grid-template-columns: 1fr; }
    #soft-things .sm-gallery-row--temporary > *,
    #soft-things .sm-gallery-row--show > *,
    #soft-things .sm-gallery-row--coexist > *,
    #soft-things .sm-gallery-row--ending > * { grid-column: 1 !important; }
    #soft-things .sm-gallery-row--visitors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #soft-things .sm-gallery-row--visitors figure { grid-column: span 1; }
    #soft-things .sm-gallery-row--visitors figure:last-child { grid-column: 1 / -1; }
    #soft-things .sm-gallery-row--visitors figure:last-child img { height: 390px; }
    #soft-things .sm-gallery-text p { max-width: 60ch; }
}

@media (max-width: 620px) {
    .rr-evidence-page .rr-case > #soft-things.sm-gallery { padding: 64px 0 82px; }
    #soft-things .sm-gallery-opening { gap: 30px; padding-bottom: 46px; }
    #soft-things .sm-gallery-opening h2 { font-size: clamp(48px, 13vw, 72px); }
    #soft-things .sm-gallery-opening p { font-size: 18px; }
    #soft-things .sm-gallery-row,
    #soft-things .sm-gallery-row--making,
    #soft-things .sm-gallery-row--visitors { grid-template-columns: 1fr; gap: 28px; margin-top: 66px; }
    #soft-things .sm-gallery-row--scale > *,
    #soft-things .sm-gallery-row--making > *,
    #soft-things .sm-gallery-row--visitors > * { grid-column: 1 !important; }
    .rr-evidence-page .rr-case #soft-things figure.sm-gallery-figure img {
        height: auto;
        max-height: none;
        object-fit: contain;
    }
    #soft-things .sm-gallery-panorama { margin-top: 66px !important; }
    #soft-things .sm-gallery-text { padding-top: 16px; }
    #soft-things .sm-gallery-text p { font-size: 17px; }
    #soft-things .sm-gallery-text--ending p { font-size: clamp(34px, 9vw, 50px); }
    #soft-things .sm-gallery-link { margin-top: 34px; }
}
