/* NexoNest project index: a compact, direct-manipulation filter surface. */
.nexonest-theme {
    --index-line: color-mix(in srgb, var(--c-accent-dark) 24%, transparent);
    --index-surface: color-mix(in srgb, var(--color-bg-alt) 78%, transparent);
}

.nexonest-theme .container {
    width: min(100%, 1180px);
    padding: clamp(20px, 3vw, 40px);
}

.nexonest-theme .header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: clamp(24px, 4vw, 42px);
}

.nexonest-theme .logo {
    width: 64px;
    height: 64px;
    border: 1px dotted var(--index-line);
    border-radius: 14px;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.nexonest-theme .logo:hover {
    border-color: var(--c-accent-dark);
    background: rgba(255, 255, 255, .28);
}

.title-kicker,
.section-index,
.popup-kicker {
    display: block;
    color: var(--c-accent-dark);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.nexonest-theme .title h1 {
    margin-top: 3px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.nexonest-theme .title p {
    max-width: 560px;
    margin-top: 7px;
    font-size: .8125rem;
    line-height: 1.55;
}

.overview-link {
    align-self: start;
    color: var(--color-text);
    font-size: .75rem;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid var(--index-line);
    padding: 6px 0;
}

.overview-link:hover,
.overview-link:focus-visible {
    color: var(--c-accent-dark);
    border-color: currentColor;
}

.nexonest-theme .nav-pill-container {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.nexonest-theme .nav-pill {
    display: grid;
    grid-template-columns: auto repeat(6, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 54px;
    padding: 7px;
    border-color: var(--index-line);
    background: var(--index-surface);
}

.filter-label {
    padding: 0 14px 0 10px;
    color: var(--color-muted);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nexonest-theme .nav-item {
    min-width: 0;
    padding: 0;
}

.nexonest-theme .nav-link {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-light);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
}

.nexonest-theme .nav-link:hover {
    background: color-mix(in srgb, var(--c-accent-weak) 52%, transparent);
    color: var(--color-text);
}

.nexonest-theme .nav-link.active {
    background: var(--c-accent-weak);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-accent) 48%, transparent);
}

.subfilter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
}

.subfilter-bar[hidden] {
    display: none;
}

.subfilter-bar::-webkit-scrollbar {
    display: none;
}

.subfilter-chip {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px dotted var(--index-line);
    border-radius: 7px;
    background: transparent;
    color: var(--color-muted);
    font: 500 .6875rem/1.3 inherit;
    cursor: pointer;
}

.subfilter-chip:hover,
.subfilter-chip.active {
    border-color: var(--c-accent-dark);
    background: rgba(255, 255, 255, .3);
    color: var(--color-text);
}

.filter-feedback {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 0;
    color: var(--color-muted);
    font-size: .6875rem;
}

.filter-feedback::before {
    content: none;
}

#filter-summary {
    margin-right: auto;
}

.filter-reset {
    border: 0;
    border-bottom: 1px solid var(--index-line);
    background: transparent;
    color: var(--color-muted);
    font: inherit;
    cursor: pointer;
}

.filter-reset:hover {
    color: var(--color-text);
    border-color: currentColor;
}

.nexonest-theme .content-area {
    justify-content: flex-start;
}

.nexonest-theme .projects-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: clamp(34px, 6vw, 72px) 0 0;
    padding: 0;
}

.projects-heading {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr);
    align-items: end;
    gap: 32px;
    padding-bottom: 17px;
    border-bottom: 1px dotted var(--index-line);
}

.projects-heading h2 {
    margin-top: 6px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -.03em;
}

.projects-heading p {
    justify-self: end;
    max-width: 460px;
    color: var(--color-muted);
    font-size: .75rem;
    line-height: 1.65;
    text-align: right;
}

.nexonest-theme .projects-grid {
    position: relative;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(94px, auto));
    gap: 2px 0;
    width: min(100%, 820px);
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px) 0 4px;
}

.nexonest-theme .projects-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 72px 54px 66px;
    border-right: 1px dotted var(--index-line);
    border-bottom: 1px dotted var(--index-line);
    border-left: 1px dotted var(--index-line);
    border-radius: 0 0 48% 48%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000);
}

