html,
body {
    height: 100%;
    touch-action: manipulation;
}

* {
    font-family: 'Times New Roman', Times, serif;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .05rem;
    line-height: 1.25rem;
    -webkit-text-stroke: 0.015rem black;
    color: black;
}

a {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: opacity 0.25s cubic-bezier(.05, .82, .31, .96);
}

.about_me a:hover,
.about_project a:hover,
.socials a:hover {
    opacity: 0.35;
}

a:not(.socials a):not(.home-link a):not(.nav-item a):not(.project_title a)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.05rem;
    width: 100%;
    height: 0.1rem;
    background-color: currentColor;
    pointer-events: none;
}

#main_content {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.left-wrapper {
    position: fixed;
    top: 0;
    left: 0.25rem;
    max-width: 80%;
    z-index: 10;
    pointer-events: none;
}

.left-wrapper>* {
    pointer-events: auto;
}

.profile-metadata {
    display: none;
}

body.profile-about-open .left-wrapper .about_button {
    transform: rotate(180deg) !important;
    background: #3c2a21 !important;
    color: white !important;
    -webkit-text-stroke: 0.015rem white !important;
    opacity: 1 !important;
}

body.is-fullscreen-open {
    overflow: hidden;
}

.left-wrapper,
.profile-metadata .right-wrapper {
    transition: opacity 0.4s cubic-bezier(.05, .82, .31, .96);
}

body.is-fullscreen-zoomed .left-wrapper .nav-item:not(#grid-close),
body.is-fullscreen-zoomed .profile-metadata .right-wrapper>* {
    opacity: 0.35;
}

body.is-fullscreen-zoomed #grid-close {
    opacity: 1 !important;
}

@media (min-width: 769px) {

    body.is-fullscreen-zoomed .left-wrapper,
    body.is-fullscreen-zoomed .profile-metadata .right-wrapper {
        pointer-events: auto;
    }

    body.is-fullscreen-zoomed .nav-item:hover,
    body.is-fullscreen-zoomed .profile-metadata .right-wrapper>*:hover {
        opacity: 1 !important;
    }
}

body.profile-about-open .left-wrapper>*,
body.profile-about-open .profile-metadata .right-wrapper>* {
    opacity: 1;
    pointer-events: auto;
}

body.profile-about-open .profile-metadata {
    display: block;
}

body.profile-about-open .about_project {
    display: none !important;
}

.profile-metadata .right-wrapper {
    position: fixed;
    bottom: 0.25rem;
    right: 0.25rem;
    z-index: 10;
    pointer-events: auto;
    text-align: right;
}

.information {
    display: block;
}

.navigation {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    width: fit-content;
    box-sizing: border-box;
}

.nav-row {
    display: contents;
}

.nav-item {
    cursor: pointer;
    background: white;
    padding: 0 0.25rem;
    transition: background 0.25s cubic-bezier(.05, .82, .31, .96),
        color 0.25s cubic-bezier(.05, .82, .31, .96),
        transform 0.4s cubic-bezier(.05, .82, .31, .96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    width: fit-content;
}

.nav-row .nav-item {
    flex: none;
}

.photography-controls {
    display: none !important;
}

body.photography-active .photography-controls {
    display: inline-flex !important;
}

#grid-decrease {
    padding-bottom: 0.15rem !important;
    /* Visual alignment for en-dash */
}

@media (min-width: 769px) {
    body {
        -webkit-user-select: none;
        user-select: none;
    }

    .about_button,
    .photography-controls {
        width: fit-content;
        min-width: 3rem;
        padding: 0 0.25rem;
    }
}

#grid-close {
    display: none !important;
}

body.is-fullscreen-open #grid-close {
    display: inline-flex !important;
    padding: 0 0.25rem !important;
}

body.is-fullscreen-zoomed #grid-close {
    display: none !important;
}

@media (max-width: 768px) {
    body.is-fullscreen-open #grid-close {
        flex: none !important;
        width: fit-content !important;
        padding: 0 0.25rem !important;
    }

    body.is-fullscreen-open .nav-row {
        justify-content: center !important;
    }
}

