:root {
    color-scheme: dark;
    --bg: #090d10;
    --surface: #11181d;
    --surface-raised: #162127;
    --ink: #eef5f4;
    --muted: #8da0a6;
    --line: rgba(205, 232, 232, 0.14);
    --accent: #31d0c6;
    --accent-strong: #87f0e7;
    --blue: #4f8cff;
    --violet: #8a7dff;
    --gold: #75b8ff;
    --danger: #ff6b5f;
    --danger-bg: rgba(255, 107, 95, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(49, 208, 198, 0.14), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(79, 140, 255, 0.16), transparent 30%),
        radial-gradient(circle at 58% 58%, rgba(138, 125, 255, 0.07), transparent 36%),
        linear-gradient(180deg, #0d1216 0%, var(--bg) 48%, #070a0d 100%);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img,
video {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

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

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 18px clamp(18px, 4vw, 52px);
    border-bottom: 1px solid var(--line);
    background: rgba(9, 13, 16, 0.94);
}

.brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    background: linear-gradient(90deg, var(--ink), var(--accent-strong) 56%, var(--blue));
    background-clip: text;
    color: transparent;
}

.site-header nav,
.site-header form {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-header a:hover,
.brand:hover {
    color: var(--accent-strong);
    text-decoration: none;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 34px clamp(18px, 4vw, 52px);
    border-top: 1px solid var(--line);
    background: rgba(7, 10, 13, 0.92);
    color: var(--muted);
}

.site-footer div {
    display: grid;
    gap: 2px;
}

.footer-brand {
    width: fit-content;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.footer-brand:hover,
.site-footer a:hover {
    color: var(--accent-strong);
    text-decoration: none;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.site-footer > p {
    justify-self: end;
    text-align: right;
}

main {
    width: 100%;
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(760px, calc(100vh - 70px));
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(49, 208, 198, 0.18), transparent 42%),
        linear-gradient(180deg, #192329 0%, #070a0d 100%);
}

.hero-media {
    position: absolute;
    inset: 0;
}

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

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 10, 0.78), rgba(4, 8, 10, 0.14) 62%, rgba(4, 8, 10, 0.48)),
        radial-gradient(circle at 18% 72%, rgba(49, 208, 198, 0.2), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(79, 140, 255, 0.16), transparent 30%);
}

.hero-portrait {
    align-items: end;
    min-height: min(760px, calc(100vh - 70px));
}

.hero-portrait .hero-media {
    inset: 0;
    width: auto;
    background: transparent;
    box-shadow: none;
}

.hero-portrait .hero-media img,
.hero-portrait .hero-media video {
    object-fit: cover;
    object-position: center 36%;
}

.hero-portrait::after {
    background:
        linear-gradient(90deg, rgba(4, 8, 10, 0.78), rgba(4, 8, 10, 0.2) 55%, rgba(4, 8, 10, 0.34)),
        radial-gradient(circle at 75% 50%, rgba(49, 208, 198, 0.18), transparent 34%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100% - 36px));
    margin: 0 clamp(18px, 4vw, 52px) clamp(42px, 8vw, 92px);
    color: #ffffff;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(48px, 9vw, 116px);
    line-height: 0.96;
    letter-spacing: 0;
    text-shadow: 0 0 42px rgba(79, 140, 255, 0.16);
}

.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.form-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-actions {
    margin-top: 26px;
}

.eyebrow {
    margin: 0 0 12px !important;
    color: var(--gold) !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-heading .eyebrow::after,
.hero-copy .eyebrow::after {
    content: "";
    display: inline-block;
    width: 42px;
    height: 2px;
    margin-left: 10px;
    vertical-align: middle;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet));
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #03100f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0 18px;
}

.button:hover,
button:hover {
    background: linear-gradient(135deg, var(--accent-strong), #8ab0ff);
    text-decoration: none;
}

.button.ghost,
.ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
}

.button.ghost:hover,
.ghost:hover {
    border-color: rgba(49, 208, 198, 0.48);
    background: rgba(49, 208, 198, 0.11);
}

