:root {
    color-scheme: dark;
    --bg: #09080d;
    --accent-1: #4a238a;
    --accent-2: #7034cf;
    --accent-3: #b84bd3;
    --accent-1-rgb: 74, 35, 138;
    --accent-2-rgb: 112, 52, 207;
    --accent-3-rgb: 184, 75, 211;
    --text: #f7f3ff;
    --muted: #bbb4c8;
    --quiet: #888091;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.17);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto;
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    overflow: visible;
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    background:
        radial-gradient(circle at 78% 12%, rgba(var(--accent-2-rgb), 0.16), transparent 30%),
        linear-gradient(155deg, #09080d, #11101a 54%, #121019),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

.workshop-shell {
    width: 100%;
    margin: 0 auto;
    padding: 64px 0 34px;
}

.workshop-hero {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-strong);
    isolation: isolate;
}

.workshop-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    /* Shade the image for legible titles; colour flares stay behind it. */
    background: linear-gradient(90deg, rgba(7, 6, 10, 0.98) 0%, rgba(10, 8, 14, 0.82) 46%, rgba(10, 8, 14, 0.28) 100%);
    content: "";
}

.workshop-hero-media {
    position: absolute;
    z-index: -3;
    inset: 0;
    display: none;
    overflow: hidden;
}

.workshop-hero-media.has-image {
    display: block;
}

.workshop-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-hero-glow {
    position: absolute;
    /* Keep the flare beneath hero artwork as well as foreground content. */
    z-index: -4;
    top: 50%;
    right: 8%;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.24), transparent 68%);
    filter: blur(8px);
    transform: translateY(-50%);
}

.workshop-hero-inner {
    display: grid;
    width: min(1220px, calc(100% - 80px));
    min-height: 280px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0 auto;
    padding: 30px 0 28px;
}

.workshop-hero-copy {
    width: 100%;
    max-width: 900px;
    justify-self: center;
    text-align: center;
}

.workshop-kicker,
.workshop-pane-heading p,
.workshop-release-pane > p,
.workshop-section-heading p {
    margin: 0 0 11px;
    color: var(--accent-3);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.workshop-hero h1 {
    margin: 0;
    font-family: "Bungee", sans-serif;
    font-size: clamp(2.5rem, 4.2vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.94;
    background-image: linear-gradient(
        135deg,
        var(--accent-1) 0%,
        var(--accent-2) 34%,
        var(--accent-3) 68%,
        var(--accent-1) 100%
    );
    background-size: 300% 300%;
    background-position: 0% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: workshop-title-gradient-flow 16s linear infinite alternate;
    will-change: background-position;
}

@keyframes workshop-title-gradient-flow {
    from { background-position: 0% 100%; }
    to { background-position: 100% 0%; }
}

.workshop-subtitle {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.workshop-summary {
    max-width: 660px;
    margin: 18px auto 0;
    color: var(--quiet);
    font-size: 1rem;
    line-height: 1.75;
}

.workshop-download-button[hidden],
.workshop-secondary-link[hidden],
.workshop-details[hidden],
.workshop-explorer[hidden] {
    display: none;
}

.workshop-details {
    width: min(1220px, calc(100% - 80px));
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 18px;
    margin: 0 auto;
    padding: 40px 0;
}

.workshop-logo-separator {
    position: relative;
    z-index: 10;
    width: min(1220px, calc(100% - 80px));
    height: 0;
    margin: 0 auto;
}

.workshop-logo-separator[hidden] {
    display: none;
}

.workshop-logo-frame {
    position: absolute;
    top: 0;
    left: 50%;
    width: 132px;
    height: 132px;
    justify-self: auto;
    transform: translate(-50%, -50%);
}

.workshop-logo-separator:not([hidden]) + .workshop-details {
    padding-top: 112px;
}

.workshop-pane {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(var(--accent-2-rgb), 0.035));
}

.workshop-copy-pane {
    padding: clamp(28px, 4vw, 52px);
}

.workshop-pane-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.workshop-release-pane > p {
    margin-bottom: 7px;
}

.workshop-pane-heading p {
    margin: 0;
    color: #a79cc1;
    font-size: 0.58rem;
}

.workshop-pane-heading h2 {
    width: auto;
    max-width: none;
    margin: 5px 0 0;
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
}

.workshop-section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.workshop-pane-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(var(--accent-2-rgb), 0.38);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(var(--accent-1-rgb), 0.19), rgba(var(--accent-3-rgb), 0.07));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.workshop-pane-icon::before {
    width: 26px;
    height: 26px;
    background: var(--accent-3);
    content: "";
    -webkit-mask: var(--workshop-icon) center / contain no-repeat;
    mask: var(--workshop-icon) center / contain no-repeat;
}

.workshop-body {
    margin-top: 28px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
}

.workshop-body p {
    margin: 0 0 1.1em;
}

.workshop-body p:last-child {
    margin-bottom: 0;
}

.workshop-body ul,
.workshop-body ol {
    margin: 0 0 1.15em;
    padding-left: 1.4em;
}

.workshop-body li + li {
    margin-top: 0.42em;
}

.workshop-body strong {
    color: var(--text);
}

.workshop-side-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

.workshop-download-button {
    position: relative;
    display: block;
    width: 100%;
    min-height: 68px;
    flex: 0 0 68px;
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: filter 150ms ease, transform 150ms ease;
}

.workshop-download-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.workshop-download-button:focus-visible {
    border-radius: 12px;
    outline: 2px solid var(--accent-3);
    outline-offset: 3px;
}

.workshop-download-face {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    padding: 12px 15px 12px 17px;
    align-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 48%, var(--accent-3));
    background-clip: padding-box;
    box-shadow: 0 14px 35px rgba(var(--accent-2-rgb), 0.25);
}

