/*
COLOUR PALETTE
Dark blue #1E3143
Orange #FF9523
Ivory #D8D9D0
Light grey #D3D3D3
Off-white #f6f6f6
Light blue #44C9E1
*/

/* GLOBAL STYLES
--------------------------------------- */
/* 
  https://www.paulirish.com/2012/box-sizing-border-box-ftw/
*/
html {
  box-sizing: border-box;
  font-size: 62.5%; /* set default to 10px */
}
*, *:before, *:after {
  box-sizing: inherit;
}

html, body {
    height: 100%;
    margin: 0;
    line-height: 1.2;
}
body {
    background: #D3D3D3;
    font-family: "Rubik", sans-serif;
    font-size: 1.6rem;
}
h1, h2, h3 {
    font-family: "Inter", sans-serif;
    font-weight: 400;
}
h1 {
    color: #1E3143;
    font-size: 3.8rem;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.01em;
}
h2 {
    font-size: 3rem;
}
h3 {
    font-size: 2rem;
}

/* link styles */
header a {
    color: #1E3143;
}
footer a {
    color: #44C9E1;
}
a:hover {
    color: #FF9523;
    text-decoration: none;
}
.btn {
    background: #1E3143;
    color: #44C9E1;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: 0.05em;
    line-height: 1;
    border-radius: 4px;
} 
.content-wrapper {
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 30px;
    max-width: 900px;
}
.content-bg {
    background: rgb(255 255 255 / 0.85);
    padding: 30px;
}

/* HEADER
--------------------------------------- */
.nav-wrapper ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0 30px;
}
.nav-wrapper li {
    display: block;
    font-size: 2.4rem;
}
.nav-wrapper .current {
    color: #aaa;
    cursor: default;
}
header a:link{
    text-decoration: none;
}
.header-wrapper {
    width: 100%;
    padding-top: 30px;
}

/* ABOUT
--------------------------------------- */
.about {
    background: url(../images/inception4c_ch7_div3_2x.png) repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
@media screen and (max-width: 650px) {
    .about .content-wrapper {
        padding: 20px;
    }
    .content-bg {
    padding: 20px;
    }
}

/* PROJECT
--------------------------------------- */
.project {
    background: url(../images/inception4b_ch72_div3_2x.png) repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
}
.project .content-bg {
    background: rgb(255 255 255 / 0.95);
}
@media screen and (max-width: 650px) {
    .project header::before {
        height: 200px;
    }
    h1 {
        font-size: 3.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}

/* Projects
--------------------------------------- */
.project-item {
    margin-bottom: 50px; 
}
.project-item img {
    width: 300px;
}
@media screen and (min-width: 649px) { 
    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }
    .project-item img {
        width: 100%;
    }
     header .content-wrapper{
        padding: 30px;
    }
   
}
@media screen and (max-width: 650px) {
    .project-item img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* FOOTER
--------------------------------------- */
footer {
    background: #1E3143;
    color: #D8D9D0;
}
footer a:link{
    text-decoration: none;
}
.socials {
    list-style-type: none;
    padding: 0;
}
.socials li {
    display: inline-block;
    margin-left: 10px; 
}
.socials img {
    width: 32px;
}
.socials img:hover {
    opacity: 0.5;
}
@media screen and (min-width: 650px) {
    footer{
        display: flex;
        justify-content: space-between;
        padding: 0 20px; 
    }
}
@media screen and (max-width: 649px) {
    footer{
        text-align: center;
        padding: 10px;
    }
}

/* WORKS
--------------------------------------- */
.works-section { margin-bottom: 40px; }
.work { margin-bottom: 60px; }
.work video { width: 100%; background: #000; }
.stills, .drawings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.drawings figure, .stills figure { margin: 0; }
.drawings img { width: 100%; display: block; }
figcaption, .caption { font-size: 0.85rem; color: #666; margin-top: 6px; }
.placeholder-box {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border: 2px dashed #aaa;
    color: #777;
    background: #f3f3f3;
    text-align: center;
}
.placeholder-box.video { aspect-ratio: 16 / 9; }
.media-placeholder { margin: 20px 0; }

.project-item .placeholder-box { margin-bottom: 10px; }
.project-page .back { margin-top: 0; }
.project-page .meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; }
.project-page .meta dt { font-weight: 600; }
.project-page .meta dd { margin: 0; }

.works {
    background: url(../images/inception3a_ch0_div3_2x.png) repeat;
    background-size: cover;
}
.slider { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0; }
.slides { flex: 1; min-width: 0; }
.slide { display: none; text-align: center; }
.slide.active { display: block; }
.slide img, .slide video { max-width: 100%; max-height: 70vh; background: #000; }
.slide img { background: none; }
.slider-btn { border: 0; background: none; font-size: 3.5rem; line-height: 1; cursor: pointer; color: #1E3143; padding: 0 6px; }
.slider-btn:hover { opacity: 0.5; }

.works .project-item img {
    width: 100%;
    height: 260px;
    object-fit: contain;
}

.early-heading { margin-top: 30px; }
.works .project-item a img { display: block; }
