:root {
    --ink: #10131c;
    --muted: #6f7788;
    --line: rgba(20, 25, 38, .1);
    --surface: #ffffff;
    --soft: #f3f5f9;
    --night: #090d17;
    --night-2: #111827;
    --primary: #0ea5e9;
    --admin-purple: #4f46e5;
    --admin-purple-dark: #3730a3;
    --admin-purple-soft: #eef2ff;
    --accent: #d946ef;
    --gold: #f8c55d;
    --success: #22c55e;
    --danger: #ef4444;
    --shadow: 0 22px 50px rgba(9, 13, 23, .12);
}

* {
    letter-spacing: 0;
}

body {
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(9, 13, 23, .04), rgba(14, 165, 233, .04) 42%, rgba(248, 197, 93, .05)),
        var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo-nav {
    height: 52px;
}

.brand-logo-sidebar {
    height: 58px;
}

.brand-logo-login {
    height: 54px;
}

.brand-logo-gallery {
    height: 54px;
}

.brand-logo-showcase {
    height: 76px;
}

.landing-page {
    background: #ffffff;
    color: #111827;
}

.landing-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(17, 24, 39, .06);
    backdrop-filter: blur(14px);
}

.landing-nav-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-brand {
    color: #172033;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    min-width: 230px;
}

.landing-brand .brand-mark {
    width: 36px;
    height: 36px;
    color: white;
    background: linear-gradient(135deg, #38bdf8, #4f46e5);
    box-shadow: 0 12px 28px rgba(79, 70, 229, .2);
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-links a {
    color: #172033;
    text-decoration: none;
    font-weight: 800;
}

.landing-links a:hover {
    color: #4f46e5;
}

.landing-links .landing-cta,
.landing-primary {
    color: white;
    background: #4f46e5;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(79, 70, 229, .28);
}

.landing-links .landing-cta {
    padding: 14px 24px;
}

.landing-hero {
    min-height: 900px;
    position: relative;
    isolation: isolate;
    color: white;
    overflow: hidden;
    background: #111827;
}

.landing-hero-media,
.landing-hero-media video,
.landing-hero-gradient,
.landing-hero-pattern {
    position: absolute;
    inset: 0;
}

.landing-hero-media {
    z-index: -1;
    pointer-events: none;
}

.landing-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .4;
}

.landing-hero-gradient {
    background: linear-gradient(180deg, rgba(17, 24, 39, .8), rgba(17, 24, 39, .62) 44%, #111827 100%);
}

.landing-hero-pattern {
    opacity: .2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.landing-hero-inner {
    position: relative;
    padding-top: 190px;
    padding-bottom: 80px;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c7d2fe;
    background: rgba(79, 70, 229, .25);
    border: 1px solid rgba(129, 140, 248, .45);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
}

.landing-hero h1 {
    margin: 28px auto 18px;
    max-width: 920px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .98;
    font-weight: 900;
}

.landing-hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-hero p {
    max-width: 670px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .78);
    font-size: 21px;
    line-height: 1.45;
    font-weight: 650;
}

.landing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    min-height: 62px;
    padding: 0 34px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
}

.landing-primary:hover,
.landing-links .landing-cta:hover {
    color: white;
    background: #4338ca;
    transform: translateY(-1px);
}

.landing-showcase {
    width: min(1020px, 92vw);
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 64px auto 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
    overflow: hidden;
    background: #1f2937;
    border: 4px solid #1f2937;
    border-radius: 8px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .42);
}

.landing-showcase img,
.showcase-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(79, 70, 229, .18)),
        #0b2530;
    border-radius: 8px;
}

.landing-showcase .showcase-wide-image {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    object-fit: contain;
    background: #061d26;
}

.showcase-placeholder {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .72);
    font-family: Georgia, serif;
    font-size: 32px;
    font-style: italic;
}

.showcase-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 430px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: white;
    background: rgba(8, 32, 42, .94);
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, .35);
}

.showcase-badge .brand-mark {
    width: 40px;
    height: 40px;
    color: white;
    background: linear-gradient(135deg, #38bdf8, #4f46e5);
}

.landing-features {
    padding: 96px 0;
    background: white;
}

.landing-section-label {
    color: #4f46e5;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 10px;
}

.landing-features h2 {
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1;
    font-weight: 900;
}

.landing-features .text-center > p {
    color: #697386;
    font-size: 20px;
    font-weight: 600;
}

.landing-feature-card {
    min-height: 214px;
    position: relative;
    padding: 70px 32px 30px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .05);
}