.workshop-download-face::after {
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(315deg, color-mix(in srgb, var(--accent-3) 82%, white 18%), color-mix(in srgb, var(--accent-2) 74%, white 26%) 50%, color-mix(in srgb, var(--accent-1) 82%, white 18%));
    content: "";
    opacity: 0.78;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.workshop-download-face .button-kicker {
    align-self: end;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.workshop-download-face strong {
    grid-column: 1;
    font-size: 0.86rem;
}

.workshop-download-icon {
    width: 28px;
    height: 28px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    background: rgba(255, 255, 255, 0.82);
    -webkit-mask: var(--workshop-download-icon, url("https://droog.uk/housing-images/icons/site-icons-engineering.svg?v=20260907")) center / contain no-repeat;
    mask: var(--workshop-download-icon, url("https://droog.uk/housing-images/icons/site-icons-engineering.svg?v=20260907")) center / contain no-repeat;
}

.workshop-release-pane {
    padding: clamp(28px, 4vw, 42px);
}

.workshop-release-pane dl {
    display: grid;
    gap: 0;
    margin: 10px 0 0;
}

.workshop-release-pane dl > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.workshop-release-pane dl > div[hidden] {
    display: none;
}

.workshop-release-pane dt {
    color: var(--quiet);
}

.workshop-release-pane dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.workshop-secondary-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.workshop-gallery {
    width: min(1220px, calc(100% - 80px));
    margin: 0 auto;
    padding: 38px 0 48px;
    border-top: 1px solid var(--line-strong);
}

.workshop-gallery[hidden] { display: none; }

.workshop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 150px;
    gap: 12px;
}

.workshop-gallery-image {
    position: relative;
    grid-column: span 6;
    grid-row: span 3;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 15, 23, 0.76);
    cursor: zoom-in;
}

.workshop-gallery-image-0,
.workshop-gallery-image-3 {
    grid-column: span 7;
    grid-row: span 3;
}
.workshop-gallery-image-1,
.workshop-gallery-image-2 {
    grid-column: span 5;
    grid-row: span 2;
}

.workshop-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease, filter 240ms ease;
}

.workshop-gallery-image:hover img,
.workshop-gallery-image:focus-visible img {
    filter: brightness(1.08);
    transform: scale(1.015);
}

