/* Reference layout; Skeleton grid remains in skeleton.css. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..600&family=Raleway:wght@300..700&display=swap');

:root {
    --font-body: 'Raleway',sans-serif;
    --font-title: 'Fraunces',serif;
    --paper: #f3f4f4;
    --ink: #151515;
	--dark: #010101;
    /*--dark: #39393b;*/
    --gutter: 6vw;
    --gap: 1.15vw;
    --hero-height: 85vh;
    --radius: 10px;
    --hero-fade-start: 66%;
    --gallery-overlap: clamp(36px, 4.5vw, 80px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.6rem;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

a,
a:hover {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Typeface assignments */

h1,
h2,
h3,
h4,
h5,
h6,
.wordmark,
.cover-label,
.collection-nav a {
    font-family: var(--font-title);
}

p,
.site-header nav,
.site-footer nav,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

.container {
    width: 88%;
    max-width: none;
    padding: 0;
}

/* Header and navigation */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.05vw var(--gutter);
    gap: 24px;
    background: transparent;
    position: relative;
    z-index: 3;
}

.wordmark {
    font-size: clamp(2.5rem,2vw,3.6rem);
    font-weight: 400;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.site-header nav {
    display: flex;
    gap: 2vw;
    align-items: center;
}

.site-header nav a {
    font-size: clamp(1rem,.68vw,1.3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    line-height: 1.8;
}

.menu-toggle {
    display: none;
}

/* Page introduction */

.intro {
    text-align: center;
    padding: 5vw 0 8.3vw;
}

.intro h1 {
    font-size: clamp(4rem,4.55vw,8rem);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.12;
    margin: 0 0 1.8vw;
}

.intro p {
    max-width: 65vw;
    margin: 0 auto;
    font-size: clamp(1.6rem, 1.2vw, 2.2rem);
    line-height: 1.55;
    font-weight: 300;
}

/* Photography index */

.collection-grid .row {
    margin-bottom: var(--gap);
}

.collection-card {
    display: block;
    position: relative;
    overflow: hidden;
    background: #ddd;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
}

.collection-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: rgba(243,244,244,.87);
    color: var(--ink);
    font-size: clamp(2rem,2vw,3.6rem);
    font-weight: 300;
    line-height: 1.2;
    opacity: 0;
    transition: opacity .25s ease;
}

.collection-card:hover .cover-label,
.collection-card:focus-visible .cover-label {
    opacity: 1;
}

/* Collection hero */

.collection-page {
    background: var(--dark);
    color: #fff;
}

.collection-page .site-header {
    top: 0;
    left: 0;
    color: #fff;
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    margin: 0;
    background: transparent;
    z-index: 3;
}

.hero {
    height: var(--hero-height);
    min-height: 450px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.hero > img {
    object-position: center;
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    object-fit: cover;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.37);
    z-index: 1;
    pointer-events: none;
}

.hero .intro {
    text-align: left;
    padding: 0;
    margin: 8vw auto 0;
    color: white;
    position: relative;
    z-index: 2;
}

.hero .intro h1 {
    font-size: clamp(4rem,4.55vw,8rem);
    margin-bottom: 1.6vw;
}

.hero .intro p {
    max-width: 54vw;
    margin: 0;
    line-height: 1.55;
    font-size: clamp(1.6rem, 1.2vw, 2.2rem);
}

/* Gallery rows */

.gallery {
    padding-top: 6vw;
}

.gallery-row {
    display: flex;
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.gallery .photo-cell {
    flex: var(--ratio) 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
    float: none;
}

.gallery a {
    display: block;
    aspect-ratio: var(--ratio);
    overflow: hidden;
}

.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 10px;
}

/* Lightbox */

dialog.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: white;
    overflow: hidden;
}

dialog.lightbox[open] {
    display: grid;
    place-items: center;
}

dialog::backdrop {
    background: rgba(0, 0, 0, .8);
}

.lightbox img {
    display: block;
    max-width: 84vw;
    max-height: 86vh;
    object-fit: contain;
	border-radius: 12px;
}

.lightbox button {
    position: absolute;
    background: transparent;
    color: #fff;
    border: 0;
    padding: 0;
    width: 48px;
    height: 48px;
    margin: 0;
    display: grid;
    place-items: center;
}

.lightbox button:hover {
    color: #fff;
    border: 0;
}

.lightbox [data-prev] {
    left: 2.2vw;
    top: calc(50% - 24px);
}

.lightbox [data-next] {
    right: 2.2vw;
    top: calc(50% - 24px);
}

.lightbox [data-close] {
    right: 1vw;
    top: 1vw;
}

.lightbox output {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

body:has(dialog[open]) {
    overflow: hidden;
}

.lightbox svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

/* Optional hero-to-gallery fade: add hero-fade to the body class. */

.collection-page.hero-fade .hero::after {
    background: linear-gradient(to bottom,
        transparent var(--hero-fade-start), var(--dark) 100%),
        rgba(0, 0, 0, .37);
}

.collection-page.hero-fade .gallery {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--gallery-overlap));
    padding-top: 0;
}