.feature-icon {
    position: absolute;
    left: 24px;
    top: -24px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: white;
    background: #4f46e5;
    border-radius: 8px;
    box-shadow: 0 16px 28px rgba(79, 70, 229, .25);
    font-size: 22px;
}

.landing-feature-card h3 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 900;
}

.landing-feature-card p {
    color: #586174;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}

.landing-footer {
    padding: 34px 0;
    color: #9aa3b5;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f8fafc;
}

.login-card {
    width: min(448px, 100%);
    padding: 68px 32px 34px;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 12px;
    box-shadow: 0 24px 54px rgba(15, 23, 42, .14);
}

.login-card .form-control,
.login-card .form-check-input {
    color: #111827;
    border-color: #d8dee9;
    background: #f8fafc;
}

.login-card .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 .22rem rgba(79, 70, 229, .14);
}

.login-card .text-secondary,
.login-card .form-label,
.login-card .small {
    color: #566174 !important;
}

.login-card .form-label {
    color: #111827 !important;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 9px;
}

.login-card .form-control {
    min-height: 50px;
    font-size: 15px;
    border-radius: 8px;
}

.login-card .form-control::placeholder {
    color: #9aa3b5;
}

.login-card h1 {
    color: #08111f;
    font-weight: 900;
}

.login-submit {
    margin-top: 8px;
    min-height: 50px;
    color: white;
    background: #4f46e5;
    border: 0;
    box-shadow: 0 14px 28px rgba(79, 70, 229, .25);
}

.login-submit:hover {
    color: white;
    background: #4338ca;
    transform: translateY(-1px);
}

.login-card a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 800;
}

.admin-shell {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    color: #e5e7eb;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 38%),
        linear-gradient(160deg, var(--admin-purple) 0%, #4338ca 54%, var(--admin-purple-dark) 100%);
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.sidebar::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #08111f;
    background: linear-gradient(135deg, var(--gold), #fff0ad);
    box-shadow: 0 14px 34px rgba(248, 197, 93, .24);
}

.sidebar a {
    color: rgba(229, 231, 235, .8);
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 13px;
    display: flex;
    gap: 11px;
    align-items: center;
    border: 1px solid transparent;
}

.sidebar a i {
    color: #c7d2fe;
}

.sidebar a:hover,
.sidebar a.active {
    color: white;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .18);
}

.admin-main {
    min-width: 0;
}

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
}

.topbar h1 {
    font-weight: 800;
}

.content-wrap {
    padding: 30px;
}

.btn {
    border-radius: 8px;
    font-weight: 650;
}

.btn-gradient {
    color: white;
    border: 0;
    background: linear-gradient(135deg, var(--admin-purple), #6366f1);
    box-shadow: 0 12px 26px rgba(79, 70, 229, .26);
}

.btn-gradient:hover {
    color: white;
    filter: brightness(.96);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #0369a1;
    border-color: rgba(14, 165, 233, .36);
    background: transparent;
}

.btn-outline-primary:hover {
    color: white;
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.login-card,
.panel,
.stat-card,
.collection-card,
.photo-tile,
.gallery-card {
    border-radius: 8px;
}

.panel,
.stat-card,
.collection-card,
.photo-tile {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: var(--shadow);
}

.panel {
    padding: 24px;
}

.stat-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--admin-purple), #818cf8, #38bdf8);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--admin-purple);
    background: linear-gradient(135deg, var(--admin-purple-soft), #ffffff);
    box-shadow: 0 12px 24px rgba(79, 70, 229, .16);
}

.admin-dashboard-hero {
    color: white;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 255, 255, .22), transparent 28%),
        linear-gradient(135deg, var(--admin-purple) 0%, #4338ca 55%, var(--admin-purple-dark) 100%);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 22px 48px rgba(79, 70, 229, .18);
}

.admin-dashboard-hero .gallery-kicker {
    color: #312e81;
    background: rgba(255, 255, 255, .9);
}

.table {
    --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
    padding: 15px 16px;
    border-bottom-color: rgba(17, 24, 39, .08);
}

.list-group-item {
    background: transparent;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: rgba(17, 24, 39, .14);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(14, 165, 233, .65);
    box-shadow: 0 0 0 .22rem rgba(14, 165, 233, .14);
}