.workshop-lightbox {
    width: min(1440px, calc(100vw - 48px));
    height: min(900px, calc(100dvh - 48px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    background: rgba(7, 6, 10, 0.98);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.workshop-lightbox::backdrop {
    background: rgba(3, 2, 5, 0.86);
    backdrop-filter: blur(10px);
}

.workshop-lightbox > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.workshop-lightbox-close,
.workshop-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    color: #fff;
    background: rgba(7, 6, 10, 0.74);
    cursor: pointer;
}

.workshop-lightbox-close { top: 24px; right: 24px; font-size: 1.35rem; }
.workshop-lightbox-nav { top: 50%; transform: translateY(-50%); }
.workshop-lightbox-prev { left: 24px; }
.workshop-lightbox-next { right: 24px; }
.workshop-lightbox-nav[hidden] { display: none; }
.workshop-lightbox-nav svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.workshop-explorer {
    width: min(1220px, calc(100% - 80px));
    margin: 0 auto;
    padding: 42px 0 48px;
    border-top: 1px solid var(--line-strong);
}

body:not(.workshop-homepage) .workshop-explorer {
    padding-top: 28px;
    padding-bottom: 10px;
}

.workshop-section-heading {
    text-align: center;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.workshop-explorer-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    min-height: 104px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.workshop-explorer-card:hover {
    border-color: var(--tool-c2);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-3px);
}

.workshop-explorer-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tool-c1), var(--tool-c3));
}

.workshop-explorer-icon::after {
    display: block;
    width: 52%;
    height: 52%;
    margin: 24%;
    background: rgba(255, 255, 255, 0.86);
    content: "";
    -webkit-mask: var(--workshop-icon) center / contain no-repeat;
    mask: var(--workshop-icon) center / contain no-repeat;
}

.workshop-explorer-card strong,
.workshop-explorer-card small {
    display: block;
}

.workshop-explorer-card strong {
    font-size: 0.9rem;
}

.workshop-explorer-card small {
    margin-top: 5px;
    color: var(--quiet);
    font-size: 0.68rem;
}

.workshop-explorer-copy {
    min-width: 0;
}

.workshop-explorer-summary,
.workshop-explorer-action {
    display: none;
}

body.workshop-homepage .workshop-shell {
    width: 100%;
}

body.workshop-homepage .workshop-hero {
    min-height: 280px;
}

body.workshop-homepage .workshop-subtitle {
    margin-top: 11px;
}

body.workshop-homepage .workshop-explorer {
    width: min(1220px, calc(100% - 80px));
    margin: 0 auto;
    padding: 28px 0 120px;
    border-top: 0;
}

body.workshop-homepage .workshop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(210px, 1fr);
    gap: 14px;
    margin-top: 0;
}

body.workshop-homepage .workshop-section-heading {
    display: none;
}

body.workshop-homepage .workshop-explorer-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 210px;
    overflow: hidden;
    align-items: stretch;
    padding: 30px;
    border-color: var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--tool-c2) 11%, transparent), transparent 55%),
        rgba(17, 15, 23, 0.76);
}

body.workshop-homepage .workshop-explorer-card:hover {
    border-color: color-mix(in srgb, var(--tool-c2) 58%, rgba(255, 255, 255, 0.15));
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--tool-c2) 16%, transparent), transparent 55%),
        rgba(17, 15, 23, 0.84);
}

body.workshop-homepage .workshop-explorer-icon {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 auto;
    width: 58%;
    height: 100%;
    border-radius: 0;
    background: transparent;
    opacity: 0.62;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.26) 24%, #000 72%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.26) 24%, #000 72%, #000 100%);
}

body.workshop-homepage .workshop-explorer-icon::after {
    position: absolute;
    top: 17%;
    right: 12%;
    width: 66%;
    height: 66%;
    margin: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tool-c1) 76%, white 12%), var(--tool-c3));
    filter: drop-shadow(0 0 24px color-mix(in srgb, var(--tool-c2) 36%, transparent));
}

body.workshop-homepage .workshop-explorer-copy {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(62%, 360px);
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
}

body.workshop-homepage .workshop-explorer-card strong {
    font-family: "Bungee", sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.2;
}

body.workshop-homepage .workshop-explorer-card small {
    display: none;
}

