@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

/* ==================================================
   Variables
================================================== */

:root {
    --photograph-cream: #f1e8d8;
    --photograph-gold: #b48a2b;
    --photograph-light-gold: #ddcba9;
    --photograph-white: #fffdf8;
    --photograph-text: #20201e;
    --photograph-black: #0c0c0b;
    --photograph-max-width: 1640px;
}

/* ==================================================
   Page base
================================================== */

.photograph-page {
    width: 100%;
    margin: 0;
    background: var(--photograph-cream);
    color: var(--photograph-text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.photograph-page *,
.photograph-page *::before,
.photograph-page *::after {
    box-sizing: border-box;
}

.photograph-page h1,
.photograph-page h2,
.photograph-page h3,
.photograph-page p {
    margin-top: 0;
}

.photograph-page h1,
.photograph-page h2,
.photograph-page h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
}

.photograph-page a {
    color: inherit;
    text-decoration: none;
}

/* ==================================================
   Shared horizontal alignment
================================================== */

.photograph-hero-inner,
.photograph-content {
    width: min(
        calc(100% - 15.2vw),
        var(--photograph-max-width)
    );
    margin-right: auto;
    margin-left: auto;
}

/* ==================================================
   Hero
================================================== */

.photograph-hero {
    position: relative;
    min-height: 414px;
    padding: 56px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--photograph-black);
    color: var(--photograph-white);
}

/*
   Expected image location:

   images/photograph-collection-hero.jpg
*/
.photograph-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;

    background-image:
        url("../images/photograph-collection-hero.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    content: "";
    filter: grayscale(100%);
    transform: scale(1.01);
}

/* Dark image overlay */
.photograph-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.93) 0%,
            rgba(0, 0, 0, 0.72) 42%,
            rgba(0, 0, 0, 0.34) 100%
        );

    content: "";
}

.photograph-hero-inner {
    position: relative;
    z-index: 1;
    text-align: left;
}

/* ==================================================
   Breadcrumbs
================================================== */

.photograph-breadcrumbs {
    margin: 0 0 44px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--photograph-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.4;
    text-transform: uppercase;
}

.photograph-breadcrumbs a {
    color: var(--photograph-white);
    transition: color 180ms ease;
}

.photograph-breadcrumbs a:hover,
.photograph-breadcrumbs a:focus-visible {
    color: var(--photograph-gold);
}

/* ==================================================
   Hero text
================================================== */

.photograph-eyebrow {
    margin: 0 0 12px;
    color: var(--photograph-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.3;
    text-transform: uppercase;
}

.photograph-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--photograph-white);
    font-size: clamp(58px, 6vw, 86px);
    line-height: 0.88;
    letter-spacing: -3px;
}

.photograph-hero-description {
    max-width: 570px;
    margin: 24px 0 0;
    color: var(--photograph-white);
    font-size: 16px;
    line-height: 1.55;
}

/* ==================================================
   Main content
================================================== */

.photograph-content {
    padding-top: 98px;
    padding-bottom: 125px;
}

.photograph-content-grid {
    display: grid;
    grid-template-columns:
        minmax(180px, 27%)
        minmax(0, 1fr);
    column-gap: 7.5vw;
    align-items: start;
}

/* ==================================================
   Contact card
================================================== */

.photograph-contact-card {
    width: 100%;
    margin: 0;
    padding-top: 15px;
    border-top: 2px solid var(--photograph-light-gold);
    color: var(--photograph-text);
    font-size: 14px;
}

.photograph-contact-title {
    margin: 0 0 14px;
    color: #90702d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.photograph-contact-card address {
    margin: 0 0 18px;
    font-style: normal;
    line-height: 1.5;
}

.photograph-contact-card > p {
    margin: 0 0 18px;
}

.photograph-contact-card > p:last-child {
    margin-bottom: 0;
}

.photograph-phone {
    color: #997529;
    font-weight: 700;
    transition: color 180ms ease;
}

.photograph-phone:hover,
.photograph-phone:focus-visible {
    color: var(--photograph-text);
}

/* ==================================================
   Main photograph content
================================================== */

.photograph-main-content {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.photograph-details {
    width: 100%;
    margin: 0;
    padding: 0;
}

.photograph-details h2,
.photograph-member-access h2 {
    margin: 0;
    color: var(--photograph-text);
    font-size: clamp(42px, 4vw, 55px);
    line-height: 1;
    letter-spacing: -2px;
}

.photograph-details p,
.photograph-member-access p {
    max-width: 820px;
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.55;
}

/* ==================================================
   Member access
================================================== */

.photograph-member-access {
    width: 100%;
    margin: 48px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--photograph-light-gold);
}

.photograph-access-link {
    width: 100%;
    max-width: 355px;
    margin-top: 22px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--photograph-light-gold);
    color: var(--photograph-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

.photograph-access-link span:last-child {
    flex: 0 0 auto;
    color: var(--photograph-gold);
    font-size: 18px;
    font-weight: 400;
}

.photograph-access-link:hover,
.photograph-access-link:focus-visible {
    padding-left: 6px;
    color: var(--photograph-gold);
}

/* ==================================================
   Medium screens
================================================== */

@media (max-width: 1000px) {
    .photograph-content-grid {
        grid-template-columns:
            minmax(170px, 25%)
            minmax(0, 1fr);
        column-gap: 5vw;
    }

    .photograph-details h2,
    .photograph-member-access h2 {
        font-size: clamp(38px, 5vw, 50px);
    }
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 850px) {
    .photograph-hero {
        min-height: auto;
        padding: 52px 0 60px;
    }

    .photograph-hero-inner,
    .photograph-content {
        width: calc(100% - 14vw);
    }

    .photograph-content {
        padding-top: 70px;
        padding-bottom: 85px;
    }

    .photograph-content-grid {
        grid-template-columns: 1fr;
        row-gap: 45px;
    }

    .photograph-contact-card,
    .photograph-main-content {
        grid-column: 1;
    }

    .photograph-contact-card {
        max-width: 280px;
    }

    .photograph-hero h1 {
        font-size: clamp(54px, 10vw, 76px);
        letter-spacing: -2.5px;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 560px) {
    .photograph-hero {
        padding: 44px 0 52px;
    }

    .photograph-hero-inner,
    .photograph-content {
        width: calc(100% - 12vw);
    }

    .photograph-breadcrumbs {
        margin-bottom: 34px;
        font-size: 10px;
    }

    .photograph-hero h1 {
        font-size: 54px;
        letter-spacing: -2px;
    }

    .photograph-hero-description {
        font-size: 15px;
    }

    .photograph-details h2,
    .photograph-member-access h2 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .photograph-details p,
    .photograph-member-access p {
        font-size: 15px;
    }

    .photograph-access-link {
        max-width: none;
    }
}