.nexonest-theme .project-icon:nth-child(1)  { grid-column: 1 / 3; grid-row: 1; }
.nexonest-theme .project-icon:nth-child(2)  { grid-column: 11 / 13; grid-row: 1; }
.nexonest-theme .project-icon:nth-child(3)  { grid-column: 1 / 3; grid-row: 2; }
.nexonest-theme .project-icon:nth-child(4)  { grid-column: 3 / 5; grid-row: 2; }
.nexonest-theme .project-icon:nth-child(5)  { grid-column: 9 / 11; grid-row: 2; }
.nexonest-theme .project-icon:nth-child(6)  { grid-column: 11 / 13; grid-row: 2; }
.nexonest-theme .project-icon:nth-child(7)  { grid-column: 3 / 5; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(8)  { grid-column: 5 / 7; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(9)  { grid-column: 7 / 9; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(10) { grid-column: 9 / 11; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(11) { grid-column: 6 / 8; grid-row: 4; }

.nexonest-theme .projects-grid::after {
    content: "projects settle here";
    position: absolute;
    z-index: 0;
    top: 102px;
    left: 50%;
    color: var(--color-dimmed);
    font-size: .5625rem;
    letter-spacing: .08em;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nexonest-theme .project-icon {
    position: relative;
    display: grid;
    z-index: 1;
    grid-template-rows: 60px auto;
    gap: 7px;
    justify-self: center;
    width: min(100%, 118px);
    height: auto;
    min-width: 0;
    padding: 8px 5px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-family: inherit;
    text-align: left;
}

.project-symbol {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: transparent;
    transition: background-color 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.project-symbol .text-icon {
    border-radius: 50%;
    background: transparent;
}

.nexonest-theme .project-icon img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.project-name {
    overflow: hidden;
    font-size: .625rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-overflow: ellipsis;
}

.nexonest-theme .project-icon:hover,
.nexonest-theme .project-icon.active {
    border-color: transparent;
    background: transparent;
}

.nexonest-theme .project-icon:focus-visible,
.subfilter-chip:focus-visible,
.filter-reset:focus-visible,
.overview-link:focus-visible {
    outline: 2px solid var(--c-accent-dark);
    outline-offset: 3px;
}

.nexonest-theme .project-icon:hover .project-symbol {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--c-accent-weak) 54%, transparent);
}

.nexonest-theme .project-icon::after {
    content: "";
    width: 18px;
    height: 1px;
    margin: 1px auto 0;
    background: var(--c-accent);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.nexonest-theme .project-icon:hover::after,
.nexonest-theme .project-icon:focus-visible::after,
.nexonest-theme .project-icon.active::after {
    transform: scaleX(1);
}

.nexonest-theme .project-icon.dimmed {
    opacity: .2;
    filter: grayscale(.75);
    pointer-events: none;
}

.nexonest-theme .project-icon:not(.dimmed) {
    opacity: 1;
}

.nexonest-theme .baseline-container {
    margin-top: clamp(28px, 5vw, 56px);
}

.nexonest-theme .copyright {
    margin-bottom: 0;
    font-size: .625rem;
    letter-spacing: .03em;
}

.nexonest-theme .popup-card {
    width: min(92vw, 600px);
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 12px 12px 0 rgba(127, 183, 168, .12);
}

.nexonest-theme .popup-kicker {
    margin-bottom: 9px;
}

.nexonest-theme .popup-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.nexonest-theme .popup-excerpt {
    max-width: 54ch;
    font-size: .8125rem;
    line-height: 1.7;
}

.nexonest-theme .popup-button::after {
    content: " →";
}

@media (max-width: 820px) {
    .nexonest-theme .nav-pill {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-label {
        grid-column: 1 / -1;
        padding: 4px 8px 7px;
    }

    .nexonest-theme .projects-grid {
        grid-template-columns: repeat(4, minmax(84px, 112px));
        grid-template-rows: none;
        justify-content: center;
        gap: 18px 8px;
        width: 100%;
        padding-top: 28px;
    }

    .nexonest-theme .projects-grid::before,
    .nexonest-theme .projects-grid::after {
        display: none;
    }

    .nexonest-theme .project-icon:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 580px) {
    .nexonest-theme .container {
        padding: 18px 16px 24px;
    }

    .nexonest-theme .header {
        grid-template-columns: 52px 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .nexonest-theme .logo {
        width: 52px;
        height: 52px;
    }

    .nexonest-theme .title p {
        font-size: .6875rem;
    }

    .overview-link {
        grid-column: 2;
        justify-self: start;
        margin-top: -7px;
    }

    .nexonest-theme .nav-pill {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .projects-heading p {
        justify-self: start;
        text-align: left;
    }

    .nexonest-theme .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 5px;
    }

    .nexonest-theme .project-icon {
        grid-template-rows: 52px auto;
        padding: 6px 3px;
    }

    .project-symbol {
        width: 52px;
        height: 52px;
    }

    .project-name {
        font-size: .625rem;
    }
}

@media (max-width: 380px) {
    .nexonest-theme .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-symbol {
        transition: none;
    }
}

/* ===== Framed project field ===== */
body.nexonest-theme {
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
}

.nexonest-theme .container {
    height: 100svh;
    min-height: 560px;
    padding-top: clamp(16px, 2.5vh, 28px);
    padding-bottom: clamp(14px, 2vh, 22px);
}

.nexonest-theme .header {
    margin-bottom: clamp(14px, 2.5vh, 26px);
}

.nexonest-theme .content-area {
    flex: 1;
    min-height: 0;
}

.nexonest-theme .projects-container {
    position: relative;
    flex: 1;
    min-height: 0;
    margin-top: clamp(12px, 2vh, 20px);
    padding: 15px 18px 12px;
    border: 1px dotted var(--index-line);
    border-radius: 12px;
    overflow: hidden;
}

.nexonest-theme .projects-heading {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0;
    border: 0;
}

.nexonest-theme .projects-heading h2 {
    margin-top: 3px;
    font-size: 1rem;
}

.nexonest-theme .projects-heading p {
    display: none;
}

.nexonest-theme .projects-grid {
    position: absolute;
    inset: 54px 18px 10px;
    display: grid;
    grid-template-columns: repeat(7, 60px);
    grid-template-rows: repeat(3, 62px);
    align-content: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
}

.nexonest-theme .projects-grid::before {
    display: none;
}

.nexonest-theme .projects-grid::after {
    content: none;
}

.nexonest-theme .project-icon {
    grid-template-rows: 54px;
    gap: 0;
    align-self: center;
    width: 58px;
    height: 58px;
    padding: 2px;
    border: 1px solid color-mix(in srgb, var(--c-accent-dark) 32%, transparent);
    border-radius: 10px;
}

.nexonest-theme .project-icon:nth-child(1)  { grid-column: 4; grid-row: 1; }
.nexonest-theme .project-icon:nth-child(2)  { grid-column: 5; grid-row: 1; transform: translateY(8px); }
.nexonest-theme .project-icon:nth-child(3)  { grid-column: 2; grid-row: 2; transform: translateY(5px); }
.nexonest-theme .project-icon:nth-child(4)  { grid-column: 3; grid-row: 2; transform: translateY(-4px); }
.nexonest-theme .project-icon:nth-child(5)  { grid-column: 5; grid-row: 2; }
.nexonest-theme .project-icon:nth-child(6)  { grid-column: 6; grid-row: 2; transform: translateY(7px); }
.nexonest-theme .project-icon:nth-child(7)  { grid-column: 1; grid-row: 3; transform: translateY(5px); }
.nexonest-theme .project-icon:nth-child(8)  { grid-column: 2; grid-row: 3; transform: translateY(-3px); }
.nexonest-theme .project-icon:nth-child(9)  { grid-column: 4; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(10) { grid-column: 5; grid-row: 3; transform: translateY(6px); }
.nexonest-theme .project-icon:nth-child(11) { grid-column: 7; grid-row: 3; transform: translateY(-4px); }

.nexonest-theme .project-symbol {
    width: 54px;
    height: 54px;
}

.nexonest-theme .project-name,
.nexonest-theme .project-icon::after {
    display: none;
}

.nexonest-theme .project-icon:hover .project-symbol,
.nexonest-theme .project-icon:focus-visible .project-symbol {
    background: color-mix(in srgb, var(--c-accent-weak) 64%, transparent);
}

.nexonest-theme .project-icon:hover,
.nexonest-theme .project-icon:focus-visible,
.nexonest-theme .project-icon.active {
    border-color: var(--c-accent-dark);
    background: rgba(255, 255, 255, .18);
}

.nexonest-theme .baseline-container {
    display: none;
}

.nexonest-theme .copyright {
    flex: 0 0 auto;
    margin-top: 8px;
}

@media (max-width: 820px) {
    body.nexonest-theme {
        min-height: 100svh;
        overflow-y: auto;
    }

    .nexonest-theme .container {
        height: auto;
        min-height: 100svh;
    }

    .nexonest-theme .projects-container {
        min-height: 350px;
    }

    .nexonest-theme .projects-grid {
        inset: 56px 10px 12px;
        grid-template-columns: repeat(4, 54px);
        grid-template-rows: none;
        grid-auto-rows: 54px;
        gap: 8px;
        padding: 0;
    }

    .nexonest-theme .projects-grid::before {
        display: none;
    }

    .nexonest-theme .project-icon:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        transform: none;
    }
}

@media (max-width: 520px) {
    .nexonest-theme .projects-container {
        min-height: 330px;
        padding-inline: 12px;
    }

    .nexonest-theme .projects-grid {
        inset-inline: 4px;
    }

    .nexonest-theme .project-icon {
        width: 48px;
        height: 48px;
    }

    .nexonest-theme .project-symbol {
        width: 46px;
        height: 46px;
    }
}

@media (max-height: 640px) and (min-width: 821px) {
    .nexonest-theme .header {
        margin-bottom: 10px;
    }

    .nexonest-theme .logo {
        width: 50px;
        height: 50px;
    }

    .nexonest-theme .projects-container {
        margin-top: 9px;
    }

    .nexonest-theme .projects-grid {
        grid-template-rows: repeat(3, 54px);
        gap: 5px;
    }
}

/* ===== Shared project baseline ===== */
.nexonest-theme .projects-grid {
    inset: auto 18px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: auto;
    height: 54px;
    gap: clamp(5px, .7vw, 9px);
    overflow: visible;
}

.nexonest-theme .project-icon:nth-child(n) {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    transform: none;
}

.nexonest-theme .project-symbol {
    width: 48px;
    height: 48px;
}

.project-placeholder {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 1px dashed color-mix(in srgb, var(--c-accent-dark) 30%, transparent);
    border-radius: 10px;
    color: var(--c-accent-dark);
    font-size: .875rem;
    line-height: 1;
    user-select: none;
}

.project-placeholder:nth-last-child(6) { opacity: .68; }
.project-placeholder:nth-last-child(5) { opacity: .58; }
.project-placeholder:nth-last-child(4) { opacity: .48; }
.project-placeholder:nth-last-child(3) { opacity: .38; }
.project-placeholder:nth-last-child(2) { opacity: .28; }
.project-placeholder:nth-last-child(1) { opacity: .18; }

@media (max-width: 960px) and (min-width: 821px) {
    .nexonest-theme .projects-grid {
        gap: 4px;
    }

    .nexonest-theme .project-icon:nth-child(n),
    .project-placeholder {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .nexonest-theme .project-symbol {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 820px) {
    .nexonest-theme .projects-grid {
        inset: auto 12px 14px;
        display: grid;
        grid-template-columns: repeat(7, 48px);
        grid-template-rows: repeat(2, 48px);
        grid-auto-rows: 48px;
        justify-content: center;
        align-content: end;
        width: auto;
        height: auto;
        gap: 6px;
    }

    .nexonest-theme .project-icon:nth-child(n),
    .project-placeholder {
        width: 48px;
        height: 48px;
    }

    .nexonest-theme .project-symbol {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 450px) {
    .nexonest-theme .projects-grid {
        grid-template-columns: repeat(4, 46px);
        grid-template-rows: none;
        grid-auto-rows: 46px;
        gap: 6px;
    }

    .nexonest-theme .project-icon:nth-child(n),
    .project-placeholder {
        width: 46px;
        height: 46px;
    }

    .nexonest-theme .project-symbol {
        width: 42px;
        height: 42px;
    }
}

.project-placeholder {
    position: relative;
    cursor: help;
    transition:
        opacity 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.project-placeholder::after {
    content: attr(data-message);
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: calc(100% + 9px);
    width: max-content;
    max-width: min(210px, calc(100vw - 48px));
    padding: 7px 9px;
    border: 1px dotted var(--index-line);
    border-radius: 7px;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    font-size: .625rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity 160ms ease, transform 200ms cubic-bezier(.22, 1, .36, 1);
}

.project-placeholder:hover,
.project-placeholder:focus-visible {
    opacity: 1 !important;
    border-color: var(--c-accent-dark);
    background: rgba(255, 255, 255, .28);
    outline: none;
    transform: translateY(-2px) rotate(-1deg);
}

.project-placeholder:hover::after,
.project-placeholder:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 820px) {
    .project-placeholder:nth-child(12)::after,
    .project-placeholder:nth-child(16)::after {
        right: 0;
        left: auto;
        transform: translateY(5px);
    }

    .project-placeholder:nth-child(13)::after,
    .project-placeholder:nth-child(17)::after {
        right: auto;
        left: 0;
        transform: translateY(5px);
    }

    .project-placeholder:nth-child(12):hover::after,
    .project-placeholder:nth-child(12):focus-visible::after,
    .project-placeholder:nth-child(13):hover::after,
    .project-placeholder:nth-child(13):focus-visible::after,
    .project-placeholder:nth-child(16):hover::after,
    .project-placeholder:nth-child(16):focus-visible::after,
    .project-placeholder:nth-child(17):hover::after,
    .project-placeholder:nth-child(17):focus-visible::after {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-placeholder,
    .project-placeholder::after {
        transition: none;
    }
}

/* Keep every mark optically centred; hover changes scale, not position. */
.nexonest-theme .project-icon:nth-child(n) {
    display: grid;
    grid-template: none;
    place-items: center;
    padding: 0;
    line-height: 0;
}

.nexonest-theme .project-symbol {
    display: grid;
    place-items: center;
    margin: 0;
    transform: none;
    transform-origin: center;
}

.nexonest-theme .project-icon:hover .project-symbol,
.nexonest-theme .project-icon:focus-visible .project-symbol {
    transform: scale(1.055);
}

/* Playful, brick-like skyline anchored to the bottom of the frame. */
.nexonest-theme .projects-grid {
    display: grid;
    grid-template-columns: repeat(14, 52px);
    grid-template-rows: repeat(3, 52px);
    align-content: end;
    justify-content: center;
    width: auto;
    height: auto;
    gap: 6px;
}

.nexonest-theme .project-icon:nth-child(1)  { grid-column: 3;  grid-row: 3; }
.nexonest-theme .project-icon:nth-child(2)  { grid-column: 4;  grid-row: 3; }
.nexonest-theme .project-icon:nth-child(3)  { grid-column: 5;  grid-row: 3; }
.nexonest-theme .project-icon:nth-child(4)  { grid-column: 6;  grid-row: 3; }
.nexonest-theme .project-icon:nth-child(5)  { grid-column: 7;  grid-row: 3; }
.nexonest-theme .project-icon:nth-child(6)  { grid-column: 8;  grid-row: 3; }
.nexonest-theme .project-icon:nth-child(7)  { grid-column: 9;  grid-row: 3; }
.nexonest-theme .project-icon:nth-child(8)  { grid-column: 10; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(9)  { grid-column: 11; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(10) { grid-column: 12; grid-row: 3; }
.nexonest-theme .project-icon:nth-child(11) { grid-column: 3;  grid-row: 2; }
.nexonest-theme .project-placeholder:nth-child(12) { grid-column: 5;  grid-row: 2; }
.nexonest-theme .project-placeholder:nth-child(13) { grid-column: 8;  grid-row: 2; }
.nexonest-theme .project-placeholder:nth-child(14) { grid-column: 11; grid-row: 2; }
.nexonest-theme .project-placeholder:nth-child(15) { grid-column: 6;  grid-row: 1; }
.nexonest-theme .project-placeholder:nth-child(16) { grid-column: 10; grid-row: 1; }
.nexonest-theme .project-placeholder:nth-child(17) { grid-column: 13; grid-row: 2; }

@media (max-width: 960px) and (min-width: 821px) {
    .nexonest-theme .projects-grid {
        grid-template-columns: repeat(14, 48px);
        grid-template-rows: repeat(3, 48px);
        gap: 5px;
    }
}

@media (max-width: 820px) {
    .nexonest-theme .projects-grid {
        grid-template-columns: repeat(6, 48px);
        grid-template-rows: none;
        grid-auto-rows: 48px;
        gap: 5px;
    }

    .nexonest-theme .project-icon:nth-child(n),
    .nexonest-theme .project-placeholder:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 450px) {
    .nexonest-theme .projects-grid {
        grid-template-columns: repeat(4, 46px);
        grid-auto-rows: 46px;
    }
}
