/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;

}

/* Flexbox Layout to keep footer at the bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: #f6f4d2;
    /* Text color */
    background-color: #252422;
    /* Background color */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 40% 30%;
    }

    50% {
        background-position: 100% 70%;
    }

    75% {
        background-position: 60% 20%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Header and Footer Styling */
header,
footer {
    position: relative;
    background: linear-gradient(90deg, #355070, #6d597a, #b56576, #e56b6f);
    background-size: 300% 300%;
    animation: gradientAnimation 8s ease infinite;
    color: #f6f4d2;
    text-align: center;
    padding: 20px;
}

/* Noise Overlay */
header::after,
footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Assets/noise.png');
    /* Add your noise image */
    opacity: 0.15;
    /* Adjust transparency */
    pointer-events: none;
    /* Ensures it doesn't interfere with clicks */
}

header a {
    text-decoration: none;
    color: inherit;
}

header h1 {
    color: #f6f4d2;
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin: 0;
}

header p {
    font-size: 1.2em;
    margin: 5px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #f6f4d2;
    font-weight: bold;
}

/* Hover state */
nav ul li a:hover {
    color: #333;
    /* Blue color on hover */
}

/* Focus and active states */
nav ul li a:focus,
nav ul li a.active {
    color: #f4f4f4;
    /* Blue color on active */
}

/* Optional underline effect */
nav ul li a:hover,
nav ul li a.active {
    text-decoration: underline;
}



nav ul li a:hover {
    text-decoration: underline;
}

/* Main content area takes up remaining space */
main {
    flex: 1;
    padding: 40px;
    padding-left: 100px;
}

#about {
    max-width: 85%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    /* Align items to the top */
    padding: 40px 0;
    /* Padding to create space at the top/bottom */
    margin: 0 auto;
    /* Center the section horizontally */
}

.about-me {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    /* Add gap between text and image */
}

.text-content {
    flex: 1;
    max-width: 60%;
    font-size: 1.5em;
}

.about-me h1 {
    background: linear-gradient(to right, #22577a, #38a3a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: black;
}

.about-me p {
    max-width: 100%;
    line-height: 1.6;
}

#three-container-about {
    flex-basis: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#three-container-about img {
    max-width: 100%;
    height: auto;
}


/* Showreel Section */
#showreel {
    margin-top: 40px;
    text-align: center;
}

#showreel video {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

/* Projects Section */
#projects {
    text-align: center;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project {
    width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.project img {
    width: 100%;
    height: auto;
}

.project h3 {
    margin: 10px 0;
}


#game-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px;
}

.project {
    width: 250px;
    background-color: #f7f7f2;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: scale(1.05);
}

.project img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #028090;
}

.project-info {
    padding: 10px;
}

.project-info h2 {
    font-family: 'Playfair Display', serif;
    color: #028090;
    font-size: 1.5em;
}

.project-info .tagline {
    font-family: 'Montserrat', sans-serif;
    color: #252422;
    font-size: 1em;
}

.project video {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #028090;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
}

.keywords {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword {
    background-color: #007acc;
    /* Blue bubble background */
    color: #005999;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
}

.keyword:nth-child(odd) {
    background-color: #005999;
    /* Alternating orange bubbles */
}

.keyword:hover {
    background-color: #005999;
    /* Darker blue on hover */
    cursor: default;
}

#game-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project {
    display: block;
    width: 300px;
    /* Adjust as needed */
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    text-decoration: none;
    /* Remove default link underline */
    color: inherit;
    /* Keep text color consistent */
    transition: transform 0.2s ease-in-out;
}

.project:hover {
    transform: scale(1.05);
    /* Slightly enlarge on hover */
}

.project video,
.project img {
    width: 100%;
    border-bottom: 2px solid #028090;
    border-radius: 10px 10px 0 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #252422;
    background-color: #f7f7f2;
    margin: 0;
    padding: 0;
}

header,
footer {
    text-align: center;
    padding: 20px;
    background-color: #252422;
    color: #f6f4d2;
}

