:root {
    --background-color: hsl(0, 55%, 30%);
    --text-color: hsl(0, 48%, 58%);
    --cursor-target-color: #ffffff;

    --navigation-width: 220px;
    --column-width: 500px;
    --path-height: 42px;

    --content-left-padding: 60px;
    --content-top-padding: 40px;

    --border-color: color-mix(
        in srgb,
        var(--text-color) 35%,
        transparent
    );
}


/* Reset */

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

html,
body {
    width: 100%;
    height: 100%;
}

html {
    overflow: hidden;
}


  
body {
    overflow: hidden;

    background-color: var(--background-color);
    color: var(--text-color);

    font-family: "Sawarabi Gothic", sans-serif;
    

    transition:
        background-color 0.08s linear,
        color 0.08s linear;
}

button,
input {
    font: inherit;
}


/* Navigation */

.site-navigation {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 100;

    width: 160px;
}

.site-title {
    display: block;

    margin: 0 0 15px;
    padding: 0;

    border: 0;
    background: transparent;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.05em;

    cursor: pointer;
    text-align: left;
}

.navigation-list {
    list-style: none;
}

.navigation-list li {
    margin: 2px 0;
}

.navigation-list button,
.theme-toggle {
    display: block;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;

    opacity: 0.8;

    cursor: pointer;
    text-align: left;
}

.site-title:hover,
.navigation-list button:hover,
.theme-toggle:hover,
.navigation-list button:focus-visible,
.theme-toggle:focus-visible {
    opacity: 1;
}

.navigation-list button.is-active {
    opacity: 1;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.navigation-tools {
    margin-top: 24px;
}

.theme-toggle {
    font-size: 10px;
}


/* Workspace */

.workspace {
    position: fixed;
    inset: 0 0 var(--path-height) var(--navigation-width);

    overflow: hidden;
}

.page-view,
.column-view {
    width: 100%;
    height: 100%;
}

.page-view {
    padding:
        var(--content-top-padding)
        60px
        100px
        var(--content-left-padding);

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: none;
}

.page-view::-webkit-scrollbar,
.scrap-column::-webkit-scrollbar {
    display: none;
}

.page-container {
    width: min(100%, 2000px);
}

.page-header {
    margin-bottom: 60px;
}

.page-kicker {
    margin-bottom: 8px;

    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.7;
}

.page-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.home-page {
    min-height: 100%;
}


/* Shared lists */

.item-list {
    list-style: none;

    border-top: 1px solid var(--border-color);
}

.item-row {
    border-bottom: 1px solid var(--border-color);
}

.item-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    width: 100%;
    padding: 11px 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    text-align: left;
}

.item-title {
    display: block;

    overflow: hidden;

    font-size: 12px;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-meta {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    font-size: 10px;
    line-height: 1.4;

    opacity: 0.62;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-arrow {
    margin-left: 20px;

    font-size: 11px;

    opacity: 0.7;
}

.search-result-type {
    display: block;

    margin-top: 4px;

    font-size: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    opacity: 0.5;
}


/* Tags */

.page-tags,
.item-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px 12px;
}

.page-tags {
    margin-top: 14px;
}

.item-tags {
    margin-top: 7px;
}

.tag-item,
.tag-button {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 0;

    border: 0;
    background: transparent;

    white-space: nowrap;
}

.tag-item {
    font-size: 9px;
}

.item-tags .tag-item {
    font-size: 8px;

    opacity: 0.8;
}

.tag-button {
    font-size: 9px;

    cursor: pointer;
    opacity: 0.72;
}

.tag-button:hover,
.tag-button.is-active {
    opacity: 1;
}

.tag-button.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tag-dot {
    display: inline-block;

    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-radius: 50%;

    background-color: var(--tag-color);
}


/* CV and Contact */

.cv-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 620px);

    gap: 60px;
}

.profile-image {
    width: 180px;
}

.profile-image img {
    display: block;

    width: 100%;
    aspect-ratio: 3 / 4;

    object-fit: cover;
}

.cv-content-section {
    margin-bottom: 45px;
}

.cv-content-section h2 {
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 400;
}

.cv-content-section p,
.contact-content p {
    margin-bottom: 18px;

    font-size: 12px;
    line-height: 1.7;
}

.contact-content {
    width: min(100%, 500px);
}