body.workshop-homepage .workshop-explorer-media {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    opacity: 0.58;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 34%, #000 72%, #000 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 34%, #000 72%, #000 100%);
}

body.workshop-homepage .workshop-explorer-media::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 8, 13, 0.9) 0%, rgba(9, 8, 13, 0.64) 42%, rgba(9, 8, 13, 0.12) 78%),
        linear-gradient(90deg, transparent 45%, color-mix(in srgb, var(--tool-c2) 12%, transparent));
    content: "";
}

body.workshop-homepage .workshop-explorer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.workshop-homepage .workshop-explorer-card.has-background-image .workshop-explorer-icon {
    display: none;
}

body.workshop-homepage .workshop-explorer-summary {
    display: -webkit-box;
    margin: 12px 0 20px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.workshop-homepage .workshop-explorer-summary[hidden] {
    display: none;
}

body.workshop-homepage .workshop-explorer-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    margin-top: auto;
    padding: 0 15px;
    border: 1px solid color-mix(in srgb, var(--tool-c3) 42%, transparent);
    border-radius: 10px;
    color: var(--text);
    background: color-mix(in srgb, var(--tool-c1) 16%, transparent);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workshop-empty {
    display: grid;
    min-height: 70vh;
    place-items: center;
    align-content: center;
    padding: 80px 20px;
    text-align: center;
}

.workshop-empty[hidden] {
    display: none;
}

.workshop-empty-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-mask: url("https://droog.uk/housing-images/icons/site-icons-engineering.svg?v=20260907") center / contain no-repeat;
    mask: url("https://droog.uk/housing-images/icons/site-icons-engineering.svg?v=20260907") center / contain no-repeat;
}

.workshop-empty h1 {
    margin: 0;
    font-family: "Bungee", sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.workshop-empty > p:last-child {
    max-width: 560px;
    color: var(--quiet);
    line-height: 1.7;
}

.workshop-toast {
    position: fixed;
    z-index: 70;
    right: 24px;
    bottom: 24px;
}

@media (max-width: 900px) {
    .workshop-hero-inner {
        width: calc(100% - 40px);
    }

    .workshop-details {
        grid-template-columns: 1fr;
    }

    .workshop-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 130px;
    }

    .workshop-gallery-image,
    .workshop-gallery-image-0,
    .workshop-gallery-image-1,
    .workshop-gallery-image-2,
    .workshop-gallery-image-3 {
        grid-column: span 1;
        grid-row: span 2;
    }

    .workshop-gallery-image-0,
    .workshop-gallery-image-3 { grid-row: span 3; }

    .workshop-gallery-grid[data-count="1"] .workshop-gallery-image {
        grid-column: 1 / -1;
        grid-row: span 3;
    }

    .workshop-gallery-grid[data-count="2"] .workshop-gallery-image,
    .workshop-gallery-grid[data-count="3"] .workshop-gallery-image:first-child,
    .workshop-gallery-grid[data-count="3"] .workshop-gallery-image:not(:first-child) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .workshop-gallery-grid[data-count="3"] .workshop-gallery-image:first-child { grid-row: span 3; }

    .workshop-gallery-grid[data-layout="wide"] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="wide"][data-count="1"] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="wide"][data-count="2"] .workshop-gallery-image {
        grid-column: 1 / -1;
        grid-row: span 3;
    }

    .workshop-gallery-grid[data-layout="wide"] .workshop-gallery-image:first-child { grid-row: span 4; }

    .workshop-gallery-grid[data-layout="tall"] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="tall"][data-count="2"] .workshop-gallery-image {
        grid-column: span 1;
        grid-row: span 2;
    }

    .workshop-gallery-grid[data-layout="tall"] .workshop-gallery-image:first-child,
    .workshop-gallery-grid[data-layout="tall"][data-count="1"] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="tall"][data-count="2"] .workshop-gallery-image:first-child {
        grid-column: 1 / -1;
        grid-row: span 4;
    }

    .workshop-gallery-grid[data-layout="grid"] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="grid"][data-count="2"] .workshop-gallery-image {
        grid-column: span 1;
        grid-row: span 2;
    }

    .workshop-gallery-grid[data-layout="grid"][data-count="1"] .workshop-gallery-image {
        grid-column: 1 / -1;
        grid-row: span 3;
    }

    .workshop-gallery-grid[data-layout="filmstrip"] .workshop-gallery-image {
        grid-column: 1 / -1;
        grid-row: span 3;
    }

    .workshop-gallery-grid[data-layout="compact"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .workshop-gallery-grid[data-layout="compact"][data-count] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="compact"][data-count] .workshop-gallery-image:first-child {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 1;
    }

    .workshop-gallery-grid[data-layout="spotlight"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .workshop-gallery-grid[data-layout="spotlight"][data-count] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="spotlight"][data-count="3"] .workshop-gallery-image:not(:first-child),
    .workshop-gallery-grid[data-layout="spotlight"][data-count="4"] .workshop-gallery-image:not(:first-child) {
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 1.2;
    }

    .workshop-gallery-grid[data-layout="spotlight"][data-count] .workshop-gallery-image:first-child,
    .workshop-gallery-grid[data-layout="spotlight"][data-count="2"] .workshop-gallery-image:not(:first-child) {
        grid-column: 1 / -1;
        aspect-ratio: 1.65;
    }

    .workshop-gallery-grid[data-layout="paired"] {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .workshop-gallery-grid[data-layout="paired"][data-count] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="paired"][data-count] .workshop-gallery-image:first-child {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 16 / 10;
    }

    .workshop-gallery-grid[data-layout="story"] {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .workshop-gallery-grid[data-layout="story"][data-count] .workshop-gallery-image,
    .workshop-gallery-grid[data-layout="story"][data-count] .workshop-gallery-image:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 1.45;
    }

    .workshop-gallery-grid[data-layout="wall"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 86px;
    }

    .workshop-gallery-grid[data-layout="wall"][data-count] .workshop-gallery-image:nth-child(n) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .workshop-gallery-grid[data-layout="wall"][data-count] .workshop-gallery-image:nth-child(4n + 1) {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    .workshop-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.workshop-homepage .workshop-hero-inner,
    body.workshop-homepage .workshop-explorer {
        width: calc(100% - 40px);
    }
}