header a {
    text-decoration: none;
    color: inherit;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

footer {
    position: relative;
    /* Ensure the footer can have effects like box-shadow */
    box-shadow: 0px -10px 15px rgba(2, 128, 144, 0.53);
    /* Glow effect on top */
}

/* Footer Styling */
footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a img {
    width: 24px;
    height: 24px;
    margin: 0 8px;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.glass-btn {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 500px;
    margin-left: 1em;
    margin-right: 1em;
    cursor: pointer;
    transition: all 0.3s;

    &.blue-btn {
        -webkit-box-shadow: 0px 20px 20px -17px rgba(0, 111, 255, 0.53);
        -moz-box-shadow: 0px 20px 20px -17px rgba(0, 111, 255, 0.53);
        box-shadow: 0px 20px 20px -17px rgba(0, 111, 255, 0.53);

        &:hover {
            -webkit-box-shadow: 0px 20px 35px -16px rgba(0, 111, 255, 0.65);
            -moz-box-shadow: 0px 20px 35px -16px rgba(0, 111, 255, 0.65);
            box-shadow: 0px 20px 35px -16px rgba(0, 111, 255, 0.65);
        }
    }
}

.icon-link {
    display: inline-flex;
    /* Ensures the link behaves like a flex container */
    align-items: center;
    /* Centers the image vertically */
    justify-content: center;
    /* Centers the image horizontally */
    text-decoration: none;
    /* Removes underline */
}

.icon-link img {
    width: 100%;
    /* Makes the image take up 80% of its container */
    height: auto;
    /* Maintains aspect ratio */
    object-fit: contain;
    /* Ensures image fits well within its container */
    transition: transform 0.3s ease;
    /* Adds smooth hover animation */
}

.icon-link:hover img {
    transform: scale(1.1);
    /* Slightly enlarges the icon on hover */
}



main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-header h2 {
    font-size: 2.5rem;
    color: #22577a;
}

.tagline {
    font-size: 1.25rem;
    color: #028090;
    margin-top: 5px;
}

.media video,
.media img {
    width: 100%;
    border-radius: 10px;
}

.project-description,
.project-features,
.project-technologies,
.project-challenges {
    margin-top: 0px;
}

h3 {
    color: #22577a;
    font-weight: bold;
}

ul {
    padding-left: 20px;
}

footer {
    font-size: 0.9rem;
    color: #f7f7f2;
}


#galleryOverlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.overlay {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#galleryOverlay {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Make sure it appears on top */
}

.overlay-image {
    max-width: 80%;
    max-height: 80%;
}

.close,
.prev,
.next {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.close {
    top: 20px;
    right: 20px;
}

.prev {
    top: 50%;
    left: 20px;
}

.next {
    top: 50%;
    right: 20px;
}

.art-item {
    cursor: pointer;
}


/*MOVILE FRIENDLY UI*/
@media (max-width: 480px) {
    .art-item {
        width: 100%;
        height: auto;
    }

    header h1 {
        font-size: 1.3rem;
    }

    header p {
        font-size: 0.9rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .project-features h3 {
        font-size: 1.2rem;
    }

    .project-features a {
        font-size: 0.9rem;
    }
}

/* Styling for Overlay Gallery */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay-image {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Styling for the footer */
footer {
    position: relative;
    /* Ensure the footer can have effects like box-shadow */
    box-shadow: 0px -10px 15px rgba(2, 128, 144, 0.53);
    /* Glow effect on top */
}

/* Footer Styling */
footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a img {
    width: 24px;
    height: 24px;
    margin: 0 8px;
}

.project-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.info-card {
    background: #222;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    width: 220px;
}

.info-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.info-card p {
    margin-top: 5px;
    font-size: 14px;
}

.info-card-long {
    background: #222;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    width: 660px;
}

.info-card-long h3 {
    margin: 0;
    font-size: 20px;
}

.info-card-long p {
    margin-top: 5px;
    font-size: 14px;
}

.sticky-notes-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sticky-note {
    background: #FFEB3B;
    padding: 15px;
    width: 440px;
    transform: rotate(-3deg);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    border-radius: 5px;
}

.sticky-note-broad {
    background: #FFEB3B;
    padding: 15px;
    width: 440px;
    transform: rotate(-3deg);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    border-radius: 5px;
}


.project-container {
    position: relative;
    display: inline-block;
    /* Ensures it wraps around the card properly */
}

/* Container for the card */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 30px 0 30px 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
    /* Tilt the card by 3 degrees */
    overflow: hidden;
    /* Ensure the gradient stays within bounds */
    position: relative;
    z-index: 2;
    /* Ensures the card appears above the GIF */
}

/* Gradient effect on top edge */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    /* Gradient height */
    background: linear-gradient(to right, #22577a, #38a3a5);
}

/* Each row is displayed horizontally */
.project-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Left column label should be right-aligned */
.project-label {
    font-weight: bold;
    color: #2c3e50;
    width: 150px;
    /* Fixed width to maintain alignment */
    text-align: right;
    /* Align the label text to the right */
}

/* Right column description should be left-aligned */
.project-description {
    color: #7f8c8d;
    flex: 1;
    text-align: left;
    /* Align the description text to the left */
}

.project-gif {
    position: absolute;
    top: 50%;
    transform: rotate(0deg) translateY(-50%);
    z-index: 1;
    /* Puts it behind the card */
    opacity: 0.8;
    /* Optional: Makes it slightly transparent */
    pointer-events: none;
    /* Prevents accidental interactions */
}

.breadcrumbs {
    font-size: 14px;
    color: #555;
    padding: 10px 20px;
    background: #f9f9f9;
    border-radius: 5px;
    display: inline-block;

    position: sticky;
    top: 0;
    /* Stick to the top of the page */
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Light shadow for depth */
    z-index: 1000;
    /* Ensure it stays above other content */
}


.breadcrumbs a {
    text-decoration: none;
    color: #0077cc;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .current {
    color: #333;
    font-weight: bold;
}

.project-content {
    position: relative;
    /* Ensures absolute positioning works inside */
}


.next-projects-container {
    display: flex;
    justify-content: center;
    /* Centers the row of cards */
    gap: 80px;
    /* Space between cards */
    padding: 20px;
    /* Padding above the footer */
    flex-wrap: wrap;
    /* Ensures responsiveness */
}

.next-project-preview {
    flex: 1;
    max-width: 300px;
    /* Keeps card size uniform */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.next-project-preview a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.preview-left {

    display: flex;
    flex-direction: column;
    align-items: center;
}

.next-project-preview img {
    width: 100%;
    aspect-ratio: 4068 / 2836;
    height: auto;
    object-fit: cover;
    display: block;
}

.next-project-info {
    padding: 10px;
    text-align: center;
}

.next-project-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    margin: 5px 0;
    color: #333;
}

.next-project-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #666;
    margin: 0;
}

.preview-right {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.next-project-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
    background-color: white;
    /* Add a default background color */
}

.card.highlight {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #f0f8ff;
    /* Light blue highlight color */
}

.goals-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 40px auto;
}

.goal-column ul {
    color: #555;
    line-height: 1.6;
}

.detail-row {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.detail-row .detail {
    flex: 1;
}

.detail {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10%;
}

.detail-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
    /* Creates space between title and text */
}

.title {
    flex: 1;
    font-size: 2.5rem;
    /* Bigger title */
    font-weight: bold;
    text-align: left;
    background: linear-gradient(to right, #22577a, #38a3a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-content {
    flex: 2;
    font-size: 1rem;
    text-align: left;
    color: #555;
}

.text-content h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0077b5;
}

@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
        gap: 20px;
    }

    .title {
        font-size: 2rem;
        text-align: center;
    }

    .text-content {
        text-align: center;
    }
}



