/* Photo Strip - A Free Design by Bryant Smith (bryantsmith.com)
   A black-and-white frame around one horizontal strip of photos.
   Every colour, size and space on the page is set below. Look for the
   section headings to find the part you want to change. */


/* ---- BODY: the grey desk behind the frame ---- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #e9e8e4;
    color: #2b2b2b;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 40px 16px;
    text-align: center;
}


/* ---- PAGE: the white sheet with the minimal frame ---- */

#page {
    background: #ffffff;
    border: 2px solid #111111;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06), 0 20px 44px rgba(0, 0, 0, 0.14);
    margin: 0 auto;
    max-width: 900px;
    padding: 56px 48px 40px 48px;
    text-align: left;
}


/* ---- MASTHEAD: the small label, big title and tagline ---- */

.kicker {
    color: #111111;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#masthead {
    border-bottom: 2px solid #111111;
    margin-bottom: 36px;
    padding-bottom: 22px;
}

#masthead h1 {
    color: #111111;
    font-size: 46px;
    font-weight: bold;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 10px 0 0 0;
    text-transform: uppercase;
}

.tagline {
    color: #777777;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    font-style: italic;
    margin-top: 10px;
}


/* ---- MENU: the row of links under the title ---- */

#menu {
    margin-top: 22px;
}

#menu a,
#menu a:visited {
    border: 1px solid transparent;
    color: #111111;
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    margin: 0 6px 6px 0;
    padding: 5px 10px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    background: #111111;
    color: #ffffff;
}


/* ---- TEXT: the intro paragraph and body links ---- */

#content > p {
    max-width: 65ch;
}

#content a,
#content a:visited {
    border-bottom: 1px solid #111111;
    color: #111111;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

#content a:hover {
    background: #111111;
    color: #ffffff;
}

.lead {
    color: #333333;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    line-height: 1.6;
    max-width: 36rem;
}


/* ---- STRIP HEAD: the little label above the photos ---- */

.strip-head {
    align-items: baseline;
    border-bottom: 1px solid #d8d6d1;
    display: flex;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    justify-content: space-between;
    letter-spacing: 3px;
    margin: 48px 0 16px 0;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.strip-label {
    color: #111111;
}

.strip-meta {
    color: #999999;
}


/* ---- THE STRIP: one flex row that can scroll sideways ---- */

.strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #111111 #e2e0db;
    scrollbar-width: thin;
}

.strip::-webkit-scrollbar {
    height: 6px;
}

.strip::-webkit-scrollbar-track {
    background: #e2e0db;
}

.strip::-webkit-scrollbar-thumb {
    background: #111111;
}

.strip:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 4px;
}


/* ---- PHOTO TILE: each figure in the strip ---- */

.photo {
    /* grow to fill a wide row, but never shrink below 118px,
       so on a narrow screen the row overflows and scrolls */
    flex: 1 0 118px;
    scroll-snap-align: start;
}

.photo-img {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(17, 17, 17, 0.15);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* When a real <img> is dropped in, it fills its square neatly. */
.photo-img img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.photo:hover .photo-img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

figcaption {
    color: #444444;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 10px;
}

.frame-no {
    color: #999999;
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1px;
}


/* ---- PLACEHOLDER PHOTOS: gradient stand-ins for real pictures ----
   Replace each background with your own image using an <img> tag. */

.photo-1 { background: linear-gradient(135deg, #f6bd60, #f28482); }
.photo-2 { background: linear-gradient(160deg, #a8dadc, #457b9d); }
.photo-3 { background: linear-gradient(150deg, #b7b7a4, #6b705c); }
.photo-4 { background: linear-gradient(140deg, #cdb4db, #6d597a); }
.photo-5 { background: linear-gradient(135deg, #ffd6a5, #e07a5f); }
.photo-6 { background: linear-gradient(160deg, #90e0ef, #0077b6); }


/* ---- SCROLL HINT: only needed once the strip can scroll ---- */

.scroll-hint {
    color: #888888;
    display: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 14px;
    text-transform: uppercase;
}


/* ---- NOTE: a framed box of instructions ---- */

.note {
    background: #fafafa;
    border: 1px solid #111111;
    border-top: 6px solid #111111;
    margin-top: 52px;
    padding: 28px 32px 24px 32px;
}

.note h2 {
    color: #111111;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.note p {
    margin-bottom: 14px;
}

.note ol {
    margin: 0 0 0 20px;
}

.note li {
    margin-bottom: 10px;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 1px solid #111111;
    color: #999999;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 52px;
    padding-top: 20px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #111111;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}


/* ---- SMALL SCREENS: tighter frame, strip scrolls sideways ---- */

@media (max-width: 640px) {
    body {
        padding: 16px 10px;
    }

    #page {
        padding: 34px 22px 28px 22px;
    }

    #masthead h1 {
        font-size: 30px;
    }

    .lead {
        font-size: 18px;
    }

    .strip {
        gap: 12px;
    }

    .photo {
        flex-basis: 132px;
    }

    .scroll-hint {
        display: block;
    }

    .note {
        padding: 22px 20px 18px 20px;
    }
}


/* ---- PRINT: drop the desk and the grey box ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        border: none;
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    .note {
        background: #ffffff;
    }
}
