:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-soft: #f9fafb;

    --text: #17191c;
    --text-soft: #667085;

    --border: #e3e6ea;

    --primary: #1f2937;
    --primary-hover: #111827;

    --radius: 16px;
    --radius-small: 10px;

    --shadow:
        0 1px 2px rgba(0, 0, 0, .04),
        0 6px 20px rgba(0, 0, 0, .04);

    --page-width: 1200px;
    --content-width: 900px;
    --article-width: 800px;
}


/* =========================================================
   BASIS
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

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

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


a {
    color: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;

    background: rgba(255, 255, 255, .94);

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

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.header-inner {
    width: 100%;
    max-width: var(--page-width);

    min-height: 64px;

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

    padding:
        0
        max(24px, env(safe-area-inset-right))
        0
        max(24px, env(safe-area-inset-left));

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


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

    gap: 10px;

    font-size: 1.1rem;
    font-weight: 750;

    text-decoration: none;
}


.brand-icon {
    font-size: .8rem;
}


.main-nav {
    display: flex;
    align-items: center;

    gap: 6px;
}


.main-nav a {
    padding: 8px 12px;

    border-radius: 8px;

    font-size: .92rem;
    font-weight: 600;

    text-decoration: none;
}


.main-nav a:hover {
    background: var(--surface-soft);
}


/* =========================================================
   SEITENCONTAINER
   ========================================================= */

.page {
    width: 100%;
    max-width: var(--page-width);

    min-height: calc(100vh - 130px);

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

    padding:
        40px
        max(24px, env(safe-area-inset-right))
        70px
        max(24px, env(safe-area-inset-left));
}


/* =========================================================
   HERO / STARTSEITE
   ========================================================= */

.hero {
    width: 100%;
    max-width: 800px;

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

    padding: 45px 0 65px;

    text-align: center;
}


.hero h1,
.event-hero h1,
.form-page h1 {
    margin: 5px 0 10px;

    font-size: clamp(2rem, 6vw, 3.4rem);

    line-height: 1.08;

    letter-spacing: -.04em;
}