.dynamic-hr {
    width: 580px;
    /* Adjust width as needed */
    height: 2px;
    /* Base thickness */
    background: #333;
    margin: 10px auto;
    /* Center align */
    border-radius: 50px;
    /* Smooth edges */
}

.progress-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.progress-item {
    flex: 1;
    text-align: center;
    transition: flex 0.3s ease;
    overflow: hidden;
}

.progress-item img {
    width: 150px;
    height: 150px;
}

.progress-details {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.progress-item:hover {
    flex: 2;
}

.progress-item:hover .progress-details {
    opacity: 1;
    max-height: 500px;
}

.design-grid-props {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 images per row */
    gap: 10px;
    /* spacing between images */
}

.art-item-props {
    width: 100%;
    /* fill the grid cell */
    height: auto;
    /* maintain aspect ratio */
    object-fit: cover;
    /* optional for consistent size cropping */
}






.sticky-notes-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Enables responsiveness */
    margin-top: 10px;
}

.sticky-note {
    background: #FFEB3B;
    padding: 20px;
    width: 240px;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
    text-align: left;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.audio-container {
    display: flex;
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically (if the container has a defined height) */
}



.lego-navigation {
    display: grid;

    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;

    width: 720px;
    height: 360px;

    gap: 0;
    /* 
        width: 360px;
    height: 180px; */

    margin: 40px auto;
}

.lego-bookshop {
    grid-column: 1;
    grid-row: 1 / 3;
}

.lego-indiana {
    grid-column: 2;
    grid-row: 1;
}

.lego-pride {
    grid-column: 2;
    grid-row: 2;
}

.lego-brick {
    position: relative;

    display: grid;

    padding: 50px;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.lego-bookshop {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
    background: #d45f70;
}

.lego-indiana {
    background: #75458e;

    padding: 40px;
}

.lego-pride {
    background: #6f008e;

    padding: 40px;
}

.lego-stud {
    position: relative;

    border-radius: 50%;

    overflow: hidden;

    aspect-ratio: 1;

    background: #222;

    box-shadow:
        inset 2px 2px 5px rgba(255, 255, 255, 0.35),
        inset -3px -3px 5px rgba(0, 0, 0, 0.35),
        2px 3px 5px rgba(0, 0, 0, 0.25);
}

.lego-stud img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.lego-stud::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 50%;

    box-shadow:
        inset 3px 3px 5px rgba(255, 255, 255, 0.3),
        inset -3px -3px 5px rgba(0, 0, 0, 0.3);

    pointer-events: none;
}

.lego-brick {
    box-shadow:
        inset 3px 3px 8px rgba(255, 255, 255, 0.25),
        inset -4px -4px 8px rgba(0, 0, 0, 0.2),
        3px 5px 8px rgba(0, 0, 0, 0.25);
}

.lego-brick:hover {
    transform: translateY(-4px);
    filter: brightness(1.08);
    cursor: pointer;
}

.lego-brick:active {
    transform: translateY(1px);
}

.project-section {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.section-title {
    background: #d45f69;
    color: white;
    text-align: center;
    padding: 12px 20px;
    margin: 50px 0 30px;

    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}


/* INTRO */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.intro-text {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.intro-image img {
    width: 100%;
    display: block;
}


/* EXPERIMENT THUMBNAILS */

.experiment-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 35px 0 60px;
}

.experiment-card {
    text-align: center;
}

.experiment-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;

}

.experiment-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;

}

.experiment-card h3 {
    font-size: 0.75rem;
    margin: 8px 0 3px;
}

.experiment-card p {
    font-size: 0.65rem;
}


/* CASE STUDIES */

.case-study {
    margin-bottom: 60px;
}

.case-study-heading {
    margin-bottom: 12px;
}

.case-study-heading h2 {
    color: #cf5965;
    font-size: 1rem;
    margin-bottom: 5px;
}

.case-study-heading p {
    font-size: 0.75rem;
}


/* MEDIA GRID */

.media-grid {
    display: grid;
    gap: 5px;
}

.media-grid.starry-night {
    grid-template-columns: 1.5fr 1fr;
}

.media-grid.barbie {
    grid-template-columns: 1.5fr 1fr 1fr;
}

.media {
    overflow: hidden;
}

.media img,
.media video,
.media iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.large {
    min-height: 180px;
}