@media (max-width: 620px) {
    .workshop-shell {
        width: 100%;
        padding-top: 64px;
    }

    .workshop-hero {
        min-height: 0;
    }

    .workshop-hero-inner { width: calc(100% - 28px); }

    .workshop-details,
    .workshop-explorer,
    .workshop-gallery {
        width: calc(100% - 28px);
        padding-right: 0;
        padding-left: 0;
    }

    .workshop-logo-separator {
        width: calc(100% - 28px);
    }

    .workshop-logo-frame {
        width: 104px;
        height: 104px;
    }

    .workshop-logo-separator:not([hidden]) + .workshop-details {
        padding-top: 88px;
    }

    .workshop-grid {
        grid-template-columns: 1fr;
    }

    body.workshop-homepage .workshop-hero {
        min-height: 230px;
    }

    body.workshop-homepage .workshop-hero-inner {
        width: calc(100% - 28px);
        min-height: 230px;
        padding: 30px 0 28px;
    }

    body.workshop-homepage .workshop-hero h1 {
        font-size: clamp(2.05rem, 10.5vw, 2.85rem);
    }

    body.workshop-homepage .workshop-subtitle {
        font-size: 0.9rem;
    }

    body.workshop-homepage .workshop-explorer {
        width: calc(100% - 28px);
        padding: 20px 0 82px;
    }

    body.workshop-homepage .workshop-grid {
        grid-template-columns: 1fr;
    }

    body.workshop-homepage .workshop-explorer-card {
        min-height: 220px;
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .workshop-download-button,
    .workshop-explorer-card { transition-duration: 1ms; }
    .workshop-hero h1 { animation: none; }
    .workshop-logo-frame,
    .workshop-logo-frame::before,
    .workshop-logo-frame::after,
    .workshop-logo-frame .avatar-frame-ornament,
    .workshop-logo-frame .avatar-frame-ornament i,
    .workshop-logo-frame .avatar-orbit { animation: none !important; }
}