.eyebrow {
    color: var(--text-soft);

    font-size: .78rem;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.lead {
    width: 100%;
    max-width: 650px;

    margin: 0;

    color: var(--text-soft);

    font-size: clamp(1rem, 2vw, 1.15rem);
}


.hero .lead {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   EVENT-SEKTIONEN
   ========================================================= */

.event-section {
    width: 100%;
    max-width: var(--content-width);

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

    margin-bottom: 75px;
}


.section-header {
    width: 100%;

    margin-bottom: 30px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}


.section-header h2 {
    margin: 4px 0 0;

    font-size: clamp(1.5rem, 4vw, 2rem);
}


.subheading {
    margin: 0 0 15px;

    color: var(--text-soft);

    font-size: .82rem;
    font-weight: 650;

    text-transform: uppercase;

    letter-spacing: .07em;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    min-height: 44px;

    padding: 10px 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font: inherit;
    font-weight: 650;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}


.button-primary {
    background: var(--primary);
    color: #ffffff;
}


.button-primary:hover {
    background: var(--primary-hover);
}


.button-primary:active {
    transform: translateY(1px);
}


.button-secondary {
    background: var(--surface);

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


.button-secondary:hover {
    background: var(--surface-soft);
}


/* =========================================================
   EVENT-GRID
   ========================================================= */

.event-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================================
   EVENT-KARTE
   ========================================================= */

.event-card {
    width: 100%;
    min-height: 105px;

    padding: 18px;

    display: flex;
    align-items: center;

    gap: 18px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    text-decoration: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}


.event-card:hover {
    transform: translateY(-2px);

    border-color: #d5d9df;

    box-shadow:
        0 2px 4px rgba(0, 0, 0, .04),
        0 10px 25px rgba(0, 0, 0, .07);
}


.event-card-date {
    width: 64px;
    min-width: 64px;

    height: 68px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--surface-soft);

    border: 1px solid #edf0f2;
    border-radius: 12px;
}


.event-card-date .day {
    font-size: 1.55rem;
    font-weight: 750;

    line-height: 1;
}


.event-card-date .month {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: .72rem;
}


.event-card-content {
    min-width: 0;

    flex: 1;
}


.event-card-content h3 {
    margin: 0 0 6px;

    font-size: 1.08rem;

    overflow-wrap: anywhere;
}


.event-location {
    color: var(--text-soft);

    font-size: .9rem;

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


.event-arrow {
    color: var(--text-soft);

    font-size: 1.8rem;

    line-height: 1;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    width: 100%;
    min-height: 160px;

    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--surface);

    border: 1px dashed var(--border);
    border-radius: var(--radius);

    text-align: center;
}


.empty-state span {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: .9rem;
}


.empty-icon {
    margin-bottom: 8px;

    font-size: 1.8rem;
}


/* =========================================================
   VERGANGENE EVENTS
   ========================================================= */

.past-events {
    width: 100%;

    margin-top: 25px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;
}


.past-events summary {
    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-weight: 650;

    cursor: pointer;

    list-style: none;
}


.past-events summary::-webkit-details-marker {
    display: none;
}


.past-events summary span {
    padding: 2px 8px;

    background: var(--surface-soft);

    border-radius: 20px;

    color: var(--text-soft);

    font-size: .8rem;
}


.past-list {
    border-top: 1px solid var(--border);
}


.past-list a {
    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

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

    text-decoration: none;
}


.past-list a:last-child {
    border-bottom: 0;
}


.past-list a:hover {
    background: var(--surface-soft);
}


.past-list small {
    display: block;

    margin-top: 2px;

    color: var(--text-soft);
}


.past-list time {
    color: var(--text-soft);

    font-size: .85rem;

    white-space: nowrap;
}


/* =========================================================
   ZURÜCK-NAVIGATION
   ========================================================= */

.back-row {
    width: 100%;
    max-width: var(--article-width);

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

    margin-bottom: 30px;
}


.back-link {
    color: var(--text-soft);

    font-size: .9rem;
    font-weight: 600;

    text-decoration: none;
}


.back-link:hover {
    color: var(--text);
}


/* =========================================================
   EVENT-DETAILSEITE
   ========================================================= */

article {
    width: 100%;
    max-width: var(--article-width);

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


.event-hero {
    width: 100%;

    margin-bottom: 30px;
}


.event-badge {
    display: inline-flex;

    padding: 6px 10px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 100px;

    font-size: .8rem;
    font-weight: 650;
}


.event-facts {
    width: 100%;

    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.fact {
    min-width: 0;

    padding: 14px 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 12px;
}


.fact-icon {
    font-size: 1.3rem;
}


.fact small,
.fact strong {
    display: block;
}


.fact small {
    color: var(--text-soft);

    font-size: .72rem;
}


.fact strong {
    overflow-wrap: anywhere;
}


/* =========================================================
   CONTENT-KARTEN
   ========================================================= */

.content-card,
.feature-card,
.form-card {
    width: 100%;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.content-card {
    margin-bottom: 16px;

    padding: clamp(20px, 4vw, 32px);
}


.content-card h2 {
    margin-top: 0;
}


.description {
    color: var(--text);

    overflow-wrap: anywhere;
}


.feature-card {
    margin-bottom: 12px;

    padding: 20px;

    display: flex;

    gap: 16px;
}


.feature-card h2 {
    margin: 0 0 4px;

    font-size: 1.05rem;
}


.feature-card p {
    margin: 0;

    color: var(--text-soft);
}


.feature-icon {
    flex: 0 0 auto;

    font-size: 1.5rem;

    line-height: 1.3;
}


/* =========================================================
   FORMULAR
   ========================================================= */

.form-page {
    width: 100%;
    max-width: 760px;

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


.form-page > .lead {
    margin-top: 8px;
}


.event-form {
    width: 100%;

    margin-top: 30px;
}


.form-card {
    padding: clamp(20px, 5vw, 32px);
}


.field {
    margin-bottom: 24px;
}


.field:last-child {
    margin-bottom: 0;
}


.field label {
    display: block;

    margin-bottom: 7px;

    font-size: .9rem;
    font-weight: 650;
}


input,
textarea {
    width: 100%;

    padding: 12px 13px;

    background: var(--surface);

    border: 1px solid #cfd4da;
    border-radius: 9px;

    color: var(--text);

    font: inherit;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


input {
    min-height: 46px;
}


textarea {
    min-height: 130px;

    resize: vertical;
}


input:focus,
textarea:focus {
    border-color: #667085;

    box-shadow:
        0 0 0 3px rgba(102, 112, 133, .12);
}


input::placeholder,
textarea::placeholder {
    color: #98a2b3;
}


.form-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.form-actions {
    width: 100%;

    margin-top: 20px;

    display: flex;
    justify-content: flex-end;

    gap: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

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

    color: var(--text-soft);

    font-size: .8rem;
}


.footer-inner {
    width: 100%;
    max-width: var(--page-width);

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

    padding:
        25px
        max(24px, env(safe-area-inset-right))
        calc(25px + env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .event-section {
        max-width: 760px;
    }


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


    article,
    .back-row {
        max-width: 760px;
    }
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 700px) {

    .header-inner {
        min-height: 58px;

        padding-left:
            max(16px, env(safe-area-inset-left));

        padding-right:
            max(16px, env(safe-area-inset-right));
    }


    .main-nav {
        gap: 0;
    }


    .main-nav a {
        padding: 8px;

        font-size: .85rem;
    }


    .page {
        padding:
            25px
            max(16px, env(safe-area-inset-right))
            50px
            max(16px, env(safe-area-inset-left));
    }


    .hero {
        max-width: 600px;

        padding: 25px 0 45px;
    }


    .event-section {
        max-width: 100%;

        margin-bottom: 55px;
    }


    article,
    .back-row,
    .form-page {
        max-width: 100%;
    }


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


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .event-facts {
        grid-template-columns: 1fr;
    }


    .fact {
        width: 100%;
    }


    .form-actions {
        flex-direction: column-reverse;
    }


    .form-actions .button {
        width: 100%;
    }


    .footer-inner {
        padding-left:
            max(16px, env(safe-area-inset-left));

        padding-right:
            max(16px, env(safe-area-inset-right));
    }
}


/* =========================================================
   KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 430px) {

    .brand-icon {
        display: none;
    }


    .brand {
        font-size: 1rem;
    }


    .main-nav a {
        padding: 7px 6px;

        font-size: .78rem;
    }


    .hero {
        padding-top: 15px;

        text-align: left;
    }


    .hero .lead {
        margin-left: 0;
        margin-right: 0;
    }


    .section-header {
        align-items: stretch;
        flex-direction: column;

        gap: 14px;
    }


    .section-header .button {
        width: 100%;
    }


    .event-card {
        min-height: 95px;

        padding: 14px;

        gap: 13px;
    }


    .event-card-date {
        width: 56px;
        min-width: 56px;

        height: 62px;
    }


    .event-card-date .day {
        font-size: 1.35rem;
    }


    .event-card-date .month {
        font-size: .68rem;
    }


    .event-card-content h3 {
        font-size: 1rem;
    }


    .event-arrow {
        font-size: 1.5rem;
    }


    .past-list a {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }


    .feature-card {
        padding: 17px;
    }


    .content-card {
        padding: 20px;
    }


    .form-card {
        padding: 18px;
    }
}


/* =========================================================
   SEHR KLEINE DISPLAYS
   ========================================================= */

@media (max-width: 360px) {

    .main-nav a {
        font-size: .72rem;
    }


    .event-card-date {
        width: 52px;
        min-width: 52px;
    }


    .event-card {
        gap: 10px;
    }
}


/* ---------------------------------------------------------
   Time voting
   --------------------------------------------------------- */

.field-help {
    margin: -4px 0 12px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.time-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.time-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-option-row input {
    flex: 1;
    max-width: 220px;
}

.remove-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

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

    font-size: 1.4rem;
    line-height: 1;

    cursor: pointer;
}

.remove-time:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.button-small {
    width: auto;
    padding: 9px 14px;
    font-size: 0.9rem;
}


/* Voting card */

.voting-card {
    scroll-margin-top: 90px;
}

.feature-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 22px;
}

.feature-heading h2 {
    margin-top: 0;
    margin-bottom: 5px;
}

.feature-heading p {
    margin: 0;
    color: var(--text-soft);
}


/* Voting form */

.voting-form {
    margin-top: 20px;
}

.voting-form .field {
    max-width: 420px;
}

.voting-options {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(170px, 1fr));

    gap: 10px;

    margin: 18px 0 22px;
}

.voting-option {
    display: grid;
    grid-template-columns:
        auto 1fr;
    grid-template-areas:
        "check time"
        "check count";

    column-gap: 12px;
    align-items: center;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: var(--surface-soft);

    cursor: pointer;
}

.voting-option:hover {
    border-color: #c8cdd4;
}

.voting-option input {
    grid-area: check;

    width: 20px;
    height: 20px;

    margin: 0;
}

.voting-time {
    grid-area: time;

    font-weight: 700;
    font-size: 1.05rem;
}

.voting-count {
    grid-area: count;

    color: var(--text-soft);
    font-size: 0.82rem;
}


/* Voting results */

.voting-results {
    margin-top: 30px;
    padding-top: 24px;

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

.voting-results h3 {
    margin-top: 0;
}

.voting-table-wrap {
    width: 100%;
    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.voting-table {
    width: 100%;
    min-width: 420px;

    border-collapse: collapse;
}

.voting-table th,
.voting-table td {
    padding: 11px 12px;

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

    text-align: center;
    white-space: nowrap;
}

.voting-table th:first-child {
    text-align: left;
}

.voting-table thead th {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.voting-table tbody th {
    font-weight: 600;
}

.voting-table tfoot th,
.voting-table tfoot td {
    border-bottom: 0;
}

.vote-yes {
    font-weight: 800;
    font-size: 1.15rem;
}

.vote-no {
    color: var(--text-soft);
}

.empty-state {
    margin: 0;

    color: var(--text-soft);
}


/* Mobile */

@media (max-width: 600px) {

    .time-option-row input {
        max-width: none;
    }

    .voting-options {
        grid-template-columns: 1fr;
    }

    .voting-option {
        padding: 13px;
    }

    .voting-form .button-primary {
        width: 100%;
    }

    .feature-heading {
        gap: 10px;
    }
}


/* --------------------------------------------------
   Event 0.5.0
   -------------------------------------------------- */

.form-section {
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 12px;
}

.form-section legend {
    padding: 0 .5rem;
    font-weight: 700;
}

.form-hint {
    opacity: .7;
    font-size: .92rem;
}

.checkbox-row {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-row input {
    margin-top: .25rem;
}

.time-row {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: .75rem;
}

.media-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.media-info span {
    opacity: .7;
}

.media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.media-actions form {
    margin: 0;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.danger-zone {
    margin-top: 3rem;
    border-top: 1px solid
        rgba(200, 50, 50, .35);
    padding-top: 2rem;
}

.button.danger {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.button.danger:hover {
    background: #912018;
    border-color: #912018;
}

select {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 640px) {

    .time-row {
        align-items: stretch;
        flex-direction: column;
    }

    .media-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .media-actions .button,
    .media-actions form,
    .media-actions form button {
        width: 100%;
    }

}


/* =========================================================
   EVENT DETAILS / DANGER ZONE
   ========================================================= */

.danger-zone {
    width: 100%;
    max-width: var(--article-width);

    margin: 32px auto 0;
    padding: clamp(20px, 4vw, 28px);

    background: #fffafa;

    border: 1px solid rgba(180, 35, 24, .28);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.danger-zone-content {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
}

.danger-zone-text {
    min-width: 0;
    flex: 1;
}

.danger-zone h2 {
    margin: 0 0 10px;

    color: #912018;

    font-size: 1.15rem;
}

.danger-zone p {
    margin: 0 0 8px;

    color: var(--text-soft);
}

.danger-zone p:last-child {
    margin-bottom: 0;
}

.danger-zone-action {
    margin: 0;

    flex: 0 0 auto;
}

.danger-zone .button.danger {
    width: auto;
    max-width: 100%;

    white-space: nowrap;
}


@media (max-width: 640px) {

    .danger-zone {
        padding: 18px;
    }

    .danger-zone-content {
        align-items: stretch;
        flex-direction: column;
    }

    .danger-zone-action,
    .danger-zone-action .button {
        width: 100%;
    }

}


/* Checkbox-Felder nicht wie normale Textfelder behandeln */

.checkbox-row input[type="checkbox"],
.voting-option input[type="checkbox"] {
    width: auto;
    min-height: 0;
}


/* =========================================================
   STARTZEITEN IM EVENT-FORMULAR
   ========================================================= */

.time-row {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: .75rem;
    margin-bottom: .75rem;
}

.time-row input[type="time"] {
    width: auto;
    min-width: 0;

    flex: 1 1 auto;
}

.time-row .remove-time {
    width: auto;
    min-width: max-content;
    height: auto;
    min-height: 46px;

    padding: 10px 16px;

    flex: 0 0 auto;

    font-size: .9rem;
    line-height: 1.2;
}


@media (max-width: 640px) {

    .time-row {
        flex-direction: column;
        align-items: stretch;
    }

    .time-row input[type="time"],
    .time-row .remove-time {
        width: 100%;
    }

}


/* =========================================================
   EVENT-GALERIE / KOMMENTARE
   ========================================================= */
.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.gallery-item {
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease;
}
.gallery-item:hover img { transform: scale(1.035); }
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px 70px;
    background: rgba(0, 0, 0, .92);
}
.gallery-lightbox:not([hidden]) { display: flex; }
.gallery-lightbox img {
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
}
.lightbox-close, .lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: white;
    cursor: pointer;
    border-radius: 999px;
}
.lightbox-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 32px; }
.lightbox-nav { top: 50%; width: 48px; height: 64px; margin-top: -32px; font-size: 42px; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
body.lightbox-open { overflow: hidden; }
.comment-list { display: grid; gap: 12px; margin: 20px 0 26px; }
.comment-item { padding: 16px 18px; border-radius: 14px; background: var(--surface-soft, rgba(127,127,127,.08)); }
.comment-item p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-meta { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.comment-meta time { color: var(--text-soft); font-size: .82rem; }
.comment-form { display: grid; gap: 14px; margin-top: 22px; }
.comment-form label { display: grid; gap: 7px; font-weight: 700; }
.comment-form input, .comment-form textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) {
    .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .gallery-lightbox { padding: 18px 46px; }
    .comment-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
}