.small {
    width: 50%;
    min-height: 100px;
}


.media-slot {
    background: #dedede;
    overflow: hidden;
    min-height: 150px;
}

.media-slot img,
.media-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-square {
    grid-column: span 1;
    grid-row: span 1;
}

.media-landscape {
    grid-column: span 2;
    grid-row: span 1;
}

.media-portrait {
    grid-column: span 1;
    grid-row: span 2;
}

.media-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* 
.starry-night {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
} */



/* ========================================
   LEGO NAVIGATION
   ======================================== */

.lego-navigation {
    display: grid;

    /*
       Left = Bookshop 2x2
       Right = two stacked 1x1 bricks
    */
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;

    width: 720px;

    margin: 70px auto;
}


/* ========================================
   INDIVIDUAL LEGO ITEMS
   ======================================== */

.lego-item {
    position: relative;
}


/* BOOKSHOP */

.lego-item-bookshop {
    grid-column: 1;
    grid-row: 1 / 3;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* INDIANA JONES */

.lego-item-indiana {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    align-items: center;
    gap: 15px;
}


/* PRIDE */

.lego-item-pride {
    grid-column: 2;
    grid-row: 2;

    display: flex;
    align-items: center;
    gap: 15px;
}


/* ========================================
   TITLES
   ======================================== */

.lego-item h3 {
    margin: 0;

    font-size: 16px;
    line-height: 1.15;
    font-weight: 500;

    text-align: left;
}


/* Bookshop title sits ABOVE the brick */

.lego-item-bookshop h3 {
    margin-bottom: 15px;

    text-align: center;

    color: #d45f70;
}


/* Indiana title */

.lego-item-indiana h3 {
    color: #75458e;
}


/* Pride title */

.lego-item-pride h3 {
    color: #6f008e;
}


/* ========================================
   LEGO BRICKS
   ======================================== */

.lego-brick {
    position: relative;

    display: grid;

    box-sizing: border-box;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;

    cursor: pointer;
}


/* ========================================
   BOOKSHOP — 2x2 BRICK
   ======================================== */

.lego-bookshop {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);

    width: 360px;
    height: 360px;

    gap: 25px;
    padding: 40px;

    background: #d45f70;

    box-shadow:
        inset 4px 4px 8px rgba(255, 255, 255, 0.25),
        inset -5px -5px 9px rgba(0, 0, 0, 0.2),
        4px 7px 10px rgba(0, 0, 0, 0.25);
}


/* ========================================
   INDIANA JONES — 1x1 BRICK
   ======================================== */

.lego-indiana {
    width: 180px;
    height: 180px;

    padding: 40px;

    background: #75458e;

    box-shadow:
        inset 4px 4px 8px rgba(255, 255, 255, 0.25),
        inset -5px -5px 9px rgba(0, 0, 0, 0.2),
        4px 7px 10px rgba(0, 0, 0, 0.25);
}


/* ========================================
   PRIDE — 1x1 BRICK
   ======================================== */

.lego-pride {
    width: 180px;
    height: 180px;

    padding: 40px;

    background: #6f008e;

    box-shadow:
        inset 4px 4px 8px rgba(255, 255, 255, 0.25),
        inset -5px -5px 9px rgba(0, 0, 0, 0.2),
        4px 7px 10px rgba(0, 0, 0, 0.25);
}


/* ========================================
   CIRCULAR LEGO STUDS
   ======================================== */

.lego-stud {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 50%;

    background: #222;

    /*
       Soft offset shadow to make the circles
       feel like physical LEGO studs
    */
    filter:
        drop-shadow(3px 5px 7px rgba(0, 0, 0, 0.45));
}


/* Images / GIFs */

.lego-stud img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ========================================
   STUD HIGHLIGHT
   ======================================== */

.lego-stud::after {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;

    box-shadow:
        inset 4px 4px 7px rgba(255, 255, 255, 0.25),
        inset -4px -4px 7px rgba(0, 0, 0, 0.3);

    pointer-events: none;
}


/* ========================================
   HOVER — MAKE IT FEEL CLICKABLE
   ======================================== */

.lego-brick:hover {
    transform: translateY(-5px);

    filter: brightness(1.08);

    box-shadow:
        inset 4px 4px 8px rgba(255, 255, 255, 0.3),
        inset -5px -5px 9px rgba(0, 0, 0, 0.2),
        6px 10px 15px rgba(0, 0, 0, 0.3);
}


/* ========================================
   CLICK / PRESS
   ======================================== */

.lego-brick:active {
    transform: translateY(2px);

    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.2),
        2px 3px 5px rgba(0, 0, 0, 0.25);
}


/* ========================================
   OPTIONAL — KEYBOARD ACCESSIBILITY
   ======================================== */

.lego-brick:focus-visible {
    outline: 3px solid #222;
    outline-offset: 5px;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 800px) {

    .lego-navigation {
        width: 90vw;
    }

    .lego-bookshop {
        width: 60vw;
        height: 30vw;

        padding: 25px;
        gap: 15px;
    }

    .lego-indiana,
    .lego-pride {
        width: 15vw;
        height: 15vw;

        padding: 25px;
    }

    .lego-item h3 {
        font-size: 12px;
    }
}

/* ========================================
   LEGO NAVIGATION
   ======================================== */