.cover-thumb {
    width: 76px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

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

.photo-tile {
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.photo-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 60px rgba(9, 13, 23, .16);
}

.photo-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.photo-actions {
    display: flex;
    gap: 8px;
    padding: 10px;
}

.admin-minimal-shell {
    display: block;
    min-height: 100vh;
    color: #08111f;
    background: #f8f9fb;
}

.admin-container {
    width: min(1216px, calc(100% - 48px));
    margin-inline: auto;
}

.admin-topbar {
    min-height: 66px;
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
}

.admin-topbar-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #08111f;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.admin-brand:hover {
    color: #08111f;
}

.admin-brand-logo {
    width: 78px;
    height: 34px;
    object-fit: contain;
}

.admin-logout {
    appearance: none;
    color: #4d586b;
    background: transparent;
    border: 0;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
}

.admin-logout:hover {
    color: #4f46e5;
}

.admin-minimal-shell .admin-main {
    min-width: 0;
}

.admin-minimal-shell .content-wrap {
    padding: 44px 0;
}

.admin-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.admin-page-heading h1 {
    margin: 0 0 2px;
    color: #08111f;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 850;
}

.admin-page-heading p {
    margin: 0;
    color: #586174;
    font-size: 14px;
    font-weight: 500;
}

.admin-primary-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 999px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}

.admin-primary-btn:hover,
.admin-primary-btn:focus {
    color: #ffffff;
    background: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
}

.admin-secondary-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 750;
}

.admin-secondary-btn:hover {
    color: #111827;
    background: #f8fafc;
    border-color: #c9d1df;
}

.admin-dashboard-panel,
.admin-table-card,
.admin-form-card {
    background: #ffffff;
    border: 1px solid #eceff4;
    border-radius: 22px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}

.admin-dashboard-panel {
    min-height: 388px;
    display: grid;
    place-items: center;
    padding: 56px;
}

.admin-empty-state {
    width: 100%;
    min-height: 272px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8a94a6;
}

.admin-empty-state-sm {
    min-height: 300px;
    padding: 28px 0;
}

.admin-empty-state > i {
    color: #cfd5de;
    font-size: 68px;
    line-height: 1;
    margin-bottom: 26px;
}

.admin-empty-state h2 {
    margin: 0 0 8px;
    color: #08111f;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 850;
}

.admin-empty-state p {
    margin: 0 0 24px;
    color: #657184;
    font-size: 14px;
}

.admin-empty-state .admin-primary-btn {
    min-height: 38px;
    border-radius: 6px;
    padding-inline: 18px;
}

.admin-collection-list {
    width: 100%;
    display: grid;
    gap: 12px;
}

.admin-collection-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    color: #08111f;
    text-decoration: none;
    padding: 14px;
    border: 1px solid #edf0f4;
    border-radius: 12px;
}

.admin-collection-row:hover {
    color: #08111f;
    border-color: #d8dee9;
    background: #fbfcff;
}

.admin-collection-cover {
    width: 84px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #c3cad5;
    background: #f4f6f9;
    border-radius: 8px;
}

