* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent; /* Removes highlight on tap */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: "Sofia Sans", sans-serif;
    background-color: rgb(18, 18, 18);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////*/
/* HEADER */
header {
    display: flex;
    flex-direction: row;
    position:relative;
    justify-content: center;
    text-align: left;
    padding-top: 3rem;
}
header, 
.project-description-container, 
.content-item, 
.ct,
.gallery {
    max-width: 153rem;
    margin-left: auto;
    margin-right: auto;
    padding-left:  30rem;
    padding-right: 30rem;
}
.ct {
    padding-bottom: 1rem;
    padding-top: 2rem;
}
.ctt, .ctt1 {
    position: relative;
    z-index: 256;
    font-size: 2rem;
    font-weight: 800; 
}
.ctt {
    color: rgb(143, 181, 244);
}
.ctt1 {
    color: antiquewhite;
}
.title {
    font-size: 3.5rem;
    line-height: 1.15em;
    color: rgb(220, 244, 161);
    font-weight: 700;
    width: 60%;
}


.s1 {
    background-color: rgb(58, 59, 58);
    padding-bottom: 3rem;
}













/* ////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////*/
/* JUSTIFIED GRID TITLE */
.gallery-title {
    background-color: rgb(12, 7, 5);
    display: block;
    padding-bottom: .5rem;
    padding-top: 1rem;
    position:relative;
    z-index: 252;
    width: 100dvw;
    place-items:center;
    justify-content: center;
    align-items: center;
}

.concept-art {
    padding-bottom: .7rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgb(204, 197, 165);   
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////*/
/* JUSTIFIED GRID */
.justified{
    z-index: 252;
    position: relative ;
}
/* Base styles for gallery */
.gallery-bg-index{
background: linear-gradient(to bottom, rgb(12, 7, 5), rgb(33, 39, 44));
}
.gallery {
    z-index: 250;
    display: flex;
    justify-content: flex-start; /* Align items from the start, avoid center alignment */
    align-items: flex-start; /* Align items from the start to avoid gaps */
    flex-wrap: wrap; /* Ensure items wrap into rows */
    gap: .5rem;
    /* padding-left: 30rem; */
    /* padding-right: 30rem; */
    user-select: none;
    outline: none;
}

/* Gallery items */
.gallery-item {
    z-index: 250;
    transition: all 300ms ease-in-out;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100px; /* Base size for items (can be overridden by JS) */
    margin: 0; /* Ensure no margin causes extra spacing */
}

/* Image inside the gallery-item */
.gallery-item img {
    z-index: 250;
    display: block;
    user-select: none;
    outline: none;
    width: 100%;
    height: auto; /* Maintain aspect ratio */
}
.gallery-item:hover {
    z-index: 250;
    opacity: 0.95;
    cursor: pointer;
    transform: scale(1.01);
    position: relative;
}
.gallery::after {
    z-index: 250;
    content: '';
    position: relative;
    min-width: calc(100vw / 4);
}
/* For screens smaller than 768px (Tablets & Phones) */
/* @media (max-width: 900px) {
    .gallery {
        gap: .3rem;
        padding-left: 0;
        padding-right: 0;
    }
    .gallery-item {
        flex-basis: 48%; 
    }
} */

/* For screens smaller than 480px (Mobile Portrait) */
/* @media (max-width: 480px) {
    .gallery {
        gap: .3rem;
    }
    .gallery-item {
        flex-basis: 100%; 
    }
}
 */












/* ////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////*/
/* PROJECT DESCRIPTION */
.project-description-container{
    position: relative;
    z-index: 256;
    text-align: left;
}
.land {
    /* padding-top: 4rem; */
    padding-bottom: 3rem;
}
.paragraph {
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.project-info-bg {
    z-index: 2;
    width: 100%;
    position:absolute;
    height: 100vh;
    border-radius: 8px;
}
.project-description {
    position: relative;
    z-index: 256;
    color: rgb(197, 220, 249);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5em;
}
.description-highlights {
    color: rgb(220, 244, 161);
    font-weight: 800;
}
.description-underline {
    text-decoration: underline;
    text-decoration-thickness: .1rem;
    text-decoration-color: rgb(220, 244, 161);
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////*/
/* PROJECT INTEL */
.project-info-container {
    z-index: 250;
    width: 100vw;
    height: 100%; /* Ensures container takes up enough vertical space */
    padding-top: .4rem;
    position: relative;
    display: flex;
}
.link-title {
    color: rgb(220, 244, 161);
    font-size: 1.3rem;
    font-weight: 600;
}
.link {
    display: flex;
    align-items: center;
    color: rgb(197, 244, 249);
    display: flex;
    z-index: 221;
    font-size: 1rem;
    padding-left: 2%;
    padding-right: 2%;
    display: block;
}
.links {
    display: flex;
    align-items: center; 
    color: rgb(197, 244, 249);
    text-decoration: underline;
    text-decoration-thickness: .09rem;
    text-decoration-color: rgb(220, 244, 161);
    cursor: pointer;
    z-index: 221;
    font-size: 1rem;
}

/* ////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////*/
/* CONTENT ITEMS */
.two {
    display: flex; 
    gap: 1rem;
    
}
.project-nonclickitem video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content-item {
    position: relative;
    z-index: 500;
    text-align: center;
}
.content-item img {
    max-width: 100%;
}
.content-item p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5em;
}
.ct {
    padding-bottom: .3rem;
}
.ctt {
    position: relative;
    z-index: 256;
    color: #dcf4a1;
    font-size: 1.7rem;
    font-weight: 800;
}
.project-item, 
.project-nonclickitem {
    z-index: 250;
    transition: all 300ms ease-in-out;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100px;
    margin: 0; 
    display: flex;
    margin-bottom: 2rem; 
}
.project-item {
    cursor: pointer;
}





footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    font-size: 1rem;
}

.spacing-before-contact {
    background-color: rgb(58, 59, 58);
    width: 100%;
    height: 8rem;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////*/
/* MEDIA */
@media (min-width: 1500px) and (max-width:2200px) {
    header, .project-description-container, .content-item, .ct, .gallery {
    padding-left:  15rem;
    padding-right: 15rem;
    }
}              

@media (min-width: 800px) and (max-width:1500px) {
    header, .project-description-container, .content-item, .ct, .gallery {
    padding-left:  6rem;
    padding-right: 6rem;
    }
}  

@media (max-width:800px) {
    header, .project-description-container, .content-item, .ct, .gallery {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    }
    header {
        flex-direction: column;
        padding-top: 0rem;
    }
    .project-info-container {
        padding-top: 2rem ;
        flex-direction: column; 
        padding-bottom: 2rem;
    }
    .link {
        padding-bottom: 1rem;
    }
    .project-description-container {
        padding-bottom: 4.5rem;
    }
    .title {
        width: 100%;
        padding-top: 2.5rem ; 
        padding-bottom: 1.5rem;
    }
    .content-item {
        position: relative;
        z-index: 500;
        margin-bottom: 0px;
        text-align: center;
    }
    .content-item img {
        max-width: 100%;
        height: auto;
        max-height: 50rem;
        margin-bottom: 0px;
    }
    .project-item, .project-nonclickitem {
        margin-bottom: 2rem;
    }
    .two {
        /* gap: .5rem; */
        display: block; /* or block, inline, depending on context */
        gap: 0;
    }
    .land {
    padding-top: 2rem;
    padding-bottom: 5rem;
}
.paragraph {
    padding-top: 4rem;
    padding-bottom: 8rem;
}
}