:root {
    --bg: #f4f1eb;
    --paper: #fffdf8;
    --ink: #0f2344;
    --muted: rgba(15, 35, 68, 0.72);
    --red: #d61418;
    --blue: #0f3974;
    --gold: #f3c246;
    --line: rgba(15, 35, 68, 0.16);
    --shadow: 0 18px 42px rgba(15, 35, 68, 0.14);
    --radius: 0;
}

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    border-radius: 0 !important;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 28%),
        linear-gradient(180deg, #fbfaf7 0%, #efe9df 100%);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    padding: 0 0 1.25rem;
}

.page-width {
    width: min(100%, 1400px);
    margin: 0 auto;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem clamp(0.85rem, 1.8vw, 1.25rem);
    background: linear-gradient(180deg, #17386a, #0b2449);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.top-strip::before {
    display: none;
}

.top-strip__left {
    gap: 0.65rem;
}

.top-strip__mark,
.footer__mark {
    display: block;
    width: clamp(3.6rem, 4.6vw, 5.2rem);
    aspect-ratio: 3 / 1;
    flex: 0 0 auto;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 0;
    box-shadow: none;
    background-image: url('/assets/brand/okiepics-bar-mark.png');
}

.top-strip__mark {
    opacity: 0.95;
}

.footer__mark {
    opacity: 0.42;
}

.top-strip__left,
.top-strip__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.top-strip__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.8rem;
    padding: 0.1rem 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.top-strip__contact:hover,
.top-strip__contact:focus-visible {
    color: #fff;
    text-decoration: underline;
    outline: none;
}

.top-strip__contact svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: currentColor;
}

.top-strip__left strong {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.top-strip__right a {
    text-decoration: none;
    white-space: nowrap;
}

.top-strip__auth {
    min-height: 2rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.top-strip__auth:hover,
.top-strip__auth:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
    outline: none;
}

.account-menu--top .account-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0.25rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.account-menu__label {
    display: inline-block;
}

.account-menu__caret {
    position: relative;
    top: 0.05rem;
    width: 0;
    height: 0;
    border-left: 0.25rem solid transparent;
    border-right: 0.25rem solid transparent;
    border-top: 0.34rem solid currentColor;
    opacity: 0.9;
}

.account-menu--top .account-menu__toggle:hover,
.account-menu--top .account-menu__toggle:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    outline: none;
}

.account-menu--top .account-menu__panel {
    margin-top: 0.55rem;
}

.account-menu--top .account-menu__panel a:hover,
.account-menu--top .account-menu__panel button:hover {
    background: rgba(15, 57, 116, 0.1);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem clamp(0.85rem, 1.8vw, 1.25rem) 0.35rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 4px 20px rgba(15, 35, 68, 0.06);
}

.masthead__brand {
    display: inline-flex;
    align-items: center;
    width: min(31vw, 17.5rem);
    flex: 0 0 auto;
}

.masthead__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.masthead__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    margin-left: auto;
    border: 1px solid rgba(15, 35, 68, 0.16);
    border-radius: 0.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 235, 0.96));
    box-shadow:
        0 8px 20px rgba(15, 35, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.masthead__toggle span {
    display: block;
}

.masthead__toggle:hover,
.masthead__toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(15, 35, 68, 0.28);
    box-shadow:
        0 10px 24px rgba(15, 35, 68, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    outline: none;
}

.masthead__toggle.is-open {
    background: linear-gradient(180deg, #17386a, #0b2449);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
}

.masthead__toggle.is-open .masthead__toggle-text {
    color: #fff;
}

.masthead__toggle-text {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.masthead__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.masthead__nav a,
.masthead__nav button,
.masthead__form button {
    position: relative;
    border: 0;
    border-radius: 0.45rem;
    padding: 0.58rem 0.82rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 237, 230, 0.96));
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

.masthead__nav a.is-active {
    background: linear-gradient(180deg, var(--red), #b90f13);
    color: #fff;
    box-shadow:
        0 10px 20px rgba(214, 20, 24, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.masthead__nav a::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
    opacity: 0.35;
}

.masthead__nav a:hover,
.masthead__nav button:hover,
.masthead__nav a:focus-visible,
.masthead__nav button:focus-visible,
.account-menu__toggle:hover,
.account-menu__toggle:focus-visible {
    transform: translateY(-1px);
}

.masthead__nav a:hover::after,
.masthead__nav a:focus-visible::after {
    transform: scaleX(1);
}

.masthead__nav a:hover:not(.is-active) {
    background: linear-gradient(180deg, rgba(15, 57, 116, 0.08), rgba(15, 57, 116, 0.03));
    color: var(--blue);
}

.masthead__nav a.is-active::after {
    transform: scaleX(1);
    opacity: 0.8;
}

.masthead__nav button,
.masthead__form button {
    background: var(--blue);
    color: #fff;
}

.masthead__form {
    margin: 0;
}

.account-menu {
    position: relative;
}

.account-menu__toggle {
    border: 0;
    border-radius: 0.45rem;
    padding: 0.58rem 0.82rem;
    background: linear-gradient(180deg, #113f7b, #0b2d5a);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 8px 16px rgba(15, 35, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.account-menu__panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    display: none;
    min-width: 12rem;
    padding: 0.5rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 5;
}

.account-menu.is-open .account-menu__panel {
    display: grid;
    gap: 0.4rem;
}

.account-menu__panel a,
.account-menu__panel button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0.25rem;
    padding: 0.65rem 0.8rem;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.account-menu__panel a:hover,
.account-menu__panel button:hover {
    background: rgba(15, 57, 116, 0.08);
}

.content {
    display: grid;
    gap: 1rem;
    padding: 1rem 0 0;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
        linear-gradient(180deg, #ffffff, #f5f0e7);
    box-shadow: var(--shadow);
}

.intro__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0.15rem 0.25rem 0.25rem;
}

.hero-feature {
    display: block;
    width: min(100%, 1180px);
    margin-inline: auto;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f7f4ed);
    box-shadow: var(--shadow);
}

.hero-feature__stage {
    position: relative;
    overflow: hidden;
    min-height: clamp(24rem, 48vw, 40rem);
    aspect-ratio: auto;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #10396f 0%, #0f3974 38%, #efeadf 100%);
}

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

.hero-feature__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 520ms ease;
}

.hero-feature__slide::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background-image: var(--slide-bg);
    background-position: center center;
    background-size: cover;
    filter: blur(28px) saturate(0.95);
    opacity: 0.28;
    transform: scale(1.08);
    z-index: 0;
}

.hero-feature__slide.is-active {
    opacity: 1;
}

.hero-feature__slide img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: clamp(0.4rem, 1.25vw, 1rem);
    z-index: 1;
}

.hero-feature__overlay {
    position: absolute;
    left: 50%;
    bottom: clamp(0.6rem, 1.5vw, 1rem);
    transform: translateX(-50%);
    z-index: 2;
    width: min(34rem, calc(100% - 1.2rem));
    padding: clamp(0.85rem, 1.8vw, 1.4rem);
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(255, 253, 248, 0.83));
    box-shadow: 0 14px 24px rgba(15, 35, 68, 0.08);
    text-align: center;
}