.lego-navigation {
    position: relative;

    display: grid;

    /*
       Actual LEGO geometry:

       Bookshop = 360px wide
       Indiana/Pride = 180px wide

       Total brick area = 540px
    */
    grid-template-columns: 360px 180px;
    grid-template-rows: 180px 180px;

    width: 540px;
    height: 360px;

    margin: 100px auto;

    gap: 0;
}


/* ========================================
   ITEM WRAPPERS
   ======================================== */

.lego-item {
    position: relative;
}


/* ========================================
   BOOKSHOP ITEM
   ======================================== */

.lego-item-bookshop {
    grid-column: 1;
    grid-row: 1 / 3;

    width: 360px;
    height: 360px;
}


/* ========================================
   BOOKSHOP TITLE
   ======================================== */

.lego-item-bookshop h3 {
    position: absolute;

    top: -65px;
    left: 0;

    width: 360px;

    margin: 0;

    text-align: center;

    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;

    color: #d45f70;
}


/* ========================================
   INDIANA ITEM
   ======================================== */

.lego-item-indiana {
    grid-column: 2;
    grid-row: 1;

    width: 180px;
    height: 180px;
}


/* ========================================
   PRIDE ITEM
   ======================================== */

.lego-item-pride {
    grid-column: 2;
    grid-row: 2;

    width: 180px;
    height: 180px;
}


/* ========================================
   SIDE TITLES
   ======================================== */

.lego-item-indiana h3,
.lego-item-pride h3 {
    position: absolute;

    left: 195px;
    top: 50%;

    transform: translateY(-50%);

    width: 150px;

    margin: 0;

    font-size: 24px;
    line-height: 1.15;
    font-weight: 400;
}


/* Indiana color */

.lego-item-indiana h3 {
    color: #75458e;
}


/* Pride color */

.lego-item-pride h3 {
    color: #6f008e;
}


/* ========================================
   LEGO BRICK
   ======================================== */

.lego-brick {
    position: relative;

    display: grid;

    box-sizing: border-box;

    width: 100%;
    height: 100%;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}


/* ========================================
   BOOKSHOP — TRUE 2x2
   ======================================== */

.lego-bookshop {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);

    width: 360px;
    height: 360px;

    gap: 15px;
    padding: 35px;

    background: #d45f70;

    box-shadow:
        inset 4px 4px 8px rgba(255, 255, 255, 0.25),
        inset -5px -5px 9px rgba(0, 0, 0, 0.2),
        4px 7px 10px rgba(0, 0, 0, 0.25);
}


/* ========================================
   INDIANA — TRUE 1x1
   ======================================== */

.lego-indiana {
    width: 180px;
    height: 180px;

    padding: 35px;

    background: #75458e;

    box-shadow:
        inset 4px 4px 8px rgba(255, 255, 255, 0.25),
        inset -5px -5px 9px rgba(0, 0, 0, 0.2),
        4px 7px 10px rgba(0, 0, 0, 0.25);
}


/* ========================================
   PRIDE — TRUE 1x1
   ======================================== */

.lego-pride {
    width: 180px;
    height: 180px;

    padding: 35px;

    background: #6f008e;

    box-shadow:
        inset 4px 4px 8px rgba(255, 255, 255, 0.25),
        inset -5px -5px 9px rgba(0, 0, 0, 0.2),
        4px 7px 10px rgba(0, 0, 0, 0.25);
}


/* ========================================
   CIRCULAR STUDS
   ======================================== */

.lego-stud {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 50%;

    background: #222;

    filter:
        drop-shadow(3px 5px 7px rgba(0, 0, 0, 0.45));
}


/* ========================================
   IMAGES / GIFS
   ======================================== */

.lego-stud img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ========================================
   STUD HIGHLIGHT
   ======================================== */

.lego-stud::after {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;

    box-shadow:
        inset 4px 4px 7px rgba(255, 255, 255, 0.25),
        inset -4px -4px 7px rgba(0, 0, 0, 0.3);

    pointer-events: none;
}


/* ========================================
   HOVER
   ======================================== */

.lego-brick:hover {
    transform: translateY(-5px);
    filter: brightness(1.08);
}


/* ========================================
   CLICK
   ======================================== */

.lego-brick:active {
    transform: translateY(2px);
}


/* ========================================
   KEYBOARD
   ======================================== */

.lego-brick:focus-visible {
    outline: 3px solid #222;
    outline-offset: 5px;
}

/* FULL-WIDTH SECTION HEADINGS */

.section-heading {
    width: 100vw;

    /* Break out of the centered 800px main container */
    margin-left: calc(50% - 50vw);

    padding: 30px 20px;

    color: white;
    text-align: center;

    box-sizing: border-box;
}

.section-heading h2 {
    margin: 0;

    color: white;
    font-size: 24px;
    font-weight: 700;

    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
}
/* 

.section-title {
    padding: 12px 20px;
    margin: 50px 0 30px;
} */

html {
    scroll-behavior: smooth;
}

.project-section {
    scroll-margin-top: 100px;
}



/* Bookshop */
#bookshop .section-heading {
    background-color: #d45f70;
}

/* Indiana Jones */
#indiana-jones .section-heading {
    background-color: #75458e;
}

/* Pride */
#pride .section-heading {
    background-color: #6f008e;
}
.video-grid-vertical {
    display: grid;

    grid-template-columns: 2fr 1fr 2fr;
    grid-template-rows: repeat(3, 1fr);

    gap: 8px;

    width: 100%;
}