@media (min-width: 769px) {
    body.is-fullscreen-open #grid-close {
        position: fixed;
        bottom: 0.25rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        width: fit-content !important;
        background: white !important;
        padding: 0 0.25rem !important;
        white-space: nowrap;
    }

    body.is-fullscreen-open #grid-close:hover {
        background: #3c2a21 !important;
        color: white !important;
    }
}

body.is-fullscreen-open #grid-decrease,
body.is-fullscreen-open #grid-increase {
    display: none !important;
}

.nav-item.active {
    background: #3c2a21;
    color: white;
    -webkit-text-stroke: 0.015rem white;
}

@media (hover: hover) {

    .nav-item:hover,
    .nav-item:active {
        background: #3c2a21;
        color: white;
        -webkit-text-stroke: 0.015rem white;
    }
}

/* Base transition for all nav items */
.nav-item {
    transition: background 0.25s cubic-bezier(.05, .82, .31, .96), color 0.25s cubic-bezier(.05, .82, .31, .96), transform 0.4s cubic-bezier(.05, .82, .31, .96);
}

.home-link {
    padding-left: 0.25rem;
    transition: all 0.25s cubic-bezier(.05, .82, .31, .96);
    width: fit-content;
}

@media (hover: hover) {

    .home-link:hover,
    .home-link:active {
        background: #3c2a21;
    }

    .home-link:hover *,
    .home-link:active * {
        color: white;
        -webkit-text-stroke: 0.015rem white;
    }
}

.home-link h1 {
    display: inline;
}

.home-link::after {
    display: none;
}

.view-toggle {
    margin-top: 0;
}

.view-toggle .nav-item {
    opacity: 1;
}

.view-toggle .nav-item.active,
.view-toggle .nav-item:hover,
.view-toggle .nav-item:active {
    opacity: 1;
    background: #3c2a21;
    color: white;
    -webkit-text-stroke: 0.015rem white;
}

.about_me_wrapper {
    display: none;
}

body.profile-about-open .about_me_wrapper {
    display: block;
}

.about_me {
    display: block;
    width: 100%;
}

.profile-metadata {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-metadata .socials,
.profile-metadata .right-wrapper {
    position: static;
    background: white;
}

@media (min-width: 769px) {

    body.profile-about-open .project_list {
        display: none !important;
    }

    body.profile-about-open .about_me_wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.25rem;
        position: fixed;
        top: 0.25rem;
        left: 50%;
        transform: translateX(-50%);
        width: 30%;
        z-index: 100;
        background: transparent;
        padding: 0;
        text-align: left;
    }

    body.profile-about-open .about_me {
        background: white;
        padding: 0 0.25rem;
        width: 100%;
        box-sizing: border-box;
        display: block;
    }

    body.profile-about-open .profile-metadata {
        display: contents;
        margin-top: 0;
    }

    body.profile-about-open .profile-metadata .socials,
    body.profile-about-open .profile-metadata .right-wrapper {
        background: white;
        padding: 0 0.25rem;
        width: fit-content;
        text-align: left;
        position: static;
        transform: none;
    }

    .project_nav li.active .title-wrapper,
    .project_nav li.active .about_button {
        border: none;
    }
}

.about_me p,
.about_project p {
    display: inline;
    margin: 0;
    padding: 0;
}

.project_list {
    margin-top: 1rem;
}

.project_nav li {
    list-style: none;
    cursor: pointer;
    width: fit-content;
    transition: padding 0.25s cubic-bezier(.05, .82, .31, .96);
    padding: 0;
}

.project_nav li:hover,
.project_nav li:active,
.project_nav li.active {
    padding: 0 0.25rem;
}

.project_nav li:hover .title-wrapper,
.project_nav li:active .title-wrapper,
.project_nav li.active .title-wrapper {
    background: #3c2a21;
    color: white !important;
    -webkit-text-stroke: 0.015rem white !important;
    opacity: 1 !important;
}