.hero .button.ghost {
    color: #ffffff;
}

.link-button {
    min-height: auto;
    padding: 0;
    background: none;
    color: var(--accent);
}

.link-button:hover {
    background: none;
    text-decoration: underline;
}

.passkey-login-box {
    display: grid;
    gap: 8px;
}

.passkey-login-box .button {
    width: 100%;
}

.remember-row {
    margin-top: 2px;
}

.section-heading,
.services-strip,
.photo-grid,
.shoot-grid,
.empty-state,
.split-page,
.auth-layout,
.admin-layout,
.admin-list,
.edit-layout,
.admin-shell,
.shoot-hero {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 72px 0 26px;
}

.section-heading h2,
.services-strip h2,
.empty-state h2,
.split-page h1,
.auth-copy h1,
.admin-intro h1,
.edit-layout h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: 0;
}

.shoot-heading {
    padding-top: 0;
    padding-bottom: 28px;
}

.album-showcase {
    position: relative;
    padding: clamp(54px, 7vw, 86px) 0 clamp(58px, 7vw, 92px);
    border-top: 1px solid rgba(205, 232, 232, 0.08);
    border-bottom: 1px solid rgba(205, 232, 232, 0.1);
    background:
        linear-gradient(90deg, rgba(49, 208, 198, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(13, 20, 25, 0.82), rgba(7, 10, 13, 0.72));
}

.album-showcase .section-heading {
    padding-left: clamp(0px, 2vw, 22px);
}

.album-showcase .section-heading h2 {
    font-size: clamp(38px, 6vw, 78px);
}

#portfolio.photo-grid {
    margin-top: clamp(38px, 5vw, 72px);
}

.carousel-button {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 84px;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(7, 10, 13, 0.82);
    color: #ffffff;
    transform: translateY(-50%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.carousel-button-prev {
    left: 18px;
}

.carousel-button-next {
    right: 18px;
}

.carousel-button span {
    margin-top: -4px;
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
}

.carousel-button:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(49, 208, 198, 0.86), rgba(79, 140, 255, 0.86));
    color: #03100f;
}

.carousel-button:disabled {
    cursor: default;
    opacity: 0.34;
    pointer-events: none;
}

.carousel-button:disabled:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(7, 10, 13, 0.42);
    color: #ffffff;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-bar a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--muted);
    font-weight: 800;
}

.filter-bar a.active,
.filter-bar a:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #03100f;
    text-decoration: none;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    gap: 2px;
    padding-bottom: 74px;
    background: var(--bg);
}

.portfolio-page .photo-grid {
    display: block;
    width: 100%;
    column-count: 4;
    column-gap: 2px;
    margin-inline: 0;
    padding-bottom: 0;
    background: transparent;
}

.portfolio-page .shoot-photo-grid {
    padding-top: 0;
}

.portfolio-page .photo-card {
    display: block;
    break-inside: avoid;
    margin: 0 0 2px;
    aspect-ratio: auto !important;
}

.portfolio-page .photo-card a {
    display: block;
}

.portfolio-page .photo-card img,
.portfolio-page .photo-card video {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
}

@media (min-width: 1600px) {
    .portfolio-page .photo-grid {
        column-count: 5;
    }
}

@media (min-width: 2200px) {
    .portfolio-page .photo-grid {
        column-count: 6;
    }
}

@media (min-width: 3000px) {
    .portfolio-page .photo-grid {
        column-count: 7;
    }
}

.photo-card {
    position: relative;
    grid-column: span 1;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #070a0d;
    contain: layout paint;
}

.photo-card.layout-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.photo-card.layout-tall {
    grid-column: span 1;
    aspect-ratio: 3 / 5;
}

.photo-card.layout-standard.shape-portrait {
    grid-column: span 1;
    aspect-ratio: 3 / 5;
}