.admin-collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-collection-row h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.admin-collection-row p {
    margin: 0;
    color: #697386;
    font-size: 13px;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.admin-status.is-active {
    color: #047857;
    background: #dff8ed;
}

.admin-table-card {
    padding: 22px;
    border-radius: 18px;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table > :not(caption) > * > * {
    padding: 16px;
}

.admin-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.admin-action-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    padding: 0;
    text-decoration: none;
    line-height: 1;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.admin-action-btn i {
    font-size: 14px;
    line-height: 1;
}

.admin-action-btn:hover,
.admin-action-btn:focus {
    transform: translateY(-1px);
}

.admin-action-view {
    color: #0284c7;
    border-color: #bae6fd;
}

.admin-action-view:hover,
.admin-action-view:focus {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.admin-action-qr {
    color: #4f46e5;
    border-color: #c7d2fe;
}

.admin-action-qr:hover,
.admin-action-qr:focus {
    color: #4338ca;
    background: #eef2ff;
    border-color: #a5b4fc;
}

.admin-action-edit {
    color: #475569;
    border-color: #d8dee9;
}

.admin-action-edit:hover,
.admin-action-edit:focus {
    color: #334155;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.admin-action-delete {
    color: #ef4444;
    border-color: #fecaca;
}

.admin-action-delete:hover,
.admin-action-delete:focus {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fca5a5;
}

.admin-form-card {
    width: min(770px, 100%);
    margin: 0 auto;
    border-radius: 8px;
}

.admin-form-header {
    padding: 22px 24px 20px;
    border-bottom: 1px solid #e7ebf1;
}

.admin-form-header h1 {
    margin: 0 0 6px;
    color: #08111f;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 850;
}

.admin-form-header p {
    margin: 0;
    color: #647084;
    font-size: 14px;
}

.admin-form-body {
    padding: 24px;
}

.admin-field {
    margin-bottom: 24px;
}

.admin-field-sm {
    max-width: 352px;
}

.admin-field .form-label {
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.admin-minimal-shell .form-control,
.admin-minimal-shell .form-select,
.admin-minimal-shell .input-group-text {
    min-height: 38px;
    color: #111827;
    border-color: #cfd6e2;
    border-radius: 6px;
    font-size: 14px;
}

.admin-minimal-shell .form-control::placeholder {
    color: #9aa3b5;
}

.admin-minimal-shell .form-control:focus,
.admin-minimal-shell .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 .18rem rgba(79, 70, 229, .13);
}

.admin-url-input {
    max-width: 475px;
}

.admin-url-input .input-group-text {
    background: #ffffff;
    color: #475569;
}

.admin-upload-preview {
    width: min(475px, 100%);
    height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #9aa3b5;
    background: #ffffff;
    border: 1px dashed #cfd6e2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.admin-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-file-row {
    width: min(475px, 100%);
    margin-top: 10px;
}

.admin-file-row .form-control {
    padding: 0;
    border: 0;
}

.admin-file-row .form-control::file-selector-button {
    min-height: 38px;
    margin: 0 12px 0 0;
    color: #1d4ed8;
    background: #eff6ff;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    font-weight: 800;
}

.admin-help {
    width: min(475px, 100%);
    margin: 6px 0 0;
    color: #647084;
    font-size: 12px;
    line-height: 1.45;
}

.admin-divider {
    margin: 8px 0 20px;
    border-color: #d8dee9;
    opacity: 1;
}

.admin-check {
    min-height: 26px;
}

.admin-check .form-check-input {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.admin-check .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.admin-form-actions .admin-primary-btn {
    min-height: 38px;
    border-radius: 6px;
}

.public-gallery-page {
    min-height: 100vh;
    color: #111827;
    background: #f4f5f7;
    scroll-behavior: smooth;
}

.public-gallery-splash,
.public-gallery-hero {
    position: relative;
    color: white;
    background:
        linear-gradient(180deg, rgba(5, 9, 18, .08), rgba(5, 9, 18, .24) 46%, rgba(5, 9, 18, .82)),
        var(--hero-image),
        linear-gradient(135deg, #101827, #1f2937);
    background-size: cover;
    background-position: center;
}

.public-gallery-splash.no-cover,
.public-gallery-hero.no-cover {
    background:
        radial-gradient(circle at 50% 24%, rgba(79, 70, 229, .34), transparent 34%),
        linear-gradient(135deg, #0f172a, #111827 64%, #050816);
}

.public-gallery-splash {
    min-height: 100vh;
    overflow: hidden;
}

.public-gallery-splash::after,
.public-gallery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 9, 18, .34), transparent 28%, transparent 72%, rgba(5, 9, 18, .34)),
        linear-gradient(180deg, transparent 42%, rgba(5, 9, 18, .48));
}

.public-countdown {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 2;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(17, 24, 39, .72);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.public-countdown strong {
    color: #facc15;
}

.public-open-button {
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 2;
    transform: translate(-50%, -50%);
    min-width: 184px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.public-open-button:hover {
    color: white;
    background: rgba(255, 255, 255, .26);
    transform: translate(-50%, calc(-50% - 1px));
}

.public-splash-brand {
    position: absolute;
    left: 32px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
    font-size: 14px;
    font-weight: 900;
}

.public-splash-brand .brand-logo {
    width: 176px;
    height: 58px;
    object-fit: contain;
}

.public-powered {
    position: absolute;
    right: 32px;
    bottom: 30px;
    z-index: 2;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
}

.public-gallery-hero {
    min-height: 570px;
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
}

.public-hero-overlay {
    position: relative;
    z-index: 2;
    width: min(920px, calc(100% - 32px));
    padding: 64px 0 92px;
}

.public-hero-overlay h1 {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .94);
    text-transform: uppercase;
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 8px;
}

.public-hero-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 26px;
    font-weight: 500;
}

.public-hero-logo {
    height: 118px;
    margin: 30px auto 0;
}

.public-hero-description {
    width: min(620px, 100%);
    margin: 24px auto 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.6;
}

.public-down-link {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .82);
    font-size: 34px;
}

.public-down-link:hover {
    color: white;
    transform: translate(-50%, 2px);
}

.public-gallery-content {
    position: relative;
    z-index: 3;
    padding: 0 0 44px;
    margin-top: -40px;
}

.public-photo-panel {
    width: min(1536px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px;
    background: white;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .13);
}

.public-gallery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.public-gallery-actions h2 {
    margin: 0 0 2px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.public-gallery-actions p {
    margin: 0;
    color: #8a94a6;
    font-size: 14px;
}

.public-download-all {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    background: #4f46e5;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 900;
}

.public-download-all:hover {
    color: white;
    background: #4338ca;
}

.public-photo-masonry {
    columns: 4 240px;
    column-gap: 16px;
}

.public-photo-item {
    width: 100%;
    display: block;
    break-inside: avoid;
    margin: 0 0 16px;
    overflow: hidden;
    background: #eef0f4;
    border: 0;
    border-radius: 8px;
    padding: 0;
    text-align: left;
}

.public-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .22s ease, filter .22s ease;
}

.public-photo-item:hover img {
    transform: scale(1.025);
    filter: saturate(1.04);
}

.public-pagination {
    width: min(1536px, calc(100% - 48px));
    margin: 18px auto 0;
    text-align: center;
}

.public-pagination nav {
    display: inline-flex;
}

.public-no-more {
    margin-top: 14px;
    color: #a1a8b6;
    font-size: 16px;
    font-weight: 700;
}

.public-gallery-footer {
    padding: 38px 16px;
    color: #647084;
    background: #eef0f4;
    text-align: center;
    font-size: 14px;
}

.gallery-page {
    background:
        linear-gradient(180deg, #070b13 0, #0d1220 36%, #f7f4ec 36%, #f8fafc 100%);
}

.gallery-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 4;
    color: white;
}

.gallery-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}

.gallery-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 800;
}