/* LEFT TALL */
.tall-left {
    grid-column: 1;
    grid-row: 1 / 4;
}


/* THREE SQUARES */
.square-1 {
    grid-column: 2;
    grid-row: 1;
}

.square-2 {
    grid-column: 2;
    grid-row: 2;
}

.square-3 {
    grid-column: 2;
    grid-row: 3;
}


/* RIGHT TALL */
.tall-right {
    grid-column: 3;
    grid-row: 1 / 4;
}


/* ALL MEDIA */
.video-grid-vertical .video-item {
    overflow: hidden;
    border-radius: 12px;
}

.video-grid-vertical video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-grid-vertical {
    display: grid;

    grid-template-columns: 200px 200px 200px;
    grid-template-rows: repeat(3, 200px);

    gap: 8px;

    justify-content: center;
}


.tall-left {
    grid-column: 1;
    grid-row: 1 / 4;
}

.square-1 {
    grid-column: 2;
    grid-row: 1;
}

.square-2 {
    grid-column: 2;
    grid-row: 2;
}

.square-3 {
    grid-column: 2;
    grid-row: 3;
}

.tall-right {
    grid-column: 3;
    grid-row: 1 / 4;
}

.video-grid-vertical .video-item {
    overflow: hidden;
    border-radius: 12px;
}

.video-grid-vertical video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
















.video-grid-vertical {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);

    gap: 8px;

    width: 100%;
    aspect-ratio: 5 / 3;
}

.video-item {
    overflow: hidden;
    border-radius: 12px;
}

.video-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tall-left {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
}

.square-1 {
    grid-column: 3;
    grid-row: 1;
}

.square-2 {
    grid-column: 3;
    grid-row: 2;
}

.square-3 {
    grid-column: 3;
    grid-row: 3;
}

.tall-right {
    grid-column: 4 / 6;
    grid-row: 1 / 4;
}




.media-grid-ij {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 600px; /* controls the overall size */
}

/* All media */
.media-item-ij {
    overflow: hidden;
    border-radius: 12px;
}

/* IMAGE */

.image-main {
    grid-column: 1;
    grid-row: 1;
}


.image-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* TOP RIGHT — SQUARE VIDEO */
.video-square-top {
    grid-column: 2;
    grid-row: 1;
}

.video-square-top video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* BOTTOM LEFT — SQUARE VIDEO */
.video-square-bottom {
    grid-column: 1;
    grid-row: 2;
}

.video-square-bottom video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* BOTTOM RIGHT — TWO VIDEOS */
.video-stack {
    grid-column: 2;
    grid-row: 2;

    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 0;
}

.video-wide {
    overflow: hidden;
    border-radius: 12px;
}

.video-wide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.media-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    width: 100%;
}

/* =========================
   TOP ROW
   ========================= */

.top-row {
    height: 300px;
}

/* 4:3 image */
.image-main {
    overflow: hidden;
    border-radius: 12px;
}

.image-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Top-right square */
.top-row .square-video {
    overflow: hidden;
    border-radius: 12px;
}

.top-row .square-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* =========================
   BOTTOM ROW
   ========================= */

.bottom-row {
    height: 300px;
}

/* Bottom-left square */
.bottom-row .square-video {
    overflow: hidden;
    border-radius: 12px;
}

.bottom-row .square-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* Right side: two videos */
.video-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 0;
}

.wide-video {
    overflow: hidden;
    border-radius: 12px;
}

.wide-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.image-container-barbie {
  display: flex;
  flex-direction: column;
}

.image-container-barbie img {
  width: 25vw;       /* Sets width to 50% of the screen width */
  height: auto;      /* Keeps the original aspect ratio */
  margin-bottom: 20px; /* Adds space between the images */
border-radius: 12px;}


.lego-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.lego-column {
    min-width: 0;
}

.lego-columns .video-grid-vertical {
    width: 100%;
    display: block;
}

.lego-columns .video-item,
.lego-columns .tall-left {
    width: 100%;
    max-width: none;
}

.lego-columns .video-grid-vertical video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.media-grid.wes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 16px; /* Optional: adjusts the spacing between items */
}

/* Optional: ensures images fill their containers nicely */
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}







/* Container section styling */
.findings {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
}

/* Heading style */
.findings h2 {
  font-size: 1.75rem;
  color: #111111;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 0.5rem;
}

/* Grid layout for the findings board */
.findings-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Individual finding card styling */
.finding {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle hover effect for interactivity */
.finding:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Paragraph spacing and line height for readability */
.finding p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a4a;
}




/* =========================================================
   MOBILE RESPONSIVE OVERRIDES
   Add this at the VERY BOTTOM of the stylesheet
   ========================================================= */