.project_nav li:hover .about_button,
.project_nav li:active .about_button,
.project_nav li.active .about_button {
    background: #e35913;
    color: white !important;
    -webkit-text-stroke: 0.015rem white !important;
    opacity: 1 !important;
}

.project_nav li:hover .in_progress_label,
.project_nav li:active .in_progress_label,
.project_nav li.active .in_progress_label {
    opacity: 1 !important;
}

.project_nav li:hover .title-wrapper *,
.project_nav li:active .title-wrapper *,
.project_nav li.active .title-wrapper *,
.project_nav li:hover .about_button *,
.project_nav li:active .about_button *,
.project_nav li.active .about_button * {
    color: white !important;
    -webkit-text-stroke: 0.015rem white !important;
}

/* Ensure the about button stays black when the description is open */
.project_nav li:has(.about_project.show) .about_button {
    background: black !important;
    color: white !important;
    -webkit-text-stroke: 0.015rem white !important;
    opacity: 1 !important;
    transform: rotate(180deg);
}

.project_nav li.active .about_project.show {
    background: #3c2a21;
    color: white !important;
    padding: 0.25rem;
}

.project_nav li.active .about_project.show * {
    color: white !important;
    -webkit-text-stroke: 0.015rem white !important;
}

.project_nav li.active .about_project.show a {
    text-decoration: none !important;
}

.title-wrapper {
    padding: 0 0.25rem;
    display: inline-block;
}

.project_nav li .project_title {
    opacity: 0.35;
    transition: opacity 0.25s cubic-bezier(.05, .82, .31, .96);
}

.project_nav li .about_button {
    opacity: 0;
    background: transparent;
    width: 2rem;
    text-align: center;
    display: inline-block;
    transition: opacity 0.25s cubic-bezier(.05, .82, .31, .96), transform 0.4s cubic-bezier(.05, .82, .31, .96);
}

.project_nav li .about_button:hover {
    background: black !important;
    color: white !important;
    -webkit-text-stroke: 0.015rem white !important;
}

.nav-item.about_button {
    background: white;
    width: fit-content;
    padding: 0.25rem;
    text-align: center;
}

.in_progress_label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.25rem;
    padding: 0 0.25rem;
    background: #dfe918 !important;
    color: black !important;
    cursor: default;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(.05, .82, .31, .96);
}

@media (hover: hover) {

    .nav-item.about_button:hover,
    .nav-item.about_button:active {
        background: #3c2a21;
        color: white;
        -webkit-text-stroke: 0.015rem white;
    }
}

.project_nav li:hover .project_title,
.project_nav li:active .project_title,
.project_nav li.active .project_title {
    opacity: 1;
}

.project_nav li.active .about_button {
    opacity: 1;
}

/* (Moved to line 300 for higher priority) */

.project_number {
    display: inline-block;
    margin-right: 2.5rem;
}

.project_title {
    display: inline-block;
}

.about_project {
    display: none;
    max-width: 100%;
}

.about_project.show {
    display: block;
    padding-left: .25rem;
    margin-top: 0.25rem;
}

.about_project.show a:hover,
.about_project.show a:active {
    opacity: 0.35;
    transition: opacity 0.25s cubic-bezier(.05, .82, .31, .96);

}

.nav-gutter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.nav-gutter.left {
    grid-column: 1;
}

.nav-gutter.right {
    grid-column: 3;
}

.nav-gutter span {
    background: transparent;
    width: 3rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.25s cubic-bezier(.05, .82, .31, .96);
}

.fullscreen-overlay.is-zoomed .nav-gutter span {
    display: none;
}

.fullscreen-overlay.is-zoomed .current-num {
    opacity: 1;
    background: transparent;
    top: 0.25rem;
    bottom: auto;
}

.fullscreen-overlay.is-zoomed .fullscreen-close {
    display: none !important;
}

.fullscreen-overlay.is-zoomed .fullscreen-close:hover {
    opacity: 1;
}

.fullscreen-close {
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: fit-content;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    cursor: pointer;
    z-index: 20;
    opacity: 1;
    transition: all 0.25s cubic-bezier(.05, .82, .31, .96);
}