.hero-feature__overlay h1 {
    margin: 0;
    color: var(--blue);
    font-family: "Arial Narrow", "Franklin Gothic Medium", "Arial Black", Arial, sans-serif;
    font-size: clamp(2.7rem, 5.4vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.hero-feature__overlay .hero__lede {
    color: var(--muted);
    max-width: 24rem;
    margin-inline: auto;
}

.hero__eyebrow {
    margin: 0 0 0.6rem;
    color: var(--red);
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.intro__copy h1 {
    margin: 0;
    color: var(--blue);
    font-family: "Arial Narrow", "Franklin Gothic Medium", "Arial Black", Arial, sans-serif;
    font-size: clamp(2.9rem, 4.8vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.hero__lede {
    margin: 1rem 0 0;
    max-width: 28rem;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.45;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
    border: 1px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.button--solid {
    background: linear-gradient(180deg, var(--red), #b90f13);
    color: #fff;
}

.button--ghost {
    border-color: rgba(15, 35, 68, 0.24);
    background: #fff;
    color: var(--blue);
}

.button:disabled,
.button[disabled],
button:disabled,
button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.button--wide {
    width: 100%;
}

.button--small {
    min-height: 2.2rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.7rem;
}

.event-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0.75rem 0 1rem;
}

.quick-search {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: var(--shadow);
}

.quick-search__head {
    padding: 0.75rem 0.9rem;
    background: linear-gradient(180deg, #17386a, #0b2449);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-search__form {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
}

.field {
    display: grid;
    gap: 0.3rem;
    font-size: 0.86rem;
}

.field span {
    font-weight: 700;
    color: var(--ink);
}

.field small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.user-card__credits {
    display: grid;
    gap: 0.3rem;
}

.user-card__credits-row {
    display: grid;
    gap: 0.25rem;
}

.user-card__credits-help {
    display: block;
    margin: -0.1rem 0 0.05rem;
    padding-left: 0.05rem;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.2;
}

.user-card__credits.is-disabled {
    opacity: 0.8;
}

.user-card__credits input:disabled {
    background: #e9edf2;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(15, 35, 68, 0.2);
    border-radius: 0.25rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(241, 194, 66, 0.34);
    outline-offset: 1px;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
    opacity: 0.58;
    background: #f4f1eb;
    color: rgba(15, 35, 68, 0.6);
}

.feature-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
}

.feature:not(:last-child) {
    border-right: 1px solid rgba(15, 35, 68, 0.12);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    color: var(--blue);
}

.feature__icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}

.feature strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.admin-queue-health {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.9rem;
}

.admin-queue-health__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.7rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    border-radius: 0.35rem;
    background: linear-gradient(180deg, rgba(15, 57, 116, 0.04), rgba(255, 255, 255, 0.94));
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-queue-health__summary strong {
    margin-right: 0.15rem;
}

.admin-queue-health__summary span {
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
}

.admin-queue-health__recent {
    display: grid;
    gap: 0.5rem;
}

.admin-queue-health__row {
    display: grid;
    gap: 0.25rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(15, 35, 68, 0.1);
    border-radius: 0.3rem;
    background: #fff;
}

.admin-queue-health__row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.admin-queue-health__row strong {
    color: var(--blue);
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.admin-queue-health__row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.admin-queue-health__status {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(15, 35, 68, 0.08);
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-queue-health__status--pending {
    background: rgba(241, 194, 66, 0.18);
    color: #8a5a00;
}

.admin-queue-health__status--processing {
    background: rgba(15, 57, 116, 0.14);
    color: var(--blue);
}

.admin-queue-health__status--ready {
    background: rgba(37, 161, 89, 0.16);
    color: #176d38;
}

.admin-queue-health__status--failed {
    background: rgba(185, 15, 19, 0.14);
    color: var(--red);
}

.admin-pipeline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-pipeline-actions form {
    margin: 0;
}

.admin-queue-health__status--unknown {
    background: rgba(15, 35, 68, 0.08);
    color: var(--muted);
}

.section {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.page-section {
    margin-bottom: 1rem;
}

.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.9rem;
    background: var(--red);
    color: #fff;
}

.section__head h2 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section__head a {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.page-section__body {
    padding: 0.95rem 1rem 1rem;
}

.page-section__body h1 {
    margin: 0;
}

.page-section--intro .page-section__body {
    max-width: 76rem;
}

.about-article {
    display: grid;
    gap: 1rem;
    max-width: 78rem;
    margin-inline: auto;
}

.about-article h1 {
    margin: 0;
    color: var(--blue);
    font-family: "Arial Narrow", "Franklin Gothic Medium", "Arial Black", Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.about-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 22rem);
    gap: 1.25rem;
    align-items: start;
}

.about-article__copy {
    display: grid;
    gap: 1rem;
}

.about-article__copy p,
.about-article__rail-note p {
    margin: 0;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.75;
}

.about-article__inline,
.about-article__rail-photo {
    margin: 0;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-article__inline {
    width: min(100%, 16rem);
    float: right;
    margin: 0 0 0.75rem 1rem;
}

.about-article__inline img,
.about-article__rail-photo img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.about-article__inline img {
    aspect-ratio: 4 / 5;
}

.about-article__rail-photo img {
    aspect-ratio: 4 / 5;
}

.about-article__rail-photo--tall img {
    aspect-ratio: 3 / 4;
}

.about-article__inline figcaption,
.about-article__rail-photo figcaption {
    padding: 0.55rem 0.7rem;
    background: linear-gradient(180deg, #ffffff, #f3efe7);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.about-article__rail {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.about-article__rail-note {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: linear-gradient(180deg, #ffffff, #f4efe6);
    box-shadow: var(--shadow);
}

.about-article__rail-note strong {
    color: var(--blue);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-detail-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 35%),
        linear-gradient(180deg, #ffffff, #f4efe6);
    box-shadow: var(--shadow);
}

.about-detail-card__icon {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: linear-gradient(180deg, rgba(15, 57, 116, 0.06), rgba(255, 255, 255, 0.96));
    color: var(--blue);
}

.about-detail-card__icon svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.about-detail-card h3 {
    margin: 0;
    color: var(--blue);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-detail-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.about-notes {
    display: grid;
    gap: 0.85rem;
}

.about-notes p {
    margin: 0;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.7;
}

.page-section--intro h1 {
    margin: 0;
    color: var(--blue);
    font-family: "Arial Narrow", "Franklin Gothic Medium", "Arial Black", Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.page-section__body p {
    margin: 0;
    color: var(--ink);
    line-height: 1.5;
}

.page-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.page-list__item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    border-radius: 0.3rem;
    background: #fff;
}

.page-list__item span {
    color: var(--muted);
}

.page-list__item--stack {
    align-items: flex-start;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem 0.8rem;
    align-items: end;
    margin-bottom: 0.95rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    border-radius: 0.35rem;
    background: linear-gradient(180deg, rgba(15, 57, 116, 0.04), rgba(255, 255, 255, 0.92));
}

.admin-search .field {
    margin: 0;
}

.admin-search .field input {
    min-height: 2.75rem;
}

.admin-search__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.admin-tabs__button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(15, 35, 68, 0.22);
    border-top-width: 4px;
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, #eef3fa 0%, #dfe7f4 100%);
    color: var(--blue);
    font: inherit;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: -1px;
    position: relative;
    white-space: nowrap;
}

.admin-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(15, 35, 68, 0.1);
    color: inherit;
    font-size: 0.68rem;
    line-height: 1.3;
}

.admin-tabs__button:hover,
.admin-tabs__button:focus-visible {
    background: #fff;
    outline: none;
}

.admin-tabs__button.is-active {
    background: #fff;
    border-color: rgba(15, 35, 68, 0.22);
    border-bottom-color: #fff;
    color: var(--red);
    z-index: 1;
    box-shadow: inset 0 3px 0 var(--red);
}

.admin-tabs__button.is-active .admin-tabs__count {
    background: rgba(212, 20, 24, 0.1);
}

.admin-panel {
    display: none;
    gap: 1rem;
}

.admin-panel.is-active {
    display: grid;
}

.admin-user-summary {
    justify-self: start;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.38rem 0.55rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(15, 57, 116, 0.04);
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-user-summary strong {
    color: var(--blue);
    font-size: 1rem;
}

.admin-event-list {
    display: grid;
    gap: 0.75rem;
}

.admin-event-list__value {
    min-height: 2.15rem;
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
    color: var(--ink);
    font-size: 0.93rem;
    line-height: 1.35;
}

.admin-event-list__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-width: 0;
}

.admin-event-list__heading-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.admin-event-list__heading-copy strong,
.admin-event-list__heading-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-event-list__logo {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    object-position: center;
    margin-right: 0.45rem;
    flex: 0 0 auto;
}

.admin-event-list__summary {
    padding-top: 0.1rem;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.45;
}

.admin-danger-zone {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(212, 20, 24, 0.22);
    background: rgba(212, 20, 24, 0.04);
}

.admin-danger-zone > summary {
    color: var(--red);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-danger-zone form {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.8rem;
}

.admin-danger-zone__check {
    margin: 0;
}

.admin-danger-zone__button {
    justify-self: start;
    min-height: 2.3rem;
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.admin-danger-zone__button:hover,
.admin-danger-zone__button:focus-visible {
    background: #b80f13;
    border-color: #b80f13;
}

.admin-empty {
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-style: italic;
}

.user-card {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

.user-card--accordion {
    padding: 0;
    border: 1px solid rgba(15, 35, 68, 0.14);
    border-radius: 0;
    background: #fff;
    overflow: hidden;
}

.user-card--accordion[open] {
    box-shadow: 0 14px 32px rgba(15, 35, 68, 0.08);
}

.user-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid rgba(15, 35, 68, 0.08);
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.user-card__summary::-webkit-details-marker {
    display: none;
}

.user-card--accordion[open] .user-card__summary {
    background: linear-gradient(180deg, #edf2fa 0%, #f9fbff 100%);
}

.user-card__identity {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.user-card__identity strong,
.user-card__identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card__identity strong {
    font-size: 0.98rem;
}

.user-card__identity span {
    color: var(--muted);
    font-size: 0.84rem;
}

.user-card__summary-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border: 1px solid rgba(15, 35, 68, 0.18);
    background: rgba(15, 57, 116, 0.05);
    color: var(--blue);
    border-radius: 0;
}

.user-card__summary-action svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.user-card__panel {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    background: #fafbfe;
}

.user-card__footer {
    display: grid;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(15, 35, 68, 0.08);
}

.user-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-card__status {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-card__status.is-active {
    background: rgba(42, 145, 73, 0.12);
    color: #1f6d37;
}

.user-card__status.is-inactive {
    background: rgba(214, 20, 24, 0.12);
    color: #a31115;
}

.user-card__grid {
    display: grid;
    gap: 0.35rem;
    align-items: end;
    margin-top: 0;
}

.user-card__row {
    display: grid;
    gap: 0.4rem;
    align-items: end;
}

.user-card__row--primary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(12rem, 0.95fr);
}

.user-card__row--secondary {
    grid-template-columns: minmax(10rem, 1fr) minmax(7rem, auto) minmax(8.5rem, 10rem);
}

.user-card__grid .field {
    min-width: 0;
    margin: 0;
}

.user-card__grid .field > span {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.user-card__grid input,
.user-card__grid select {
    min-height: 2.55rem;
}

.user-card__check {
    min-width: 0;
    align-self: center;
    padding-bottom: 0;
}

.user-card__save {
    width: 100%;
    min-height: 2.55rem;
    align-self: end;
}

.user-card__save-note,
.user-card__protect {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0;
    border: 1px dashed rgba(15, 35, 68, 0.22);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.user-card__save-note--protected {
    justify-content: center;
}

.user-card__actions {
    margin-top: 0;
    gap: 0.5rem;
}

.user-card__actions .button,
.user-card__actions .user-card__protect {
    min-height: 2.55rem;
}

.gallery-disabled {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(15, 35, 68, 0.18);
    background: rgba(15, 57, 116, 0.04);
    color: var(--ink);
}

.gallery-disabled strong {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.gallery-builder {
    display: grid;
    gap: 1rem;
}

.form-notice,
.gallery-builder__status {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: #fff;
}

.form-notice--success {
    border-color: rgba(31, 109, 55, 0.25);
    background: rgba(31, 109, 55, 0.06);
    color: #1f6d37;
}

.form-notice--error {
    border-color: rgba(212, 20, 24, 0.25);
    background: rgba(212, 20, 24, 0.06);
    color: var(--red);
}

.gallery-builder__status strong,
.form-notice strong {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-builder__status span {
    color: var(--muted);
    font-size: 0.84rem;
}

.gallery-builder__status.is-loading {
    border-color: rgba(15, 35, 68, 0.3);
    background: rgba(15, 35, 68, 0.05);
}

.gallery-builder__status.is-success {
    border-color: rgba(31, 109, 55, 0.28);
    background: rgba(31, 109, 55, 0.06);
}

.gallery-builder__status.is-success span {
    color: #1f6d37;
}

.gallery-builder__status.is-error {
    border-color: rgba(212, 20, 24, 0.28);
    background: rgba(212, 20, 24, 0.06);
}

.gallery-builder__status.is-error span {
    color: var(--red);
}

body.is-save-modal-open {
    overflow: hidden;
}

body.is-delete-modal-open {
    overflow: hidden;
}

.delete-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    pointer-events: auto;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 10, 20, 0.74);
    backdrop-filter: blur(2px);
}

.delete-modal__panel {
    position: relative;
    z-index: 1;
    isolation: isolate;
    pointer-events: auto;
    width: min(92vw, 520px);
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #fdfcf8, #f2ede3);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
    padding: 1.1rem;
}

.delete-modal__title {
    margin-bottom: 0.45rem;
    color: var(--blue);
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.delete-modal__message {
    margin-bottom: 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.delete-modal__status {
    margin-bottom: 0.9rem;
}

.delete-modal__steps {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
}

.delete-modal__steps li {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.delete-modal__steps li.is-active {
    border-color: rgba(15, 57, 116, 0.4);
    background: rgba(15, 57, 116, 0.08);
    color: var(--blue);
}

.delete-modal__steps li.is-complete {
    border-color: rgba(31, 109, 55, 0.32);
    background: rgba(31, 109, 55, 0.08);
    color: #1f6d37;
}

.delete-modal.is-error .delete-modal__steps li.is-error {
    border-color: rgba(212, 20, 24, 0.32);
    background: rgba(212, 20, 24, 0.08);
    color: var(--red);
}

.save-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    pointer-events: auto;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 10, 20, 0.74);
    backdrop-filter: blur(2px);
}

.save-modal__panel {
    position: relative;
    z-index: 1;
    isolation: isolate;
    pointer-events: auto;
    width: min(92vw, 460px);
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #fdfcf8, #f2ede3);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
    padding: 1.1rem;
}

.save-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(15, 35, 68, 0.2);
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.save-modal__title {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.save-modal__message {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.save-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.95rem;
}

.save-modal__done {
    min-height: 2.4rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(15, 35, 68, 0.18);
    background: linear-gradient(180deg, #fff, #eef2f7);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
}

.save-modal__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.save-modal__steps li {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.save-modal__steps li.is-active {
    border-color: rgba(15, 57, 116, 0.4);
    background: rgba(15, 57, 116, 0.08);
    color: var(--blue);
}

.save-modal__steps li.is-complete {
    border-color: rgba(31, 109, 55, 0.32);
    background: rgba(31, 109, 55, 0.08);
    color: #1f6d37;
}

.save-modal.is-error .save-modal__steps li.is-error {
    border-color: rgba(212, 20, 24, 0.32);
    background: rgba(212, 20, 24, 0.08);
    color: var(--red);
}

.gallery-builder.is-disabled {
    opacity: 0.75;
}

.gallery-builder__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: start;
}

.gallery-builder__title {
    grid-column: 1 / 2;
}

.gallery-builder__slug {
    grid-column: 2 / 3;
}

.gallery-builder__slug-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: center;
}

.gallery-builder__slug-prefix {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 0.6rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(15, 57, 116, 0.05);
    color: rgba(15, 35, 68, 0.58);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-builder__slug-status {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(15, 57, 116, 0.04);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gallery-builder__slug-status.is-loading {
    border-color: rgba(15, 57, 116, 0.24);
    background: rgba(15, 57, 116, 0.08);
    color: var(--blue);
}

.gallery-builder__slug-status.is-ok {
    border-color: rgba(31, 109, 55, 0.24);
    background: rgba(31, 109, 55, 0.08);
    color: #1f6d37;
}

.gallery-builder__slug-status.is-bad {
    border-color: rgba(212, 20, 24, 0.24);
    background: rgba(212, 20, 24, 0.08);
    color: var(--red);
}

.gallery-builder [data-subgallery-title-status] {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
}

.gallery-builder [data-subgallery-title-status].is-ok {
    color: #1f6d37;
}

.gallery-builder [data-subgallery-title-status].is-bad {
    color: var(--red);
}

.gallery-builder [data-subgallery-title-status].is-loading {
    color: var(--blue);
}

.gallery-builder__summary,
.gallery-builder__upload {
    grid-column: 1 / -1;
}

.gallery-builder__file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.gallery-builder__file-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: linear-gradient(180deg, #fff, #eef2f7);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-builder__file-trigger input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gallery-builder__file-trigger span {
    position: relative;
    z-index: 1;
}

.gallery-builder__file-meta {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

.gallery-builder__file-meta strong {
    color: var(--ink);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.gallery-builder__file-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-builder__upload small {
    color: var(--muted);
    font-size: 0.82rem;
}

.results-preview {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(15, 35, 68, 0.12);
}

.results-preview__empty,
.results-preview__warnings {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.results-preview__warnings {
    display: grid;
    gap: 0.2rem;
}

.results-preview__item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(15, 57, 116, 0.04);
    font-size: 0.84rem;
}

.results-preview__item strong {
    font-size: 0.82rem;
}

.results-preview__item span {
    color: var(--muted);
    white-space: nowrap;
}

.gallery-builder__results-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.gallery-builder__results-clear {
    min-height: 1.9rem;
    padding: 0.22rem 0.65rem;
    font-size: 0.66rem;
}

.gallery-builder__results-note {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.gallery-builder__sponsors {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

.gallery-builder__sponsors .section__head {
    margin-bottom: 0;
}

.gallery-builder__sponsor-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gallery-builder__add-sponsor {
    min-height: 1.9rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.68rem;
}

.gallery-builder__import-sponsors {
    min-height: 1.9rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.68rem;
}

.gallery-builder__sponsor-import-status {
    padding: 0.55rem 0.7rem;
    border: 1px dashed rgba(15, 35, 68, 0.16);
    background: rgba(15, 57, 116, 0.03);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.gallery-builder__sponsor-import-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.gallery-builder__sponsor-import-preview[hidden] {
    display: none;
}

.gallery-builder__sponsor-import-preview-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    padding: 0.45rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.gallery-builder__sponsor-import-preview-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    min-height: 3rem;
    padding: 0.15rem;
    border: 1px solid rgba(15, 35, 68, 0.1);
    background: #fff;
    overflow: visible;
}

.gallery-builder__sponsor-import-preview-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-builder__sponsor-import-preview-logo span {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.gallery-builder__sponsor-import-preview-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.gallery-builder__sponsor-import-preview-copy strong {
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-builder__sponsor-import-preview-copy span {
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.35;
    word-break: break-word;
}

.gallery-builder__sponsor-import-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.gallery-builder__sponsor-import-preview[hidden] {
    display: none;
}

.gallery-builder__sponsor-import-preview-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    padding: 0.45rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.gallery-builder__sponsor-import-preview-logo {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid rgba(15, 35, 68, 0.1);
    background: #fff;
    overflow: hidden;
}

.gallery-builder__sponsor-import-preview-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-builder__sponsor-import-preview-logo span {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.gallery-builder__sponsor-import-preview-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.gallery-builder__sponsor-import-preview-copy strong {
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-builder__sponsor-import-preview-copy span {
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.35;
    word-break: break-word;
}

.gallery-builder__sponsor-import-panel {
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: linear-gradient(180deg, rgba(15, 57, 116, 0.04), rgba(255, 255, 255, 0.92));
}

.gallery-builder__sponsor-import-panel[hidden] {
    display: none;
}

.gallery-builder__sponsor-import-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.gallery-builder__spinner {
    position: relative;
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0;
    transition: opacity 160ms ease;
}

.gallery-builder__spinner.is-loading {
    opacity: 1;
}

.gallery-builder__spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(15, 57, 116, 0.18);
    border-top-color: var(--red);
    border-right-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.is-loadable {
    position: relative;
}

.surface-loading-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem;
    background: rgba(255, 253, 248, 0.88);
    backdrop-filter: blur(1px);
}

.surface-loading-mask[hidden] {
    display: none !important;
}

.surface-loading-mask__label,
.surface-loading-mask__label {
    color: var(--blue);
}

.gallery-builder__sponsor-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) minmax(10rem, 12rem);
    gap: 0.75rem;
    padding: 0.8rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(15, 57, 116, 0.03);
}

.gallery-builder__sponsor-row + .gallery-builder__sponsor-row {
    margin-top: 0.2rem;
}

.gallery-builder__sponsor-row .field {
    margin: 0;
}

.gallery-builder__sponsor-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.4rem;
    min-height: 3.2rem;
    padding: 0.15rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    overflow: visible;
}

.gallery-builder__sponsor-preview img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.gallery-builder__future {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 68, 0.14);
}

.gallery-builder__future .feature {
    min-height: 100%;
}

.gallery-builder__previews {
    display: grid;
    grid-template-columns: 0.8fr 1.3fr 1.3fr;
    gap: 0.75rem;
}

.gallery-preview {
    display: grid;
    gap: 0.45rem;
    padding: 0.8rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.84);
}

.gallery-preview span {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-preview img {
    display: block;
    width: 100%;
    height: 8.5rem;
    object-fit: cover;
    object-position: center center;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #e7edf6;
}

.gallery-preview--logo img {
    object-fit: contain;
    padding: 0.45rem;
}

.cropper-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #e7edf6;
    touch-action: none;
    cursor: grab;
}

.cropper-frame:active {
    cursor: grabbing;
}

.cropper-frame__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.55rem;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(15, 35, 68, 0.08)),
        repeating-linear-gradient(
            0deg,
            rgba(15, 35, 68, 0.06) 0,
            rgba(15, 35, 68, 0.06) 1px,
            transparent 1px,
            transparent 28px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(15, 35, 68, 0.06) 0,
            rgba(15, 35, 68, 0.06) 1px,
            transparent 1px,
            transparent 28px
        );
    mix-blend-mode: multiply;
}

.cropper-frame__overlay::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(15, 35, 68, 0.12);
}

.cropper-frame__overlay span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.15rem 0.45rem;
    background: rgba(15, 35, 68, 0.68);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cropper-frame img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    padding: 0;
    user-select: none;
    pointer-events: none;
    transform-origin: top left;
}

.cropper-shell small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.gallery-preview--logo .cropper-frame {
    aspect-ratio: 1 / 1;
}

.gallery-preview--banner .cropper-frame,
.gallery-preview--listing .cropper-frame {
    aspect-ratio: auto;
}

.gallery-builder__watermark {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.84);
}

.gallery-builder__watermark > summary {
    list-style: none;
    cursor: pointer;
}

.gallery-builder__watermark > summary::-webkit-details-marker {
    display: none;
}

.gallery-builder__watermark-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.gallery-builder__watermark-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gallery-builder__summary-caret {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
    flex: 0 0 auto;
    margin-left: auto;
    transition: transform 0.18s ease;
}

.gallery-builder__watermark[open] .gallery-builder__summary-caret {
    transform: rotate(-135deg);
}

.gallery-builder__watermark-body {
    display: grid;
    gap: 0.8rem;
}

.gallery-builder__watermark-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gallery-builder__watermark-mode-btn {
    min-height: 2.05rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-builder__watermark-mode-btn.is-active {
    border-color: rgba(15, 57, 116, 0.42);
    background: rgba(15, 57, 116, 0.12);
    color: var(--blue);
}

.gallery-builder__watermark-mode-panel {
    display: grid;
    gap: 0.7rem;
}

.gallery-builder__watermark-controls {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(15, 57, 116, 0.03);
}

.gallery-builder__watermark-controls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.gallery-builder__watermark-controls-head strong {
    color: var(--ink);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gallery-builder__watermark-clear {
    min-height: 1.9rem;
    padding: 0.22rem 0.65rem;
    font-size: 0.66rem;
}

.gallery-builder__watermark-corners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.gallery-builder__watermark-corner {
    min-height: 2rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-builder__watermark-corner.is-active {
    border-color: rgba(15, 57, 116, 0.44);
    background: rgba(15, 57, 116, 0.12);
    color: var(--blue);
}

.gallery-builder__watermark-scale {
    display: grid;
    gap: 0.3rem;
}

.gallery-builder__watermark-scale input[type="range"] {
    width: 100%;
}

.gallery-builder__watermark-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.gallery-builder__watermark-preview {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0.7rem;
}

.gallery-builder__watermark-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: linear-gradient(135deg, rgba(15, 57, 116, 0.08), rgba(212, 20, 24, 0.08));
}

.gallery-builder__watermark-frame:empty {
    min-height: 100%;
}

.gallery-builder__watermark-badge {
    position: absolute;
    width: auto;
    height: auto;
    max-width: calc(var(--watermark-scale-percent, 5) * 1%);
    max-height: calc(var(--watermark-scale-percent, 5) * 1%);
    z-index: 3;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transform: none;
    pointer-events: none;
}

.gallery-builder__watermark-sample {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-builder__watermark-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: cover;
    pointer-events: none;
}

.gallery-builder__watermark-badge[data-watermark-corner="top-left"] {
    top: calc(var(--watermark-padding-percent, 8) * 1%);
    left: calc(var(--watermark-padding-percent, 8) * 1%);
}

.gallery-builder__watermark-badge[data-watermark-corner="top-right"] {
    top: calc(var(--watermark-padding-percent, 8) * 1%);
    right: calc(var(--watermark-padding-percent, 8) * 1%);
}

.gallery-builder__watermark-badge[data-watermark-corner="bottom-left"] {
    bottom: calc(var(--watermark-padding-percent, 8) * 1%);
    left: calc(var(--watermark-padding-percent, 8) * 1%);
}

.gallery-builder__watermark-badge[data-watermark-corner="bottom-right"] {
    right: calc(var(--watermark-padding-percent, 8) * 1%);
    bottom: calc(var(--watermark-padding-percent, 8) * 1%);
}

.gallery-builder__watermark-frame img.gallery-builder__watermark-sample {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-builder__watermark-frame::after {
    content: none;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.14) 50% 75%, transparent 75%),
        linear-gradient(135deg, rgba(15, 35, 68, 0.12), rgba(15, 35, 68, 0.02));
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.gallery-builder__watermark-frame--portrait {
    aspect-ratio: 2 / 3;
}

.gallery-builder__watermark-frame--landscape {
    aspect-ratio: 3 / 2;
}

.gallery-builder__sponsors {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.84);
}

.gallery-builder__sponsor-summary {
    display: inline-flex;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
}

.gallery-builder__sponsors .gallery-builder__summary-caret {
    color: var(--blue);
}

.gallery-builder__sponsors[open] .gallery-builder__summary-caret {
    transform: rotate(-135deg);
}

.gallery-builder__sponsor-body {
    display: grid;
    gap: 0.75rem;
}

.gallery-builder__sponsor-rows {
    display: grid;
    gap: 0.45rem;
}

.gallery-preview--banner .cropper-frame {
    aspect-ratio: 3 / 1;
}

.gallery-preview--listing .cropper-frame {
    aspect-ratio: 16 / 9;
}

.gallery-builder__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.gallery-builder__actions .button {
    min-width: 8.75rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.72rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.9rem;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: #fff;
}

.gallery-card__image-link {
    display: block;
    text-decoration: none;
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center top;
}

.gallery-card__body {
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem 0.75rem 0.8rem;
}

.gallery-card__brand {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.gallery-card__logo {
    display: block;
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    object-position: center;
}

.gallery-card__brand-copy {
    display: grid;
    gap: 0.1rem;
}

.gallery-card__body h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gallery-card__brand-copy h3 {
    font-size: 0.92rem;
    line-height: 1.15;
}

.gallery-card__body p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.gallery-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.7rem;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.gallery-card__meta span + span::before {
    content: "•";
    margin-right: 0.6rem;
    color: rgba(15, 35, 68, 0.28);
}

.gallery-empty {
    margin: 0;
    padding: 0.9rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.gallery-empty--event {
    padding: 1rem;
    border: 1px dashed rgba(15, 35, 68, 0.16);
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.page-section--galleries .page-section__body {
    padding: 0;
}

.galleries-overview {
    display: grid;
    gap: 0;
}

.gallery-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 24rem);
    gap: 0.7rem 1rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(15, 35, 68, 0.14);
    background: linear-gradient(180deg, #fbfbfd, #f3f6fb);
    align-items: end;
}

.gallery-toolbar__search {
    display: grid;
    grid-template-columns: minmax(0, 12.5rem) auto;
    gap: 0.35rem;
    align-items: end;
    width: 100%;
    justify-self: start;
    max-width: 18rem;
}

.gallery-toolbar__right {
    display: grid;
    grid-template-columns: repeat(2, minmax(10rem, 11rem));
    align-items: flex-end;
    justify-content: flex-end;
    justify-self: end;
    gap: 0.65rem;
}

.gallery-toolbar__filters {
    display: contents;
    justify-content: flex-end;
    align-items: flex-end;
}

.gallery-toolbar__field {
    margin: 0;
    width: 100%;
}

.gallery-toolbar__field > span {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-toolbar .button {
    min-height: 2.2rem;
    min-width: 4.75rem;
    padding-inline: 0.75rem;
    font-size: 0.72rem;
}

.gallery-toolbar__search .button {
    background: linear-gradient(180deg, #17386a, #0b2449);
    color: #fff;
    min-height: 2.2rem;
    height: 2.2rem;
    padding-block: 0;
    align-self: end;
}

.gallery-toolbar input,
.gallery-toolbar select {
    min-height: 2.2rem;
    padding-block: 0.4rem;
}

.gallery-toolbar__create {
    min-height: 2.2rem;
    height: 2.2rem;
    padding-block: 0;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.section__head--split {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.section__head--split .gallery-toolbar__create {
    min-height: 1.8rem;
    height: 1.8rem;
    padding: 0.18rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue);
    box-shadow: none;
    font-size: 0.62rem;
}

.section__head--split .gallery-toolbar__create.is-disabled {
    opacity: 0.45;
    color: rgba(15, 35, 68, 0.72);
}

.section__head--split .gallery-builder__header-cancel {
    min-height: 1.8rem;
    height: 1.8rem;
    padding: 0.18rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue);
    box-shadow: none;
    font-size: 0.62rem;
}

.gallery-detail {
    display: grid;
    gap: 0.9rem;
}

.event-hero {
    width: 100%;
    margin-inline: 0;
    background: transparent;
    box-shadow: none;
}

.event-hero__media {
    position: relative;
    aspect-ratio: 3 / 1;
    min-height: 17rem;
    background: #d9e1ec;
    overflow: hidden;
    border-radius: 18px;
}

.event-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.event-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.8rem;
    background:
        linear-gradient(180deg, rgba(3, 10, 22, 0.02) 0%, rgba(3, 10, 22, 0.08) 42%, rgba(3, 10, 22, 0.84) 100%);
}

.event-hero__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-hero__action {
    min-height: 2.3rem;
    padding: 0.58rem 0.8rem;
    border-color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(15, 35, 68, 0.16);
}

.event-hero__actions .button--ghost {
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue);
}

.event-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 0 0.55rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.event-breadcrumbs a:hover,
.event-breadcrumbs a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.event-breadcrumbs span {
    color: rgba(15, 35, 68, 0.42);
}

.event-subgallery-head {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 0.7rem;
    padding: 0.15rem 0 0.25rem;
}

.event-subgallery-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.event-subgallery-head h2 {
    margin: 0;
    color: var(--blue);
    font-size: 1.02rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-subgallery-head__back {
    min-height: 2.3rem;
    padding: 0.55rem 0.75rem;
}

.event-hero__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 5.8rem;
    min-height: 5.8rem;
    padding: 0.35rem;
    border: 3px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.98);
    color: var(--blue);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(15, 35, 68, 0.16);
    flex: 0 0 auto;
}

.event-hero__content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: nowrap;
    width: min(100%, 100%);
    margin-top: auto;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.event-hero__titlewrap {
    min-width: 0;
}

.event-hero__logo-image {
    display: block;
    max-width: 4.9rem;
    max-height: 4.9rem;
    height: auto;
    object-fit: contain;
}

.event-hero__copy {
    display: grid;
    gap: 0.1rem;
    flex: 1 1 24rem;
    min-width: 0;
    color: #fff;
}

.event-hero__upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 2.5rem;
    padding: 0.68rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 0.32rem;
    background: var(--red);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(15, 35, 68, 0.22);
}

.event-hero__upload:hover,
.event-hero__upload:focus-visible {
    background: #b90f13;
    outline: none;
}

.event-hero__copy h1 {
    margin: 0;
    font-family: "Arial Narrow", "Franklin Gothic Medium", "Arial Black", Arial, sans-serif;
    font-size: 1.95rem;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.event-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72);
}

.event-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-shadow: none;
}

.event-hero__meta-item svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-hero__actions {
    margin-left: auto;
}

.event-hero__summary {
    margin: 0;
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.45;
}

.event-summary-panel {
    max-width: 58rem;
    color: rgba(15, 35, 68, 0.86);
    font-size: 0.98rem;
    line-height: 1.7;
}

.event-page {
    display: grid;
    gap: 1rem;
}

.event-summary {
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 35, 68, 0.05);
}

.event-summary__drawer {
    padding: 0.1rem 0.9rem 0.8rem;
}

.event-summary__drawer summary {
    padding: 0.75rem 0;
    color: var(--blue);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.event-summary__drawer p {
    margin: 0;
    max-width: 60rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.event-tabs {
    display: grid;
    gap: 0.85rem;
}

.event-gallery-detail {
    display: grid;
    gap: 0.9rem;
}

.event-tabs__nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.event-tabs__button {
    min-height: 2.2rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: linear-gradient(180deg, #fff, #eef2f7);
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.event-tabs__button:hover,
.event-tabs__button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.event-tabs__button.is-active {
    background: linear-gradient(180deg, var(--red), #b90f13);
    border-color: rgba(214, 20, 24, 0.8);
    color: #fff;
}

.event-tabs__panels {
    display: grid;
}

.event-panel {
    display: none;
    gap: 0.9rem;
}

.event-panel.is-active {
    display: grid;
}

.gallery-detail__summary {
    display: grid;
    gap: 0.45rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(15, 35, 68, 0.1);
}

.gallery-detail__summary p {
    margin: 0;
    max-width: 44rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.gallery-detail__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.8rem;
}

.gallery-detail__toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem 0.2rem 0.35rem;
}

.gallery-detail__toolbar--photos {
    align-items: start;
}

.gallery-detail__toolbar--photos .gallery-detail__field--per-page {
    min-width: 8rem;
}

.gallery-detail__search {
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 18rem) auto;
    gap: 0.5rem;
    align-items: end;
}

.gallery-detail__search-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.gallery-detail__field {
    margin: 0;
}

.gallery-detail__field > span {
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-detail__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.gallery-thumb {
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 68, 0.08);
    background: #fff;
    aspect-ratio: 1 / 1;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    background: #fff;
}

.gallery-thumb--portrait img {
    object-position: center 12%;
}

.gallery-thumb--landscape img {
    object-position: center 18%;
}

.gallery-thumb--pending {
    background: linear-gradient(180deg, #f5f8fc, #e6edf7);
}

.gallery-thumb--pending img {
    box-sizing: border-box;
    padding: 0.45rem;
    object-fit: contain;
    object-position: center;
    filter: saturate(0.55) contrast(0.92);
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0.18) 100%),
        linear-gradient(180deg, #f8fbff, #eef3fa);
}

.gallery-thumb__caption {
    display: none;
    color: var(--ink);
    font-size: 0.74rem;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(5, 12, 24, 0.9);
}

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

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
}

.gallery-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
    width: min(100%, 1280px);
    padding: 4.2rem 1rem 1.5rem;
    overflow: visible;
}

.gallery-lightbox__toolbar {
    position: fixed;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    z-index: 8;
}

.gallery-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding-inline: clamp(0.5rem, 2vw, 1rem);
    touch-action: pan-y;
}

.gallery-lightbox__figure {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    transition: transform 180ms ease;
}

.gallery-lightbox__image {
    display: block;
    max-width: min(calc(100vw - 6rem), 1280px);
    max-height: calc(100vh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox__caption {
    max-width: min(calc(100vw - 6rem), 1280px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    outline: none;
}

.gallery-lightbox__close {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.4rem;
    line-height: 1;
}

.gallery-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 0;
    font-size: 1.75rem;
    line-height: 1;
    z-index: 260;
    pointer-events: auto;
}

.gallery-lightbox__nav--prev {
    left: clamp(1rem, 3vw, 2rem);
}

.gallery-lightbox__nav--next {
    right: clamp(1rem, 3vw, 2rem);
}

.gallery-lightbox__download {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 10rem;
    position: relative;
    z-index: 9;
    pointer-events: auto;
}

.gallery-lightbox.is-loading .gallery-lightbox__download {
    opacity: 0.9;
}

.gallery-lightbox__download.is-loading {
    cursor: progress;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.gallery-lightbox__download .gallery-builder__spinner {
    width: 0.95rem;
    height: 0.95rem;
}

.gallery-lightbox.is-swiping .gallery-lightbox__figure {
    transition: none;
}

.event-results {
    display: grid;
    gap: 0.75rem;
    padding: 0.4rem 0 0;
}

.event-page__head {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.event-page__copy h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.event-page__copy p {
    display: flex;
    gap: 0.5rem 0.9rem;
    flex-wrap: wrap;
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.gallery-detail__field--gallery {
    min-width: 11rem;
}

.event-results__head h3 {
    margin: 0;
    color: var(--blue);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-results__head p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.event-results__table {
    display: none;
}

.event-results__row {
    display: grid;
    grid-template-columns: 4rem 4rem minmax(0, 1fr) 5rem;
    gap: 0.6rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-top: 1px solid rgba(15, 35, 68, 0.08);
    font-size: 0.86rem;
}

.event-results__row--head {
    border-top: 0;
    background: linear-gradient(180deg, #f4f7fb, #edf2f8);
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-results__sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.event-results__sort-button.is-active::after {
    content: "▲";
    font-size: 0.65em;
}

.event-results__sort-button[data-sort-direction="desc"].is-active::after {
    content: "▼";
}

.event-results__name a {
    color: var(--red);
    font-weight: 900;
    text-decoration: none;
}

.event-results__name a:hover,
.event-results__name a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.event-results__list {
    display: none;
}

.event-results__item {
    display: none;
}

.event-results__item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.event-results__item-head strong {
    color: var(--blue);
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.event-results__item-head span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-results__meta {
    display: none;
}

.event-results__meta strong {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-results__place {
    display: none;
}

.event-results-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 35, 68, 0.05);
}

.gallery-pagination-bar--detail-top {
    margin-bottom: 0.2rem;
}

.gallery-pagination-bar--detail-bottom {
    margin-top: 0.35rem;
}

.gallery-pagination--compact {
    justify-content: flex-end;
    min-width: 3rem;
}

.gallery-pagination--compact .gallery-pagination__link {
    min-width: 2.05rem;
}

.gallery-detail__field--per-page select {
    min-width: 5.5rem;
}

.admin-worker-feed-wrap {
    margin-top: 1rem;
}

.admin-worker-feed {
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 35, 68, 0.05);
}

.admin-worker-feed__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--blue);
}

.admin-worker-feed__head strong {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-worker-feed__head span {
    color: var(--muted);
    font-size: 0.74rem;
}

.admin-worker-feed__list {
    display: grid;
    gap: 0.45rem;
}

.admin-worker-feed__item {
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.admin-worker-feed__item--ready {
    border-left: 4px solid #2f7b48;
}

.admin-worker-feed__item--processing {
    border-left: 4px solid var(--blue);
}

.admin-worker-feed__item--failed {
    border-left: 4px solid var(--red);
}

.admin-worker-feed__item--pending {
    border-left: 4px solid #d59d15;
}

.admin-worker-feed__item-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-worker-feed__item-row strong {
    color: var(--ink);
    font-size: 0.84rem;
}

.admin-worker-feed__item-row span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-worker-feed__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.admin-worker-feed__error {
    margin: 0.35rem 0 0;
    color: var(--red);
    font-size: 0.74rem;
}

.event-results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.event-results-table th,
.event-results-table td {
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid rgba(15, 35, 68, 0.08);
    text-align: left;
    font-size: 0.84rem;
}

.event-results-table__head {
    background: linear-gradient(180deg, #f4f7fb, #edf2f8);
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-results-table__sort {
    color: inherit;
    text-decoration: none;
}

.event-results-table__sort.is-active {
    color: var(--red);
}

.event-results-table__name {
    color: var(--blue);
    font-weight: 900;
}

.event-results-table__row[data-event-result-profile-url] {
    cursor: pointer;
}

.event-results-table__row[data-event-result-profile-url]:hover,
.event-results-table__row[data-event-result-profile-url]:focus-visible {
    background: rgba(15, 57, 116, 0.04);
    outline: none;
}

.event-profile {
    display: grid;
    gap: 1rem;
}

.event-profile__hero,
.event-profile__results-card {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 35, 68, 0.05);
}

.event-profile__eyebrow {
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-profile__hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.event-profile__meta,
.event-profile__event {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.event-profile__meta span + span::before,
.event-profile__event span + span::before {
    content: "\2022";
    margin-right: 0.75rem;
    color: rgba(15, 35, 68, 0.4);
}

.event-profile__results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.event-profile__results-head strong {
    color: var(--blue);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-profile__results-head span {
    color: var(--muted);
    font-size: 0.78rem;
}

.event-profile__results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.event-profile__results-grid div {
    display: grid;
    gap: 0.22rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid rgba(15, 35, 68, 0.1);
    background: rgba(15, 57, 116, 0.03);
}

.event-profile__results-grid span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.event-profile__results-grid strong {
    color: var(--ink);
    font-size: 1rem;
}

.event-profile__photos {
    display: grid;
    gap: 0.65rem;
}

.event-sponsors {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 35, 68, 0.12);
    width: 100%;
}

.event-sponsors .section__head {
    margin-bottom: 0;
}

.event-sponsors--compact,
.event-sponsors--standard {
    width: 100%;
    margin-inline: auto;
}

.event-subgalleries {
    display: grid;
    gap: 0.7rem;
}

.event-subgalleries--first {
    margin-top: 0.35rem;
}

.event-subgalleries__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.event-subgallery {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: linear-gradient(180deg, #fff, #f4f7fb);
    box-shadow: 0 8px 20px rgba(15, 35, 68, 0.05);
}

.event-subgallery__controls {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

.event-subgallery__controls form {
    margin: 0;
}

.event-subgallery__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0.22rem 0.5rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: #fff;
    color: var(--ink);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.event-subgallery__control:hover,
.event-subgallery__control:focus-visible {
    border-color: rgba(15, 57, 116, 0.38);
    outline: none;
}

.event-subgallery__image {
    display: block;
    aspect-ratio: 16 / 9;
    background: #d9e1ec;
}

.event-subgallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-subgallery__body {
    display: grid;
    gap: 0.25rem;
    padding: 0.7rem 0.8rem 0.85rem;
}

.event-subgallery__body strong {
    color: var(--blue);
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-subgallery__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.event-sponsors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 12rem));
    justify-content: center;
    justify-items: center;
    gap: 0.5rem;
    width: 100%;
}

.event-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 12rem;
    min-width: 10rem;
    min-height: 0;
    padding: 0.2rem 0.25rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #fff;
    color: var(--blue);
    box-shadow: 0 6px 14px rgba(15, 35, 68, 0.05);
    overflow: visible;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.event-sponsor:hover,
a.event-sponsor:focus-visible {
    border-color: rgba(15, 57, 116, 0.34);
    box-shadow: 0 16px 28px rgba(15, 35, 68, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.event-sponsor strong {
    max-width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.event-sponsor__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0;
}

.event-sponsor__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.event-sponsor--red {
    color: var(--red);
}

.event-sponsor--gold {
    color: #b28a12;
}

.dashboard-empty {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px dashed rgba(15, 35, 68, 0.22);
    background: linear-gradient(180deg, #fff, #f5f8fc);
}

.dashboard-empty strong,
.upload-side__panel h2 {
    color: var(--blue);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-note {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.dashboard-event-grid {
    display: grid;
    gap: 0.9rem;
}

.dashboard-event-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-event-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f7f8fb;
}

.dashboard-event-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #fff;
    padding: 0.75rem;
}

.dashboard-event-card__body {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
}

.dashboard-event-card__top {
    display: grid;
    gap: 0.6rem;
}

.dashboard-event-card__copy h3 {
    margin: 0;
    color: var(--blue);
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-event-card__copy p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.dashboard-event-card__stats {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dashboard-event-card__stats span {
    padding: 0.22rem 0.45rem;
    border: 1px solid var(--line);
    background: #f6f8fb;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-event-card__actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dashboard-event-card__actions form {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.dashboard-event-card__actions .button {
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
}

.dashboard-event-list .user-card__actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dashboard-event-list .dashboard-event-list__row {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.dashboard-event-list .admin-danger-zone {
    margin-top: 0.4rem;
}

@media (min-width: 760px) {
    .dashboard-event-card {
        grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    }

    .dashboard-event-card__image {
        min-height: 100%;
        aspect-ratio: auto;
        border-right: 1px solid var(--line);
    }

    .dashboard-event-card__body {
        padding: 0.9rem;
    }
}

.upload-hero {
    display: grid;
    gap: 1rem;
    align-items: start;
    grid-template-columns: 1fr;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.upload-hero__copy h1 {
    margin: 0.05rem 0 0.3rem;
    color: var(--blue);
    font-size: clamp(2.1rem, 4.4vw, 4.2rem);
    line-height: 0.94;
    text-transform: uppercase;
}

.upload-hero__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.upload-hero__image {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f8fafc;
}

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

.upload-layout {
    display: grid;
    gap: 1rem;
}

.upload-board {
    display: grid;
    gap: 0.85rem;
}

.upload-pending-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: #fff;
    color: var(--ink);
    font-size: 0.82rem;
}

.upload-pending-summary strong,
.upload-pending-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(15, 57, 116, 0.13);
    background: rgba(15, 57, 116, 0.05);
    color: var(--blue);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upload-pending-summary strong {
    border-color: rgba(214, 20, 24, 0.22);
    background: rgba(214, 20, 24, 0.08);
    color: var(--red);
}

.upload-dropzone {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
    padding: 1rem;
    border: 1.5px dashed rgba(15, 35, 68, 0.24);
    background: #fff;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.upload-dropzone.is-dragover {
    border-color: rgba(212, 20, 24, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(15, 35, 68, 0.08);
}

.upload-dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    background: #f8fafc;
}

.upload-dropzone__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: var(--blue);
}

.upload-dropzone h3 {
    margin: 0;
    color: var(--blue);
    font-size: 1.05rem;
    text-transform: uppercase;
}

.upload-dropzone p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.upload-dropzone__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.upload-options {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    background: #fff;
}

.upload-options--target {
    gap: 0.55rem;
}

.upload-options--hidden {
    display: none;
}

.upload-target {
    margin: 0;
}

.upload-target select {
    width: 100%;
}

.upload-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.upload-options__note {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.upload-status {
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: linear-gradient(180deg, #fff, #f7f9fc);
}

.upload-status__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.upload-status__top strong {
    color: var(--blue);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.upload-status__top span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.upload-status__bar {
    overflow: hidden;
    height: 0.4rem;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: rgba(15, 35, 68, 0.06);
}

.upload-status__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--red), var(--gold));
    transition: width 180ms ease;
}

.upload-status__message {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.upload-status__errors {
    margin: 0;
    padding-left: 1rem;
    color: var(--red);
    font-size: 0.82rem;
    line-height: 1.4;
}

.upload-preview {
    display: grid;
    gap: 0.75rem;
}

.upload-preview__empty {
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.88rem;
}

.upload-preview__group {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.upload-preview__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.upload-preview__group-head strong {
    color: var(--blue);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upload-preview__group-head span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.upload-preview__group-list {
    display: grid;
}

.upload-preview__item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-top: 1px solid rgba(15, 35, 68, 0.06);
    color: var(--ink);
    font-size: 0.82rem;
}

.upload-preview__item-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.upload-preview__item-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-preview__item-copy span {
    color: var(--muted);
    font-size: 0.72rem;
}

.upload-preview__item-actions {
    flex: 0 0 auto;
}

.upload-preview__item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    min-height: 1.7rem;
    padding: 0;
    border: 1px solid rgba(212, 20, 24, 0.25);
    background: rgba(212, 20, 24, 0.06);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.upload-preview__item-remove:hover,
.upload-preview__item-remove:focus-visible {
    border-color: var(--red);
    background: rgba(212, 20, 24, 0.12);
    outline: none;
}

.upload-preview__item.is-uploading {
    background: rgba(15, 57, 116, 0.05);
}

body.is-uploading .site-shell {
    pointer-events: none;
    user-select: none;
}

body.is-uploading .upload-modal {
    pointer-events: auto;
}

.upload-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(11, 28, 53, 0.72);
    backdrop-filter: blur(6px);
}

.upload-modal__panel {
    position: relative;
    width: min(34rem, 100%);
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.upload-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: #fff;
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.upload-modal__close:hover,
.upload-modal__close:focus-visible {
    border-color: var(--red);
    color: var(--red);
    outline: none;
}

.upload-modal__title {
    margin-bottom: 0.35rem;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upload-modal__message {
    margin-bottom: 0.9rem;
    color: var(--text);
    font-size: 0.95rem;
}

.upload-status--modal {
    margin: 0;
}

.upload-board__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.upload-side {
    display: grid;
    gap: 0.9rem;
}

.upload-side__panel {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #fff;
}

.upload-side__panel ol,
.upload-side__panel ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.upload-subgallery-list {
    display: grid;
    gap: 0.6rem;
}

.upload-subgallery-card {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem;
    border: 1px solid var(--line);
    background: #fff;
}

.upload-subgallery-card img {
    display: block;
    width: 5rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.upload-subgallery-card strong {
    display: block;
    color: var(--blue);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.upload-subgallery-card p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.section__head--split {
    align-items: center;
}

.gallery-toolbar__create.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.2);
}

.gallery-overview__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0.95rem 1rem 1rem;
}

.gallery-tile {
    overflow: hidden;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 35, 68, 0.08);
}

.gallery-tile__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #d9e1ec;
}

.gallery-tile__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-tile__badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.28rem 0.55rem;
    background: var(--red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-tile__body {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 0.9rem 0.95rem;
}

.gallery-tile__brand {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.gallery-tile__logo {
    display: block;
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    object-position: center;
}

.gallery-tile__brand-copy {
    display: grid;
    gap: 0.1rem;
}

.gallery-tile__body h3 {
    margin: 0;
    color: var(--blue);
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gallery-tile__brand-copy h3 {
    font-size: 0.92rem;
    line-height: 1.15;
}

.gallery-tile__location {
    margin: 0;
    color: var(--ink);
    font-size: 0.84rem;
}

.gallery-tile__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.gallery-tile__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gallery-tile__views {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-tile__footer a {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.gallery-builder input.is-bad {
    border-color: rgba(212, 20, 24, 0.5);
    background: rgba(212, 20, 24, 0.04);
}

.gallery-builder input.is-ok {
    border-color: rgba(31, 109, 55, 0.35);
    background: rgba(31, 109, 55, 0.04);
}

.gallery-pagination-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-top: 1px solid rgba(15, 35, 68, 0.14);
    background: linear-gradient(180deg, #fafbfe, #f2f5fa);
}

.event-page .gallery-pagination-bar--detail {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.event-page .gallery-pagination-bar--detail .gallery-pagination {
    width: auto;
    margin-inline: auto;
    justify-content: center;
}

.gallery-pagination-bar__per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-pagination-bar__per-page select {
    min-height: 2.5rem;
    min-width: 4rem;
}

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.gallery-pagination__link,
.gallery-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: #fff;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-pagination__link.is-active {
    background: var(--blue);
    color: #fff;
}

.gallery-pagination__ellipsis {
    border-color: transparent;
    background: transparent;
    min-width: 1.8rem;
}

.gallery-pagination-bar__total {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.section--photos {
    padding-bottom: 0.2rem;
}

.photo-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.9rem;
}

.photo-tile {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(135deg, rgba(15, 35, 68, 0.08), rgba(212, 20, 24, 0.08)),
        linear-gradient(180deg, #eff4fa, #dfe7f2);
    background-size: cover;
    background-position: center center;
}

.photo-tile--1 { background-position: 20% 16%; }
.photo-tile--2 { background-position: 40% 18%; }
.photo-tile--3 { background-position: 58% 22%; }
.photo-tile--4 { background-position: 70% 18%; }
.photo-tile--5 { background-position: 33% 38%; }
.photo-tile--6 { background-position: 62% 34%; }

.section--popular {
    padding-bottom: 0.2rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.9rem;
}

.popular-card {
    overflow: hidden;
    border: 1px solid rgba(15, 35, 68, 0.14);
    background: #fff;
}

.popular-card__image {
    height: 9rem;
    background:
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.26), transparent 26%),
        linear-gradient(135deg, rgba(15, 35, 68, 0.12), rgba(243, 194, 70, 0.12)),
        linear-gradient(180deg, #eef4fb, #dce6f2);
    background-size: cover;
    background-position: center center;
}

.popular-card__image--1 { background-position: 46% 16%; }
.popular-card__image--2 { background-position: 50% 28%; }
.popular-card__image--3 { background-position: 55% 40%; }
.popular-card__image--4 { background-position: 60% 20%; }
.popular-card__image--5 { background-position: 38% 24%; }
.popular-card__image--6 { background-position: 68% 30%; }

.popular-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
}

.popular-card__body h3 {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.popular-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem clamp(0.85rem, 1.8vw, 1.25rem) 0.45rem;
    border-top: 3px solid var(--red);
    background: linear-gradient(180deg, #11386f, #0b2448);
    color: #fff;
    font-size: 0.72rem;
    text-align: center;
}

.footer::before {
    display: none;
}

.footer__row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
    flex-wrap: wrap;
}

.footer__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
    min-width: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer__nav a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.footer__nav a + a::before {
    content: "|";
    margin: 0 0.38rem;
    color: rgba(255, 255, 255, 0.36);
    font-weight: 400;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
    color: #fff;
    outline: none;
}

.footer__meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    font-size: 0.68rem;
}

.footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.footer__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.footer__icon-link svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
}

.footer__icon-link:hover,
.footer__icon-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.6rem;
    width: min(100%, 24rem);
    z-index: 40;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(15, 35, 68, 0.18);
    background: #fff;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.toast--success {
    border-left: 0.35rem solid #1f7a3f;
}

.toast--error {
    border-left: 0.35rem solid var(--red);
}

.toast__message {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast__close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: linear-gradient(180deg, #ffffff, #eef2f7);
    color: var(--blue);
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.toast__close:hover,
.toast__close:focus-visible {
    background: linear-gradient(180deg, #ffffff, #e5ecf6);
    color: var(--red);
    outline: none;
}

.contact-notice {
    margin-bottom: 0.85rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(15, 35, 68, 0.16);
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.45;
}

.contact-notice--success {
    border-left: 0.35rem solid #1f7a3f;
}

.contact-notice--error {
    border-left: 0.35rem solid var(--red);
}

.auth-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 20;
}

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

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(214, 20, 24, 0.14), transparent 24%),
        rgba(10, 16, 28, 0.76);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.auth-modal__panel {
    position: relative;
    width: min(100%, 28rem);
    max-height: min(92vh, 44rem);
    overflow: auto;
    padding: 0;
    border: 1px solid rgba(15, 35, 68, 0.22);
    border-radius: 0.55rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 238, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.auth-modal__panel::before {
    content: "";
    display: block;
    height: 0.6rem;
    background: linear-gradient(90deg, var(--blue), #163d78 55%, var(--red));
}

.auth-modal__panel > *:not(.auth-modal__close):not(.auth-modal__tabs) {
    margin-left: 1rem;
    margin-right: 1rem;
}

.auth-modal__tabs,
.auth-modal__alert,
.auth-modal__panes {
    margin-left: 1rem;
    margin-right: 1rem;
}

.auth-modal__tabs {
    margin-top: 1rem;
}

.auth-modal__panes {
    margin-bottom: 1rem;
}

.auth-modal__close {
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(15, 35, 68, 0.08);
    color: var(--blue);
    border: 1px solid rgba(15, 35, 68, 0.14);
}

.auth-modal__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.auth-modal__tab {
    border: 1px solid rgba(15, 35, 68, 0.14);
    border-radius: 0.35rem;
    padding: 0.82rem 0.95rem;
    background: linear-gradient(180deg, #fff, #f3eee7);
    color: rgba(15, 35, 68, 0.84);
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-modal__tab.is-active {
    background: linear-gradient(180deg, var(--red), #b60e12);
    color: #fff;
    box-shadow: var(--shadow);
}

.auth-modal__alert {
    margin-bottom: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.45;
    border: 1px solid rgba(15, 35, 68, 0.12);
    background: rgba(255, 255, 255, 0.76);
}

.auth-modal__alert--error {
    border-color: rgba(214, 20, 24, 0.2);
    background: rgba(214, 20, 24, 0.08);
}

.auth-modal__alert--success {
    border-color: rgba(42, 145, 73, 0.22);
    background: rgba(42, 145, 73, 0.08);
}

.auth-modal__panes {
    display: grid;
}

.auth-form {
    display: none;
    gap: 0.8rem;
}

.auth-form.is-active {
    display: grid;
}

.auth-modal .field {
    color: rgba(15, 35, 68, 0.84);
}

.auth-modal .field span {
    color: rgba(15, 35, 68, 0.84);
}

.auth-modal .field input {
    background: #fff;
    color: var(--ink);
    border-color: rgba(15, 35, 68, 0.18);
}

.auth-modal .field textarea {
    min-height: 5rem;
    resize: vertical;
    background: #fff;
    color: var(--ink);
    border-color: rgba(15, 35, 68, 0.18);
}

.auth-social {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.auth-social__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(15, 35, 68, 0.18);
    border-radius: 0.4rem;
    background: linear-gradient(180deg, #fff, #f4efe7);
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 35, 68, 0.06);
}

.auth-social__button:visited {
    color: var(--ink);
}

.auth-social__button img {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(15, 35, 68, 0.62);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 35, 68, 0.14);
}

.auth-divider span {
    flex: 0 0 auto;
}

.auth-captcha {
    padding: 0.8rem;
    border: 1px dashed rgba(15, 35, 68, 0.2);
    border-radius: 0.4rem;
    background: rgba(15, 57, 116, 0.04);
}

.contact-form {
    display: grid;
    gap: 0.9rem;
    max-width: 42rem;
}

.field--check {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.65rem;
}

.field--check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--blue);
}

.auth-form__submit {
    margin-top: 0.35rem;
    border: 0;
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, var(--gold), #d48f13);
    color: #111;
    font: inherit;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

@media (min-width: 980px) {
    .upload-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
        align-items: start;
    }

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

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

    .quick-search {
        grid-column: 1 / -1;
    }

    .feature-bar,
    .gallery-grid,
    .photo-row,
    .popular-grid,
    .gallery-builder__future {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .top-strip {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .top-strip::before {
        margin-right: 0;
    }

    .top-strip__mark,
    .footer__mark {
        width: clamp(3rem, 10vw, 4.3rem);
    }

    .top-strip__left,
    .top-strip__right {
        justify-content: center;
    }

    .top-strip__right {
        width: 100%;
    }

    .top-strip__contact,
    .top-strip__auth,
    .account-menu--top .account-menu__toggle {
        width: 100%;
        justify-content: center;
    }

    .masthead {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "toggle"
            "nav";
        align-items: center;
        gap: 0.5rem;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .masthead__brand {
        grid-area: brand;
        justify-self: center;
        width: min(70vw, 18rem);
    }

    .masthead__toggle {
        grid-area: toggle;
        display: inline-flex;
        width: 100%;
        margin-left: 0;
        justify-self: stretch;
    }

    .masthead__nav {
        grid-area: nav;
        display: none;
        width: 100%;
        padding: 0.15rem 0 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
        gap: 0.45rem;
        overflow: visible;
        text-align: center;
    }

    .masthead.is-open .masthead__nav {
        display: flex;
    }

    .masthead__nav a,
    .masthead__nav button,
    .masthead__form button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.9rem 1rem;
        letter-spacing: 0.1em;
    }

    .masthead__nav a.is-active {
        box-shadow: none;
    }

    .masthead__form {
        width: 100%;
    }

    .masthead__form button {
        width: 100%;
    }

    .hero-feature__stage {
        min-height: 24rem;
    }

    .admin-search__actions,
    .user-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search__actions .button,
    .user-card__actions .button {
        width: 100%;
    }

    .account-menu {
        width: 100%;
    }

    .account-menu__toggle {
        width: 100%;
        text-align: center;
    }

    .account-menu__panel {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 0.4rem;
    }

    .masthead__nav {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .footer {
        padding-top: 0.75rem;
        padding-bottom: 0.7rem;
    }

    .footer__row {
        justify-content: center;
        gap: 0.55rem 0.8rem;
    }

    .footer__nav {
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .footer__meta {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer__copyright {
        white-space: normal;
    }

    .content {
        padding-inline: 0.75rem;
    }

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

    .admin-search__actions {
        justify-content: stretch;
    }

    .user-card__summary {
        align-items: center;
        flex-wrap: wrap;
        padding: 0.7rem 0.8rem;
    }

    .user-card__row--primary,
    .user-card__row--secondary {
        grid-template-columns: 1fr;
    }

    .user-card__grid .field,
    .user-card__grid .button,
    .user-card__grid .user-card__save-note--protected {
        width: 100%;
    }

    .user-card__panel {
        padding: 0.5rem;
    }

    .user-card__credits-row {
        gap: 0.25rem;
    }

    .user-card__credits small {
        line-height: 1.25;
    }

    .user-card__check {
        justify-self: start;
    }

    .user-card__summary-action {
        align-self: center;
        margin-left: auto;
        width: 2.05rem;
        height: 2.05rem;
    }

    .gallery-toolbar__search,
    .gallery-overview__grid,
    .gallery-pagination-bar {
        grid-template-columns: 1fr;
    }

    .gallery-toolbar {
        grid-template-columns: 1fr;
    }

    .gallery-toolbar__right {
        display: grid;
        gap: 0.45rem;
        justify-self: stretch;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .gallery-toolbar__filters {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        align-items: stretch;
        width: 100%;
    }

    .gallery-toolbar__filters .field {
        width: 100%;
        flex: 1 1 auto;
    }

    .gallery-toolbar__search {
        grid-template-columns: 1fr;
        max-width: none;
        justify-self: stretch;
    }

    .gallery-toolbar__search .button {
        width: 100%;
        height: auto;
    }

    .gallery-toolbar__search .field,
    .gallery-toolbar__filters .field {
        max-width: none;
    }

    .gallery-toolbar__create {
        width: 100%;
        justify-content: center;
    }

    .section__head--split {
        align-items: flex-start;
        flex-direction: column;
    }

    .section__head--split .gallery-toolbar__create {
        width: 100%;
    }

    .section__head--split .gallery-builder__header-cancel {
        width: 100%;
    }

    .gallery-detail__toolbar {
        align-items: stretch;
    }

    .gallery-detail__search,
    .gallery-detail__field--per-page {
        width: 100%;
        max-width: none;
    }

    .gallery-detail__search {
        grid-template-columns: 1fr;
    }

    .gallery-detail__search .button {
        width: 100%;
        height: auto;
    }

    .gallery-detail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .gallery-thumb {
        aspect-ratio: 1 / 1;
        grid-column: auto;
    }

    .gallery-thumb img {
        height: 100%;
        object-fit: cover;
        object-position: center 18%;
    }

    .gallery-thumb--portrait img {
        object-position: center 12%;
    }

    .dashboard-event-card__actions,
    .upload-dropzone__actions,
    .upload-board__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-event-card__actions .button,
    .upload-dropzone__actions .button,
    .upload-board__actions .button {
        width: 100%;
        justify-content: center;
    }

    .dashboard-event-card__stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-subgallery-card {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .event-hero__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .event-hero__media img {
        object-position: center 30%;
    }

    .event-hero__overlay {
        gap: 0.35rem;
        padding: 0.65rem;
    }

    .event-hero__action {
        flex: 0 1 auto;
        justify-content: center;
    }

    .event-hero__logo {
        max-width: 5rem;
        min-height: 4.2rem;
        padding: 0.28rem;
        border-width: 3px;
        font-size: 0.5rem;
    }

    .event-hero__logo-image {
        max-width: min(4.1rem, 30vw);
        max-height: 3.4rem;
    }

    .event-hero__content {
        width: 100%;
        gap: 0.65rem;
    }

    .event-hero__copy h1 {
        font-size: clamp(1.1rem, 5vw, 1.45rem);
        line-height: 1;
    }

    .event-hero__summary {
        font-size: 0.86rem;
    }

    .event-tabs__nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .event-tabs__button {
        width: 100%;
        text-align: center;
        padding-inline: 0.65rem;
        font-size: 0.7rem;
    }

    .gallery-detail__toolbar {
        gap: 0.55rem;
    }

    .gallery-detail__search,
    .gallery-detail__field--per-page {
        width: 100%;
    }

    .gallery-detail__search {
        grid-template-columns: 1fr;
    }

    .gallery-detail__search .button {
        width: 100%;
        height: 2.3rem;
    }

    .event-results__row {
        grid-template-columns: 3rem 3.5rem minmax(0, 1fr) 4.2rem;
        gap: 0.35rem;
        padding: 0.55rem 0.65rem;
        font-size: 0.76rem;
    }

    .event-results__row--head {
        font-size: 0.62rem;
    }

    .event-results__item-head {
        align-items: flex-start;
    }

    .event-sponsors__grid {
        grid-template-columns: repeat(2, minmax(10rem, 1fr));
        gap: 0.4rem;
    }

    .event-sponsor {
        max-width: 100%;
        min-width: 0;
    }

    .event-subgalleries__grid {
        grid-template-columns: 1fr;
    }

    .event-subgallery__controls {
        left: 0.45rem;
        right: auto;
        flex-wrap: wrap;
        max-width: calc(100% - 0.9rem);
    }

    .gallery-builder__sponsor-import-preview {
        grid-template-columns: 1fr;
    }

    .event-crumbs {
        font-size: 0.62rem;
        gap: 0.35rem;
    }

    .event-subgallery-head h2 {
        font-size: 0.92rem;
    }

    .gallery-pagination-bar {
        justify-items: stretch;
    }

    .gallery-pagination-bar__per-page,
    .gallery-pagination,
    .gallery-pagination-bar__total {
        justify-content: center;
        text-align: center;
    }

    .gallery-pagination-bar__per-page {
        flex-wrap: wrap;
    }

    .gallery-pagination {
        gap: 0.25rem;
    }

    .gallery-pagination__link,
    .gallery-pagination__ellipsis {
        min-width: 2rem;
        min-height: 2rem;
        padding: 0.25rem 0.4rem;
        font-size: 0.72rem;
    }

    .gallery-pagination__ellipsis {
        min-width: 1.4rem;
    }

    .footer__row {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 0.55rem;
    }

    .footer__meta {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer__nav {
        row-gap: 0.35rem;
        justify-content: center;
        white-space: normal;
    }

    .footer__nav a + a::before {
        margin: 0 0.45rem;
    }

    .footer__copyright {
        white-space: normal;
    }

    .user-card__identity strong {
        font-size: 0.92rem;
    }

    .user-card__identity span {
        font-size: 0.8rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .intro {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .hero-feature__stage {
        min-height: 19rem;
        aspect-ratio: auto;
    }

    .hero-feature__overlay {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        top: auto;
        bottom: 0.75rem;
        transform: none;
        padding: 0.75rem 0.85rem;
    }

    .hero-feature__overlay h1 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .hero-feature__overlay .hero__lede {
        max-width: 18rem;
    }

    .event-breadcrumbs {
        margin-bottom: 0.45rem;
        font-size: 0.66rem;
    }

    .upload-status__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-status__top span {
        white-space: normal;
    }

    .upload-hero__copy {
        order: 1;
    }

    .upload-hero__image {
        order: 2;
    }

    .dashboard-event-list .dashboard-event-list__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-article__layout {
        grid-template-columns: 1fr;
    }

    .about-article__inline {
        float: none;
        margin: 0 auto 0.75rem;
    }

    .about-detail-grid {
        grid-template-columns: 1fr;
    }

    .intro__copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .quick-search {
        order: 2;
    }

    .feature-bar,
    .gallery-grid,
    .photo-row,
    .popular-grid,
    .gallery-builder__future,
    .gallery-builder__grid,
    .gallery-builder__sponsor-row,
    .gallery-builder__previews {
        grid-template-columns: 1fr;
    }

    .gallery-builder__title,
    .gallery-builder__slug {
        grid-column: auto;
    }

    .gallery-builder__slug-row {
        grid-template-columns: 1fr;
    }

    .gallery-builder__slug-prefix,
    .gallery-builder__slug-status {
        width: 100%;
        justify-content: center;
    }

    .gallery-builder__slug-help {
        width: 1.5rem;
        justify-self: start;
    }

    .gallery-builder__file-picker {
        grid-template-columns: 1fr;
    }

    .gallery-builder__file-trigger {
        width: 100%;
    }

    .gallery-builder__sponsor-preview {
        width: 100%;
        min-height: 7rem;
    }

    .gallery-builder__watermark-grid,
    .gallery-builder__watermark-preview {
        grid-template-columns: 1fr;
    }

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

    .gallery-card__brand,
    .gallery-tile__brand {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .gallery-card__brand-copy,
    .gallery-tile__brand-copy {
        justify-items: center;
    }

    .save-modal__done {
        width: 100%;
    }

    .gallery-builder__actions .button {
        width: 100%;
    }

    .results-preview__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-card__grid {
        grid-template-columns: 1fr;
    }

    .feature:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 35, 68, 0.12);
    }

}

@media (prefers-reduced-motion: reduce) {
    .auth-modal {
        transition: none;
    }

    .gallery-builder__spinner::before {
        animation: none;
    }
}

@media (max-width: 767px) {
    .event-tabs__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.1rem;
    }

    .event-tabs__button {
        flex: 0 0 auto;
        padding-inline: 0.7rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .gallery-lightbox {
        padding: 0.5rem;
    }

    .gallery-lightbox__panel {
        padding: 3.9rem 0.45rem 0.9rem;
        gap: 0.75rem;
    }

    .gallery-lightbox__toolbar {
        justify-content: space-between;
        top: 0.55rem;
        left: 0.55rem;
        right: 0.55rem;
    }

    .gallery-lightbox__stage {
        padding-inline: 0.15rem;
    }

    .gallery-lightbox__image {
        max-width: calc(100vw - 4.8rem);
        max-height: calc(100vh - 6.5rem);
    }

    .gallery-lightbox__caption {
        max-width: calc(100vw - 1.4rem);
        font-size: 0.74rem;
    }

    .gallery-lightbox__nav {
        width: 3.1rem;
        height: 3.1rem;
        font-size: 1.55rem;
        background: rgba(5, 12, 24, 0.58);
        border-color: rgba(255, 255, 255, 0.26);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    }

    .gallery-lightbox__nav--prev {
        left: 0.85rem;
    }

    .gallery-lightbox__nav--next {
        right: 0.85rem;
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