@media (max-width: 768px) {

    /* -------------------------
       GLOBAL
       ------------------------- */

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        min-height: 100vh;
    }

    main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 15px;
    }


    /* -------------------------
       HEADER
       ------------------------- */

    header {
        padding: 18px 15px;
    }

    header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    header p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 8px 14px;
        margin-top: 12px;
    }

    nav ul li {
        display: inline-block;
    }

    nav ul li a {
        font-size: 0.8rem;
    }


    /* -------------------------
       ABOUT
       ------------------------- */

    #about {
        width: 100%;
        max-width: none;
        padding: 30px 5px;
    }

    .about-me {
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }

    .text-content {
        width: 100%;
        max-width: none;
        font-size: 1rem;
    }

    .about-me p {
        line-height: 1.6;
    }

    #three-container-about {
        width: 100%;
        flex-basis: auto;
    }

    #three-container-about img {
        max-width: 80%;
        height: auto;
    }


    /* -------------------------
       SHOWREEL
       ------------------------- */

    #showreel {
        width: 100%;
        margin-top: 25px;
    }

    #showreel video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }


    /* -------------------------
       GENERAL PROJECTS
       ------------------------- */

    #projects {
        width: 100%;
    }

    .project-grid {
        width: 100%;
        gap: 20px;
    }

    #game-projects {
        width: 100%;
        padding: 25px 0;
        gap: 20px;
    }

    .project {
        width: 100%;
        max-width: 350px;
    }

    .project:hover {
        transform: none;
    }

    .project-info {
        flex-direction: column;
        gap: 15px;
    }

    .info-card,
    .info-card-long {
        width: 100%;
        max-width: 350px;
    }


    /* -------------------------
       STICKY NOTES
       ------------------------- */

    .sticky-notes-container {
        width: 100%;
        padding: 0 10px;
        gap: 25px;
    }

    .sticky-note,
    .sticky-note-broad {
        width: 100%;
        max-width: 350px;
        padding: 18px;
    }


    /* -------------------------
       PROJECT CARD
       ------------------------- */

    .project-container {
        width: 100%;
    }

    .project-card {
        width: calc(100% - 30px);
        max-width: 350px;
        margin: 25px auto;
        padding: 18px;
    }

    .project-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .project-label {
        width: auto;
        text-align: left;
        font-size: 0.85rem;
    }

    .project-description {
        width: 100%;
        font-size: 0.9rem;
    }

    .project-gif {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 20px;
    }


    /* -------------------------
       BREADCRUMBS
       ------------------------- */

    .breadcrumbs {
        width: 100%;
        font-size: 11px;
        padding: 8px 12px;
        white-space: nowrap;
        overflow-x: auto;
    }


    /* -------------------------
       DETAIL SECTIONS
       ------------------------- */

    .detail {
        padding: 35px 5px;
    }

    .detail-container {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .title {
        width: 100%;
        font-size: 2rem;
        text-align: center;
    }

    .text-content {
        width: 100%;
        font-size: 0.95rem;
        text-align: left;
    }

    .text-content h4 {
        font-size: 1.1rem;
    }


    /* -------------------------
       GOALS
       ------------------------- */

    .goals-section {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        margin: 30px auto;
    }


    /* -------------------------
       DETAIL ROW
       ------------------------- */

    .detail-row {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }


    /* -------------------------
       FULL WIDTH SECTION HEADINGS
       ------------------------- */

    .section-heading {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 22px 15px;
    }

    .section-heading h2 {
        font-size: 18px;
        line-height: 1.3;
    }


    /* -------------------------
       PROJECT SECTIONS
       ------------------------- */

    .project-section {
        width: 100%;
        max-width: none;
    }

    .section-title {
        margin: 35px 0 20px;
        padding: 12px 15px;
        font-size: 1rem;
    }


    /* -------------------------
       INTRO
       ------------------------- */

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .intro-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .intro-image img {
        width: 100%;
    }


    /* -------------------------
       EXPERIMENTS
       ------------------------- */

    .experiment-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 25px 0 40px;
    }

    .experiment-card img {
        width: 100%;
        height: auto;
    }

    .experiment-card h3 {
        font-size: 0.7rem;
    }

    .experiment-card p {
        font-size: 0.6rem;
    }


    /* -------------------------
       CASE STUDIES
       ------------------------- */

    .case-study {
        margin-bottom: 40px;
    }

    .case-study-heading h2 {
        font-size: 0.95rem;
    }

    .case-study-heading p {
        font-size: 0.7rem;
    }


    /* -------------------------
       GENERIC MEDIA GRIDS
       ------------------------- */

    .media-grid {
        width: 100%;
    }

    .media-grid.starry-night,
    .media-grid.barbie,
    .media-grid.wes {
        grid-template-columns: 1fr;
    }

    .media {
        width: 100%;
    }

    .media img,
    .media video,
    .media iframe {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: cover;
    }


    /* -------------------------
       LEGO COLUMNS
       ------------------------- */

    .lego-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lego-column {
        width: 100%;
    }

    .lego-columns .video-grid-vertical {
        width: 100%;
    }

    .lego-columns .video-item,
    .lego-columns .tall-left {
        width: 100%;
        max-width: none;
    }

    .lego-columns .video-grid-vertical video {
        width: 100%;
        height: auto;
    }


    /* -------------------------
       LEGO NAVIGATION
       ------------------------- */

    .lego-navigation {
        width: 100%;
        max-width: 540px;
        height: auto;

        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;

        margin: 80px auto;
    }

    .lego-item-bookshop {
        width: 100%;
        height: auto;
    }

    .lego-bookshop {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;

        padding: 20px;
        gap: 10px;
    }

    .lego-item-indiana,
    .lego-item-pride {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .lego-indiana,
    .lego-pride {
        width: 100%;
        height: 100%;
        padding: 20px;
    }

    .lego-item-bookshop h3 {
        top: -45px;
        width: 100%;
        font-size: 18px;
    }

    .lego-item-indiana h3,
    .lego-item-pride h3 {
        left: calc(100% + 15px);
        width: 110px;
        font-size: 16px;
    }

    .lego-stud {
        width: 100%;
        height: 100%;
    }


    /* -------------------------
       VERTICAL VIDEO GRID
       ------------------------- */

    .video-grid-vertical {
        width: 100%;
        aspect-ratio: auto;

        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;

        gap: 6px;
    }

    .tall-left {
        grid-column: 1;
        grid-row: 1 / 4;
    }

    .square-1 {
        grid-column: 2;
        grid-row: 1;
    }

    .square-2 {
        grid-column: 2;
        grid-row: 2;
    }

    .square-3 {
        grid-column: 2;
        grid-row: 3;
    }

    .tall-right {
        display: none;
    }

    .video-grid-vertical .video-item {
        border-radius: 8px;
    }

    .video-grid-vertical video {
        width: 100%;
        height: 100%;
    }


    /* -------------------------
       INDIANA JONES MEDIA
       ------------------------- */

    .media-grid-ij {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 8px;
    }

    .media-item-ij {
        width: 100%;
        min-height: 220px;
    }

    .image-main,
    .video-square-top,
    .video-square-bottom,
    .video-stack {
        grid-column: 1;
        grid-row: auto;
    }

    .video-stack {
        grid-template-rows: 1fr 1fr;
        gap: 8px;
    }


    /* -------------------------
       BARBIE TOP/BOTTOM ROWS
       ------------------------- */

    .media-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .top-row,
    .bottom-row {
        height: auto;
    }

    .top-row .image-main,
    .top-row .square-video,
    .bottom-row .square-video,
    .bottom-row .video-stack {
        width: 100%;
        min-height: 220px;
    }

    .video-stack {
        gap: 8px;
    }

    .wide-video {
        min-height: 180px;
    }

    .image-container-barbie {
        width: 100%;
    }

    .image-container-barbie img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }


    /* -------------------------
       FINDINGS
       ------------------------- */

    .findings {
        width: 100%;
        max-width: none;
        margin: 30px auto;
        padding: 0;
    }

    .findings h2 {
        font-size: 1.4rem;
    }

    .findings-board {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .finding {
        padding: 18px;
    }

    .finding p {
        font-size: 0.9rem;
        line-height: 1.5;
    }


    /* -------------------------
       PROGRESS
       ------------------------- */

    .progress-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .progress-item {
        width: 100%;
        flex: none;
    }

    .progress-item:hover {
        flex: none;
    }

    .progress-details {
        opacity: 1;
        max-height: none;
    }

    .progress-item img {
        width: 120px;
        height: 120px;
    }


    /* -------------------------
       DESIGN GRID
       ------------------------- */

    .design-grid-props {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .art-item-props {
        width: 100%;
    }


    /* -------------------------
       AUDIO
       ------------------------- */

    .audio-container {
        width: 100%;
        padding: 0 10px;
    }

    .audio-container audio {
        width: 100%;
        max-width: 100%;
    }


    /* -------------------------
       NEXT PROJECTS
       ------------------------- */

    .next-projects-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px 10px;
    }

    .next-project-preview {
        width: 100%;
        max-width: 350px;
    }

    .next-project-preview:hover {
        transform: none;
    }


    /* -------------------------
       FOOTER
       ------------------------- */

    footer {
        padding: 25px 15px;
        font-size: 0.8rem;
    }

    footer .social-icons a img {
        width: 22px;
        height: 22px;
        margin: 0 5px;
    }


    /* -------------------------
       BUTTONS
       ------------------------- */

    .button-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .glass-btn {
        width: 70px;
        height: 70px;
        margin: 0;
    }


    /* -------------------------
       OVERLAY GALLERY
       ------------------------- */

    .overlay-image {
        max-width: 92%;
        max-height: 80%;
    }

    .close {
        top: 15px;
        right: 15px;
        font-size: 26px;
    }

    .prev {
        left: 8px;
        font-size: 26px;
    }

    .next {
        right: 8px;
        font-size: 26px;
    }


    /* -------------------------
       DIVIDER
       ------------------------- */

    .dynamic-hr {
        width: 80%;
        max-width: 580px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    header {
        padding: 15px 10px;
    }

    header h1 {
        font-size: 1.35rem;
    }

    header p {
        font-size: 0.8rem;
    }

    nav ul {
        gap: 6px 12px;
    }

    nav ul li a {
        font-size: 0.72rem;
    }

    main {
        padding: 0 10px;
    }

    .section-heading {
        padding: 18px 12px;
    }

    .section-heading h2 {
        font-size: 16px;
    }

    .lego-navigation {
        margin-top: 65px;
        margin-bottom: 65px;
    }

    .lego-item-bookshop h3 {
        font-size: 16px;
        top: -38px;
    }

    .lego-item-indiana h3,
    .lego-item-pride h3 {
        font-size: 14px;
        left: calc(100% + 10px);
        width: 85px;
    }

    .lego-bookshop {
        padding: 15px;
        gap: 7px;
    }

    .lego-indiana,
    .lego-pride {
        padding: 15px;
    }

    .experiment-list {
        gap: 12px;
    }

    .title {
        font-size: 1.7rem;
    }

    .design-grid-props {
        grid-template-columns: 1fr;
    }

    .finding {
        padding: 15px;
    }

    .finding p {
        font-size: 0.85rem;
    }
}