.fullscreen-close:hover,
.fullscreen-close:active {
    background: #3c2a21;
    color: white;
    -webkit-text-stroke: 0.015rem white;
}

.photo-description-overlay {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    z-index: 30;
    pointer-events: none;
    text-align: center;
    width: 90%;
    max-width: 600px;
}

@media (max-width: 768px) {
    body.is-fullscreen-zoomed .project-link-overlay {
        display: none !important;
    }
}

.project-link-overlay {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    padding: 0;

    cursor: pointer;
    z-index: 30;
    transition: all 0.25s cubic-bezier(.05, .82, .31, .96);
    white-space: nowrap;
}

.project-title-link {
    display: inline-flex;
    align-items: center;
    background: #3c2a21;
    color: white;
    padding: 0 0.25rem;
    -webkit-text-stroke: 0.015rem white;
    margin-left: 0.25rem;
    height: 1.5rem;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(.05, .82, .31, .96);
}

.project-link-overlay:hover .project-title-link {
    background: black;
    color: white;
    -webkit-text-stroke: 0.015rem white;
}

@media (min-width: 769px) {
    .project-link-overlay {
        left: 0.25rem;
        bottom: 0.25rem;
        transform: none;
    }
}

.carousel {
    display: block;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.socials a {
    display: flex;
    flex-direction: column;
    list-style: none;
    text-decoration: none;
    width: fit-content;
    cursor: pointer;
    opacity: 1;
    transition: padding 0.25s cubic-bezier(.05, .82, .31, .96), opacity 0.25s cubic-bezier(.05, .82, .31, .96);
    padding: 0;
}

.socials a:hover,
.socials a:active {
    padding: 0 0.25rem;
    background: white;
}

.middle-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.carousel {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
    touch-action: pan-y;
}

.carousel-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 85vh auto;
    width: 100%;
    justify-items: center;
}

.carousel-item {
    grid-row: 1;
    grid-column: 1;
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    /* Align to top */
}

.carousel-item.active {
    display: flex;
}

.image-container {
    position: relative;
    width: fit-content;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to top */
}