.gallery-brand .brand-mark {
    width: 34px;
    height: 34px;
}

.gallery-hero {
    min-height: 68vh;
    display: flex;
    align-items: end;
    color: white;
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(7, 11, 19, .38), rgba(7, 11, 19, .88)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.gallery-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(7, 11, 19, .96));
}

.gallery-hero.no-cover {
    background:
        linear-gradient(145deg, rgba(7, 11, 19, .96), rgba(17, 24, 39, .9)),
        linear-gradient(135deg, rgba(14, 165, 233, .35), rgba(248, 197, 93, .2));
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #08111f;
    background: linear-gradient(135deg, var(--gold), #fff0b6);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 13px;
}

.gallery-title {
    max-width: 880px;
    margin-top: 18px;
    font-weight: 900;
    font-size: clamp(38px, 7vw, 86px);
    line-height: .94;
}

.gallery-lead {
    color: rgba(255, 255, 255, .8);
    max-width: 660px;
    font-size: clamp(16px, 2vw, 20px);
}

.gallery-content {
    background: transparent;
    padding-top: 34px;
    padding-bottom: 56px;
}

.gallery-toolbar {
    color: #121826;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-top: -62px;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(16px);
}

.gallery-card {
    overflow: hidden;
    background: #0b1020;
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 18px 38px rgba(9, 13, 23, .14);
    transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 64px rgba(9, 13, 23, .18);
}

.gallery-card button {
    background: #0b1020;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.gallery-card .gallery-actions {
    background: white;
}

.empty-gallery {
    color: var(--muted);
    background: white;
    border: 1px dashed rgba(17, 24, 39, .18);
    border-radius: 8px;
    padding: 56px 24px;
    text-align: center;
}

.modal-content.bg-dark {
    background: #060a13 !important;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
}

.slideshow-body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    background: #f6f7fb;
    color: #111827;
    overflow: hidden;
}

