/* ------------------------------
   DESIGN LANDING PAGE
------------------------------ */

.design-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.design-gallery > a {
    aspect-ratio: 1 / 1;
}

.design-gallery > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-gallery .image-link-title {
    z-index: 2;
}

/* ------------------------------
   DESIGN PROJECT PAGES
------------------------------ */

.hero-tone-deaf {
    background-image: url("../images/design/ab4257c0-5835-4e5b-a82b-402bad74c7f0_rw_1200.jpg");
}

.hero-digihook {
    background-image: url("../images/design/d2be385a-2b91-4d3d-b14a-b653cb3efbd6_rw_1920.png");
}

.hero-mourne-country {
    background-image: url("../images/design/a2d15faf-ea03-47a1-8e91-ac6edcb84d14_rw_1920.png");
}

.hero-tragedy {
    background-image: url("../images/design/96ee2921-14d6-417d-b6fb-f7105d797226_rw_1920.jpg");
}

.hero-travelmaster {
    background-image: url("../images/design/e37fe060-c19b-4d0f-b979-89f8e981131a_rw_3840.png");
}

.hero-peck {
    background-image: url("../images/design/fa87baca-bb7a-41bf-9c5d-1c5290c37cd0_rw_1920.png");
}

.site-header .hero[class*="hero-"] {
    background-size: cover;
    background-position: center;
}

.design-project {
    max-width: 1200px;
    margin: 0 auto;
}

.project-hero-block {
    max-width: 1060px;
    margin: 44px auto 34px;
    padding: 0 20px;
    text-align: center;
}

.project-hero-block h1 {
    margin-bottom: 10px;
    color: #4f2463;
    font-family: "Bodoni Moda", serif;
    font-size: 46px;
    line-height: 1.12;
}

.project-hero-block p {
    margin-bottom: 24px;
    color: #8041db;
    line-height: 1.5;
}

.project-hero-block img {
    width: 100%;
    max-height: 620px;
    display: block;
    object-fit: contain;
}

.project-tragedy .project-hero-block img {
    height: 430px;
    object-fit: cover;
    object-position: center;
}

.project-copy-row {
    display: block;
    margin: 30px 40px 24px;
}

.design-project .project-copy {
    max-width: 820px;
    padding: 0;
    text-align: justify;
    color: #111;
    line-height: 1.75;
}

.design-project .project-copy p {
    margin-bottom: 18px;
}

.design-image-row {
    max-width: 1120px;
    margin: 28px auto 34px;
    padding: 0 20px;
}

.project-image-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-image-grid.columns-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.project-image-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-image-grid img {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: contain;
}

.screen-width-image {
    max-width: 100%;
}

.screen-width-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.design-video-row {
    max-width: 920px;
    margin: 30px auto 34px;
    padding: 0 20px;
}

.project-video-copy-row {
    max-width: 1120px;
    margin: 34px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 28px;
    align-items: center;
}

.project-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.project-video iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.project-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.project-nav-links a {
    color: #8041db;
    -webkit-text-fill-color: #8041db;
    text-decoration: none;
    line-height: 1.6;
}

.project-nav-links a:hover {
    color: #fff894;
    -webkit-text-fill-color: #fff894;
}

.project-bottom-banner {
    width: 100%;
    height: 360px;
    margin: 42px 0 22px;
    overflow: hidden;
}

.project-bottom-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .design-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-image-grid,
    .project-image-grid.columns-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-image-grid img {
        height: 240px;
    }

    .project-video-copy-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .design-gallery,
    .project-image-grid,
    .project-image-grid.columns-2 {
        grid-template-columns: 1fr;
    }

    .project-hero-block h1 {
        font-size: 34px;
    }

    .project-copy-row {
        margin: 28px 20px 22px;
    }

    .design-project .project-copy {
        text-align: left;
    }

    .project-image-grid img {
        height: auto;
        max-height: 520px;
    }

    .project-tragedy .project-hero-block img,
    .project-bottom-banner {
        height: 280px;
    }
}