.text-link {
    color: inherit;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-emphasis {
    font-style: italic;
    font-weight: 400;
    opacity: 0.68;
    
}


/* Works */

.works-index {
    width: 500px;
    max-width: 100%;

    margin-bottom: 70px;

    overflow: hidden;
}

.works-index.is-closed {
    margin-bottom: 50px;
}

.works-index-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 0 0 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.works-index-title {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.68;
}

.works-index-symbol {
    font-size: 12px;

    opacity: 0.68;
}

.works-index-content {
    max-height: 280px;

    overflow-y: auto;

    border-top: 1px solid var(--border-color);

    scrollbar-width: none;
}

.works-index-content::-webkit-scrollbar {
    display: none;
}

.works-index-list {
    list-style: none;
}

.works-index-item {
    border-bottom: 1px solid var(--border-color);
}

.works-index-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;

    gap: 20px;

    width: 100%;
    padding: 7px 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    text-align: left;
}

.works-index-name {
    overflow: hidden;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.works-index-year {
    font-size: 9px;

    opacity: 0.55;
}

.catalogue-list {
    width: min(100%, 2000px);
}

.catalogue-item {
    padding-bottom: 120px;
}

.work-header {
    margin-bottom: 24px;
}

.catalogue-title {
    margin-bottom: 22px;

    font-size: 19px;
    font-weight: 400;
}

.work-metadata {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);

    gap: 8px 18px;

    max-width: 680px;
    margin-bottom: 14px;

    font-size: 11px;
    line-height: 1.65;
}

.work-metadata dt {
    opacity: 0.62;
}

.work-image {
    margin-bottom: 24px;
}

.work-image img {
    display: block;

    width: 100%;
    height: auto;
}

.work-caption {
    margin-top: 4px;
    font-size: 11px;
    font-style: italic;
    opacity: 0.72;
}

.work-coming-soon,
.image-error {
    font-size: 11px;

    opacity: 0.65;
}

.image-error {
    display: none;
}

.image-error.is-visible {
    display: block;
}


/* Images archive */

.images-page {
    width: 100%;
    max-width: none;
}

.image-controls {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);

    gap: 38px;

    width: 100%;
    margin-bottom: 35px;
}

.control-title {
    margin-bottom: 10px;

    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.68;
}

.control-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 5px 12px;
}

.control-button {
    padding: 0;

    border: 0;
    background: transparent;

    font-size: 10px;

    cursor: pointer;
    opacity: 0.65;
}

.control-button:hover,
.control-button.is-active {
    opacity: 1;
}

.control-button.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.image-archive-count {
    margin-bottom: 14px;

    font-size: 9px;

    opacity: 0.6;
}

.image-archive-grid {
    width: 100%;

    columns: 260px;
    column-gap: 8px;

    /* Every column starts at the same top edge.
       Items below it pack according to their natural height. */
}

.image-archive-item {
    display: inline-block;

    width: 100%;
    margin: 0 0 12px;
    padding: 0;

    break-inside: avoid;
    vertical-align: top;

    border: 0;
    background: transparent;

    cursor: pointer;
    text-align: left;
}

.image-archive-media {
    position: relative;

    display: block;
    width: 100%;
}

.image-archive-item img,
.image-archive-item video {
    display: block;

    width: 100%;
    height: auto;
}

.archive-video.is-preview {
    pointer-events: none;

    background: #000;
}

.media-kind-label {
    position: absolute;
    right: 6px;
    bottom: 6px;

    padding: 2px 4px;

    background: var(--background-color);

    font-size: 8px;
    line-height: 1;

    opacity: 0.8;
}

.image-archive-meta {
    display: block;

    margin-top: 4px;

    font-size: 8px;

    opacity: 0.56;
}

.image-detail-page {
    width: 100%;
    max-width: none;

    text-align: left;
}

.image-detail-back {
    display: block;

    margin: 0 0 20px;
    padding: 0;

    border: 0;
    background: transparent;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;
    text-align: left;
}

.image-detail-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: min(
        var(--detail-media-width, 100%),
        100%
    );
    max-width: 100%;

    margin-right: auto;
    margin-left: 0;

    text-align: left;
}

.image-detail-figure {
    width: 100%;
    margin: 0 0 18px;

    text-align: left;
}

.image-detail-figure img,
.image-detail-figure video {
    display: block;

    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 110px);

    object-fit: contain;

    margin-right: auto;
    margin-left: 0;
}

