html {
    overflow-y: auto;
}

:root {
    --brand-green: #36815C;
    /* adjust to match logo color if needed */
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    margin: 0 auto;
    max-width: 1400px;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #FFFCF9;
}

body,
p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.container {
    text-align: left;
}

.container.work {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 24px;
    align-items: stretch;
    padding: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

h1 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
}

h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
}

h4 {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 200;
}

h5 {
    font-size: 18px;
    font-weight: 200;
}

strong {
    font-weight: 600;
}


p.title {
    font-weight: 600;
}

.detail h5 {
    width: 100%;
    border-bottom: 1px solid #ccc;
}



.header-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 24px;
    background-color: var(--brand-green);
    padding: 80px;
    color: #FFFCF9;
}

.header-grid .logo {
    display: flex;
    align-items: center;
    background-color: #FFFCF9;
    padding: 40px;
    border-radius: 100px;
    justify-content: center;
}

.header-grid .logo img {
    display: block;
    height: 100px;
    width: auto;
}

.header-grid .introduction {
    text-align: left;
    max-width: 600px;
}

.header-grid .introduction h1 {
    margin-bottom: 0px;
}

.header-grid .introduction h3,
.header-grid .introduction p {
    padding-top: 10px;
}

.work p {
    max-width: 600px;
    padding-top: 10px;
}

.prototype-links {
    display: flex;
    gap: 18px;
    margin: 20px 0 0;
    flex-wrap: wrap;
}

.prototype-links a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.prototype-links a:hover,
.prototype-links a:focus {
    text-decoration: underline;
}

#gallery {
    padding: 60px 20px
}


.container.work h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.4rem;
    text-transform: none;
}

.container.work h2::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
}

.container.work.mobile h2::before {
    background-image: url("assets/mobile-icon.svg");
}

.container.work.web h2::before {
    background-image: url("assets/desktop-icon.svg");
}

.container.work h2,
.container.work p,
.container.work .work-details {
    grid-column: 2;
}

.container.work .work-copy {
    grid-column: 2;
    max-width: 600px;
    padding-top: 10px;
}

.container.work .image-hero {
    grid-column: 1;
    align-self: stretch;
    height: 600px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y;
    background-color: #fff;
        border: 1px solid #e2e2e2;

}

#work-1 .image-hero {
    background: none;
    overflow-y: scroll;
    border: 1px solid #ccc;

}

#work-1 .image-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
}

#work-2 .image-hero img,
#work-3 .image-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.thumb {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
    max-height: 600px;
    padding: 20px;
    background-color: #fff;
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.support {
    color: #666;
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
}

.image-hero {
    width: 100%;
    min-height: 600px;
    border-radius: 6px;
    margin: 20px 0;
}

.work-details {
    display: block;
    max-width: 600px;
    margin-top: 18px;
    text-align: left;
}

.work-details .detail {
    margin-bottom: 24px;
}

.work-details .title {
    margin-bottom: 8px
}

.work-details ul {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

/* Tabs styling */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tabs .tab {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.tabs .tab {
    color: var(--brand-green);
    border-bottom: 3px solid transparent;
    border-radius: 8px;
}

.tabs .tab[aria-selected="true"] {
    background: var(--brand-green);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.tabs .tab:focus {
    outline: 2px solid rgba(42, 157, 111, 0.25);
    outline-offset: 2px;
}

.tab-panels .tab-panel {
    padding-top: 8px;
}

.tab-panel .detail {
    margin: 0 0 16px 0;
}






@media (max-width:700px) {

    h1 {
        font-size: 32px;
        line-height: 1.2;
        font-weight: 800;
    }

    h2 {
        font-size: 24px;
        line-height: 1.2;
        font-weight: 600;
    }

    h3 {
        font-size: 20px;
        line-height: 1.2;
        font-weight: 400;
    }

    h4 {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 200;
    }

    h5 {
        font-size: 16px;
        font-weight: 200;
    }


    .header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 80px 20px;
    }

    .container.work {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .container.work h2,
    .container.work p,
    .container.work .work-details,
    .container.work .work-copy,
    .container.work .image-hero {
        grid-column: 1;
    }

    .container.work .image-hero {
        width: 100%;
        height: auto;
        min-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: pan-y;
    }

    #work-1 .image-hero {
        overflow-y: scroll;
        border: 1px solid #ccc;
        height: 300px;
    }

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