.photo-card.layout-standard.shape-landscape {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.photo-card.layout-standard.shape-square {
    grid-column: span 1;
    aspect-ratio: 1;
}

.photo-card img,
.photo-card video {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform 420ms ease, opacity 420ms ease;
}

.photo-card:hover img,
.photo-card:hover video {
    opacity: 0.94;
}

.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(79, 140, 255, 0);
    pointer-events: none;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.photo-card:hover::after,
.photo-card:focus-within::after {
    border-color: rgba(79, 140, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(49, 208, 198, 0.22);
}

.admin-photo-card p,
.admin-photo-card span {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-photo-card h2,
.form-panel h2 {
    margin: 4px 0 0;
    font-size: 20px;
    line-height: 1.2;
}

.meta-link {
    display: inline-flex;
    margin-top: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.shoot-carousel {
    position: relative;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 4px;
}

.shoot-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 clamp(0px, 1vw, 12px) 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.shoot-grid::-webkit-scrollbar {
    display: none;
}

.shoot-card {
    flex: 0 0 min(520px, 72vw);
    min-height: 390px;
    border: 1px solid rgba(205, 232, 232, 0.14);
    border-radius: 8px;
    overflow: hidden;
    background: #070a0d;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
    scroll-snap-align: start;
    contain: layout paint;
}

.shoot-card:nth-child(3n + 1) {
    flex-basis: min(620px, 82vw);
}

.shoot-card:nth-child(3n + 2) {
    flex-basis: min(500px, 70vw);
}

.shoot-card a {
    position: relative;
    display: grid;
    align-items: end;
    height: 100%;
    min-height: 390px;
    color: #ffffff;
}

.shoot-card a:hover {
    text-decoration: none;
}

.shoot-card img,
.shoot-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 520ms ease, opacity 520ms ease;
}

.shoot-card a:hover img,
.shoot-card a:hover video {
    opacity: 0.98;
}

.shoot-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.74)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 58%);
}

.shoot-card div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: clamp(20px, 3vw, 34px);
}

.shoot-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.shoot-card span {
    width: fit-content;
    border-bottom: 2px solid var(--accent);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.shoot-card h2 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(30px, 4.6vw, 58px);
    line-height: 0.96;
}

.shoot-hero {
    position: relative;
    display: grid;
    align-items: end;
    width: 100%;
    min-height: clamp(360px, 42vw, 620px);
    max-height: 680px;
    margin-top: 0;
    margin-inline: 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 10, 13, 0.72), rgba(8, 13, 18, 0.18) 52%, rgba(8, 13, 18, 0.38)),
        #0b1014;
    color: #ffffff;
}

.portfolio-page .shoot-hero {
    width: 100%;
    margin-inline: 0;
}

.shoot-hero::before {
    content: "";
    position: absolute;
    inset: -34px;
    background-image: var(--shoot-cover);
    background-position: center;
    background-size: cover;
    filter: blur(24px);
    opacity: 0.72;
    transform: scale(1.04);
}

.shoot-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 10, 13, 0.62), transparent 52%),
        linear-gradient(180deg, rgba(7, 10, 13, 0.06), rgba(7, 10, 13, 0.28));
    pointer-events: none;
}

.shoot-hero img,
.shoot-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
}

.shoot-hero div {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 36px));
    padding: clamp(28px, 6vw, 64px);
}

.shoot-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 0.98;
}

.shoot-hero p,
.shoot-hero span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.shoot-photo-grid {
    padding-top: 42px;
}

.services-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0 0 80px;
}

.services-strip div,
.empty-state,
.form-panel,
.contact-panel,
.admin-photo-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 33, 39, 0.96), rgba(13, 19, 23, 0.96));
}

.empty-state,
.form-panel,
.contact-panel,
.manager-panel,
.shoot-admin-card,
.quick-photo-row,
.danger-panel {
    box-shadow: var(--shadow);
}

.services-strip div {
    padding: 28px;
}

.services-strip p,
.empty-state p,
.split-page p,
.auth-copy p,
.admin-intro p,
.contact-panel p {
    color: var(--muted);
    font-size: 17px;
}