/* Collection navigation and footer */

/* Skeleton's clearfix becomes an unwanted flex item on this container. */

.collection-nav.container::after {
    display: none;
    content: none;
}

.collection-nav {
    display: flex;
    justify-content: space-between;
    padding: 8.6vw 0 2.8vw;
    align-items: center;
    gap: 24px;
}

.collection-nav a {
    display: flex;
    align-items: center;
    line-height: 1.2;
    font-size: clamp(1.8rem, 1.5vw, 2.6rem);
    font-weight: 300;
    gap: 1.5vw;
    min-width: 0;
}

.collection-nav a:last-child {
    margin-left: auto;
    text-align: right;
    justify-content: flex-end;
}

.collection-nav .arrow {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.collection-nav .arrow svg {
    width: clamp(10px,1vw,18px);
    height: clamp(18px,1.8vw,30px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer {
    margin: 0;
    background: #fff;
    color: #000;
    text-align: left;
    padding: 4.1vw 0 6.1vw;
    min-height: 23.6vw;
}

.site-footer .footer-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: start;
    row-gap: 3.7vw;
}

.site-footer .footer-layout::after {
    display: none;
    content: none;
}

.site-footer h2 {
    font-size: clamp(3rem,2.9vw,5rem);
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: -.025em;
    margin: 0;
}

/* Convert the reversed footer logo to black and gray. */
.site-footer h2 img,
.site-footer .wordmark img {
    filter: invert(1);
}

.site-footer nav {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .5rem;
    font-size: clamp(1rem,.7vw,1.3rem);
    line-height: 1.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: .7vw;
    margin-right: 4.2vw;
}

.footer-social a {
    display: grid;
    place-items: center;
    background: transparent;
    color: #000;
    border-radius: 0;
    width: clamp(36px,2.8vw,48px);
    aspect-ratio: 1;
}

.footer-social img {
    width: 66%;
    height: 66%;
    filter: brightness(0);
}

/* Full-bleed hero and overlay stacking */

html,
body {
    margin: 0;
    padding: 0;
}

body.collection-page {
    position: relative;
    width: 100%;
}

.collection-page > main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 550px) {
    .collection-grid .six.columns {
        width: calc((100% - var(--gap))/2);
        margin-left: var(--gap);
    }

    .collection-grid .columns:first-child {
        margin-left: 0;
    }
}

@media (hover: none) {
    .cover-label {
        opacity: 1;
        inset: auto 0 0;
        padding: 12px;
        background: rgba(243,244,244,.84);
        font-size: 2rem;
    }
}

@media (max-width: 549px) {
    :root {
        --gap: 12px;
        --hero-height: 85vh;
    }

    .site-header {
        flex-wrap: wrap;
        padding: 20px var(--gutter);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
        padding: 0 8px;
        border: 0;
        margin: 0;
        color: inherit;
    }

    .menu-toggle span {
        width: 23px;
        height: 2px;
        background: currentColor;
    }

    .site-header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        background: var(--paper);
        color: var(--ink);
    }

    .site-header nav.open {
        display: flex;
    }

    .intro {
        padding: 50px 0 60px;
    }

    .intro p,
    .hero .intro p {
        max-width: 100%;
    }

    .intro h1 {
        margin-bottom: 20px;
    }

    .collection-grid .columns {
        margin-bottom: var(--gap);
    }

    .collection-grid .row {
        margin-bottom: 0;
    }

    .hero .intro {
        margin-top: 70px;
    }

    .gallery {
        padding-top: 6vw;
    }

    .gallery-row {
        display: block;
        margin: 0;
    }

    .gallery .photo-cell {
        margin-bottom: var(--gap);
    }

    .collection-nav {
        padding: 55px 0 30px;
        gap: 12px;
    }

    .collection-nav a {
        font-size: 1.8rem;
        gap: 9px;
    }

    .site-footer {
        padding: 40px 0 55px;
    }

    .site-footer .footer-layout {
        row-gap: 32px;
    }

    .footer-social {
        margin-right: 0;
        gap: 8px;
    }

    .site-footer nav {
        gap: 6px;
    }

    .collection-page.hero-fade {
        --gallery-overlap: 24px;
    }

    .collection-page.hero-fade .hero .intro {
        padding-bottom: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Contact form */

.contact-section {
    max-width: 920px;
    margin: 6vw auto 0;
    text-align: left;
}

.contact-section h2 {
    font-weight: 300;
    margin-bottom: 32px;
}

.contact-form label {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #b8b8b8;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font-size: 1.8rem;
    padding: 16px;
    margin-bottom: 24px;
	border-radius: 8px;
}

.contact-form input {
    height: 58px;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--dark);
    outline: 2px solid var(--dark);
    outline-offset: 2px;
}

.contact-form button {
    height: auto;
    line-height: 1.4;
    padding: 18px 28px;
    background: var(--dark);
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 24px;
	border-radius: 50px;
}

.contact-form button:hover {
    background: var(--ink);
    color: #fff;
}

.contact-form .contact-note {
    max-width: none;
    margin: 0;
    font-size: 1.4rem;
    color: #555;
}