.realtime-stage {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    position: relative;
    display: grid;
    grid-template-rows: 104px 38px minmax(0, 1fr) 26px;
    gap: 12px;
    padding: 20px clamp(18px, 1.875vw, 36px) 12px;
    overflow: hidden;
    background: #ffffff;
}

.realtime-stage * {
    box-sizing: border-box;
}

.realtime-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(246, 241, 232, .72), rgba(255, 255, 255, .72) 22%, rgba(246, 247, 251, .6)),
        radial-gradient(circle at 12% 10%, rgba(248, 197, 93, .16), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(15, 23, 42, .08), transparent 24%);
}

.realtime-ribbon,
.realtime-date,
.realtime-layout,
.realtime-footer {
    position: relative;
    z-index: 1;
}

.realtime-ribbon {
    min-height: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(340px, .92fr) minmax(250px, 1fr);
    align-items: center;
    gap: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 52%),
        linear-gradient(135deg, #101522 0%, #182032 42%, #0a0f19 100%);
    border: 1px solid rgba(248, 197, 93, .38);
    border-radius: 8px;
    padding: 0 clamp(24px, 3.1vw, 60px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.realtime-ribbon::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border: 1px solid rgba(248, 197, 93, .32);
    border-radius: 6px;
}

.realtime-ribbon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: min(430px, 34vw);
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(248, 197, 93, .16), transparent),
        linear-gradient(180deg, rgba(255, 255, 255, .12), transparent);
    transform: translateX(-50%) skewX(-12deg);
    opacity: .9;
}

.realtime-ribbon-side {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
    font-size: clamp(20px, 1.45vw, 28px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: 5px;
    min-width: 0;
}

.realtime-ribbon-side::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    min-width: 36px;
    background: linear-gradient(90deg, rgba(248, 197, 93, .76), transparent);
}

.realtime-ribbon-side:last-child {
    justify-content: flex-end;
    text-align: right;
    padding-right: 0;
    letter-spacing: 5px;
}

.realtime-ribbon-side:last-child::after {
    order: -1;
    background: linear-gradient(90deg, transparent, rgba(248, 197, 93, .76));
}

.realtime-ribbon-title {
    position: relative;
    z-index: 1;
    min-width: 0;
    color: #fff7df;
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(42px, 3.15vw, 62px);
    line-height: 1;
    text-align: center;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .32);
    white-space: nowrap;
}

.realtime-date {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #1f2937;
    text-align: center;
    font-size: 20px;
    line-height: 38px;
    font-weight: 850;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.realtime-date::before,
.realtime-date::after {
    content: "";
    width: min(110px, 10vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(17, 24, 39, .34));
}

.realtime-date::after {
    background: linear-gradient(90deg, rgba(17, 24, 39, .34), transparent);
}

.realtime-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 21vw, 410px) clamp(210px, 13vw, 260px);
    gap: clamp(14px, 1.15vw, 22px);
    overflow: hidden;
}

.realtime-main-photo {
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border: 0;
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.realtime-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.realtime-photo-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent 28%, transparent 72%, rgba(255, 255, 255, .08));
}

.realtime-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    gap: 10px;
    color: #647084;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(14, 165, 233, .08)),
        #f8fafc;
}

.realtime-empty strong {
    color: #111827;
    font-size: 34px;
    font-weight: 900;
}

.realtime-empty span {
    font-size: 17px;
    font-weight: 700;
}

.realtime-side {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(210px, 13vw, 260px);
    grid-template-rows: 1fr;
    gap: clamp(14px, 1.15vw, 22px);
    grid-column: span 2;
    overflow: hidden;
}

.realtime-thumbs {
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 28px;
}