.empty-state {
    max-width: 720px;
    margin-block: 72px;
    padding: 44px;
    text-align: center;
}

.empty-state.small {
    margin: 24px 0 0;
    padding: 28px;
    text-align: left;
}

.empty-state .button {
    margin-top: 16px;
}

.split-page,
.auth-layout,
.admin-layout,
.edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(28px, 7vw, 84px);
    align-items: start;
    padding: 76px 0;
}

.prose p:first-child,
.contact-panel p:first-child {
    margin-top: 0;
}

.contact-panel,
.form-panel {
    padding: 28px;
}

.contact-panel dl {
    display: grid;
    gap: 18px;
    margin: 28px 0 0;
}

.contact-panel dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-panel dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.form-panel {
    display: grid;
    gap: 13px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid.compact {
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
    color-scheme: dark;
    font: inherit;
    padding: 12px 14px;
}

select option,
select optgroup {
    background: #111a20;
    color: #edf7fa;
}

select option:checked {
    background: #2f8df0;
    color: #ffffff;
}

select option:disabled {
    color: #789099;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 208, 198, 0.16);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(141, 160, 166, 0.72);
}

input[type="checkbox"] {
    width: auto;
}

.check-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 44px;
    gap: 10px;
}

.alert {
    border: 1px solid rgba(255, 107, 95, 0.32);
    border-radius: 6px;
    background: var(--danger-bg);
    color: var(--danger);
    padding: 12px 14px;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.success {
    border: 1px solid rgba(49, 208, 198, 0.32);
    border-radius: 6px;
    background: rgba(49, 208, 198, 0.12);
    color: var(--accent-strong);
    padding: 12px 14px;
}

.success p {
    margin: 0;
}

.hidden-field {
    position: absolute !important;
    left: -9999px !important;
}

.form-note {
    margin: 4px 0 0;
    color: var(--muted);
    text-align: center;
}

.admin-list {
    padding-bottom: 80px;
}

.admin-shell {
    padding: 46px 0 82px;
}

.client-shell {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
    padding: 46px 0 82px;
}

.admin-topbar,
.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.admin-topbar {
    margin-bottom: 22px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
}

.admin-topbar p,
.manager-panel > div > p,
.muted {
    color: var(--muted);
}

.admin-build-marker {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px !important;
    border: 1px solid rgba(49, 208, 198, 0.34);
    border-radius: 999px;
    background: rgba(49, 208, 198, 0.08);
    color: var(--accent-strong) !important;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.admin-alert {
    margin-bottom: 18px;
}

.admin-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.settings-grid .admins-panel {
    grid-column: 1 / -1;
}

.manager-panel {
    border: 1px solid var(--line);
    background: rgba(17, 24, 29, 0.82);
    padding: 22px;
    margin-top: 18px;
}

.passkey-panel {
    background:
        linear-gradient(135deg, rgba(49, 208, 198, 0.08), rgba(79, 140, 255, 0.08)),
        rgba(17, 24, 29, 0.9);
}

.passkey-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.passkey-actions p {
    margin: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.action-drawer {
    overflow: hidden;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(49, 208, 198, 0.045), rgba(79, 140, 255, 0.055)),
        rgba(17, 24, 29, 0.74);
}

.action-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 12px 14px;
}

.action-link-card:hover {
    border-color: rgba(49, 208, 198, 0.48);
    background:
        linear-gradient(135deg, rgba(49, 208, 198, 0.08), rgba(79, 140, 255, 0.1)),
        rgba(17, 24, 29, 0.88);
    text-decoration: none;
}

.action-link-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.1;
}

.action-link-card > span:last-child {
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 800;
}

.action-drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.action-drawer summary::-webkit-details-marker {
    display: none;
}

.action-drawer summary strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.action-drawer summary > span:last-child {
    flex: 0 0 auto;
}

.action-drawer summary .eyebrow {
    margin-bottom: 5px !important;
    font-size: 10px !important;
}

