/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

body, p, h1, h2, h3 {
    margin: 0;
    padding: 0;
}

/* ── Base ── */
html, body {
    width: 100%;
}

body {
    font-family: 'Source Sans Pro', helvetica, arial;
    font-size: 18px;
    font-weight: 300;
    background: #111;
    color: #fff;
    overflow-x: hidden;
}

/* ── Typography ── */
p, h1, h2 {
    text-shadow: 0 0 5px rgba(0, 0, 0, .6);
    width: 100%;
}

h1, h2 {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
}

h1 {
    margin-bottom: 16px;
    color: #fff;
}

h2 {
    margin-bottom: 20px;
}

p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: .02rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
p:last-child {
    margin-bottom: 0;
}
p.p--credits {
    font-size: .9rem;
}
p strong {
    display: inline-block;
    margin-bottom: 2px;
}

a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
a.a--no-weight {
    font-style: italic;
    font-weight: 300;
}

/* ── Section container ── */
.container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 15px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.container--big   { min-height: 175vh; }
.container--full  { min-height: 100vh; }
.container--small { min-height: 40vh; }

/* Content card — centred over the parallax photo */
.container .content {
    background: rgba(0, 0, 0, .72);
    border-radius: 12px;
    color: #fff;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* ── Parallax ── */
.parallax__container {
    clip: rect(0, auto, auto, 0);
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -100;
}
.parallax__container .parallax {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: fixed;
    top: 0;
    transform: translate3d(0, 0, 0);
    transform-style: preserve-3d;
    width: 100%;
}

/* ── Photo grid ── */
.grid {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: clamp(0.5rem, 2vw, 1rem);

    /* 2 columns on mobile, 4 on wider screens */
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Card item ── */
.item {
    width: 100%;               /* was fixed 100px — now fills grid cell */
    background-color: #fff;
    border-radius: .5em;
    overflow: hidden;
    box-shadow: 0px 8px 24px -6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .item:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0px 16px 32px -6px rgba(0, 0, 0, 0.65);
    }
}

/* ── Photo thumbnail ── */
.img {
    width: 100%;
    aspect-ratio: 4 / 3;      /* was fixed 100px tall — now proportional */
    background-color: lightgrey;
    background-size: cover;
    background-position: center;
}

/* ── Card caption ── */
.card {
    padding: 0.4rem 0.5rem 0.5rem;
}

.card h3, .card p {
    max-width: 52ch;
    line-height: 1.4;
    color: #222;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    text-align: center;
    text-shadow: none;
    width: 100%;
}