.realtime-thumb {
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
    border: 0;
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.realtime-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.realtime-brand-panel,
.realtime-qr-panel {
    min-width: 0;
    text-align: center;
}

.realtime-brand-panel {
    order: 1;
}

.realtime-qr-panel {
    order: 2;
}

.realtime-side > .realtime-thumbs {
    order: 0;
}

.realtime-brand-panel,
.realtime-qr-panel {
    grid-column: 2;
}

.realtime-thumbs {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.realtime-side {
    grid-template-rows: auto minmax(0, 1fr);
}

.realtime-brand-label {
    margin-bottom: 8px;
    color: #111827;
    font-size: clamp(18px, 1.25vw, 24px);
    line-height: 1.1;
    font-weight: 900;
}

.realtime-brand-logo {
    width: min(190px, 100%);
    height: 70px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.realtime-brand-name {
    color: #3151c7;
    font-size: clamp(22px, 1.45vw, 28px);
    line-height: 1.15;
    font-weight: 900;
}

.realtime-qr-title {
    color: #050816;
    font-size: clamp(18px, 1.25vw, 24px);
    line-height: 1.2;
    font-weight: 900;
}

.realtime-qr-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.realtime-scan-label {
    width: min(132px, 100%);
    min-height: 31px;
    display: grid;
    place-items: center;
    margin: 0;
    color: white;
    background: #050505;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 2px;
}

.realtime-qr {
    width: min(190px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    margin: 0;
    object-fit: contain;
    background: white;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
}

.realtime-qr-empty {
    color: #94a3b8;
    font-size: 46px;
    font-weight: 900;
    border: 2px dashed #cbd5e1;
}

.realtime-footer {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.realtime-footer span:first-child {
    color: #94a3b8;
    font-size: 13px;
}

.realtime-footer span:last-child {
    margin-left: auto;
}

.slide-stage {
    width: 100vw;
    height: 100vh;
    display: grid;
    place-items: center;
}

.slide-stage img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, .42));
}

.slide-caption {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(5, 8, 22, .54);
    backdrop-filter: blur(16px);
}

.empty-slide {
    text-align: center;
    color: rgba(255, 255, 255, .78);
}

@media (max-width: 900px) {
    .landing-nav-inner {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-links {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }

    .landing-hero {
        min-height: 760px;
    }

    .landing-hero-inner {
        padding-top: 72px;
    }

    .landing-showcase {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .showcase-badge {
        width: 340px;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .topbar {
        position: static;
        padding: 16px;
        height: auto;
        align-items: start;
        gap: 12px;
        flex-direction: column;
    }

    .content-wrap {
        padding: 18px;
    }

    .gallery-hero {
        min-height: 62vh;
    }

    .gallery-toolbar {
        margin-top: -38px;
    }

    .public-countdown {
        top: 18px;
        right: 18px;
        font-size: 13px;
    }

    .public-open-button {
        min-width: 160px;
        min-height: 48px;
        font-size: 14px;
    }

    .public-splash-brand {
        left: 20px;
        right: 20px;
        bottom: 24px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .public-splash-brand .brand-logo {
        width: 150px;
        height: 50px;
    }

    .public-powered {
        display: none;
    }

    .public-gallery-hero {
        min-height: 500px;
    }

    .public-hero-overlay h1 {
        font-size: 46px;
        letter-spacing: 5px;
    }

    .public-hero-overlay p {
        font-size: 22px;
    }

    .public-hero-logo {
        height: 86px;
    }

    .public-photo-panel,
    .public-pagination {
        width: min(100% - 24px, 1536px);
    }

    .public-photo-panel {
        padding: 14px;
        border-radius: 18px 18px 0 0;
    }

    .public-gallery-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .realtime-stage {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        padding: 14px;
        gap: 14px;
        grid-template-rows: auto auto auto auto;
    }

    .realtime-ribbon {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
        text-align: center;
    }

    .realtime-ribbon::before {
        inset: 8px;
    }

    .realtime-ribbon::after {
        width: 72%;
    }

    .realtime-ribbon-side,
    .realtime-ribbon-side:last-child {
        justify-content: center;
        text-align: center;
        font-size: 18px;
        letter-spacing: 4px;
    }

    .realtime-ribbon-side::after,
    .realtime-ribbon-side:last-child::after {
        display: none;
    }

    .realtime-ribbon-title {
        font-size: 42px;
    }

    .realtime-date {
        font-size: 18px;
        line-height: 30px;
        letter-spacing: 2px;
    }

    .realtime-date::before,
    .realtime-date::after {
        display: none;
    }

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

    .realtime-main-photo {
        aspect-ratio: 4 / 3;
    }

    .realtime-side {
        grid-template-rows: auto auto auto;
    }

    .realtime-thumbs {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .realtime-thumb {
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 901px) and (max-height: 820px) {
    .realtime-stage {
        gap: 10px;
        padding: 14px 20px 12px;
        grid-template-rows: 94px 30px minmax(0, 1fr) 22px;
    }

    .realtime-ribbon {
        min-height: 88px;
        padding-inline: 26px;
    }

    .realtime-ribbon::before {
        inset: 8px;
    }

    .realtime-ribbon-side {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .realtime-ribbon-title {
        font-size: 46px;
    }

    .realtime-date {
        min-height: 28px;
        font-size: 18px;
        line-height: 28px;
    }

    .realtime-layout {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 19vw) minmax(190px, 13vw);
        gap: 14px;
    }

    .realtime-side {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 13vw);
        gap: 10px;
    }

    .realtime-thumbs {
        gap: 10px;
    }

    .realtime-brand-label,
    .realtime-qr-title {
        font-size: 20px;
    }

    .realtime-brand-logo {
        width: 168px;
        height: 54px;
    }

    .realtime-brand-name {
        font-size: 24px;
    }

    .realtime-scan-label {
        width: 126px;
        min-height: 32px;
        margin-top: 8px;
        font-size: 16px;
    }

    .realtime-qr {
        width: 176px;
        height: 176px;
        border-width: 4px;
    }

    .realtime-footer {
        min-height: 18px;
    }
}

@media (min-width: 901px) and (max-height: 940px) {
    .realtime-stage {
        padding-inline: 28px;
    }

    .realtime-layout {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 17vw) minmax(210px, 14vw);
        gap: 18px;
    }

    .realtime-side {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 14vw);
        gap: 18px;
    }

    .realtime-brand-label,
    .realtime-qr-title {
        font-size: 22px;
    }

    .realtime-brand-logo {
        width: 168px;
        height: 58px;
    }

    .realtime-brand-name {
        font-size: 26px;
    }

    .realtime-qr-row {
        justify-content: center;
        gap: 6px;
    }

    .realtime-scan-label {
        width: 100px;
        min-height: 30px;
        font-size: 14px;
    }

    .realtime-qr {
        width: 176px;
        border-width: 5px;
    }
}
@media (min-width: 901px) and (max-width: 1500px) {
    .realtime-ribbon {
        grid-template-columns: minmax(170px, 1fr) minmax(260px, .92fr) minmax(210px, 1fr);
        padding-inline: 30px;
    }

    .realtime-ribbon-side {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .realtime-ribbon-title {
        font-size: 46px;
    }
}

@media (max-width: 575px) {
    .landing-links a:not(.landing-cta) {
        font-size: 14px;
    }

    .landing-links .landing-cta {
        padding: 10px 14px;
    }

    .landing-hero {
        min-height: 720px;
    }

    .landing-hero h1 {
        font-size: 44px;
    }

    .landing-hero p {
        font-size: 17px;
    }

    .landing-primary {
        min-height: 54px;
        padding-inline: 24px;
    }

    .landing-showcase {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .showcase-badge {
        width: 250px;
        min-height: 70px;
    }

    .brand-logo-nav {
        height: 44px;
    }

    .brand-logo-showcase {
        height: 52px;
    }

    .login-card {
        padding: 24px;
    }

    .gallery-nav-inner {
        padding-inline: 4px;
    }

    .gallery-title {
        font-size: 42px;
    }

    .gallery-toolbar {
        padding: 14px;
    }

    .public-gallery-splash {
        min-height: 100svh;
    }

    .public-gallery-hero {
        min-height: 460px;
    }

    .public-hero-overlay {
        padding: 54px 0 82px;
    }

    .public-hero-overlay h1 {
        font-size: 34px;
        letter-spacing: 3px;
    }

    .public-hero-overlay p {
        font-size: 18px;
    }

    .public-hero-logo {
        height: 68px;
        margin-top: 22px;
    }

    .public-hero-description {
        font-size: 14px;
    }

    .public-gallery-content {
        margin-top: -28px;
    }

    .public-photo-masonry {
        columns: 2 150px;
        column-gap: 10px;
    }

    .public-photo-item {
        margin-bottom: 10px;
        border-radius: 7px;
    }

    .public-gallery-footer {
        padding: 30px 16px;
    }

    .realtime-ribbon-title {
        font-size: 34px;
        white-space: normal;
    }

    .realtime-brand-logo {
        width: 178px;
        height: 68px;
    }

    .realtime-brand-label,
    .realtime-qr-title {
        font-size: 22px;
    }

    .realtime-brand-name {
        font-size: 26px;
    }

    .realtime-qr {
        width: 210px;
        height: 210px;
    }
}