.action-drawer[open] {
    padding: 0 16px 16px;
    background: rgba(17, 24, 29, 0.92);
}

.action-drawer[open] summary {
    margin: 0 -16px 14px;
    border-bottom: 1px solid var(--line);
}

.action-drawer[open] summary .button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
}

.action-drawer form {
    display: grid;
    gap: 11px;
}

.action-drawer .dropzone {
    min-height: 112px;
}

.action-drawer .upload-details {
    padding: 14px;
    background: rgba(255, 255, 255, 0.028);
}

.action-drawer-wide {
    grid-column: 1 / -1;
}

.compact-client-list {
    margin-top: 14px;
}

.upload-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
}

.upload-panel form,
.compact-create,
.quick-photo-row form:first-of-type {
    display: grid;
    gap: 13px;
}

.dropzone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 150px;
    border: 1px dashed rgba(49, 208, 198, 0.42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(49, 208, 198, 0.08), rgba(79, 140, 255, 0.08)),
        rgba(255, 255, 255, 0.035);
    color: var(--ink);
    text-align: center;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dropzone.is-dragging {
    border-color: var(--accent);
    background: rgba(49, 208, 198, 0.14);
    transform: translateY(-1px);
}

.dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone div {
    display: grid;
    gap: 4px;
    padding: 24px;
    pointer-events: none;
}

.dropzone span,
.upload-status {
    color: var(--muted);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
}

.upload-preview div {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.upload-preview img,
.upload-preview video {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.upload-preview span {
    display: block;
    overflow: hidden;
    padding: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    transition: width 160ms ease;
}

.upload-details {
    display: grid;
    gap: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 14px;
}

.compact-heading {
    margin-bottom: 0;
}

.compact-heading h2 {
    font-size: clamp(22px, 3vw, 30px);
}

.advanced-upload-details {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.advanced-upload-details summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 800;
}

.advanced-upload-details[open] {
    display: grid;
    gap: 13px;
}

.panel-heading {
    margin-bottom: 16px;
}

.panel-heading h2,
.manager-panel h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
}

.panel-heading span {
    color: var(--muted);
    font-weight: 800;
}

.compact-create {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: end;
    margin-bottom: 18px;
}

.compact-check {
    min-height: 44px;
}

.shoot-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.album-manager-grid,
.album-photo-grid {
    display: grid;
    gap: 14px;
}

.album-manager-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.album-manager-card,
.album-photo-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    padding: 12px;
}

.album-photo-card {
    min-height: 170px;
    align-content: space-between;
}

.album-manager-card img,
.album-manager-card video,
.album-photo-card img,
.album-photo-card video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.album-safe-preview {
    display: block;
}

.album-safe-preview:hover {
    text-decoration: none;
}

.safe-media-placeholder {
    display: grid;
    align-content: end;
    gap: 8px;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(49, 208, 198, 0.24);
    background:
        linear-gradient(135deg, rgba(49, 208, 198, 0.12), rgba(79, 140, 255, 0.12)),
        rgba(7, 10, 13, 0.72);
    padding: 14px;
}

.safe-media-placeholder span {
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
}

.safe-media-placeholder strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.album-manager-card h3,
.album-photo-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
}

.album-manager-card-text {
    min-height: 180px;
    align-content: space-between;
    background:
        linear-gradient(135deg, rgba(49, 208, 198, 0.08), rgba(79, 140, 255, 0.08)),
        rgba(255, 255, 255, 0.04);
}

.album-manager-card p,
.album-photo-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.album-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.album-admin-grid .manager-panel {
    margin-top: 0;
}

#private_share_url {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

.optimise-album-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.optimise-album-form p {
    margin: 0;
}

.queue-list {
    display: grid;
    gap: 8px;
}

.queue-list div {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 10px;
}

.queue-list strong,
.queue-list span {
    position: relative;
    z-index: 1;
}

.queue-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.queue-list i {
    position: absolute;
    inset: auto auto 0 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    transition: width 160ms ease;
}