.image-detail-figure video {
    background: #000;
}

/*
   Small source files are enlarged by app.js.
   The final width is still limited by the viewport, so media never
   creates horizontal scrolling.
*/
.image-detail-figure [data-small-source="true"] {
    image-rendering: auto;
}

.image-detail-caption {
    width: 100%;
    margin-top: 6px;

    text-align: left;

    font-size: 11px;

    opacity: 0.72;
}

.image-detail-meta {
    display: grid;

    width: 100%;
    grid-template-columns: 70px minmax(0, 1fr);

    gap: 5px 12px;

    margin-top: 20px;

    font-size: 10px;
    line-height: 1.5;
}

.image-detail-meta dt {
    opacity: 0.55;
}

.image-detail-content > .page-tags {
    width: 100%;
    justify-content: flex-start;

    margin-right: 0;
    margin-left: 0;

    text-align: left;
}


/* Scrap columns */

.columns {
    display: flex;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.scrap-column {
    flex: 0 0 var(--column-width);

    width: var(--column-width);
    min-width: var(--column-width);
    max-width: var(--column-width);
    height: 100%;

    padding:
        var(--content-top-padding)
        38px
        100px;

    overflow-x: hidden;
    overflow-y: auto;

    border-left: 1px solid var(--border-color);

    scrollbar-width: none;
}

.scrap-column:first-child {
    padding-left: var(--content-left-padding);

    border-left: 0;
}

.scrap-column-header {
    margin-bottom: 28px;
}

.scrap-kicker,
.scrap-index-title,
.scrap-related-title {
    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.68;
}

.scrap-title {
    font-size: 18px;
    font-weight: 400;
}

.scrap-dates {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);

    gap: 4px 12px;

    margin-top: 12px;

    font-size: 9px;
}

.scrap-dates dt {
    opacity: 0.55;
}

.scrap-text-block {
    margin-bottom: 22px;
}

.scrap-text-block p {
    margin-bottom: 16px;

    font-size: 12px;
    line-height: 1.75;
}

.scrap-link {
    padding: 0;

    border: 0;
    background: transparent;

    color: inherit;

    text-decoration: underline;
    text-underline-offset: 3px;

    cursor: pointer;
}

.scrap-image-block {
    margin-bottom: 28px;
}

.scrap-image-block img,
.scrap-gallery-item img {
    display: block;

    width: 100%;
    height: auto;
}

.scrap-image-caption,
.scrap-gallery-caption {
    margin-top: 4px;

    font-size: 9px;

    opacity: 0.65;
}

.scrap-gallery-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-bottom: 28px;
}

.scrap-gallery-block[data-columns="1"] {
    grid-template-columns: 1fr;
}

.scrap-gallery-block[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scrap-index-section {
    margin-bottom: 42px;
}

.scrap-search {
    --cursor-light: 0;

    width: 100%;
    padding: 7px 0;

    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;

    outline: none;

    background: transparent;

    color: color-mix(
        in srgb,
        var(--text-color) calc((1 - var(--cursor-light)) * 100%),
        var(--cursor-target-color) calc(var(--cursor-light) * 100%)
    );

    -webkit-text-fill-color: currentColor;
    caret-color: currentColor;

    font-family: inherit;
    font-size: 12px;
    font-weight: inherit;
    line-height: inherit;

    appearance: none;
    -webkit-appearance: none;
}

.scrap-search::placeholder {
    color: currentColor;
    -webkit-text-fill-color: currentColor;

    opacity: 0.45;
}

.scrap-search:focus {
    color: color-mix(
        in srgb,
        var(--text-color) calc((1 - var(--cursor-light)) * 100%),
        var(--cursor-target-color) calc(var(--cursor-light) * 100%)
    );

    -webkit-text-fill-color: currentColor;
}

.scrap-search:-webkit-autofill,
.scrap-search:-webkit-autofill:hover,
.scrap-search:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--background-color) inset;
    -webkit-text-fill-color: currentColor;
    caret-color: currentColor;
}

.scrap-search-results {
    margin-top: 18px;
}

.scrap-related {
    margin-top: 48px;
}


/* Footer */

.path-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 600;

    display: flex;
    align-items: center;

    height: var(--path-height);
    padding: 0 40px;

    overflow: hidden;

    border-top: 1px solid var(--border-color);

    background-color: var(--background-color);
}