.carousel img {
    display: block;
    max-height: 85vh;
    width: auto;
    max-width: 80vw;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-item img.loaded,
.carousel-item.active img.loaded {
    opacity: 1;
}

.image-credit {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
}

.credit-label {
    opacity: 0.35;
    color: #000;
}

.credit-name {
    opacity: 1;
    color: #000 !important;
    text-decoration: none !important;
    pointer-events: auto;
}

a.credit-name:hover,
a.credit-name:active,
a.credit-name:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

@media (max-width: 768px) {
    .image-credit {
        padding: 0;
        /* Inherits root font-size for consistency */
    }
}

.carousel-counter {
    grid-row: 2;
    grid-column: 1;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: margin-top 0.25s ease, max-height 0.25s ease;
    pointer-events: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.counter-track {
    display: flex;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(.05, .82, .31, .96);
    width: fit-content;
    min-width: 100%;
}

@media (max-width: 768px) {
    .counter-track {
        justify-content: flex-start;
        padding-left: 0;
    }
}

.carousel.show-counter .carousel-counter {
    opacity: 1;
    max-height: 1.25rem;
    margin-top: 0;
    pointer-events: auto;
}

.carousel.cursor-prev {
    cursor: w-resize;
}

.carousel.cursor-next {
    cursor: e-resize;
}

.photography-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin-top: 5rem;
    --photo-grid-scale: 1.6;
    /* Desktop default */
}

@media (max-width: 768px) {
    .photography-grid {
        --photo-grid-scale: 1.0;
        /* Mobile default */
        margin-top: 0;

    }
}

/* --- Infinite Random Widths (13-step loop) --- */
.photo-item:nth-child(13n+1) {
    --base-w: 12%;
}

.photo-item:nth-child(13n+2) {
    --base-w: 28%;
}

.photo-item:nth-child(13n+3) {
    --base-w: 18%;
}

.photo-item:nth-child(13n+4) {
    --base-w: 10%;
}

.photo-item:nth-child(13n+5) {
    --base-w: 22%;
}

.photo-item:nth-child(13n+6) {
    --base-w: 15%;
}

.photo-item:nth-child(13n+7) {
    --base-w: 32%;
}

.photo-item:nth-child(13n+8) {
    --base-w: 9%;
}

.photo-item:nth-child(13n+9) {
    --base-w: 25%;
}

.photo-item:nth-child(13n+10) {
    --base-w: 14%;
}

.photo-item:nth-child(13n+11) {
    --base-w: 20%;
}

.photo-item:nth-child(13n+12) {
    --base-w: 11%;
}

.photo-item:nth-child(13n+13) {
    --base-w: 26%;
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: calc(var(--base-w, 20%) * var(--photo-grid-scale, 1));
    margin: 0;
    transition: margin 0.4s cubic-bezier(.05, .82, .31, .96);
}

@media (min-width: 769px) {
    .photography-grid::after {
        content: "";
        flex: 1000 1 0%;
    }
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: white;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    cursor: zoom-out;
}

.fullscreen-overlay img {
    grid-column: 2;
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, transform-origin;
}

.fullscreen-overlay img.zoomed {
    transform: scale(2.2);
    cursor: move;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform-origin 0.25s cubic-bezier(.05, .82, .31, .96);
}

.fullscreen-overlay img.zoomed.is-horizontal {
    transform: scale(2.8);
}

.fullscreen-overlay img.zoomed.is-vertical {
    transform: scale(2.2);
}

.current-num {
    position: absolute;
    top: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 0 0.25rem;
    min-width: fit-content;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: default;
    pointer-events: auto;
    z-index: 10;
    transition: all 0.25s cubic-bezier(.05, .82, .31, .96);
}

.carousel-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-counter span {
    cursor: pointer;
    margin: 0 0.25rem;
    opacity: 0.15;
    transition: opacity 0.2s ease;
    padding: 0.5rem 0;
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
}

.carousel-counter span.active {
    opacity: 1;
}

@media (min-width: 769px) {
    .carousel-counter span:hover {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    * {
        font-size: .9rem;
    }

    .left-wrapper {
        bottom: 0.25rem;
        top: 0;
        display: flex;
        flex-direction: column;
    }

    .navigation {
        position: fixed;
        bottom: 0.25rem;
        left: 0.25rem;
        right: 0.25rem;
        z-index: 30;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: calc(100vw - 0.5rem);
        box-sizing: border-box;
    }

    .nav-row {
        display: flex;
        width: 100%;
        gap: 0.25rem;
    }

    .nav-row .nav-item {
        flex: 1;
        width: auto !important;
        text-align: center;
        padding: 0 !important;
    }

    body.is-fullscreen-open .home-link,
    body.is-fullscreen-open .about_button,
    body.is-fullscreen-open #toggle-editorial,
    body.is-fullscreen-open #toggle-photography {
        display: none !important;
    }

    .nav-item {
        margin: 0;
        padding: 0 0.25rem;
        background: white;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        width: fit-content;
        box-sizing: border-box;
        overflow: hidden;
    }

    .about_button {
        width: 2rem;
        text-align: center;
        padding: 0;
        margin-left: 0 !important;
        background: transparent;
    }

    .nav-item.about_button {
        background: white;
    }

    .project_list {
        margin-top: 0.25rem;
        padding-bottom: 4rem;
    }

    body.profile-about-open .project_list {
        display: block;
    }

    body.profile-about-open .about_me_wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        position: fixed;
        top: 0.25rem;
        left: 0.25rem;
        right: 0.25rem;
        bottom: auto;
        z-index: 20;
        background: transparent;
    }

    body.profile-about-open .about_me {
        padding: 0 0.25rem;
        background: white;
        width: fit-content;
    }

    body.profile-about-open .profile-metadata {
        display: contents;
    }

    body.profile-about-open .profile-metadata .socials,
    body.profile-about-open .profile-metadata .right-wrapper {
        position: static;
        background: white;
        padding: 0 0.25rem;
        width: fit-content;
        margin-top: 0;
        text-align: left;
    }

    .profile-metadata .socials {
        position: fixed;
        bottom: 2.65rem;
        left: 0.25rem;
        z-index: 31;
        background: white;
        padding: 0 0.25rem;
    }

    .profile-metadata .right-wrapper {
        position: fixed;
        bottom: 2.65rem;
        right: 0.25rem;
        z-index: 31;
        background: white;
        padding: 0 0.25rem;
    }

    .socials,
    .right-wrapper {
        display: none;
    }

    body.profile-about-open .socials {
        display: flex;
        order: 10;
        margin-top: auto;
        position: fixed;
        bottom: 2.5rem;
        left: 0.25rem;
        z-index: 20;
        flex-direction: column;
        gap: 0;
    }

    body.profile-about-open .right-wrapper {
        display: block;
        order: 11;
        position: fixed;
        bottom: 2.5rem;
        right: 0.25rem;
        z-index: 20;
        top: auto;
    }

    .carousel {
        margin-bottom: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #main_content {
        padding-bottom: 4rem;
    }

    .carousel-inner {
        display: grid;
        grid-template-rows: auto auto;
        justify-items: center;
        align-content: center;
        width: 100%;
        min-height: 100%;
        row-gap: 0;
    }

    .carousel img {
        grid-row: 1;
        grid-column: 1;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
        opacity: 0;
    }

    .carousel img.active {
        opacity: 1;
    }

    .carousel-counter {
        grid-row: 2;
        grid-column: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-top: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, margin-top 0.5s ease;
        z-index: 10;
        position: relative;
    }

    .image-credit {
        opacity: 1;
    }

    .credit-name {
        color: #000 !important;
        text-decoration: none !important;
    }

    .carousel.show-counter .carousel-counter {
        opacity: 1;
        max-height: 1.25rem;
        margin-top: -0.1rem;
    }

    .fullscreen-overlay {
        display: grid;
        grid-template-columns: minmax(2.5rem, 1fr) auto minmax(2.5rem, 1fr);
        grid-template-rows: 1fr;
        padding-bottom: 0;
    }

    .fullscreen-overlay img {
        grid-column: 2;
        max-width: calc(100vw - 5rem);
        max-height: 100dvh;
    }

    .nav-gutter {
        height: 100%;
        grid-row: 1;
    }

    .nav-gutter.left {
        grid-column: 1;
        display: flex;
        justify-content: left;
        padding-left: .25rem;
        align-items: center;
    }

    .nav-gutter.right {
        grid-column: 3;
        display: flex;
        justify-content: right;
        padding-right: .25rem;
        align-items: center;
    }

    .nav-gutter span {
        padding: 0 0.25rem;
        pointer-events: auto;
        display: inline-block;
        white-space: nowrap;
    }

    .current-num {
        top: 0.25rem;
        bottom: auto;
    }

    .fullscreen-close {
        left: auto;
        right: 0.25rem;
        transform: none;
    }

    /* Photography Gallery Mobile Overrides */
    .photography-grid {
        gap: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
    }

    .photo-item {
        flex-grow: 1;
        min-width: 50px;
        max-width: 100%;
    }

    /* Base widths for high density */
    .photo-item:nth-child(odd),
    .photo-item:nth-child(3n+1) {
        --base-w: 20%;
    }

    .photo-item:nth-child(even),
    .photo-item:nth-child(3n+2) {
        --base-w: 30%;
    }

    .photo-item:nth-child(4n) {
        --base-w: 60%;
    }

    .photo-item:nth-child(5n) {
        --base-w: 25%;
    }

    /* Periodic full-width or large standout shots */
    .photo-item:nth-child(7n) {
        --base-w: 100%;
    }

    /* Rhythmic variation */
    .photo-item:nth-child(1) {
        --base-w: 25%;
    }

    .photo-item:nth-child(2) {
        --base-w: 35%;
    }

    .photo-item:nth-child(3) {
        --base-w: 40%;
    }

    .photo-item:nth-child(6) {
        --base-w: 20%;
    }

    .photo-item:nth-child(8) {
        --base-w: 80%;
    }
}