.queue-list .is-complete span {
    color: var(--accent-strong);
}

.queue-list .is-failed span {
    color: var(--danger);
}

.bulk-toolbar {
    position: sticky;
    top: 76px;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(150px, 0.8fr) minmax(150px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    background: rgba(9, 13, 16, 0.96);
    padding: 10px;
    margin-bottom: 14px;
}

.album-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.album-photo-card {
    position: relative;
}

.album-photo-select {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    width: auto;
    border-radius: 999px;
    background: rgba(7, 10, 13, 0.82);
    padding: 6px 9px;
}

.album-photo-select span {
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.shoot-admin-card {
    display: grid;
    gap: 12px;
    scroll-margin-top: 110px;
    border: 1px solid var(--line);
    padding: 12px;
}

.shoot-admin-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.shoot-admin-card h3 {
    margin: 0;
    font-size: 22px;
}

.shoot-admin-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.visibility-form {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 10px;
}

.client-list {
    display: grid;
    gap: 10px;
}

.client-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    padding: 14px;
}

.activity-list {
    display: grid;
    gap: 10px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.health-list {
    display: grid;
    gap: 10px;
}

.activity-row,
.health-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 12px;
}

.activity-row h3,
.health-row h2 {
    margin: 0;
    font-size: 16px;
}

.activity-row p,
.activity-row span,
.health-row p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.activity-row p:last-child {
    font-weight: 600;
}

.health-row > span {
    align-self: center;
    border: 1px solid rgba(49, 208, 198, 0.42);
    border-radius: 999px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.health-row.is-bad > span {
    border-color: rgba(255, 107, 95, 0.5);
    color: var(--danger);
}

.client-row h3 {
    margin: 0;
}

.client-row p,
.client-row span {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.editor-row {
    align-items: start;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.editor-actions form {
    display: flex;
    gap: 8px;
}

.editor-actions select {
    min-width: 120px;
}

.access-details {
    min-width: min(420px, 100%);
}

.access-details summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 800;
}

.access-details form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.access-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.role-badge {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(49, 208, 198, 0.28);
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(49, 208, 198, 0.1);
    color: var(--accent);
    text-transform: uppercase;
}

.primary-owner-badge {
    border-color: rgba(79, 140, 255, 0.36);
    background: rgba(79, 140, 255, 0.12);
    color: #9bbcff;
}

.public-badge {
    border-color: rgba(49, 208, 198, 0.34);
    background: rgba(49, 208, 198, 0.12);
    color: var(--accent-strong);
}

.private-badge {
    border-color: rgba(255, 107, 95, 0.34);
    background: rgba(255, 107, 95, 0.12);
    color: #ffaaa3;
}

button:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

@media (max-width: 1100px) {
    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.client-set-grid,
.download-grid {
    display: grid;
    gap: 14px;
}

.client-set-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.client-set-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #070a0d;
    color: #ffffff;
}

.client-set-card > a {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 220px;
    color: #ffffff;
}

.client-set-card > a:hover,
.client-set-card:hover {
    text-decoration: none;
}

.client-set-card img,
.client-set-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 420ms ease;
}

.client-set-card span {
    position: relative;
    z-index: 1;
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    font-size: 22px;
    font-weight: 800;
}

.client-set-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    background: rgba(7, 10, 13, 0.94);
}

.download-select-form {
    display: grid;
    gap: 16px;
}

.public-download-select {
    margin-top: 22px;
}

.download-toolbar {
    position: sticky;
    top: 78px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(9, 13, 16, 0.96);
}

.download-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.download-card {
    position: relative;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    contain: layout paint;
}

.selectable-download-card {
    overflow: hidden;
}

.download-select {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(7, 10, 13, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.download-select input {
    accent-color: var(--accent);
}

.public-photo-select {
    top: 12px;
    left: 12px;
}

.manager-panel,
.photo-grid,
.shoot-carousel {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.download-card img,
.download-card video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.download-card div {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.download-card h2 {
    margin: 0;
    font-size: 18px;
}

.download-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.quick-photo-list {
    display: grid;
    gap: 12px;
}

.quick-photo-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    border: 1px solid var(--line);
    padding: 12px;
}

.quick-photo-row > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.quick-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(140px, 1fr) minmax(110px, 0.7fr) 90px 120px;
    gap: 10px;
    align-items: end;
}

.quick-fields label {
    font-size: 13px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.danger-panel {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(173, 46, 36, 0.26);
    background: var(--danger-bg);
    padding: 22px;
}

.danger-panel h2 {
    margin: 0;
}

.danger-panel p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.admin-photo-card {
    display: grid;
    gap: 14px;
    padding: 12px;
}

.admin-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-actions {
    justify-content: space-between;
}

.card-actions form {
    margin: 0;
}

.danger-button {
    background: var(--danger);
    color: #160202;
}

.danger-button:hover {
    background: #84231c;
}

.edit-preview {
    width: 100%;
    margin-top: 22px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 18px;
    padding: 28px;
    background: rgba(7, 9, 8, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox figure {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 0;
    min-width: 0;
}

.lightbox img,
.lightbox video {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
}

.lightbox img[hidden],
.lightbox video[hidden] {
    display: none !important;
}

.lightbox figcaption {
    display: grid;
    gap: 3px;
    color: #ffffff;
    text-align: center;
}

.lightbox figcaption strong {
    font-size: 14px;
    font-weight: 700;
}

.lightbox figcaption span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
}

.lightbox-close,
.lightbox-nav {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
}

.lightbox-nav {
    width: 64px;
    height: 64px;
    justify-self: center;
    padding: 0;
}

@media (max-width: 820px) {
    .site-header {
        align-items: center;
        gap: 14px;
        padding: 14px 18px;
    }

    .site-header nav {
        gap: 12px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-portrait {
        align-items: end;
        padding-top: 0;
    }

    .hero-portrait .hero-media {
        inset: 0;
        width: auto;
        height: auto;
    }

    .section-heading,
    .split-page,
    .auth-layout,
    .admin-layout,
    .edit-layout {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: grid;
        align-items: start;
        padding: 48px 0 20px;
    }

    .album-showcase {
        padding: 42px 0 54px;
    }

    .album-showcase .section-heading {
        padding-bottom: 22px;
    }

    .filter-bar {
        justify-content: flex-start;
    }

    .shoot-card,
    .shoot-card:nth-child(n) {
        flex-basis: 82vw;
        min-height: 330px;
    }

    .shoot-card a {
        min-height: 330px;
    }

    .services-strip,
    .form-grid,
    .quick-actions,
    .upload-panel,
    .compact-create,
    .admin-insight-grid,
    .settings-grid,
    .album-admin-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .portfolio-page .photo-grid {
        column-count: 2;
    }

    .photo-grid .photo-card,
    .photo-grid .photo-card.layout-wide,
    .photo-grid .photo-card.layout-tall {
        grid-column: span 1;
    }

    .quick-photo-row {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .quick-photo-row form:last-child {
        grid-column: 2;
    }

    .quick-fields {
        grid-template-columns: 1fr 1fr;
    }

    .danger-panel {
        grid-column: 1;
    }

    .lightbox {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 18px;
    }

    .lightbox figure {
        grid-column: 1 / -1;
    }

    .lightbox img,
    .lightbox video {
        max-height: calc(100vh - 170px);
    }

    .lightbox-prev {
        grid-column: 1;
        grid-row: 2;
    }

    .lightbox-next {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 560px) {
    body {
        line-height: 1.45;
    }

    .site-header {
        position: sticky;
        gap: 10px;
        padding: 12px 14px;
    }

    .site-header,
    .site-header nav {
        display: grid;
        justify-content: stretch;
    }

    .brand {
        font-size: 17px;
    }

    .site-header nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .site-header nav::-webkit-scrollbar {
        display: none;
    }

    .site-header nav a,
    .site-header .link-button {
        flex: 0 0 auto;
        min-height: 34px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--ink);
        padding: 7px 11px;
        white-space: nowrap;
    }

    .site-header form {
        flex: 0 0 auto;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 18px;
    }

    .site-footer nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .site-footer > p {
        justify-self: start;
        text-align: left;
    }

    .hero {
        min-height: min(560px, calc(100svh - 96px));
    }

    .hero-portrait {
        min-height: 580px;
        padding-top: 0;
    }

    .hero-portrait .hero-media {
        inset: 0;
        height: auto;
        box-shadow: none;
    }

    .hero-copy {
        width: calc(100% - 32px);
        margin: 0 16px 30px;
    }

    .hero-copy h1 {
        margin-bottom: 12px;
        font-size: clamp(42px, 17vw, 68px);
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions,
    .form-actions,
    .card-actions,
    .quick-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button,
    button {
        width: 100%;
    }

    .section-heading,
    .services-strip,
    .photo-grid,
    .shoot-grid,
    .empty-state,
    .split-page,
    .auth-layout,
    .admin-layout,
    .admin-list,
    .edit-layout,
    .admin-shell,
    .shoot-hero,
    .client-shell {
        width: min(100% - 24px, 1180px);
    }

    .section-heading {
        gap: 14px;
        padding: 38px 0 16px;
    }

    .section-heading h2,
    .services-strip h2,
    .empty-state h2,
    .split-page h1,
    .auth-copy h1,
    .admin-intro h1,
    .edit-layout h1 {
        font-size: clamp(30px, 12vw, 46px);
    }

    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

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

    .filter-bar a {
        flex: 0 0 auto;
        padding: 7px 11px;
    }

    .shoot-card,
    .shoot-card:nth-child(n) {
        flex-basis: 88vw;
        min-height: 300px;
    }

    .shoot-card a {
        min-height: 300px;
    }

    .shoot-card h2 {
        font-size: clamp(28px, 12vw, 44px);
    }

    .contact-panel,
    .form-panel,
    .empty-state,
    .services-strip div,
    .manager-panel {
        padding: 20px;
    }

    .admin-topbar,
    .panel-heading,
    .danger-panel {
        display: grid;
        align-items: start;
    }

    .admin-shell,
    .client-shell,
    .split-page,
    .auth-layout,
    .admin-layout,
    .edit-layout {
        padding-block: 34px;
    }

    .admin-topbar h1 {
        font-size: clamp(34px, 13vw, 52px);
    }

    .panel-heading h2,
    .manager-panel h2 {
        font-size: clamp(24px, 9vw, 34px);
    }

    .client-row {
        display: grid;
    }

    .editor-actions,
    .editor-actions form {
        display: grid;
        justify-content: stretch;
    }

    .activity-row,
    .client-row {
        gap: 12px;
    }

    .access-checks,
    .client-set-actions,
    .bulk-toolbar {
        grid-template-columns: 1fr;
    }

    .bulk-toolbar {
        position: static;
    }

    .album-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carousel-button {
        width: 38px;
        height: 64px;
    }

    .carousel-button-prev {
        left: 10px;
    }

    .carousel-button-next {
        right: 10px;
    }

    .carousel-button span {
        font-size: 44px;
    }

    .quick-photo-row,
    .quick-fields {
        grid-template-columns: 1fr;
    }

    .quick-photo-row {
        gap: 12px;
    }

    .quick-photo-row > img {
        aspect-ratio: 16 / 10;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-page .photo-grid {
        column-count: 1;
    }

    .photo-grid .photo-card.layout-standard.shape-landscape,
    .photo-grid .photo-card.layout-wide {
        grid-column: 1 / -1;
    }

    .photo-meta {
        display: none;
    }

    .lightbox {
        padding: 14px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: auto;
    }

    .lightbox-nav {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .carousel-button {
        width: 34px;
        height: 58px;
    }
}