.breadcrumb {
    display: flex;
    align-items: center;

    white-space: nowrap;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-button {
    padding: 0;

    border: 0;
    background: transparent;

    font-size: 11px;

    cursor: pointer;
    opacity: 0.75;
}

.breadcrumb-separator {
    margin: 0 9px;

    font-size: 10px;

    opacity: 0.45;
}


/* Cursor effect */

.cursor-sensitive {
    --cursor-light: 0;

    color: color-mix(
        in srgb,
        var(--text-color) calc((1 - var(--cursor-light)) * 100%),
        var(--cursor-target-color) calc(var(--cursor-light) * 100%)
    );
}

.cursor-sensitive *:not(.tag-dot) {
    color: inherit;
}


/* Responsive */

@media (max-width: 900px) {
    :root {
        --navigation-width: 170px;
        --column-width: calc(100vw - 170px);
        --content-left-padding: 28px;
    }

    .site-navigation {
        left: 24px;
    }

    .page-view {
        padding-right: 28px;
    }

    .cv-layout {
        grid-template-columns: 1fr;
    }

    .image-archive-grid {
        column-width: 100px;
    }
}

@media (max-width: 620px) {
    :root {
        --navigation-width: 130px;
        --column-width: calc(100vw - 130px);
        --content-left-padding: 18px;
        --content-top-padding: 22px;
    }

    .site-navigation {
        top: 20px;
        left: 16px;

        width: 100px;
    }

    .site-title {
        font-size: 12px;
    }

    .navigation-list button {
        font-size: 11px;
    }

    .page-view {
        padding-right: 18px;
        padding-bottom: 80px;
    }

    .scrap-column {
        padding-right: 18px;
        padding-bottom: 80px;
    }

    .path-bar {
        padding: 0 18px;
    }

    .work-metadata {
        grid-template-columns: 1fr;

        gap: 3px;
    }

    .work-metadata dd {
        margin-bottom: 10px;
    }

    .image-controls {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .image-archive-grid {
        column-width: 100%;
    }

    .scrap-gallery-block,
    .scrap-gallery-block[data-columns="3"] {
        grid-template-columns: 1fr;
    }
}

/* Video playback */

.archive-video {
    cursor: pointer;
}

.archive-video.is-preview,
.archive-video.is-detail {
    pointer-events: none;
}

.archive-video.is-detail::-webkit-media-controls {
    display: none !important;
}


/* ========================================
   Image / video detail alignment
======================================== */

.image-detail-page,
.image-detail,
.media-detail,
.image-detail-content,
.media-detail-content {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;

    text-align: left;
}

.image-detail-page figure,
.image-detail figure,
.media-detail figure,
.image-detail-media,
.media-detail-media {
    width: var(--detail-media-width, min(100%, 1200px));
    max-width: 100%;

    margin-left: 0;
    margin-right: auto;

    text-align: left;
}

.image-detail-page img,
.image-detail-page video,
.image-detail img,
.image-detail video,
.media-detail img,
.media-detail video {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin-left: 0;
    margin-right: auto;

    object-fit: contain;
    object-position: left top;
}

.image-detail-caption,
.media-detail-caption,
.image-detail-meta,
.media-detail-meta,
.image-detail-page .page-tags,
.image-detail-page .tag-list,
.image-detail .page-tags,
.image-detail .tag-list {
    width: var(--detail-media-width, min(100%, 1200px));
    max-width: 100%;

    margin-left: 0;
    margin-right: auto;

    text-align: left;
    justify-content: flex-start;
}

.image-detail-meta,
.media-detail-meta {
    justify-items: start;
}

.image-detail-meta dt,
.image-detail-meta dd,
.media-detail-meta dt,
.media-detail-meta dd {
    text-align: left;
}

/* Works shared image / video media */
.work-image img,
.work-image video,
.work-video {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: contain;
    object-position: left top;
}

.work-video::-webkit-media-controls {
    display: none !important;
}


/* ========================================
   Scrap search result modes
======================================== */

.search-kind-filter {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 14px;

    margin-top: 12px;
}

.search-kind-button {
    display: inline-flex;
    align-items: baseline;

    gap: 5px;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 9px;

    cursor: pointer;
    opacity: 0.58;
}

.search-kind-button:hover,
.search-kind-button.is-active {
    opacity: 1;
}

.search-kind-button.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.search-kind-count {
    font-size: 8px;
    opacity: 0.62;
}

.archive-result-section {
    margin-bottom: 30px;
}

.archive-result-heading,
.archive-search-result-header {
    margin-bottom: 9px;

    font-size: 9px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    opacity: 0.62;
}

.archive-image-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
}

.archive-image-result {
    display: block;

    min-width: 0;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    text-align: left;
}

.archive-image-result img,
.archive-image-result video {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

.archive-image-result-meta {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    font-size: 7px;
    line-height: 1.3;

    opacity: 0.5;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-view-all-images {
    margin-top: 12px;
    padding: 0;

    border: 0;
    background: transparent;

    font-size: 9px;

    cursor: pointer;
    opacity: 0.66;
}

.archive-view-all-images:hover {
    opacity: 1;
}

@media (max-width: 620px) {
    .archive-image-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ========================================
   Mobile Scrap alternative layout
======================================== */

.mobile-scrap-back {
    display: none;
}

@media (max-width: 768px) {
    /*
        On mobile, Scrap uses a single-column Notes-style view.
        Only the current column is displayed.
    */

    .scrap-workspace,
    .column-view {
        width: 100%;
        height: 100%;

        overflow-x: hidden;
        overflow-y: hidden;
    }

    .scrap-columns,
    .columns {
        display: block;

        width: 100%;
        height: 100%;

        overflow: hidden;
    }

    .scrap-column {
        display: none;

        width: 100%;
        min-width: 0;
        max-width: none;
        height: 100%;

        padding:
            22px
            18px
            90px;

        overflow-x: hidden;
        overflow-y: auto;

        border-left: 0;

        scrollbar-width: none;
    }

    .scrap-column:last-child {
        display: block;
    }

    .scrap-column::-webkit-scrollbar {
        display: none;
    }

    .scrap-column:first-child {
        padding-left: 18px;
    }

    .scrap-index-column {
        width: 100%;
    }

    .scrap-column-header {
        margin-bottom: 30px;
    }

    .scrap-kicker {
        margin-bottom: 7px;
    }

    .scrap-title {
        font-size: 18px;
        line-height: 1.25;
    }

    /*
        Search and filters remain compact and readable.
    */

    .scrap-search,
    .archive-search {
        width: 100%;

        font-size: 16px;
    }

    .search-type-filter,
    .search-kind-filter {
        display: flex;
        flex-wrap: wrap;

        gap: 7px 14px;

        margin-top: 13px;
        margin-bottom: 22px;
    }

    .search-type-filter button,
    .search-kind-filter button {
        font-size: 10px;
    }

    .scrap-index-section {
        margin-bottom: 42px;
    }

    /*
        Apple Notes-style rows.
    */

    .item-list,
    .archive-list {
        width: 100%;

        border-top: 1px solid var(--border-color);
    }

    .item-row,
    .archive-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .item-button,
    .archive-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;

        gap: 16px;

        width: 100%;
        min-height: 78px;

        padding:
            14px
            0;

        text-align: left;
    }

    .item-title,
    .archive-title {
        font-size: 14px;
        line-height: 1.35;

        white-space: normal;
    }

    .item-meta,
    .archive-meta {
        margin-top: 5px;

        font-size: 9px;
        line-height: 1.4;

        white-space: normal;
    }

    .item-arrow {
        margin-left: 0;
    }

    .item-tags {
        margin-top: 8px;
    }

    /*
        Article page.
    */

    .mobile-scrap-back {
        display: inline-block;

        margin-bottom: 25px;
        padding: 0;

        border: 0;
        background: transparent;

        font-size: 16px;
        line-height: 1;

        cursor: pointer;
    }

    .scrap-content {
        width: 100%;
    }

    .scrap-text-block p {
        font-size: 14px;
        line-height: 1.75;
    }

    .scrap-image-block,
    .scrap-gallery-block {
        width: 100%;
    }

    .scrap-gallery-block,
    .scrap-gallery-block[data-columns="2"],
    .scrap-gallery-block[data-columns="3"] {
        grid-template-columns: 1fr;
    }

    .scrap-related {
        margin-top: 50px;
    }

    /*
        Mobile search image results.
    */

    .search-image-grid,
    .archive-image-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }

    /*
        The fixed left navigation remains, but the content region uses
        the same start position as the other mobile pages.
    */

    .workspace {
        left: var(--navigation-width);
    }
}


/* ========================================
   Scrap global Text / Images / All filter
======================================== */

.scrap-global-kind-filter {
    margin-top: 18px;
    margin-bottom: 0;
}


/* ========================================
   Image archive names and captions
======================================== */

.image-archive-name {
    display: block;

    margin-top: 5px;

    overflow: hidden;

    font-size: 10px;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-archive-meta {
    margin-top: 2px;
}

.image-detail-caption {
    display: block;

    text-align: left;
}

.image-detail-name,
.image-detail-description {
    display: block;
}

.image-detail-name {
    font-size: 11px;
    line-height: 1.45;
}

.image-detail-description {
    margin-top: 3px;

    font-size: 10px;
    line-height: 1.45;

    opacity: 0.7;
}


/* ========================================
   Minimal Scrap media presentation
======================================== */

.scrap-content {
    width: 100%;
}

.scrap-image-block,
.scrap-gallery-block {
    display: block;

    width: min(100%, 500px);
    max-width: 500px;

    margin:
        0
        0
        12px;

    padding: 0;

    border: 0;
    background: transparent;
}

.scrap-gallery-item {
    width: 100%;

    margin:
        0
        0
        12px;

    padding: 0;

    border: 0;
    background: transparent;
}

.scrap-gallery-item:last-child {
    margin-bottom: 0;
}

.scrap-image-block img,
.scrap-image-block video,
.scrap-gallery-item img,
.scrap-gallery-item video {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;

    border: 0;
    border-radius: 0;
    background: transparent;

    object-fit: contain;
    object-position: left top;

    box-shadow: none;
}

.scrap-image-caption,
.scrap-gallery-caption {
    margin:
        3px
        0
        0;

    font-size: 9px;
    line-height: 1.35;

    text-align: left;

    opacity: 0.55;
}


/* ========================================
   Minimal image and video search results
======================================== */

.archive-image-results,
.search-image-grid,
.archive-image-grid {
    display: block;

    width: 100%;

    border-top:
        1px
        solid
        var(--border-color);
}

.archive-image-result {
    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    width: 100%;

    min-height: 65px;

    margin: 0;
    padding:
        8px
        0;

    border: 0;
    border-bottom:
        1px
        solid
        var(--border-color);

    background: transparent;

    cursor: pointer;
    text-align: left;
}

.archive-image-result-thumbnail,
.archive-image-result img,
.archive-image-result video {
    display: block;

    width: 48px;
    height: 48px;

    margin: 0;

    border: 0;
    border-radius: 0;
    background: transparent;

    object-fit: cover;
    object-position: center;
}

.archive-image-result-copy {
    display: block;

    min-width: 0;
}

.archive-image-result-name {
    display: block;

    overflow: hidden;

    font-size: 11px;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-image-result-meta {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    font-size: 8px;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;

    opacity: 0.5;
}

.archive-image-result-arrow {
    font-size: 10px;

    opacity: 0.6;
}

.archive-view-all-images {
    margin-top: 12px;
}


/* ========================================
   Mobile refinements
======================================== */

@media (max-width: 768px) {
    .scrap-image-block,
    .scrap-gallery-block {
        width: 100%;
        max-width: none;
    }

    .archive-image-result {
        grid-template-columns:
            44px
            minmax(0, 1fr)
            auto;

        min-height: 61px;

        gap: 10px;
    }

    .archive-image-result-thumbnail,
    .archive-image-result img,
    .archive-image-result video {
        width: 44px;
        height: 44px;
    }
}


/* ========================================
   Works media width and alignment
======================================== */

.work-image {
    width: min(
        100%,
        var(--work-media-width, 850px)
    );

    max-width: 100%;

    margin-top: 0;
    margin-bottom: 24px;
}

.work-image[data-align="left"] {
    margin-left: 0;
    margin-right: auto;
}

.work-image[data-align="center"] {
    margin-left: auto;
    margin-right: auto;
}

.work-image[data-align="right"] {
    margin-left: auto;
    margin-right: 0;
}

.work-image[data-align="full"] {
    width: 100%;

    margin-left: 0;
    margin-right: 0;
}

.work-image img,
.work-image video,
.work-video {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;

    object-fit: contain;
    object-position: left top;
}

.work-caption {
    width: 100%;

    margin-top: 4px;

    font-size: 11px;
    line-height: 1.4;

    text-align: left;

    opacity: 0.72;
}


