:root {
    --bg: #f7f5f1;
    --card: #fff;
    --text: #25231f;
    --muted: #756f65;
    --accent: #765d43;
    --accent2: #eadfce;
    --danger: #a33a32;
    --border: #e7e0d6;
    --shadow: 0 18px 45px rgba(40,32,22,.08)
}

* {
    box-sizing: border-box
}

html {
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background: var(--bg);
    color: var(--text)
}

body {
    margin: 0;
    min-height: 100vh
}

.topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px,calc((100vw - 1120px)/2));
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px)
}

.brand {
    font-weight: 800;
    color: var(--text);
    text-decoration: none
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 18px
}

.topbar a, .link-button {
    color: var(--text);
    text-decoration: none
}

.link-button {
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer
}

.inline {
    display: inline
}

.shell {
    max-width: 1120px;
    margin: auto;
    padding: 48px 24px 80px
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    font-size: 14px
}

.hero, .event-hero {
    text-align: center;
    max-width: 780px;
    margin: 8vh auto
}

    .hero h1, .event-hero h1 {
        font-family: Georgia,serif;
        font-size: clamp(48px,8vw,88px);
        line-height: .96;
        margin: 20px 0
    }

    .hero p, .event-hero p {
        font-size: 19px;
        line-height: 1.7;
        color: var(--muted)
    }

.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 800;
    color: var(--accent)
}

.date {
    font-weight: 700
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    font: inherit
}

    .btn.primary {
        background: var(--accent);
        border-color: var(--accent);
        color: white
    }

    .btn.danger {
        background: #fff3f1;
        border-color: #f0c8c4;
        color: var(--danger)
    }

    .btn.big {
        padding: 16px 22px;
        font-size: 17px
    }

.full {
    width: 100%
}

.narrow {
    max-width: 620px;
    margin: 0 auto
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow)
}

    .card h1 {
        font-family: Georgia,serif;
        font-size: 40px;
        margin: 8px 0 18px
    }

    .card h2 {
        margin-top: 0
    }

label {
    display: block;
    font-weight: 700;
    margin: 18px 0 7px
}

    label small {
        font-weight: 500;
        color: var(--muted)
    }

input, textarea {
    width: 100%;
    border: 1px solid #dcd3c8;
    background: #fff;
    border-radius: 11px;
    padding: 13px 14px;
    font: inherit;
    outline: none
}

    input:focus, textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(118,93,67,.1)
    }

form .btn {
    margin-top: 20px
}

.validation {
    color: var(--danger);
    font-size: 14px
}

.back {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 18px
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px
}

    .page-head h1 {
        font-family: Georgia,serif;
        font-size: 48px;
        margin: 8px 0
    }

    .page-head p {
        color: var(--muted);
        margin: 0
    }

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

.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    text-decoration: none
}

    .event-row strong, .event-row small {
        display: block
    }

    .event-row small {
        color: var(--muted);
        margin-top: 5px
    }

.status {
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 999px;
    white-space: nowrap
}

    .status.open {
        background: #edf7ef;
        color: #347044
    }

    .status.closed {
        background: #f2efec;
        color: #777
    }

.empty {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 1px dashed #d9d0c5;
    border-radius: 20px;
    color: var(--muted)
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 20px;
    margin-bottom: 40px
}

.url-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f7f5f1;
    border-radius: 10px;
    padding: 12px;
    overflow: hidden
}

    .url-box code {
        overflow: hidden;
        text-overflow: ellipsis
    }

    .url-box a {
        margin-left: auto
    }

.qr {
    display: block;
    width: min(260px,100%);
    margin: 24px auto
}

.muted {
    color: var(--muted)
}

.gallery {
    columns: 3 260px;
    column-gap: 18px
}

.photo-card {
    break-inside: avoid;
    margin: 0 0 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden
}

    .photo-card img {
        display: block;
        width: 100%;
        height: auto;
        background: #eee
    }

.photo-meta {
    padding: 14px
}

    .photo-meta p {
        margin: 6px 0;
        color: var(--muted);
        line-height: 1.45
    }

    .photo-meta small {
        color: var(--muted)
    }

.text-danger {
    display: block;
    border: 0;
    background: none;
    color: var(--danger);
    padding: 10px 0 0;
    cursor: pointer
}

.dropzone {
    border: 2px dashed #d4c7b9;
    border-radius: 18px;
    padding: 42px 20px;
    text-align: center;
    cursor: pointer;
    background: #fbfaf8
}

    .dropzone strong, .dropzone span {
        display: block
    }

    .dropzone span {
        font-weight: 400;
        color: var(--muted);
        margin-top: 8px
    }

    .dropzone input {
        position: absolute;
        left: -9999px
    }

.selection {
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    margin-top: 10px
}

.success {
    text-align: center
}

.success-icon {
    margin: auto;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf7ef;
    color: #347044;
    font-size: 34px;
    font-weight: 800
}

@media(max-width:720px) {
    .shell {
        padding: 30px 16px 60px
    }

    .hero, .event-hero {
        margin: 5vh auto
    }

        .hero h1, .event-hero h1 {
            font-size: 52px
        }

    .page-head {
        align-items: flex-start;
        flex-direction: column
    }

        .page-head h1 {
            font-size: 40px
        }

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

    .card {
        padding: 24px
    }

    .event-row {
        align-items: flex-start
    }

    .actions .btn {
        width: 100%
    }
}

.admin-create-page {
    padding: 48px 20px 80px;
}

.admin-create-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.admin-create-header {
    margin-bottom: 24px;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 14px;
    color: #6e6256;
    text-decoration: none;
}

    .back-link:hover {
        text-decoration: underline;
    }

.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #8a6d4d;
}

.admin-create-header h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.05;
}

.subtitle {
    max-width: 620px;
    margin-top: 12px;
    color: #766f67;
    font-size: 16px;
    line-height: 1.6;
}

.event-form-card {
    background: #ffffff;
    border: 1px solid #e9e1d8;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(63, 48, 35, 0.06);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #332d28;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d9cec2;
    border-radius: 12px;
    background: #fff;
    color: #2d2925;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: #9b7956;
    box-shadow: 0 0 0 3px rgba(155, 121, 86, 0.12);
}

.field-validation {
    font-size: 13px;
    color: #b54747;
}

.validation-summary {
    margin-bottom: 18px;
    color: #b54747;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee6de;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    border: none;
    background: #7f6345;
    color: #fff;
}

    .btn-primary:hover {
        background: #6d553b;
    }

.btn-secondary {
    border: 1px solid #d8cec4;
    background: #fff;
    color: #3c342e;
}

    .btn-secondary:hover {
        background: #f8f5f1;
    }

@media (max-width: 700px) {
    .admin-create-page {
        padding: 28px 16px 56px;
    }

    .event-form-card {
        padding: 22px;
        border-radius: 18px;
    }

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

    .form-group-full {
        grid-column: auto;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/*Details.cshtml*/
.guest-event-page {
    --page-bg: #f8f4ef;
    --card-bg: #ffffff;
    --primary: #7f6345;
    --primary-hover: #6c533a;
    --text: #2e2925;
    --muted: #756d65;
    --border: #e8ded4;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text);
    padding-bottom: 80px;
}

/* THEMES */

.theme-classic {
    --page-bg: #f8f4ef;
    --primary: #7f6345;
    --primary-hover: #6c533a;
    --text: #2e2925;
    --muted: #766c62;
}

.theme-elegant {
    --page-bg: #f4f2ef;
    --primary: #3d3935;
    --primary-hover: #24211f;
    --text: #211f1d;
    --muted: #69635d;
}

.theme-pink {
    --page-bg: #fff4f6;
    --primary: #b86b7c;
    --primary-hover: #9c5868;
    --text: #442f35;
    --muted: #826971;
}

.theme-blue {
    --page-bg: #f1f7fb;
    --primary: #577c98;
    --primary-hover: #46677f;
    --text: #263642;
    --muted: #697b88;
}

.theme-minimal {
    --page-bg: #ffffff;
    --primary: #222222;
    --primary-hover: #000000;
    --text: #171717;
    --muted: #707070;
    --border: #e8e8e8;
}

/* HERO */

.guest-hero {
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}

.guest-cover {
    overflow: hidden;
    border-radius: 28px;
    background: #ddd;
    margin-bottom: 30px;
    aspect-ratio: 16 / 7;
}

.guest-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guest-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.guest-event-type {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
}

.guest-event-title {
    margin: 0;
    font-size: clamp(40px, 8vw, 72px);
    line-height: 0.98;
}

.guest-celebrant {
    margin: 18px 0 0;
    font-size: 20px;
    color: var(--muted);
}

.guest-event-date {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--muted);
}

.guest-welcome-message {
    max-width: 620px;
    margin: 26px auto 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

.guest-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.guest-btn {
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.guest-btn-primary {
    background: var(--primary);
    color: #fff;
}

    .guest-btn-primary:hover {
        background: var(--primary-hover);
        color: #fff;
    }

.guest-btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

    .guest-btn-secondary:hover {
        background: rgba(255,255,255,0.7);
    }

.uploads-closed-message {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--muted);
}

.guest-photo-count {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

/* PHOTO PREVIEW */

.guest-preview-section {
    max-width: 980px;
    margin: 34px auto 0;
    padding: 0 20px;
}

.guest-preview-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.guest-preview-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--primary);
}

.guest-preview-header h2 {
    margin: 0;
    font-size: 30px;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.guest-photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.guest-photo-preview-item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #ddd;
}

    .guest-photo-preview-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

    .guest-photo-preview-item:hover img {
        transform: scale(1.03);
    }

/* MOBILE */

@media (max-width: 700px) {
    .guest-hero {
        padding: 24px 16px 10px;
    }

    .guest-cover {
        border-radius: 20px;
        aspect-ratio: 4 / 3;
        margin-bottom: 24px;
    }

    .guest-event-title {
        font-size: clamp(38px, 13vw, 54px);
    }

    .guest-celebrant {
        font-size: 18px;
    }

    .guest-welcome-message {
        font-size: 16px;
    }

    .guest-actions {
        flex-direction: column;
    }

    .guest-btn,
    .uploads-closed-message {
        width: 100%;
        box-sizing: border-box;
    }

    .guest-preview-section {
        padding: 0 16px;
    }

    .guest-photo-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .guest-preview-header h2 {
        font-size: 26px;
    }
}
/*cover*/
.cover-preview {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #eee;
}

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

/*upload.cshtml*/
.upload-page {
    min-height: 100vh;
    padding: 42px 20px 80px;
}

.upload-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.upload-back {
    display: inline-block;
    margin-bottom: 24px;
}

.upload-card {
    background: #fff;
    border: 1px solid #e8ded4;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(63, 48, 35, 0.06);
}

.upload-heading {
    margin-bottom: 24px;
}

    .upload-heading h1 {
        margin: 6px 0 10px;
        font-size: clamp(32px, 6vw, 46px);
    }

    .upload-heading p {
        margin: 0;
        color: #766f67;
        line-height: 1.6;
    }

.upload-dropzone {
    min-height: 220px;
    padding: 32px;
    border: 2px dashed #d7cabd;
    border-radius: 20px;
    background: #faf7f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

    .upload-dropzone:hover {
        border-color: #9b7956;
        background: #f7f1eb;
    }

    .upload-dropzone input[type="file"] {
        display: none;
    }

.upload-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.upload-dropzone strong {
    font-size: 18px;
}

.upload-dropzone span {
    margin-top: 6px;
    color: #766f67;
}

.upload-dropzone small {
    margin-top: 10px;
    color: #948a80;
}

.selection-summary {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8f5f1;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

    .selection-summary span {
        color: #766f67;
        font-size: 14px;
    }

.text-button {
    border: 0;
    background: none;
    padding: 0;
    color: #8b6145;
    font-weight: 600;
    cursor: pointer;
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.upload-preview-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #ebe3db;
    border-radius: 14px;
    background: #fff;
}

    .upload-preview-item img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

.upload-preview-info {
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .upload-preview-info strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    .upload-preview-info small {
        margin-top: 3px;
        color: #81786f;
        font-size: 11px;
    }

.upload-remove {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}

.upload-fields {
    margin-top: 26px;
}

    .upload-fields .form-group {
        margin-bottom: 18px;
    }

    .upload-fields label {
        display: block;
        margin-bottom: 7px;
        font-weight: 600;
    }

        .upload-fields label small {
            color: #8c837a;
            font-weight: 400;
        }

.upload-submit {
    margin-top: 8px;
}

    .upload-submit:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

@media (max-width: 700px) {
    .upload-page {
        padding: 24px 14px 56px;
    }

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

    .upload-dropzone {
        min-height: 180px;
        padding: 24px 16px;
    }

    .upload-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .selection-summary {
        align-items: flex-start;
    }
}

/*gallery.cshtml*/
.gallery-page {
    min-height: 100vh;
    padding: 42px 20px 80px;
}

.gallery-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-back {
    display: inline-block;
    margin-bottom: 28px;
}

.gallery-header {
    margin-bottom: 28px;
}

    .gallery-header h1 {
        margin: 6px 0 8px;
        font-size: clamp(34px, 6vw, 54px);
    }

    .gallery-header p {
        margin: 0;
        color: #766f67;
    }

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

.gallery-item {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.38), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .gallery-item-overlay span {
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #2d2925;
        font-size: 12px;
        font-weight: 600;
    }

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-empty {
    text-align: center;
    padding: 50px 24px;
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .lightbox.open {
        display: block;
    }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 10, 0.92);
}

.lightbox-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 80px;
    box-sizing: border-box;
}

.lightbox-content {
    width: min(100%, 1100px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .lightbox-content img {
        display: block;
        max-width: 100%;
        max-height: calc(100vh - 170px);
        object-fit: contain;
        border-radius: 14px;
    }

.lightbox-meta {
    width: min(100%, 900px);
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    color: #fff;
}

    .lightbox-meta strong {
        font-size: 14px;
    }

    .lightbox-meta p {
        margin: 5px 0 0;
        color: rgba(255, 255, 255, 0.75);
        font-size: 14px;
    }

.lightbox-download {
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 800px) {
    .gallery-page {
        padding: 24px 14px 56px;
    }

    .guest-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .gallery-item {
        border-radius: 13px;
    }

    .gallery-item-overlay {
        display: none;
    }

    .lightbox-shell {
        padding: 60px 12px 22px;
    }

    .lightbox-content img {
        max-height: calc(100vh - 180px);
        border-radius: 10px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
        background: rgba(0, 0, 0, 0.35);
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

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

    .lightbox-meta {
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .guest-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/*event.cshtml*/
.photo-image-wrap {
    position: relative;
}

.photo-hidden img {
    opacity: 0.45;
    filter: grayscale(0.5);
}

.hidden-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(30, 30, 30, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.photo-actions {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

    .photo-actions form {
        margin: 0;
    }

.text-action,
.text-danger {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.text-action {
    color: #755d45;
}

.text-danger {
    color: #b54747;
}

/*button*/
.card form,
.card > .btn {
    margin-top: 12px;
}

    .card form:first-of-type {
        margin-top: 0;
    }

.card .btn.full {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 12px;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 600;
}

.card .btn {
    border: 1px solid #ded3c7;
    background: #ffffff;
    color: #332d28;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

    .card .btn:hover {
        background: #f8f4ef;
        border-color: #cdbdaa;
    }

    .card .btn:active {
        transform: translateY(1px);
    }

    .card .btn.danger {
        margin-top: 18px;
        border-color: #efc0bb;
        background: #fff5f4;
        color: #b7433a;
    }

        .card .btn.danger:hover {
            background: #ffecea;
            border-color: #df9992;
        }

.card .muted {
    margin: 16px 0 0;
    line-height: 1.45;
}

    .card .muted + .muted {
        margin-top: 6px;
    }

.control-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .control-actions form {
        margin: 0;
    }

.control-danger-zone {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eee5dc;
}

    .control-danger-zone form {
        margin: 0;
    }

.control-stats {
    margin-top: 18px;
}

/*event.cshtml hidden*/
.bulk-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #e8ded4;
    border-radius: 14px;
    background: #fff;
}

.bulk-select-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .bulk-select-info label {
        display: flex;
        align-items: center;
        gap: 7px;
        font-weight: 600;
        cursor: pointer;
    }

    .bulk-select-info span {
        color: #766f67;
        font-size: 13px;
    }

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

.photo-card {
    position: relative;
}

.photo-select {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

    .photo-select input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .photo-select span {
        width: 26px;
        height: 26px;
        display: block;
        border-radius: 7px;
        border: 2px solid #fff;
        background: rgba(30, 30, 30, 0.55);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    }

    .photo-select input:checked + span {
        background: #7f6345;
    }

        .photo-select input:checked + span::after {
            content: "✓";
            display: flex;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 16px;
            font-weight: 700;
        }

@media (max-width: 700px) {
    .bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .bulk-actions .danger {
            grid-column: 1 / -1;
        }
}

/* =========================================================
   ADMIN EVENT DASHBOARD - REDESIGN
   ========================================================= */

.admin-event-page {
    min-height: 100vh;
    padding: 38px 20px 90px;
    background: linear-gradient( 180deg, #faf8f5 0%, #f7f4ef 100%);
}

.admin-event-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.admin-event-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    color: #756c63;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .admin-event-back:hover {
        color: #342e29;
    }


/* HERO */

.admin-event-hero {
    margin-bottom: 28px;
}

.admin-event-hero-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.admin-event-heading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-event-eyebrow,
.admin-panel-kicker {
    display: block;
    margin: 0 0 8px;
    color: #8a6d4d;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.admin-event-hero h1 {
    max-width: 820px;
    margin: 7px 0 10px;
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #292521;
}

.admin-event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #7b736b;
    font-size: 14px;
}

.admin-event-meta-dot {
    color: #b7ada3;
}

.event-private-badge {
    margin-bottom: 8px;
    padding: 5px 9px;
    border: 1px solid #ddd3c8;
    border-radius: 999px;
    background: #fff;
    color: #61584f;
    font-size: 11px;
    font-weight: 700;
}

.admin-event-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

    .admin-event-status.open {
        background: #edf7ef;
        color: #327148;
    }

    .admin-event-status.closed {
        background: #f1efec;
        color: #746e68;
    }

.admin-event-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}


/* STATS */

.admin-event-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.admin-stat-card {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    border: 1px solid #e8e0d7;
    border-radius: 16px;
    background: rgba(255,255,255,.75);
}

.admin-stat-value {
    color: #2f2924;
    font-size: 22px;
    font-weight: 750;
}

.admin-stat-label {
    margin-top: 4px;
    color: #81786f;
    font-size: 12px;
}


/* ALERTS */

.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 14px;
}

.admin-alert-success {
    border: 1px solid #cfe5d5;
    background: #f0f8f2;
    color: #386b49;
}

.admin-alert-error {
    border: 1px solid #ebcfcb;
    background: #fff4f2;
    color: #9a423c;
}

.admin-alert-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    font-weight: 800;
}


/* PANELS */

.admin-event-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 18px;
    align-items: stretch;
}

.admin-panel {
    border: 1px solid #e8e0d7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(53, 43, 33, .045);
}

.guest-access-panel,
.event-controls-panel,
.admin-cover-panel {
    padding: 25px;
}

.admin-panel-heading {
    margin-bottom: 22px;
}

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

.admin-panel-heading h2 {
    margin: 0;
    color: #2e2925;
    font-size: 21px;
}

.admin-panel-heading p {
    margin: 7px 0 0;
    color: #81786f;
    font-size: 13px;
    line-height: 1.55;
}

.admin-icon-link {
    flex-shrink: 0;
    color: #765d43;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


/* GUEST ACCESS */

.guest-access-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
}

.guest-url-area label {
    margin: 0 0 8px;
    color: #4a423b;
    font-size: 12px;
    font-weight: 700;
}

.guest-url-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 11px 11px 13px;
    border: 1px solid #e3dbd2;
    border-radius: 12px;
    background: #f9f7f4;
}

    .guest-url-box code {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        color: #544b43;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.copy-link-button {
    flex-shrink: 0;
    padding: 7px 10px;
    border: 1px solid #d9cfc4;
    border-radius: 9px;
    background: #fff;
    color: #5c5045;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .copy-link-button:hover {
        background: #f5f1ec;
    }

.admin-help-text {
    margin: 10px 0 0;
    color: #938980;
    font-size: 12px;
    line-height: 1.5;
}

.guest-qr-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guest-qr-frame {
    padding: 12px;
    border: 1px solid #e5ddd5;
    border-radius: 16px;
    background: #fff;
}

    .guest-qr-frame img {
        width: 100%;
        display: block;
    }


/* BUTTONS */

.admin-btn {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

    .admin-btn:active {
        transform: translateY(1px);
    }

.admin-btn-primary {
    border: 1px solid #755b40;
    background: #755b40;
    color: #fff;
}

    .admin-btn-primary:hover {
        background: #644c35;
    }

.admin-btn-secondary {
    border: 1px solid #ddd3c9;
    background: #fff;
    color: #443b34;
}

    .admin-btn-secondary:hover {
        background: #f8f5f1;
    }

.admin-btn-danger {
    border: 1px solid #e8beba;
    background: #fff4f3;
    color: #ac4c44;
}

    .admin-btn-danger:hover {
        background: #ffecea;
    }


/* CONTROLS */

.admin-control-list {
    overflow: hidden;
    border: 1px solid #e8e1da;
    border-radius: 14px;
}

.admin-control-form {
    margin: 0 !important;
}

.admin-control-row {
    width: 100%;
    min-height: 67px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 0;
    border-bottom: 1px solid #eee7df;
    background: #fff;
    color: #332d28;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.admin-control-list > *:last-child .admin-control-row,
.admin-control-list > .admin-control-row:last-child {
    border-bottom: 0;
}

.admin-control-row:hover {
    background: #faf8f5;
}

.admin-control-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: #f5f1ec;
    color: #785f47;
    font-size: 15px;
}

.admin-control-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

    .admin-control-copy strong {
        font-size: 13px;
    }

    .admin-control-copy small {
        margin-top: 2px;
        color: #8a8179;
        font-size: 11px;
    }

.admin-control-arrow {
    color: #aaa096;
    font-size: 20px;
}

.admin-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #eee7df;
}

    .admin-danger-zone strong,
    .admin-danger-zone small {
        display: block;
    }

    .admin-danger-zone strong {
        color: #594d46;
        font-size: 13px;
    }

    .admin-danger-zone small {
        margin-top: 3px;
        color: #968b83;
        font-size: 11px;
    }

    .admin-danger-zone form {
        margin: 0 !important;
    }


/* COVER */

.admin-cover-panel {
    margin-top: 18px;
}

.cover-ready-badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf7ef;
    color: #347044;
    font-size: 11px;
    font-weight: 700;
}

.admin-cover-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .65fr);
    gap: 24px;
    align-items: center;
}

.admin-cover-preview {
    overflow: hidden;
    min-height: 260px;
    aspect-ratio: 16 / 7;
    border-radius: 16px;
    background: #f3efea;
}

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

.admin-cover-empty {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    color: #877e75;
    text-align: center;
}

.admin-cover-empty-icon {
    margin-bottom: 10px;
    color: #aa9c90;
    font-size: 30px;
}

.admin-cover-empty strong {
    color: #61574f;
}

.admin-cover-empty span:last-child {
    max-width: 330px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
}

.admin-cover-form {
    margin: 0 !important;
}

.admin-file-picker label {
    margin: 0 0 8px;
    color: #453c35;
    font-size: 13px;
}

.admin-file-picker small {
    display: block;
    margin: 8px 0 16px;
    color: #8d837b;
    font-size: 11px;
}


/* PHOTOS */

.admin-photos-section {
    margin-top: 38px;
}

.admin-photos-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .admin-photos-header h2 {
        margin: 0;
        font-size: 27px;
    }

    .admin-photos-header p {
        margin: 7px 0 0;
        color: #81786f;
        font-size: 13px;
    }

.admin-photo-count-pill {
    padding: 7px 10px;
    border: 1px solid #e1d9d0;
    border-radius: 999px;
    background: #fff;
    color: #72685f;
    font-size: 11px;
    font-weight: 700;
}


/* BULK TOOLBAR */

.admin-bulk-toolbar {
    position: sticky;
    top: 82px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #e3dbd2;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 20px rgba(50, 40, 30, .05);
    backdrop-filter: blur(8px);
}

.admin-bulk-select {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-select-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12px;
    cursor: pointer;
}

    .admin-select-all input {
        width: 16px;
        height: 16px;
    }

.admin-selected-count {
    color: #8b8178;
    font-size: 11px;
}

.admin-bulk-actions {
    display: flex;
    gap: 7px;
}


/* PHOTO GRID */

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

.admin-photo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5ddd5;
    border-radius: 16px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .admin-photo-card:hover {
        transform: translateY(-2px);
        border-color: #d8cdc1;
        box-shadow: 0 10px 28px rgba(45, 35, 26, .07);
    }

    .admin-photo-card.is-hidden {
        background: #f8f6f3;
    }

        .admin-photo-card.is-hidden .admin-photo-image img {
            opacity: .48;
            filter: grayscale(.5);
        }

.admin-photo-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eeeae5;
}

    .admin-photo-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.admin-photo-select {
    position: absolute;
    z-index: 4;
    top: 9px;
    right: 9px;
    margin: 0;
    cursor: pointer;
}

    .admin-photo-select input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .admin-photo-select span {
        width: 27px;
        height: 27px;
        display: block;
        border: 2px solid rgba(255,255,255,.95);
        border-radius: 8px;
        background: rgba(35,31,28,.55);
        box-shadow: 0 2px 7px rgba(0,0,0,.16);
    }

    .admin-photo-select input:checked + span {
        background: #745a40;
    }

        .admin-photo-select input:checked + span::after {
            content: "✓";
            width: 100%;
            height: 100%;
            display: grid;
            place-items: center;
            color: #fff;
            font-size: 15px;
        }

.admin-hidden-badge {
    position: absolute;
    left: 9px;
    top: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(38,34,30,.83);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.admin-photo-details {
    padding: 13px;
}

.admin-photo-person {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

    .admin-photo-person strong {
        min-width: 0;
        overflow: hidden;
        color: #413830;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-photo-person time {
        flex-shrink: 0;
        color: #9b9189;
        font-size: 9px;
    }

.admin-photo-message {
    margin: 8px 0 0;
    color: #766d65;
    font-size: 12px;
    line-height: 1.45;
}

.admin-photo-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0ebe6;
}

    .admin-photo-actions form {
        margin: 0 !important;
    }

.admin-photo-action {
    padding: 0;
    border: 0;
    background: none;
    color: #765e48;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

    .admin-photo-action:hover {
        text-decoration: underline;
    }

    .admin-photo-action.danger {
        color: #b4514a;
    }


/* EMPTY PHOTOS */

.admin-photo-empty {
    padding: 55px 24px;
    border: 1px dashed #dcd3ca;
    border-radius: 18px;
    background: rgba(255,255,255,.65);
    text-align: center;
}

.admin-photo-empty-icon {
    margin-bottom: 8px;
    color: #a9988b;
    font-size: 34px;
}

.admin-photo-empty h3 {
    margin: 0;
    color: #4b423b;
    font-size: 18px;
}

.admin-photo-empty p {
    max-width: 440px;
    margin: 7px auto 18px;
    color: #857b73;
    font-size: 13px;
    line-height: 1.55;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .admin-event-top-grid,
    .admin-cover-layout {
        grid-template-columns: 1fr;
    }

    .guest-access-content {
        grid-template-columns: 1fr 160px;
    }

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

@media (max-width: 700px) {

    .admin-event-page {
        padding: 24px 14px 60px;
    }

    .admin-event-hero-main {
        flex-direction: column;
    }

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

    .admin-event-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stat-card {
        min-height: 78px;
        padding: 14px;
    }

    .guest-access-panel,
    .event-controls-panel,
    .admin-cover-panel {
        padding: 18px;
        border-radius: 17px;
    }

    .guest-access-content {
        grid-template-columns: 1fr;
    }

    .guest-qr-area {
        max-width: 190px;
        margin: 0 auto;
    }

    .admin-cover-preview {
        min-height: 210px;
        aspect-ratio: 4 / 3;
    }

    .admin-cover-empty {
        min-height: 210px;
    }

    .admin-photos-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-bulk-toolbar {
        top: 74px;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-bulk-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-photo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .admin-photo-image {
        aspect-ratio: 1 / 1;
    }

    .admin-photo-person {
        flex-direction: column;
        gap: 3px;
    }

    .admin-photo-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .admin-danger-zone {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {

    .admin-event-stats {
        gap: 8px;
    }

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

    .admin-bulk-actions {
        grid-template-columns: repeat(2, 1fr);
    }

        .admin-bulk-actions
        .admin-btn-danger {
            grid-column: 1 / -1;
        }
}

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard-page {
    min-height: 100vh;
    padding: 42px 20px 90px;
    background: linear-gradient( 180deg, #faf8f5 0%, #f7f4ef 100%);
}

.admin-dashboard-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}


/* HEADER */

.admin-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-dashboard-eyebrow,
.admin-dashboard-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: #8a6d4d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.admin-dashboard-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    color: #292521;
}

.admin-dashboard-header p {
    max-width: 560px;
    margin: 11px 0 0;
    color: #7d746c;
    font-size: 14px;
    line-height: 1.6;
}

.admin-create-event-btn {
    flex-shrink: 0;
}


/* STATS */

.admin-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 38px;
}

.admin-dashboard-stat {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    border: 1px solid #e8e0d7;
    border-radius: 16px;
    background: rgba(255,255,255,.8);
}

    .admin-dashboard-stat strong {
        color: #2f2924;
        font-size: 23px;
    }

    .admin-dashboard-stat span {
        margin-top: 4px;
        color: #81786f;
        font-size: 12px;
    }


/* EVENTS SECTION */

.admin-events-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

    .admin-events-section-head h2 {
        margin: 0;
        font-size: 27px;
        color: #302a25;
    }

.admin-events-count {
    padding: 7px 10px;
    border: 1px solid #e2d9d0;
    border-radius: 999px;
    background: #fff;
    color: #756b62;
    font-size: 11px;
    font-weight: 700;
}


/* EVENT LIST */

.admin-event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-event-list-row {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #e7ded5;
    border-radius: 16px;
    background: #fff;
    color: #342e29;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .admin-event-list-row:hover {
        transform: translateY(-1px);
        border-color: #d8cdc1;
        box-shadow: 0 8px 24px rgba(45, 35, 26, .06);
    }

.admin-event-list-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-event-list-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #f3eee8;
    color: #765f48;
    font-size: 16px;
    font-weight: 800;
}

.admin-event-list-copy {
    min-width: 0;
}

    .admin-event-list-copy strong {
        display: block;
        overflow: hidden;
        color: #352f2a;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.admin-event-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    color: #887f77;
    font-size: 11px;
}

.admin-event-list-dot {
    color: #b7ada3;
}

.admin-event-list-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-event-list-arrow {
    color: #aaa096;
    font-size: 23px;
}


/* EMPTY STATE */

.admin-events-empty {
    padding: 70px 24px;
    border: 1px dashed #dcd3ca;
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    text-align: center;
}

.admin-events-empty-icon {
    margin-bottom: 10px;
    color: #a59588;
    font-size: 36px;
}

.admin-events-empty h2 {
    margin: 0;
    color: #433b34;
    font-size: 22px;
}

.admin-events-empty p {
    max-width: 520px;
    margin: 10px auto 20px;
    color: #80766e;
    line-height: 1.6;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .admin-dashboard-page {
        padding: 28px 14px 60px;
    }

    .admin-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-create-event-btn {
        width: 100%;
    }

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

    .admin-event-list-row {
        align-items: flex-start;
    }

    .admin-event-list-side {
        align-items: flex-end;
        flex-direction: column;
    }
}

@media (max-width: 460px) {

    .admin-dashboard-stats {
        gap: 8px;
    }

    .admin-dashboard-stat {
        min-height: 80px;
        padding: 14px;
    }

    .admin-event-list-row {
        flex-direction: column;
    }

    .admin-event-list-side {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }
}

/* =========================================================
   ADMIN CREATE / EDIT FORM
   ========================================================= */

.admin-form-header {
    margin-bottom: 24px;
}

    .admin-form-header h1 {
        margin: 7px 0 10px;
        font-family: Georgia, serif;
        font-size: clamp(38px, 5vw, 54px);
        line-height: 1.02;
        color: #292521;
    }

    .admin-form-header p {
        max-width: 650px;
        margin: 0;
        color: #7d746c;
        font-size: 14px;
        line-height: 1.65;
    }

.admin-form-shell {
    overflow: hidden;
    border: 1px solid #e7ded5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(52, 41, 31, .05);
}

.admin-form-section {
    padding: 28px;
}

    .admin-form-section + .admin-form-section {
        border-top: 1px solid #eee7df;
    }

.admin-form-section-head {
    margin-bottom: 22px;
}

    .admin-form-section-head h2 {
        margin: 0;
        color: #302a25;
        font-size: 21px;
    }

    .admin-form-section-head p {
        margin: 6px 0 0;
        color: #857b72;
        font-size: 13px;
        line-height: 1.55;
    }

.form-help {
    display: block;
    margin-top: 6px;
    color: #91877e;
    font-size: 11px;
    line-height: 1.5;
}


/* PRIVACY */

.admin-privacy-section {
    background: #fcfaf8;
}

.admin-privacy-option {
    margin: 0;
    padding: 16px;
    border: 1px solid #e4dcd3;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.admin-privacy-option-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.admin-privacy-checkbox-wrap {
    padding-top: 2px;
}

    .admin-privacy-checkbox-wrap input {
        width: 18px;
        height: 18px;
    }

.admin-privacy-option strong,
.admin-privacy-option span {
    display: block;
}

.admin-privacy-option strong {
    color: #403831;
    font-size: 14px;
}

.admin-privacy-option span {
    margin-top: 4px;
    color: #857b72;
    font-size: 12px;
    line-height: 1.5;
}

.admin-pin-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #e4dcd3;
    border-radius: 14px;
    background: #fff;
}

    .admin-pin-panel[hidden] {
        display: none;
    }


/* ACTIONS */

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 28px;
    border-top: 1px solid #eee7df;
    background: #faf8f5;
}


/* MOBILE */

@media (max-width: 700px) {

    .admin-form-shell {
        border-radius: 18px;
    }

    .admin-form-section {
        padding: 20px;
    }

    .admin-form-actions {
        padding: 18px 20px;
        flex-direction: column-reverse;
    }

        .admin-form-actions .admin-btn {
            width: 100%;
        }
}

/* =========================================================
   GUEST EVENT LANDING - REDESIGN
   ========================================================= */

.guest-event-page {
    --guest-page-bg: #f8f4ef;
    --guest-surface: #ffffff;
    --guest-primary: #7f6345;
    --guest-primary-hover: #6c533a;
    --guest-text: #2e2925;
    --guest-muted: #756d65;
    --guest-border: #e8ded4;
    min-height: 100vh;
    padding-bottom: 90px;
    background: var(--guest-page-bg);
    color: var(--guest-text);
}


    /* THEMES */

    .guest-event-page.theme-classic {
        --guest-page-bg: #f8f4ef;
        --guest-primary: #7f6345;
        --guest-primary-hover: #6c533a;
        --guest-text: #2e2925;
        --guest-muted: #766c62;
    }

    .guest-event-page.theme-elegant {
        --guest-page-bg: #f3f1ee;
        --guest-primary: #393532;
        --guest-primary-hover: #201e1c;
        --guest-text: #211f1d;
        --guest-muted: #69635d;
    }

    .guest-event-page.theme-pink {
        --guest-page-bg: #fff4f6;
        --guest-primary: #b86b7c;
        --guest-primary-hover: #9c5868;
        --guest-text: #442f35;
        --guest-muted: #826971;
    }

    .guest-event-page.theme-blue {
        --guest-page-bg: #f1f7fb;
        --guest-primary: #577c98;
        --guest-primary-hover: #46677f;
        --guest-text: #263642;
        --guest-muted: #697b88;
    }

    .guest-event-page.theme-minimal {
        --guest-page-bg: #ffffff;
        --guest-primary: #222222;
        --guest-primary-hover: #000000;
        --guest-text: #171717;
        --guest-muted: #707070;
        --guest-border: #e8e8e8;
    }


/* HERO */

.guest-landing-hero {
    padding: 34px 20px 20px;
}

.guest-landing-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.guest-landing-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    border-radius: 30px;
    background: #ddd;
    box-shadow: 0 20px 50px rgba(35, 29, 24, .1);
}

.guest-landing-cover-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.guest-landing-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(20, 17, 15, .38), rgba(20, 17, 15, 0) 55%);
}

.guest-landing-cover-badge {
    position: absolute;
    left: 22px;
    bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .guest-landing-cover-badge span {
        padding: 7px 10px;
        border: 1px solid rgba(255,255,255,.25);
        border-radius: 999px;
        background: rgba(20,17,15,.35);
        backdrop-filter: blur(8px);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
    }

.guest-landing-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px 20px 10px;
    text-align: center;
}

.guest-landing-topline {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.guest-event-type {
    color: var(--guest-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.guest-event-date-inline {
    color: var(--guest-muted);
    font-size: 12px;
}

.guest-landing-title {
    margin: 0;
    color: var(--guest-text);
    font-family: Georgia, serif;
    font-size: clamp(44px, 7vw, 76px);
    line-height: .98;
    letter-spacing: -.025em;
}

.guest-landing-celebrant {
    margin: 17px 0 0;
    color: var(--guest-muted);
    font-size: 17px;
}

    .guest-landing-celebrant strong {
        color: var(--guest-text);
    }

.guest-landing-message {
    max-width: 620px;
    margin: 25px auto 0;
    color: var(--guest-muted);
    font-size: 16px;
    line-height: 1.75;
}

.guest-landing-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.guest-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

    .guest-btn:hover {
        transform: translateY(-1px);
    }

.guest-btn-primary {
    border: 1px solid var(--guest-primary);
    background: var(--guest-primary);
    color: #fff;
}

    .guest-btn-primary:hover {
        background: var(--guest-primary-hover);
        border-color: var(--guest-primary-hover);
        color: #fff;
    }

.guest-btn-secondary {
    border: 1px solid var(--guest-border);
    background: rgba(255,255,255,.85);
    color: var(--guest-text);
}

    .guest-btn-secondary:hover {
        background: #fff;
        color: var(--guest-text);
    }

.guest-main-action {
    min-width: 170px;
}

.guest-action-icon {
    font-size: 18px;
    line-height: 1;
}

.guest-upload-closed {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid var(--guest-border);
    border-radius: 14px;
    background: rgba(255,255,255,.8);
    text-align: left;
}

    .guest-upload-closed span {
        color: var(--guest-text);
        font-size: 13px;
        font-weight: 700;
    }

    .guest-upload-closed small {
        margin-top: 2px;
        color: var(--guest-muted);
        font-size: 10px;
    }

.guest-memory-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--guest-muted);
    font-size: 12px;
}

.guest-memory-summary-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--guest-primary);
}


/* MEMORIES */

.guest-memories-section {
    padding: 48px 20px 0;
}

.guest-memories-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.guest-memories-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.guest-preview-eyebrow {
    display: block;
    margin: 0 0 7px;
    color: var(--guest-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.guest-memories-heading h2 {
    margin: 0;
    color: var(--guest-text);
    font-size: clamp(27px, 4vw, 36px);
}

.guest-memories-heading p {
    margin: 7px 0 0;
    color: var(--guest-muted);
    font-size: 13px;
}

.guest-view-all-link {
    flex-shrink: 0;
    color: var(--guest-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

    .guest-view-all-link:hover {
        text-decoration: underline;
    }

.guest-memories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 12px;
}

.guest-memory-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ddd;
}

.guest-memory-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.guest-memory-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.guest-memory-card:hover img {
    transform: scale(1.025);
}

.guest-memory-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 35px 14px 13px;
    background: linear-gradient( to top, rgba(20,17,15,.5), transparent);
    opacity: 0;
    transition: opacity .2s ease;
}

.guest-memory-card:hover .guest-memory-overlay {
    opacity: 1;
}

.guest-memory-overlay span {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}


/* EMPTY MEMORIES */

.guest-first-memory-section {
    padding: 50px 20px 0;
}

.guest-first-memory-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 50px 28px;
    border: 1px dashed var(--guest-border);
    border-radius: 24px;
    background: rgba(255,255,255,.55);
    text-align: center;
}

.guest-first-memory-icon {
    margin-bottom: 10px;
    color: var(--guest-primary);
    font-size: 30px;
}

.guest-first-memory-card h2 {
    margin: 0;
    color: var(--guest-text);
    font-size: 24px;
}

.guest-first-memory-card p {
    max-width: 470px;
    margin: 10px auto 20px;
    color: var(--guest-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* MOBILE */

@media (max-width: 760px) {

    .guest-landing-hero {
        padding: 20px 14px 10px;
    }

    .guest-landing-cover {
        aspect-ratio: 4 / 3;
        border-radius: 22px;
    }

    .guest-landing-cover-badge {
        left: 14px;
        bottom: 14px;
    }

    .guest-landing-content {
        padding: 28px 8px 4px;
    }

    .guest-landing-title {
        font-size: clamp(40px, 13vw, 56px);
    }

    .guest-landing-message {
        font-size: 15px;
    }

    .guest-landing-actions {
        flex-direction: column;
    }

    .guest-btn,
    .guest-upload-closed {
        width: 100%;
        box-sizing: border-box;
    }

    .guest-memories-section {
        padding: 40px 14px 0;
    }

    .guest-memories-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .guest-memories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
        gap: 8px;
    }

    .guest-memory-card-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .guest-memory-overlay {
        opacity: 1;
    }
}

@media (max-width: 460px) {

    .guest-landing-cover {
        aspect-ratio: 1 / 1;
    }

    .guest-memories-grid {
        grid-auto-rows: 145px;
    }
}

/* =========================================================
   GUEST UPLOAD PAGE - REDESIGN
   ========================================================= */

.guest-upload-page {
    --upload-bg: #f8f4ef;
    --upload-surface: #ffffff;
    --upload-primary: #7f6345;
    --upload-primary-hover: #6c533a;
    --upload-text: #2e2925;
    --upload-muted: #756d65;
    --upload-border: #e8ded4;
    min-height: 100vh;
    padding: 32px 20px 80px;
    background: var(--upload-bg);
    color: var(--upload-text);
}

    .guest-upload-page.theme-classic {
        --upload-bg: #f8f4ef;
        --upload-primary: #7f6345;
        --upload-primary-hover: #6c533a;
    }

    .guest-upload-page.theme-elegant {
        --upload-bg: #f3f1ee;
        --upload-primary: #393532;
        --upload-primary-hover: #201e1c;
    }

    .guest-upload-page.theme-pink {
        --upload-bg: #fff4f6;
        --upload-primary: #b86b7c;
        --upload-primary-hover: #9c5868;
    }

    .guest-upload-page.theme-blue {
        --upload-bg: #f1f7fb;
        --upload-primary: #577c98;
        --upload-primary-hover: #46677f;
    }

    .guest-upload-page.theme-minimal {
        --upload-bg: #ffffff;
        --upload-primary: #222222;
        --upload-primary-hover: #000000;
        --upload-border: #e7e7e7;
    }

.guest-upload-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.guest-upload-back {
    display: inline-flex;
    margin-bottom: 25px;
    color: var(--upload-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

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

.guest-upload-header {
    max-width: 660px;
    margin-bottom: 22px;
}

.guest-upload-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--upload-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.guest-upload-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(38px, 6vw, 54px);
    line-height: 1.02;
    color: var(--upload-text);
}

.guest-upload-header p {
    max-width: 560px;
    margin: 11px 0 0;
    color: var(--upload-muted);
    font-size: 14px;
    line-height: 1.65;
}


/* CARD */

.guest-upload-card {
    padding: 26px;
    border: 1px solid var(--upload-border);
    border-radius: 22px;
    background: var(--upload-surface);
    box-shadow: 0 14px 38px rgba(44, 35, 27, .055);
}


/* DROPZONE */

.guest-upload-dropzone {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 22px;
    border: 2px dashed #d8cbbf;
    border-radius: 18px;
    background: #faf7f3;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

    .guest-upload-dropzone:hover {
        border-color: var(--upload-primary);
        background: #f8f3ed;
    }

    .guest-upload-dropzone.has-selection {
        border-style: solid;
        border-color: #d9cec2;
        background: #fbfaf8;
    }

    .guest-upload-dropzone input {
        display: none;
    }

.guest-upload-dropzone-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--upload-primary);
    color: #fff;
    font-size: 25px;
    line-height: 1;
}

.guest-upload-dropzone strong {
    color: var(--upload-text);
    font-size: 17px;
}

.guest-upload-dropzone span {
    max-width: 390px;
    margin-top: 6px;
    color: var(--upload-muted);
    font-size: 13px;
    line-height: 1.5;
}

.guest-upload-dropzone small {
    margin-top: 11px;
    color: #998f86;
    font-size: 10px;
}


/* SELECTION SUMMARY */

.guest-upload-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #eee7df;
    border-radius: 12px;
    background: #faf8f5;
}

.guest-upload-selection-copy {
    min-width: 0;
}

    .guest-upload-selection-copy strong {
        display: block;
        color: #4b423b;
        font-size: 12px;
    }

    .guest-upload-selection-copy span {
        display: block;
        margin-top: 3px;
        color: #8d837a;
        font-size: 10px;
    }

.guest-upload-clear {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--upload-primary);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


/* PREVIEW GRID */

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

.guest-upload-preview-item {
    overflow: hidden;
    border: 1px solid #ebe3db;
    border-radius: 13px;
    background: #fff;
}

.guest-upload-preview-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

    .guest-upload-preview-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.guest-upload-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(20,18,17,.72);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.guest-upload-preview-info {
    min-width: 0;
    padding: 9px 10px;
}

    .guest-upload-preview-info strong {
        display: block;
        overflow: hidden;
        color: #4a413a;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guest-upload-preview-info small {
        display: block;
        margin-top: 3px;
        color: #988d84;
        font-size: 9px;
    }


/* DIVIDER */

.guest-upload-divider {
    height: 1px;
    margin: 26px 0;
    background: #eee7df;
}


/* DETAILS */

.guest-upload-details-head {
    margin-bottom: 18px;
}

    .guest-upload-details-head h2 {
        margin: 0;
        color: var(--upload-text);
        font-size: 19px;
    }

    .guest-upload-details-head p {
        margin: 5px 0 0;
        color: var(--upload-muted);
        font-size: 12px;
        line-height: 1.5;
    }

.guest-upload-fields {
    display: grid;
    gap: 18px;
}

    .guest-upload-fields .form-group {
        margin: 0;
    }

    .guest-upload-fields label {
        margin: 0 0 7px;
        color: #473e37;
        font-size: 12px;
        font-weight: 700;
    }

        .guest-upload-fields label small {
            margin-left: 4px;
            color: #998e85;
            font-size: 10px;
            font-weight: 500;
        }

    .guest-upload-fields .form-control {
        min-height: 46px;
        border-radius: 11px;
        font-size: 13px;
    }

    .guest-upload-fields textarea.form-control {
        min-height: 100px;
    }


/* VALIDATION */

.guest-upload-validation,
.guest-upload-validation-summary {
    color: #b54747;
    font-size: 11px;
}

.guest-upload-validation-summary {
    margin-bottom: 14px;
}


/* SUBMIT */

.guest-upload-submit-area {
    margin-top: 24px;
}

.guest-upload-submit {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--upload-primary);
    border-radius: 13px;
    background: var(--upload-primary);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}

    .guest-upload-submit:hover:not(:disabled) {
        background: var(--upload-primary-hover);
    }

    .guest-upload-submit:disabled {
        opacity: .46;
        cursor: not-allowed;
    }

    .guest-upload-submit.is-uploading {
        opacity: .72;
    }

.guest-upload-submit-area > small {
    display: block;
    margin-top: 9px;
    color: #9a9087;
    font-size: 10px;
    text-align: center;
}


/* MOBILE */

@media (max-width: 700px) {

    .guest-upload-page {
        padding: 22px 14px 55px;
    }

    .guest-upload-card {
        padding: 18px;
        border-radius: 18px;
    }

    .guest-upload-header h1 {
        font-size: 40px;
    }

    .guest-upload-dropzone {
        min-height: 190px;
        padding: 25px 16px;
    }

    .guest-upload-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .guest-upload-selection {
        align-items: flex-start;
    }
}

/* =========================================================
   GUEST GALLERY - REDESIGN
   ========================================================= */

.guest-gallery-page {
    --gallery-bg: #f8f4ef;
    --gallery-primary: #7f6345;
    --gallery-primary-hover: #6c533a;
    --gallery-text: #2e2925;
    --gallery-muted: #756d65;
    --gallery-border: #e8ded4;
    min-height: 100vh;
    padding: 32px 20px 85px;
    background: var(--gallery-bg);
    color: var(--gallery-text);
}

    .guest-gallery-page.theme-classic {
        --gallery-bg: #f8f4ef;
        --gallery-primary: #7f6345;
        --gallery-primary-hover: #6c533a;
    }

    .guest-gallery-page.theme-elegant {
        --gallery-bg: #f3f1ee;
        --gallery-primary: #393532;
        --gallery-primary-hover: #201e1c;
        --gallery-text: #211f1d;
    }

    .guest-gallery-page.theme-pink {
        --gallery-bg: #fff4f6;
        --gallery-primary: #b86b7c;
        --gallery-primary-hover: #9c5868;
        --gallery-text: #442f35;
    }

    .guest-gallery-page.theme-blue {
        --gallery-bg: #f1f7fb;
        --gallery-primary: #577c98;
        --gallery-primary-hover: #46677f;
        --gallery-text: #263642;
    }

    .guest-gallery-page.theme-minimal {
        --gallery-bg: #fff;
        --gallery-primary: #222;
        --gallery-primary-hover: #000;
        --gallery-text: #171717;
        --gallery-border: #e8e8e8;
    }

.guest-gallery-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.guest-gallery-back {
    display: inline-flex;
    margin-bottom: 25px;
    color: var(--gallery-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

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


/* HEADER */

.guest-gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.guest-gallery-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--gallery-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.guest-gallery-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(40px, 6vw, 58px);
    line-height: 1;
}

.guest-gallery-header p {
    margin: 9px 0 0;
    color: var(--gallery-muted);
    font-size: 13px;
}

.guest-gallery-upload-btn,
.guest-gallery-primary-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 17px;
    border: 1px solid var(--gallery-primary);
    border-radius: 12px;
    background: var(--gallery-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

    .guest-gallery-upload-btn:hover,
    .guest-gallery-primary-btn:hover {
        background: var(--gallery-primary-hover);
        color: #fff;
    }


/* GRID */

.guest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.guest-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: #ddd;
    cursor: pointer;
}

    .guest-gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .28s ease;
    }

    .guest-gallery-item:hover img {
        transform: scale(1.035);
    }

.guest-gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient( to top, rgba(20,17,15,.58), transparent 58%);
    opacity: 0;
    transition: opacity .2s ease;
}

.guest-gallery-item:hover
.guest-gallery-item-overlay {
    opacity: 1;
}

.guest-gallery-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

    .guest-gallery-item-info strong {
        overflow: hidden;
        color: #fff;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guest-gallery-item-info span {
        margin-top: 2px;
        color: rgba(255,255,255,.72);
        font-size: 9px;
    }

.guest-gallery-open-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 12px;
}


/* EMPTY */

.guest-gallery-empty {
    padding: 70px 24px;
    border: 1px dashed var(--gallery-border);
    border-radius: 22px;
    background: rgba(255,255,255,.6);
    text-align: center;
}

.guest-gallery-empty-icon {
    margin-bottom: 9px;
    color: var(--gallery-primary);
    font-size: 32px;
}

.guest-gallery-empty h2 {
    margin: 0;
    color: var(--gallery-text);
    font-size: 23px;
}

.guest-gallery-empty p {
    max-width: 450px;
    margin: 9px auto 20px;
    color: var(--gallery-muted);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.guest-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .guest-lightbox.open {
        display: block;
    }

.guest-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 10, .96);
}

.guest-lightbox-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 80px 38px;
    box-sizing: border-box;
}

.guest-lightbox-topbar {
    position: absolute;
    top: 15px;
    left: 22px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guest-lightbox-counter {
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 600;
}

.guest-lightbox-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.guest-lightbox-content {
    width: min(100%, 1120px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guest-lightbox-image-wrap {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .guest-lightbox-image-wrap img {
        display: block;
        max-width: 100%;
        max-height: calc(100vh - 175px);
        border-radius: 12px;
        object-fit: contain;
        box-shadow: 0 20px 60px rgba(0,0,0,.25);
    }

.guest-lightbox-meta {
    width: min(100%, 900px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 15px;
}

.guest-lightbox-copy strong {
    color: #fff;
    font-size: 13px;
}

.guest-lightbox-copy p {
    max-width: 650px;
    margin: 5px 0 0;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    line-height: 1.5;
}

.guest-lightbox-original {
    flex-shrink: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

    .guest-lightbox-original:hover {
        text-decoration: underline;
    }


/* LIGHTBOX NAVIGATION */

.guest-lightbox-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: background .15s ease;
}

    .guest-lightbox-nav:hover {
        background: rgba(255,255,255,.16);
    }

.guest-lightbox-prev {
    left: 20px;
}

.guest-lightbox-next {
    right: 20px;
}

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


/* MOBILE */

@media (max-width: 800px) {

    .guest-gallery-page {
        padding: 22px 14px 60px;
    }

    .guest-gallery-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .guest-gallery-upload-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .guest-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .guest-gallery-item {
        border-radius: 13px;
    }

    .guest-gallery-item-overlay {
        opacity: 1;
        padding: 10px;
    }

    .guest-gallery-item-info span {
        display: none;
    }

    .guest-gallery-open-icon {
        display: none;
    }

    .guest-lightbox-shell {
        padding: 62px 12px 22px;
    }

    .guest-lightbox-image-wrap img {
        max-height: calc(100vh - 180px);
        border-radius: 9px;
    }

    .guest-lightbox-nav {
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,.42);
        font-size: 27px;
    }

    .guest-lightbox-prev {
        left: 7px;
    }

    .guest-lightbox-next {
        right: 7px;
    }

    .guest-lightbox-meta {
        padding: 0 4px;
    }
}

@media (max-width: 480px) {

    .guest-gallery-header h1 {
        font-size: 40px;
    }

    .guest-lightbox-meta {
        flex-direction: column;
        gap: 9px;
    }
}

/* =========================================================
   GUEST SUCCESS PAGE
   ========================================================= */

.guest-success-page {
    --success-bg: #f8f4ef;
    --success-primary: #7f6345;
    --success-primary-hover: #6c533a;
    --success-text: #2e2925;
    --success-muted: #756d65;
    --success-border: #e8ded4;
    min-height: 100vh;
    padding: 50px 20px 80px;
    background: var(--success-bg);
    color: var(--success-text);
}

    .guest-success-page.theme-classic {
        --success-bg: #f8f4ef;
        --success-primary: #7f6345;
        --success-primary-hover: #6c533a;
    }

    .guest-success-page.theme-elegant {
        --success-bg: #f3f1ee;
        --success-primary: #393532;
        --success-primary-hover: #201e1c;
        --success-text: #211f1d;
    }

    .guest-success-page.theme-pink {
        --success-bg: #fff4f6;
        --success-primary: #b86b7c;
        --success-primary-hover: #9c5868;
        --success-text: #442f35;
    }

    .guest-success-page.theme-blue {
        --success-bg: #f1f7fb;
        --success-primary: #577c98;
        --success-primary-hover: #46677f;
        --success-text: #263642;
    }

    .guest-success-page.theme-minimal {
        --success-bg: #ffffff;
        --success-primary: #222222;
        --success-primary-hover: #000000;
        --success-text: #171717;
        --success-border: #e8e8e8;
    }

.guest-success-shell {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.guest-success-card {
    padding: 48px 34px;
    border: 1px solid var(--success-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(45, 35, 26, .06);
    text-align: center;
}

.guest-success-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf7ef;
    color: #347044;
    font-size: 30px;
    font-weight: 800;
}

.guest-success-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--success-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.guest-success-card h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(40px, 7vw, 54px);
    line-height: 1;
}

.guest-success-message {
    max-width: 470px;
    margin: 16px auto 0;
    color: var(--success-muted);
    font-size: 15px;
    line-height: 1.7;
}

    .guest-success-message strong {
        color: var(--success-text);
    }

.guest-success-warning {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #ecd6b4;
    border-radius: 12px;
    background: #fff9ef;
    color: #8a6534;
    font-size: 12px;
    line-height: 1.5;
}

.guest-success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.guest-success-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.guest-success-btn-primary {
    border: 1px solid var(--success-primary);
    background: var(--success-primary);
    color: #fff;
}

    .guest-success-btn-primary:hover {
        background: var(--success-primary-hover);
        color: #fff;
    }

.guest-success-btn-secondary {
    border: 1px solid var(--success-border);
    background: #fff;
    color: var(--success-text);
}

    .guest-success-btn-secondary:hover {
        background: #faf8f5;
        color: var(--success-text);
    }

.guest-success-back {
    display: inline-block;
    margin-top: 22px;
    color: var(--success-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

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

@media (max-width: 600px) {

    .guest-success-page {
        padding: 28px 14px 60px;
    }

    .guest-success-card {
        padding: 34px 20px;
        border-radius: 19px;
    }

    .guest-success-actions {
        flex-direction: column;
    }

    .guest-success-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   PRIVATE EVENT ACCESS PAGE
   ========================================================= */

.guest-access-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 20px 80px;
    background: linear-gradient( 180deg, #faf8f5 0%, #f7f4ef 100%);
}

.guest-access-shell {
    width: 100%;
    max-width: 520px;
}

.guest-access-card {
    padding: 42px 34px;
    border: 1px solid #e8e0d7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(45, 35, 26, .06);
    text-align: center;
}

.guest-access-lock {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f5f0ea;
    font-size: 26px;
}

.guest-access-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #7f6345;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.guest-access-card h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(36px, 7vw, 50px);
    line-height: 1.05;
    color: #2e2925;
}

.guest-access-copy {
    max-width: 390px;
    margin: 14px auto 0;
    color: #756d65;
    font-size: 14px;
    line-height: 1.65;
}

.guest-access-form {
    margin-top: 28px;
    text-align: left;
}

    .guest-access-form .form-group {
        margin: 0;
    }

    .guest-access-form label {
        margin: 0 0 8px;
        color: #403831;
        font-size: 12px;
        font-weight: 700;
    }

.guest-pin-input {
    min-height: 54px;
    border-radius: 13px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .22em;
}

    .guest-pin-input::placeholder {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
    }

.guest-access-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    border: 1px solid #7f6345;
    border-radius: 13px;
    background: #7f6345;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .guest-access-submit:hover {
        background: #6c533a;
    }

.guest-access-validation,
.guest-access-validation-summary {
    color: #b54747;
    font-size: 11px;
}

.guest-access-validation-summary {
    margin-bottom: 14px;
}

.guest-access-help {
    margin: 18px 0 0;
    color: #948a81;
    font-size: 11px;
}

@media (max-width: 600px) {

    .guest-access-page {
        padding: 28px 14px 60px;
    }

    .guest-access-card {
        padding: 32px 20px;
        border-radius: 19px;
    }

        .guest-access-card h1 {
            font-size: 38px;
        }
}

/* =========================================================
   UPLOADS CLOSED PAGE
   ========================================================= */

.guest-closed-page {
    --closed-bg: #f8f4ef;
    --closed-primary: #7f6345;
    --closed-primary-hover: #6c533a;
    --closed-text: #2e2925;
    --closed-muted: #756d65;
    --closed-border: #e8ded4;
    min-height: 100vh;
    padding: 50px 20px 80px;
    background: var(--closed-bg);
    color: var(--closed-text);
}

    .guest-closed-page.theme-classic {
        --closed-bg: #f8f4ef;
        --closed-primary: #7f6345;
        --closed-primary-hover: #6c533a;
    }

    .guest-closed-page.theme-elegant {
        --closed-bg: #f3f1ee;
        --closed-primary: #393532;
        --closed-primary-hover: #201e1c;
        --closed-text: #211f1d;
    }

    .guest-closed-page.theme-pink {
        --closed-bg: #fff4f6;
        --closed-primary: #b86b7c;
        --closed-primary-hover: #9c5868;
        --closed-text: #442f35;
    }

    .guest-closed-page.theme-blue {
        --closed-bg: #f1f7fb;
        --closed-primary: #577c98;
        --closed-primary-hover: #46677f;
        --closed-text: #263642;
    }

    .guest-closed-page.theme-minimal {
        --closed-bg: #ffffff;
        --closed-primary: #222222;
        --closed-primary-hover: #000000;
        --closed-text: #171717;
        --closed-border: #e8e8e8;
    }

.guest-closed-shell {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.guest-closed-card {
    padding: 48px 34px;
    border: 1px solid var(--closed-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(45, 35, 26, .06);
    text-align: center;
}

.guest-closed-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f3eee8;
    color: var(--closed-primary);
    font-size: 28px;
    font-weight: 800;
}

.guest-closed-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--closed-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.guest-closed-card h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(38px, 7vw, 52px);
    line-height: 1.05;
}

.guest-closed-card p {
    max-width: 480px;
    margin: 16px auto 0;
    color: var(--closed-muted);
    font-size: 14px;
    line-height: 1.7;
}

    .guest-closed-card p strong {
        color: var(--closed-text);
    }

.guest-closed-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.guest-closed-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.guest-closed-btn-primary {
    border: 1px solid var(--closed-primary);
    background: var(--closed-primary);
    color: #fff;
}

    .guest-closed-btn-primary:hover {
        background: var(--closed-primary-hover);
        color: #fff;
    }

.guest-closed-btn-secondary {
    border: 1px solid var(--closed-border);
    background: #fff;
    color: var(--closed-text);
}

    .guest-closed-btn-secondary:hover {
        background: #faf8f5;
        color: var(--closed-text);
    }

@media (max-width: 600px) {

    .guest-closed-page {
        padding: 28px 14px 60px;
    }

    .guest-closed-card {
        padding: 34px 20px;
        border-radius: 19px;
    }

    .guest-closed-actions {
        flex-direction: column;
    }

    .guest-closed-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   ADMIN LOGIN PAGE
   ========================================================= */

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 20px 80px;
    background: linear-gradient( 180deg, #faf8f5 0%, #f5f1ec 100%);
}

.admin-login-shell {
    width: 100%;
    max-width: 460px;
}

.admin-login-card {
    padding: 42px 34px;
    border: 1px solid #e7ded5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(45, 35, 26, .07);
}

.admin-login-brand {
    margin-bottom: 24px;
    color: #5d5147;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.admin-login-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #8a6d4d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.admin-login-card h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(38px, 7vw, 50px);
    line-height: 1.04;
    color: #2e2925;
}

.admin-login-copy {
    margin: 12px 0 0;
    color: #766e66;
    font-size: 14px;
    line-height: 1.65;
}

.admin-login-form {
    margin-top: 28px;
}

    .admin-login-form .form-group {
        margin-bottom: 18px;
    }

    .admin-login-form label {
        display: block;
        margin: 0 0 7px;
        color: #403831;
        font-size: 12px;
        font-weight: 700;
    }

    .admin-login-form .form-control {
        min-height: 48px;
        border-radius: 12px;
        font-size: 13px;
    }

.admin-password-field {
    position: relative;
}

    .admin-password-field .form-control {
        padding-right: 70px;
    }

.admin-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: #7f6345;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.admin-login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border: 1px solid #755b40;
    border-radius: 13px;
    background: #755b40;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

    .admin-login-submit:hover {
        background: #644c35;
    }

.admin-login-validation-summary {
    margin-bottom: 15px;
    color: #b54747;
    font-size: 12px;
}

.admin-login-help {
    margin: 20px 0 0;
    color: #978c83;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 600px) {

    .admin-login-page {
        padding: 34px 14px 60px;
    }

    .admin-login-card {
        padding: 32px 20px;
        border-radius: 19px;
    }
}

/* =========================================================
   SHARED SITE LAYOUT
   ========================================================= */

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e8e0d7;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    width: 100%;
    max-width: 1180px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #2f2924;
    text-decoration: none;
}

.site-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: #755b40;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .site-brand-copy strong {
        font-size: 13px;
        font-weight: 800;
    }

    .site-brand-copy small {
        margin-top: 3px;
        color: #8a8179;
        font-size: 9px;
        font-weight: 500;
    }

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-nav-form {
    margin: 0;
}

.site-nav-link {
    color: #554a41;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

    .site-nav-link:hover {
        color: #755b40;
    }

.site-nav-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}


/* MAIN */

.site-main {
    flex: 1;
}


/* FOOTER */

.site-footer {
    padding: 28px 20px;
    border-top: 1px solid #ece5dd;
    background: #faf8f5;
}

.site-footer-inner {
    max-width: 1180px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 auto;
    color: #8e847b;
    font-size: 10px;
}

.site-footer-dot {
    color: #b8afa6;
}


/* MOBILE */

@media (max-width: 600px) {

    .site-header-inner {
        height: 62px;
        padding: 0 14px;
    }

    .site-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .site-brand-copy small {
        display: none;
    }

    .site-nav {
        gap: 10px;
    }

    .site-footer {
        padding: 22px 14px;
    }
}

/* =========================================================
   HOME PAGE
   ========================================================= */

.home-page {
    min-height: 100vh;
    background: linear-gradient( 180deg, #faf8f5 0%, #f7f3ee 100%);
    color: #2e2925;
}


/* HERO */

.home-hero {
    padding: 88px 20px 72px;
}

.home-hero-inner {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.home-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #8a6d4d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.home-hero h1 {
    max-width: 850px;
    margin: 0 auto;
    font-family: Georgia, serif;
    font-size: clamp(54px, 8vw, 92px);
    line-height: .96;
    letter-spacing: -.035em;
    color: #2b2622;
}

    .home-hero h1 span {
        display: block;
        color: #755b40;
    }

.home-hero p {
    max-width: 650px;
    margin: 24px auto 0;
    color: #756d65;
    font-size: 17px;
    line-height: 1.7;
}

.home-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.home-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-btn-primary {
    border: 1px solid #755b40;
    background: #755b40;
    color: #fff;
}

    .home-btn-primary:hover {
        background: #644c35;
        color: #fff;
    }

.home-btn-secondary {
    border: 1px solid #ded4ca;
    background: #fff;
    color: #403831;
}

    .home-btn-secondary:hover {
        background: #f8f5f1;
        color: #403831;
    }

.home-trust-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    color: #948a81;
    font-size: 10px;
}


/* HOW IT WORKS */

.home-features {
    padding: 68px 20px;
    border-top: 1px solid #ebe3db;
    background: rgba(255,255,255,.6);
}

.home-section-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.home-section-heading {
    max-width: 650px;
    margin-bottom: 28px;
}

    .home-section-heading h2 {
        margin: 0;
        font-family: Georgia, serif;
        font-size: clamp(34px, 5vw, 50px);
        line-height: 1.05;
    }

    .home-section-heading p {
        margin: 12px 0 0;
        color: #7d746c;
        font-size: 14px;
        line-height: 1.6;
    }

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

.home-feature-card {
    padding: 26px;
    border: 1px solid #e7ded5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(45, 35, 26, .04);
}

.home-feature-number {
    display: inline-flex;
    margin-bottom: 24px;
    color: #9a8066;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.home-feature-card h3 {
    margin: 0;
    color: #342e29;
    font-size: 17px;
}

.home-feature-card p {
    margin: 9px 0 0;
    color: #7e756d;
    font-size: 12px;
    line-height: 1.6;
}


/* CTA */

.home-cta {
    padding: 72px 20px 90px;
}

.home-cta-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 46px 28px;
    border: 1px solid #e6ddd4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(45, 35, 26, .05);
    text-align: center;
}

    .home-cta-card h2 {
        margin: 0;
        font-family: Georgia, serif;
        font-size: clamp(34px, 5vw, 46px);
        line-height: 1.05;
    }

    .home-cta-card p {
        margin: 12px 0 22px;
        color: #7c736b;
        font-size: 13px;
    }


/* MOBILE */

@media (max-width: 760px) {

    .home-hero {
        padding: 58px 16px 54px;
    }

        .home-hero h1 {
            font-size: clamp(48px, 15vw, 68px);
        }

        .home-hero p {
            font-size: 15px;
        }

    .home-actions {
        flex-direction: column;
    }

    .home-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-features {
        padding: 52px 16px;
    }

    .home-cta {
        padding: 54px 16px 70px;
    }

    .home-cta-card {
        padding: 34px 20px;
        border-radius: 19px;
    }
}

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard-page {
    min-height: 100vh;
    padding: 42px 20px 90px;
    background: linear-gradient( 180deg, #faf8f5 0%, #f7f4ef 100%);
}

.admin-dashboard-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.admin-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-dashboard-eyebrow,
.admin-dashboard-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: #8a6d4d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.admin-dashboard-header h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    color: #292521;
}

.admin-dashboard-header p {
    max-width: 560px;
    margin: 11px 0 0;
    color: #7d746c;
    font-size: 14px;
    line-height: 1.6;
}

.admin-create-event-btn {
    flex-shrink: 0;
}

.admin-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 38px;
}

.admin-dashboard-stat {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    border: 1px solid #e8e0d7;
    border-radius: 16px;
    background: rgba(255,255,255,.8);
}

    .admin-dashboard-stat strong {
        color: #2f2924;
        font-size: 23px;
    }

    .admin-dashboard-stat span {
        margin-top: 4px;
        color: #81786f;
        font-size: 12px;
    }

.admin-events-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

    .admin-events-section-head h2 {
        margin: 0;
        font-size: 27px;
        color: #302a25;
    }

.admin-events-count {
    padding: 7px 10px;
    border: 1px solid #e2d9d0;
    border-radius: 999px;
    background: #fff;
    color: #756b62;
    font-size: 11px;
    font-weight: 700;
}

.admin-event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-event-list-row {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #e7ded5;
    border-radius: 16px;
    background: #fff;
    color: #342e29;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .admin-event-list-row:hover {
        transform: translateY(-1px);
        border-color: #d8cdc1;
        box-shadow: 0 8px 24px rgba(45, 35, 26, .06);
    }

.admin-event-list-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-event-list-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #f3eee8;
    color: #765f48;
    font-size: 16px;
    font-weight: 800;
}

.admin-event-list-copy {
    min-width: 0;
}

    .admin-event-list-copy strong {
        display: block;
        overflow: hidden;
        color: #352f2a;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.admin-event-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    color: #887f77;
    font-size: 11px;
}

.admin-event-list-dot {
    color: #b7ada3;
}

.admin-event-list-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-event-list-arrow {
    color: #aaa096;
    font-size: 23px;
}

.admin-events-empty {
    padding: 70px 24px;
    border: 1px dashed #dcd3ca;
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    text-align: center;
}

.admin-events-empty-icon {
    margin-bottom: 10px;
    color: #a59588;
    font-size: 36px;
}

.admin-events-empty h2 {
    margin: 0;
    color: #433b34;
    font-size: 22px;
}

.admin-events-empty p {
    max-width: 520px;
    margin: 10px auto 20px;
    color: #80766e;
    line-height: 1.6;
}

@media (max-width: 700px) {

    .admin-dashboard-page {
        padding: 28px 14px 60px;
    }

    .admin-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-create-event-btn {
        width: 100%;
    }

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

    .admin-event-list-row {
        align-items: flex-start;
    }

    .admin-event-list-side {
        align-items: flex-end;
        flex-direction: column;
    }
}

@media (max-width: 460px) {

    .admin-dashboard-stats {
        gap: 8px;
    }

    .admin-dashboard-stat {
        min-height: 80px;
        padding: 14px;
    }

    .admin-event-list-row {
        flex-direction: column;
    }

    .admin-event-list-side {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }
}

/* =========================================================
   ADMIN COVER PHOTO
   ========================================================= */

.admin-cover-card {
    margin-top: 18px;
}

.admin-cover-preview {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #e5dcd3;
    border-radius: 18px;
    background: #eee8e2;
}

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

.admin-cover-current-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

    .admin-cover-current-actions form {
        margin: 0;
    }

.admin-cover-current-label {
    color: #847970;
    font-size: 11px;
}

.admin-cover-remove-btn {
    padding: 8px 11px;
    border: 1px solid #e3c8c4;
    border-radius: 9px;
    background: #fff8f7;
    color: #a14942;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

    .admin-cover-remove-btn:hover {
        border-color: #d8aaa4;
        background: #fff1ef;
    }

.admin-cover-empty {
    margin-top: 20px;
    padding: 36px 20px;
    border: 1px dashed #ddd3ca;
    border-radius: 17px;
    background: #faf8f5;
    text-align: center;
}

.admin-cover-empty-icon {
    margin-bottom: 8px;
    color: #a58f7b;
    font-size: 28px;
}

.admin-cover-empty strong {
    display: block;
    color: #4a4139;
    font-size: 13px;
}

.admin-cover-empty p {
    margin: 5px 0 0;
    color: #8b8179;
    font-size: 11px;
}

.admin-cover-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eee6de;
}

.admin-cover-upload-field {
    min-width: 0;
}

    .admin-cover-upload-field label {
        display: block;
        margin-bottom: 7px;
        color: #443b34;
        font-size: 12px;
        font-weight: 700;
    }

    .admin-cover-upload-field input[type="file"] {
        width: 100%;
        min-height: 46px;
        padding: 8px 10px;
        border: 1px solid #ddd3ca;
        border-radius: 12px;
        background: #fff;
        font: inherit;
    }

    .admin-cover-upload-field small {
        display: block;
        margin-top: 6px;
        color: #91877e;
        font-size: 10px;
    }

.admin-cover-upload-form .admin-btn {
    min-height: 46px;
    padding: 0 18px;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .admin-cover-upload-form {
        grid-template-columns: 1fr;
    }

        .admin-cover-upload-form .admin-btn {
            width: 100%;
        }
}

/* =========================================================
   COVER UPLOADER - FINAL
   ========================================================= */

.cover-uploader {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eee6de;
}

.cover-uploader-form {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 12px !important;
    width: auto !important;
    max-width: 720px;
    margin: 0 !important;
}

.cover-uploader-field {
    width: 420px !important;
    max-width: 100%;
    flex: 0 1 420px !important;
}

    .cover-uploader-field label {
        display: block;
        margin: 0 0 7px !important;
        color: #443b34;
        font-size: 12px;
        font-weight: 700;
    }

    .cover-uploader-field input[type="file"] {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        height: 46px;
        padding: 7px 9px;
        border: 1px solid #ddd3ca;
        border-radius: 11px;
        background: #fff;
        color: #443b34;
        font: inherit;
        font-size: 13px;
        box-sizing: border-box;
    }

        .cover-uploader-field input[type="file"]::file-selector-button {
            height: 30px;
            margin-right: 10px;
            padding: 0 12px;
            border: 1px solid #d5cbc1;
            border-radius: 7px;
            background: #f8f5f1;
            color: #3d352f;
            font: inherit;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

            .cover-uploader-field input[type="file"]::file-selector-button:hover {
                background: #f1ece6;
            }

    .cover-uploader-field small {
        display: block;
        margin-top: 6px;
        color: #91877e;
        font-size: 10px;
    }

.cover-uploader-button {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 46px;
    margin: 0 0 16px !important;
    padding: 0 18px;
    border: 1px solid #d8cec4;
    border-radius: 11px;
    background: #fff;
    color: #3c342e;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

    .cover-uploader-button:hover {
        border-color: #c9b9aa;
        background: #f8f5f1;
    }


/* CURRENT COVER ROW */

.admin-cover-current-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
}

    .admin-cover-current-row > span {
        color: #887e75;
        font-size: 11px;
    }

.admin-cover-remove-form {
    margin: 0 !important;
}

.admin-cover-remove-button {
    margin: 0 !important;
    padding: 8px 11px;
    border: 1px solid #e3c8c4;
    border-radius: 9px;
    background: #fff8f7;
    color: #a14942;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

    .admin-cover-remove-button:hover {
        border-color: #d8aaa4;
        background: #fff0ee;
    }


/* MOBILE */

@media (max-width: 650px) {

    .cover-uploader-form {
        display: block !important;
        max-width: none;
    }

    .cover-uploader-field {
        width: 100% !important;
        max-width: none;
    }

    .cover-uploader-button {
        width: 100% !important;
        margin: 12px 0 0 !important;
    }

    .admin-cover-current-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-cover-remove-button {
        width: 100%;
    }
}

/* =========================================================
   FEATURED PHOTOS
   ========================================================= */

.admin-featured-badge {
    position: absolute;
    left: 9px;
    bottom: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(117,91,64,.92);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(0,0,0,.12);
    backdrop-filter: blur(5px);
}

.admin-photo-card.is-hidden
.admin-featured-badge {
    opacity: .7;
}

@media (max-width: 700px) {

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

        .admin-bulk-actions .admin-btn {
            width: 100%;
        }

        .admin-bulk-actions
        .admin-btn-danger {
            grid-column: 1 / -1;
        }
}

/* =========================================================
   ADMIN SLIDESHOW SETTINGS
   ========================================================= */

.admin-slideshow-section {
    background: #fcfaf8;
}

.admin-slideshow-option {
    display: block;
    margin: 0;
    padding: 16px;
    border: 1px solid #e4dcd3;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.admin-slideshow-option-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.admin-slideshow-checkbox-wrap {
    padding-top: 2px;
}

    .admin-slideshow-checkbox-wrap input {
        width: 18px;
        height: 18px;
    }

.admin-slideshow-option strong,
.admin-slideshow-option span {
    display: block;
}

.admin-slideshow-option strong {
    color: #403831;
    font-size: 14px;
}

.admin-slideshow-option span {
    margin-top: 4px;
    color: #857b72;
    font-size: 12px;
    line-height: 1.5;
}

.admin-slideshow-settings {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #e4dcd3;
    border-radius: 14px;
    background: #fff;
}

    .admin-slideshow-settings[hidden] {
        display: none;
    }

/* =========================================================
   GUEST EVENT SLIDESHOW
   ========================================================= */

.guest-slideshow-section {
    padding: 34px 20px 10px;
}

.guest-slideshow-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.guest-slideshow-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

    .guest-slideshow-heading h2 {
        margin: 0;
        color: var(--guest-text);
        font-family: Georgia, serif;
        font-size: clamp(28px, 4vw, 38px);
        line-height: 1.08;
    }

    .guest-slideshow-heading p {
        margin: 7px 0 0;
        color: var(--guest-muted);
        font-size: 13px;
        line-height: 1.55;
    }

.guest-slideshow {
    width: 100%;
}

.guest-slideshow-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--guest-border);
    border-radius: 26px;
    background: #ddd;
    box-shadow: 0 18px 45px rgba(35, 29, 24, .08);
    isolation: isolate;
}

.guest-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
    pointer-events: none;
}

    .guest-slide.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 1;
    }

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

.guest-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(19, 16, 14, .48) 0%, rgba(19, 16, 14, .08) 42%, rgba(19, 16, 14, 0) 70%);
}

.guest-slide-info {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-slide-featured,
.guest-slide-author {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(25, 21, 18, .36);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.guest-slide-featured {
    background: rgba(112, 83, 55, .72);
}

.guest-slideshow-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(25, 21, 18, .34);
    backdrop-filter: blur(8px);
    color: #fff;
    font: inherit;
    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease, transform .18s ease;
}

    .guest-slideshow-arrow:hover {
        background: rgba(25, 21, 18, .58);
    }

    .guest-slideshow-arrow:active {
        transform: translateY(-50%) scale(.96);
    }

.guest-slideshow-prev {
    left: 16px;
}

.guest-slideshow-next {
    right: 16px;
}

.guest-slideshow-counter {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(25, 21, 18, .34);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.guest-slideshow-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 4px 0;
}

.guest-slideshow-dots {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.guest-slideshow-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--guest-border);
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

    .guest-slideshow-dot.is-active {
        width: 24px;
        border-radius: 999px;
        background: var(--guest-primary);
    }

.guest-slideshow-autoplay {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
    color: var(--guest-muted);
    font-size: 10px;
    font-weight: 700;
}

.guest-slideshow-autoplay-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--guest-primary);
}

/* =========================================================
   SLIDESHOW MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .guest-slideshow-section {
        padding: 30px 14px 4px;
    }

    .guest-slideshow-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

        .guest-slideshow-heading h2 {
            font-size: 28px;
        }

    .guest-slideshow-stage {
        aspect-ratio: 4 / 5;
        border-radius: 22px;
    }

    .guest-slideshow-arrow {
        width: 40px;
        height: 40px;
        font-size: 27px;
    }

    .guest-slideshow-prev {
        left: 10px;
    }

    .guest-slideshow-next {
        right: 10px;
    }

    .guest-slide-info {
        left: 13px;
        right: 13px;
        bottom: 13px;
    }

    .guest-slideshow-counter {
        top: 12px;
        right: 12px;
    }

    .guest-slideshow-footer {
        align-items: flex-start;
    }
}

@media (max-width: 460px) {

    .guest-slideshow-stage {
        aspect-ratio: 4 / 5;
    }

    .guest-slideshow-autoplay {
        display: none;
    }

    .guest-slideshow-dots {
        width: 100%;
        justify-content: center;
    }

    .guest-slideshow-footer {
        justify-content: center;
    }
}

/* Respect reduced-motion accessibility preference */
@media (prefers-reduced-motion: reduce) {

    .guest-slide {
        transition: none;
    }

    .guest-slideshow-arrow,
    .guest-slideshow-dot {
        transition: none;
    }
}

/* =========================================================
   GUEST PHOTO DOWNLOADS
   ========================================================= */

.guest-gallery-card {
    position: relative;
    min-width: 0;
}

    .guest-gallery-card .guest-gallery-item {
        width: 100%;
    }

.guest-gallery-download {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(30, 25, 21, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.guest-gallery-card:hover
.guest-gallery-download {
    opacity: 1;
    transform: translateY(0);
}

.guest-gallery-download:hover {
    background: rgba(30, 25, 21, .78);
    color: #fff;
}


/* LIGHTBOX DOWNLOAD AREA */

.guest-lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-lightbox-download {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

    .guest-lightbox-download:hover {
        border-color: rgba(255, 255, 255, .4);
        background: rgba(255, 255, 255, .2);
        color: #fff;
    }


/* =========================================================
   MOBILE DOWNLOAD CONTROLS
   ========================================================= */

@media (max-width: 800px) {

    .guest-gallery-download {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        opacity: 1;
        transform: none;
        background: rgba(30, 25, 21, .55);
    }

    .guest-lightbox-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .guest-lightbox-download,
    .guest-lightbox-original {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .guest-lightbox-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .guest-lightbox-download,
    .guest-lightbox-original {
        width: 100%;
        box-sizing: border-box;
    }
}
/* =========================================================
   ADMIN PHOTO SEARCH / FILTER
   ========================================================= */

.admin-photo-filter-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #e8dfd6;
    border-radius: 15px;
    background: #fff;
}

.admin-photo-search-wrap {
    flex: 1 1 420px;
    max-width: 520px;
}

    .admin-photo-search-wrap > label,
    .admin-photo-filter-group > label {
        display: block;
        margin-bottom: 6px;
        color: #756c64;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

.admin-photo-search-box {
    position: relative;
}

    .admin-photo-search-box input {
        width: 100%;
        height: 44px;
        box-sizing: border-box;
        padding: 0 40px 0 38px;
        border: 1px solid #ded4ca;
        border-radius: 11px;
        background: #fff;
        color: #3f3731;
        font: inherit;
        font-size: 13px;
        outline: none;
    }

        .admin-photo-search-box input:focus {
            border-color: #bca78f;
            box-shadow: 0 0 0 3px rgba(127, 99, 69, .08);
        }

.admin-photo-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #91867b;
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.admin-photo-search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b8178;
    font-size: 20px;
    cursor: pointer;
    transform: translateY(-50%);
}

    .admin-photo-search-clear:hover {
        background: #f4efea;
    }

.admin-photo-filter-controls {
    display: flex;
    gap: 10px;
}

.admin-photo-filter-group {
    min-width: 145px;
}

.admin-photo-filter-select {
    width: 100%;
    height: 44px;
    padding: 0 34px 0 12px;
    border: 1px solid #ded4ca;
    border-radius: 11px;
    background: #fff;
    color: #443b34;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.admin-photo-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 10px;
    color: #8a8077;
    font-size: 11px;
}

.admin-photo-filter-reset {
    padding: 0;
    border: 0;
    background: transparent;
    color: #806448;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

    .admin-photo-filter-reset:hover {
        text-decoration: underline;
    }

.admin-photo-card[hidden] {
    display: none !important;
}

@media (max-width: 760px) {

    .admin-photo-filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-photo-search-wrap {
        max-width: none;
        flex-basis: auto;
    }

    .admin-photo-filter-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .admin-photo-filter-group {
        min-width: 0;
    }
}

@media (max-width: 460px) {

    .admin-photo-filter-controls {
        grid-template-columns: 1fr;
    }

    .admin-photo-filter-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   GUEST PHOTO REACTIONS
   ========================================================= */

.guest-photo-reactions {
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0 5px;
    padding: 0 4px;
}

.guest-reaction-label {
    display: block;
    margin: 0 0 9px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guest-reaction-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-reaction-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .88);
    font: inherit;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

    .guest-reaction-btn:hover {
        border-color: rgba(255, 255, 255, .34);
        background: rgba(255, 255, 255, .14);
        transform: translateY(-1px);
    }

    .guest-reaction-btn.is-active {
        border-color: rgba(255, 255, 255, .55);
        background: rgba(255, 255, 255, .22);
        color: #fff;
    }

    .guest-reaction-btn:disabled {
        opacity: .55;
        cursor: wait;
        transform: none;
    }

.guest-reaction-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.guest-reaction-name {
    font-size: 11px;
    font-weight: 700;
}

.guest-reaction-count {
    min-width: 14px;
    color: rgba(255, 255, 255, .64);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.guest-reaction-btn.is-active
.guest-reaction-count {
    color: #fff;
}


/* =========================================================
   LIGHTBOX ACTIONS
   ========================================================= */

.guest-lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-lightbox-download {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

    .guest-lightbox-download:hover {
        border-color: rgba(255, 255, 255, .4);
        background: rgba(255, 255, 255, .2);
        color: #fff;
    }


/* =========================================================
   GALLERY DOWNLOAD BUTTON
   ========================================================= */

.guest-gallery-card {
    position: relative;
    min-width: 0;
}

    .guest-gallery-card
    .guest-gallery-item {
        width: 100%;
    }

.guest-gallery-download {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(30, 25, 21, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.guest-gallery-card:hover
.guest-gallery-download {
    opacity: 1;
    transform: translateY(0);
}

.guest-gallery-download:hover {
    background: rgba(30, 25, 21, .78);
    color: #fff;
}


/* =========================================================
   MOBILE LIGHTBOX + REACTIONS
   ========================================================= */

@media (max-width: 800px) {

    /*
     * Allow the full lightbox content to scroll.
     *
     * This is important because reactions now sit
     * underneath the image.
     */
    .guest-lightbox-shell {
        overflow-x: hidden;
        overflow-y: auto;
        align-items: flex-start;
        padding: 64px 12px 26px;
    }


    .guest-lightbox-content {
        width: 100%;
        max-height: none;
        padding-bottom: 30px;
    }


    .guest-lightbox-image-wrap {
        width: 100%;
    }


        .guest-lightbox-image-wrap img {
            max-height: none;
            width: auto;
            max-width: 100%;
        }


    /*
     * Reactions are always visible directly
     * underneath the photo on mobile.
     */
    .guest-photo-reactions {
        width: 100%;
        margin-top: 14px;
        padding: 0 4px;
    }


    .guest-reaction-buttons {
        display: grid;
        grid-template-columns: repeat( 2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }


    .guest-reaction-btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        min-height: 44px;
    }


    .guest-reaction-emoji {
        font-size: 18px;
    }


    /*
     * Metadata appears underneath reactions.
     */
    .guest-lightbox-meta {
        width: 100%;
        box-sizing: border-box;
        padding: 14px 4px 0;
    }


    /*
     * Download icon should remain visible
     * on touch devices.
     */
    .guest-gallery-download {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        opacity: 1;
        transform: none;
        background: rgba( 30, 25, 21, .55);
    }


    .guest-lightbox-actions {
        width: 100%;
        justify-content: flex-start;
    }


    .guest-lightbox-download,
    .guest-lightbox-original {
        flex: 1 1 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .guest-photo-reactions {
        margin-top: 12px;
    }


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


    .guest-lightbox-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }


    .guest-lightbox-download,
    .guest-lightbox-original {
        width: 100%;
    }
}

/* =========================================================
   GUEST PHOTO COMMENTS
   ========================================================= */

.guest-photo-comments {
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 18px 4px 4px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.guest-comments-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

    .guest-comments-heading > div {
        min-width: 0;
    }

.guest-comments-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .5);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.guest-comments-heading strong {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 500;
}

.guest-comments-count {
    min-width: 28px;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 800;
}

.guest-comments-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 3px;
}

.guest-comment {
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
}

.guest-comment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .guest-comment-top strong {
        overflow: hidden;
        color: rgba(255, 255, 255, .9);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guest-comment-top span {
        flex: 0 0 auto;
        color: rgba(255, 255, 255, .38);
        font-size: 9px;
    }

.guest-comment p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.guest-comments-loading,
.guest-comments-empty,
.guest-comments-error {
    padding: 16px 12px;
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: rgba(255, 255, 255, .46);
    font-size: 10px;
    text-align: center;
}

.guest-comments-error {
    color: #f0b4ae;
}

.guest-comment-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

    .guest-comment-form label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
        color: rgba(255, 255, 255, .68);
        font-size: 10px;
        font-weight: 700;
    }

        .guest-comment-form label span {
            color: rgba(255, 255, 255, .32);
            font-size: 8px;
            font-weight: 500;
            text-transform: uppercase;
        }

    .guest-comment-form input,
    .guest-comment-form textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 11px;
        outline: none;
        background: rgba(255, 255, 255, .07);
        color: #fff;
        font: inherit;
    }

    .guest-comment-form input {
        min-height: 42px;
        padding: 0 11px;
    }

    .guest-comment-form textarea {
        min-height: 80px;
        padding: 10px 11px;
        resize: vertical;
    }

        .guest-comment-form input::placeholder,
        .guest-comment-form textarea::placeholder {
            color: rgba(255, 255, 255, .28);
        }

        .guest-comment-form input:focus,
        .guest-comment-form textarea:focus {
            border-color: rgba(255, 255, 255, .34);
            background: rgba(255, 255, 255, .1);
        }

.guest-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guest-comment-status {
    color: rgba(255, 255, 255, .52);
    font-size: 9px;
}

.guest-comment-submit {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .27);
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

    .guest-comment-submit:hover {
        background: rgba(255, 255, 255, .21);
    }

    .guest-comment-submit:disabled {
        opacity: .55;
        cursor: wait;
    }


/* Mobile comments */

@media (max-width: 800px) {

    .guest-photo-comments {
        padding-left: 4px;
        padding-right: 4px;
    }

    .guest-comments-list {
        max-height: 240px;
    }

    .guest-comment-form input {
        min-height: 44px;
        font-size: 16px;
    }

    .guest-comment-form textarea {
        font-size: 16px;
    }

    .guest-comment-submit {
        min-height: 44px;
    }
}

/* =========================================================
   GUEST GALLERY LIGHTBOX V2
   Desktop: image left + interaction panel right
   Mobile: stacked, scrollable layout
   This block intentionally comes last so it wins over the
   older guest-lightbox rules above without affecting admin UI.
   ========================================================= */

#lightbox.guest-lightbox {
    overflow: hidden;
}

    #lightbox.guest-lightbox .guest-lightbox-backdrop {
        background: rgba(12, 11, 10, .97);
    }

    #lightbox.guest-lightbox .guest-lightbox-shell {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 40px 76px 34px;
    }

    #lightbox.guest-lightbox .guest-lightbox-topbar {
        position: absolute;
        z-index: 30;
        top: 16px;
        left: 24px;
        right: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        pointer-events: none;
    }

    #lightbox.guest-lightbox .guest-lightbox-counter,
    #lightbox.guest-lightbox .guest-lightbox-close {
        pointer-events: auto;
    }

    #lightbox.guest-lightbox .guest-lightbox-counter {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 999px;
        background: rgba(0, 0, 0, .28);
        color: rgba(255, 255, 255, .78);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .05em;
        backdrop-filter: blur(10px);
    }

    #lightbox.guest-lightbox .guest-lightbox-close {
        position: static;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 50%;
        background: rgba(0, 0, 0, .32);
        color: #fff;
        font-size: 25px;
        line-height: 1;
        cursor: pointer;
        backdrop-filter: blur(10px);
    }

    #lightbox.guest-lightbox .guest-lightbox-content-v2 {
        width: min(1280px, 100%);
        height: min(820px, calc(100vh - 92px));
        max-height: calc(100vh - 92px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
        align-items: stretch;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 20px;
        background: #151412;
        box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
    }

    #lightbox.guest-lightbox .guest-lightbox-media-pane {
        min-width: 0;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #0d0c0b;
    }

    #lightbox.guest-lightbox .guest-lightbox-image-wrap {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 18px;
        overflow: hidden;
        background: transparent;
    }

        #lightbox.guest-lightbox .guest-lightbox-image-wrap img {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            display: block;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: none;
        }

    #lightbox.guest-lightbox .guest-lightbox-side-pane {
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 26px 24px 30px;
        border-left: 1px solid rgba(255, 255, 255, .08);
        background: #1b1917;
        color: #fff;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, .22) transparent;
    }

        #lightbox.guest-lightbox .guest-lightbox-side-pane::-webkit-scrollbar {
            width: 7px;
        }

        #lightbox.guest-lightbox .guest-lightbox-side-pane::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: rgba(255, 255, 255, .18);
        }

    #lightbox.guest-lightbox .guest-lightbox-meta {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin: 0;
        padding: 0 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        color: #fff;
    }

    #lightbox.guest-lightbox .guest-lightbox-copy {
        min-width: 0;
    }

    #lightbox.guest-lightbox .guest-lightbox-shared-label {
        display: block;
        margin-bottom: 7px;
        color: rgba(255, 255, 255, .38);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .15em;
    }

    #lightbox.guest-lightbox .guest-lightbox-copy strong {
        display: block;
        overflow: hidden;
        color: #fff;
        font-family: Georgia, serif;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #lightbox.guest-lightbox .guest-lightbox-copy p {
        margin: 7px 0 0;
        color: rgba(255, 255, 255, .6);
        font-size: 12px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    #lightbox.guest-lightbox .guest-lightbox-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

    #lightbox.guest-lightbox .guest-lightbox-original,
    #lightbox.guest-lightbox .guest-lightbox-download {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        padding: 0 11px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 9px;
        background: rgba(255, 255, 255, .05);
        color: rgba(255, 255, 255, .72);
        font-size: 10px;
        font-weight: 700;
        text-decoration: none;
    }

        #lightbox.guest-lightbox .guest-lightbox-original:hover,
        #lightbox.guest-lightbox .guest-lightbox-download:hover {
            background: rgba(255, 255, 255, .1);
            color: #fff;
        }

    #lightbox.guest-lightbox .guest-photo-reactions {
        width: 100%;
        margin: 20px 0 0;
        padding: 0;
    }

    #lightbox.guest-lightbox .guest-reaction-label {
        display: block;
        margin-bottom: 10px;
        color: rgba(255, 255, 255, .46);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    #lightbox.guest-lightbox .guest-reaction-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #lightbox.guest-lightbox .guest-reaction-btn {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 12px;
        background: rgba(255, 255, 255, .045);
        color: rgba(255, 255, 255, .72);
    }

        #lightbox.guest-lightbox .guest-reaction-btn:hover {
            border-color: rgba(255, 255, 255, .2);
            background: rgba(255, 255, 255, .08);
        }

        #lightbox.guest-lightbox .guest-reaction-btn.is-active {
            border-color: rgba(255, 255, 255, .32);
            background: rgba(255, 255, 255, .14);
            color: #fff;
        }

    #lightbox.guest-lightbox .guest-reaction-emoji {
        flex: 0 0 auto;
        font-size: 17px;
    }

    #lightbox.guest-lightbox .guest-reaction-name {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        font-size: 10px;
        font-weight: 700;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #lightbox.guest-lightbox .guest-reaction-count {
        flex: 0 0 auto;
        min-width: 22px;
        min-height: 22px;
        display: inline-grid;
        place-items: center;
        padding: 0 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        font-size: 9px;
        font-weight: 800;
    }

    #lightbox.guest-lightbox .guest-photo-comments {
        width: 100%;
        margin: 22px 0 0;
        padding: 20px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    #lightbox.guest-lightbox .guest-comments-heading {
        margin-bottom: 12px;
    }

        #lightbox.guest-lightbox .guest-comments-heading strong {
            font-size: 16px;
        }

    #lightbox.guest-lightbox .guest-comments-list {
        width: 100%;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 3px;
    }

    #lightbox.guest-lightbox .guest-comment-form {
        margin-top: 14px;
    }

        #lightbox.guest-lightbox .guest-comment-form label {
            margin-top: 0;
        }

    #lightbox.guest-lightbox .guest-lightbox-nav {
        z-index: 28;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .13);
        background: rgba(0, 0, 0, .34);
        backdrop-filter: blur(8px);
    }

    #lightbox.guest-lightbox .guest-lightbox-prev {
        left: 18px;
    }

    #lightbox.guest-lightbox .guest-lightbox-next {
        right: 18px;
    }

/* Tablet / compact desktop */
@media (max-width: 1040px) {

    #lightbox.guest-lightbox .guest-lightbox-shell {
        padding-left: 58px;
        padding-right: 58px;
    }

    #lightbox.guest-lightbox .guest-lightbox-content-v2 {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    }

    #lightbox.guest-lightbox .guest-lightbox-side-pane {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile / portrait tablet */
@media (max-width: 800px) {

    #lightbox.guest-lightbox {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        overflow: hidden;
        background: #11100f;
    }

        #lightbox.guest-lightbox .guest-lightbox-backdrop {
            position: fixed;
            inset: 0;
            background: #11100f;
        }

        #lightbox.guest-lightbox .guest-lightbox-shell {
            position: fixed;
            inset: 0;
            z-index: 2;
            width: 100%;
            height: 100dvh;
            display: block;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 56px 0 0;
            -webkit-overflow-scrolling: touch;
            background: #11100f;
        }

        #lightbox.guest-lightbox .guest-lightbox-topbar {
            position: fixed;
            z-index: 60;
            top: max(10px, env(safe-area-inset-top));
            left: 12px;
            right: 12px;
        }

        #lightbox.guest-lightbox .guest-lightbox-counter {
            min-height: 36px;
            padding: 0 12px;
            background: rgba(0, 0, 0, .56);
        }

        #lightbox.guest-lightbox .guest-lightbox-close {
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, .56);
        }

        #lightbox.guest-lightbox .guest-lightbox-content-v2 {
            width: 100%;
            min-height: calc(100dvh - 56px);
            height: auto;
            max-height: none;
            display: block;
            overflow: visible;
            border: 0;
            border-radius: 0;
            background: #11100f;
            box-shadow: none;
        }

        #lightbox.guest-lightbox .guest-lightbox-media-pane {
            position: relative;
            width: 100%;
            height: clamp(260px, 44dvh, 420px);
            min-height: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #0d0c0b;
        }

        #lightbox.guest-lightbox .guest-lightbox-image-wrap {
            width: 100%;
            height: 100%;
            min-height: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 10px 12px 12px;
            overflow: hidden;
        }

            #lightbox.guest-lightbox .guest-lightbox-image-wrap img {
                width: 100%;
                height: 100%;
                max-width: 100%;
                max-height: 100%;
                display: block;
                object-fit: contain;
                border-radius: 10px;
                box-shadow: none;
            }

        #lightbox.guest-lightbox .guest-lightbox-side-pane {
            width: 100%;
            min-height: 0;
            display: block;
            overflow: visible;
            padding: 18px 16px calc(34px + env(safe-area-inset-bottom));
            border: 0;
            border-top: 1px solid rgba(255, 255, 255, .08);
            background: #171513;
        }

        #lightbox.guest-lightbox .guest-lightbox-meta {
            width: 100%;
            margin: 0;
            padding: 0 0 16px;
        }

        #lightbox.guest-lightbox .guest-lightbox-copy strong {
            font-size: 18px;
        }

        #lightbox.guest-lightbox .guest-lightbox-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        #lightbox.guest-lightbox .guest-lightbox-original,
        #lightbox.guest-lightbox .guest-lightbox-download {
            width: 100%;
            min-height: 42px;
        }

        #lightbox.guest-lightbox .guest-photo-reactions {
            width: 100%;
            margin: 18px 0 0;
            padding: 0;
        }

        #lightbox.guest-lightbox .guest-reaction-buttons {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
        }

        #lightbox.guest-lightbox .guest-reaction-btn {
            width: 100%;
            min-width: 0;
            min-height: 58px;
            flex-direction: column;
            justify-content: center;
            gap: 3px;
            padding: 7px 3px;
            text-align: center;
        }

        #lightbox.guest-lightbox .guest-reaction-name {
            flex: 0 0 auto;
            width: 100%;
            font-size: 9px;
            text-align: center;
        }

        #lightbox.guest-lightbox .guest-reaction-count {
            min-width: 0;
            min-height: 0;
            padding: 0;
            background: transparent;
            font-size: 9px;
        }

        #lightbox.guest-lightbox .guest-photo-comments {
            width: 100%;
            margin: 20px 0 0;
            padding: 20px 0 0;
        }

        #lightbox.guest-lightbox .guest-comments-list {
            width: 100%;
            max-height: none;
            overflow: visible;
            padding-right: 0;
        }

        #lightbox.guest-lightbox .guest-comment-form {
            width: 100%;
            margin-top: 14px;
        }

        #lightbox.guest-lightbox .guest-comment-form-footer {
            align-items: stretch;
            flex-direction: column;
        }

        #lightbox.guest-lightbox .guest-comment-submit {
            width: 100%;
            min-height: 46px;
        }

        #lightbox.guest-lightbox .guest-lightbox-nav {
            position: fixed;
            z-index: 55;
            top: calc(56px + 22dvh);
            width: 40px;
            height: 40px;
            margin: 0;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, .62);
        }

        #lightbox.guest-lightbox .guest-lightbox-prev {
            left: 8px;
        }

        #lightbox.guest-lightbox .guest-lightbox-next {
            right: 8px;
        }
}

@media (max-width: 480px) {

    #lightbox.guest-lightbox .guest-lightbox-media-pane {
        height: clamp(230px, 39dvh, 350px);
    }

    #lightbox.guest-lightbox .guest-lightbox-side-pane {
        padding-left: 13px;
        padding-right: 13px;
    }

    #lightbox.guest-lightbox .guest-reaction-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    #lightbox.guest-lightbox .guest-reaction-btn {
        min-height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 7px;
        padding: 7px 9px;
        text-align: left;
    }

    #lightbox.guest-lightbox .guest-reaction-name {
        flex: 1;
        width: auto;
        font-size: 9px;
        text-align: left;
    }

    #lightbox.guest-lightbox .guest-reaction-count {
        min-width: 20px;
        min-height: 20px;
        display: inline-grid;
        place-items: center;
        padding: 0 4px;
        background: rgba(255, 255, 255, .07);
    }

    #lightbox.guest-lightbox .guest-lightbox-nav {
        top: calc(56px + 19.5dvh);
    }

    #lightbox.guest-lightbox .guest-lightbox-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   FINAL MOBILE NAV + COMMENT SCROLL FIX
   - Keep previous/next controls anchored to the photo itself.
   - Prevent long comment threads from extending the whole modal.
   ========================================================= */

#lightbox.guest-lightbox .guest-lightbox-media-pane {
    position: relative;
}

    #lightbox.guest-lightbox .guest-lightbox-media-pane .guest-lightbox-nav {
        position: absolute;
        z-index: 25;
        top: 50%;
        width: 46px;
        height: 46px;
        margin: 0;
        transform: translateY(-50%);
    }

    #lightbox.guest-lightbox .guest-lightbox-media-pane .guest-lightbox-prev {
        left: 14px;
    }

    #lightbox.guest-lightbox .guest-lightbox-media-pane .guest-lightbox-next {
        right: 14px;
    }

#lightbox.guest-lightbox .guest-comments-list {
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 800px) {
    #lightbox.guest-lightbox .guest-lightbox-media-pane .guest-lightbox-nav {
        position: absolute;
        top: 50%;
        width: 40px;
        height: 40px;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, .62);
    }

    #lightbox.guest-lightbox .guest-lightbox-media-pane .guest-lightbox-prev {
        left: 8px;
    }

    #lightbox.guest-lightbox .guest-lightbox-media-pane .guest-lightbox-next {
        right: 8px;
    }

    #lightbox.guest-lightbox .guest-comments-list {
        max-height: min(280px, 34dvh);
        overflow-y: auto;
        padding-right: 4px;
    }
}

@media (max-width: 480px) {
    #lightbox.guest-lightbox .guest-comments-list {
        max-height: min(240px, 30dvh);
    }
}

/* =========================================================
   FINAL PHOTO ACTIONS MENU
   - Replaces always-visible Open original / Download links.
   - Keeps the ellipsis immediately before the close button.
   - Works consistently on desktop and mobile.
   ========================================================= */

#lightbox.guest-lightbox .guest-lightbox-topbar {
    z-index: 80;
}

#lightbox.guest-lightbox .guest-lightbox-topbar-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

#lightbox.guest-lightbox .guest-lightbox-more-wrap {
    position: relative;
    flex: 0 0 auto;
}

#lightbox.guest-lightbox .guest-lightbox-more {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    outline: none;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .16s ease, border-color .16s ease, transform .12s ease;
}

    #lightbox.guest-lightbox .guest-lightbox-more:hover,
    #lightbox.guest-lightbox .guest-lightbox-more[aria-expanded="true"] {
        border-color: rgba(255, 255, 255, .22);
        background: rgba(255, 255, 255, .15);
    }

    #lightbox.guest-lightbox .guest-lightbox-more:active {
        transform: scale(.96);
    }

    #lightbox.guest-lightbox .guest-lightbox-more:focus-visible {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
    }

#lightbox.guest-lightbox .guest-lightbox-more-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 9px);
    right: 0;
    width: 205px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    background: rgba(28, 25, 23, .98);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .38);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

    #lightbox.guest-lightbox .guest-lightbox-more-menu[hidden] {
        display: none !important;
    }

#lightbox.guest-lightbox .guest-lightbox-more-item {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 11px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .14s ease, color .14s ease;
}

    #lightbox.guest-lightbox .guest-lightbox-more-item:hover,
    #lightbox.guest-lightbox .guest-lightbox-more-item:focus-visible {
        outline: none;
        background: rgba(255, 255, 255, .10);
        color: #fff;
    }

    #lightbox.guest-lightbox .guest-lightbox-more-item +
    .guest-lightbox-more-item {
        margin-top: 2px;
    }

/* The old action row is no longer rendered in Gallery.cshtml. */
#lightbox.guest-lightbox .guest-lightbox-actions {
    display: none !important;
}

@media (max-width: 800px) {
    #lightbox.guest-lightbox .guest-lightbox-topbar {
        left: 12px;
        right: 12px;
    }

    #lightbox.guest-lightbox .guest-lightbox-topbar-actions {
        gap: 7px;
    }

    #lightbox.guest-lightbox .guest-lightbox-more,
    #lightbox.guest-lightbox .guest-lightbox-close {
        width: 40px;
        height: 40px;
    }

    #lightbox.guest-lightbox .guest-lightbox-more-menu {
        top: calc(100% + 8px);
        right: 0;
        width: min(205px, calc(100vw - 30px));
    }
}

@media (max-width: 480px) {
    #lightbox.guest-lightbox .guest-lightbox-more-menu {
        width: 196px;
    }
}

/* =========================================================
   ELLIPSIS CLICK / TAP FIX
   The lightbox topbar intentionally disables pointer events so
   clicks pass through its empty area. Re-enable them for the
   photo-actions control and its dropdown.
   ========================================================= */
#lightbox.guest-lightbox .guest-lightbox-more-wrap,
#lightbox.guest-lightbox .guest-lightbox-more,
#lightbox.guest-lightbox .guest-lightbox-more-menu,
#lightbox.guest-lightbox .guest-lightbox-more-item {
    pointer-events: auto;
}


/* =========================================================
   REAL-TIME COMMENT TYPING INDICATOR
   ========================================================= */
#lightbox.guest-lightbox .guest-typing-indicator {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 9px 0 2px;
    padding: 0 2px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

    #lightbox.guest-lightbox .guest-typing-indicator[hidden] {
        display: none !important;
    }

#lightbox.guest-lightbox .guest-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 12px;
}

    #lightbox.guest-lightbox .guest-typing-dots span {
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: currentColor;
        opacity: .32;
        animation: guestTypingDot 1.05s infinite ease-in-out;
    }

        #lightbox.guest-lightbox .guest-typing-dots span:nth-child(2) {
            animation-delay: .14s;
        }

        #lightbox.guest-lightbox .guest-typing-dots span:nth-child(3) {
            animation-delay: .28s;
        }

@keyframes guestTypingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: .30;
    }

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #lightbox.guest-lightbox .guest-typing-dots span {
        animation: none;
        opacity: .75;
    }
}


/* =========================================================
   REAL-TIME PHOTO VIEWER PRESENCE
   ========================================================= */
#lightbox.guest-lightbox .guest-viewer-presence {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: 2px 0 14px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

    #lightbox.guest-lightbox .guest-viewer-presence[hidden] {
        display: none !important;
    }

#lightbox.guest-lightbox .guest-viewer-presence-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #7fcf9a;
    box-shadow: 0 0 0 4px rgba(127, 207, 154, .11);
    animation: guestPresencePulse 2.2s ease-in-out infinite;
}

@keyframes guestPresencePulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(127, 207, 154, .09);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(127, 207, 154, .02);
    }
}

@media (max-width: 800px) {
    #lightbox.guest-lightbox .guest-viewer-presence {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #lightbox.guest-lightbox .guest-viewer-presence-dot {
        animation: none;
    }
}

/*slideshow*/
.live-slideshow-html {
    width: 100%;
    min-height: 100%;
    height: auto;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #11100f;
    color-scheme: dark;
}

body.live-slideshow-page {
    width: 100%;
    min-height: 100%;
    height: auto;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    background: #11100f;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

    body.live-slideshow-page *,
    body.live-slideshow-page *::before,
    body.live-slideshow-page *::after {
        box-sizing: border-box;
    }

    body.live-slideshow-page button,
    body.live-slideshow-page a {
        font: inherit;
    }

    body.live-slideshow-page .live-show {
        position: relative;
        width: 100%;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: visible;
        isolation: isolate;
        background: radial-gradient( circle at 50% 40%, #292520 0%, #151311 56%, #0d0c0b 100%);
        color: #fff;
    }

    body.live-slideshow-page .live-show-stage {
        position: fixed;
        inset: 0;
        z-index: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100dvh;
        overflow: hidden;
        pointer-events: none;
        background: radial-gradient( circle at 50% 40%, #292520 0%, #151311 56%, #0d0c0b 100% );
    }

    body.live-slideshow-page .live-show-image {
        display: block;
        width: auto;
        height: auto;
        max-width: 100vw;
        max-height: 100dvh;
        object-fit: contain;
        object-position: center;
        opacity: 0;
        transform: scale(1.012);
        transition: opacity .55s ease, transform 1.1s ease;
        user-select: none;
        -webkit-user-drag: none;
    }

        body.live-slideshow-page .live-show-image.is-visible {
            opacity: 1;
            transform: scale(1);
        }

    body.live-slideshow-page .live-show-shade {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( to bottom, rgba(0, 0, 0, .44) 0%, transparent 23%, transparent 64%, rgba(0, 0, 0, .68) 100%);
    }

    body.live-slideshow-page .live-show-top {
        position: relative;
        z-index: 4;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
        padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
    }

    body.live-slideshow-page .live-show-brand {
        min-width: 0;
        text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
    }

    body.live-slideshow-page .live-show-kicker {
        display: block;
        margin-bottom: 5px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .2em;
        opacity: .72;
    }

    body.live-slideshow-page .live-show-title {
        max-width: 70vw;
        margin: 0;
        overflow: hidden;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(24px, 3.1vw, 48px);
        font-weight: 500;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.live-slideshow-page .live-show-status {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        padding: 9px 13px;
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 999px;
        background: rgba(16, 14, 12, .52);
        backdrop-filter: blur(14px);
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    body.live-slideshow-page .live-show-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #9ed69e;
        box-shadow: 0 0 12px rgba(158, 214, 158, .9);
    }

    body.live-slideshow-page .live-show-status.is-offline .live-show-dot {
        background: #d8b479;
        box-shadow: none;
    }

    body.live-slideshow-page .live-show-back {
        position: relative;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        width: fit-content;
        margin: 14px max(24px, env(safe-area-inset-right)) 0 auto;
        padding: 9px 12px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 999px;
        background: rgba(15, 13, 12, .45);
        color: rgba(255, 255, 255, .82);
        backdrop-filter: blur(12px);
        text-decoration: none;
        font-size: 12px;
        font-weight: 800;
        transition: background .2s ease, color .2s ease;
    }

        body.live-slideshow-page .live-show-back:hover,
        body.live-slideshow-page .live-show-back:focus-visible {
            background: rgba(255, 255, 255, .12);
            color: #fff;
            outline: none;
        }

    body.live-slideshow-page .live-show-empty {
        position: relative;
        z-index: 3;
        display: grid;
        min-height: calc(100dvh - 210px);
        place-items: center;
        padding: 32px;
        text-align: center;
    }

        body.live-slideshow-page .live-show-empty[hidden] {
            display: none;
        }

    body.live-slideshow-page .live-show-empty-card {
        width: min(620px, 100%);
        padding: 36px;
        border: 1px solid rgba(255, 255, 255, .11);
        border-radius: 28px;
        background: rgba(23, 20, 18, .56);
        backdrop-filter: blur(18px);
        box-shadow: 0 20px 80px rgba(0, 0, 0, .28);
    }

    body.live-slideshow-page .live-show-empty-icon {
        font-size: 42px;
        opacity: .8;
    }

    body.live-slideshow-page .live-show-empty h2 {
        margin: 14px 0 8px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(28px, 4vw, 52px);
        font-weight: 500;
    }

    body.live-slideshow-page .live-show-empty p {
        margin: 0;
        color: rgba(255, 255, 255, .7);
        line-height: 1.6;
    }

    body.live-slideshow-page .live-show-bottom {
        position: relative;
        z-index: 4;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
        min-height: calc(100dvh - 175px);
        padding: 40px max(28px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
    }

    body.live-slideshow-page .live-show-caption {
        max-width: min(760px, 66vw);
        text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
    }

    body.live-slideshow-page .live-show-name {
        display: block;
        font-size: clamp(16px, 1.8vw, 24px);
        font-weight: 800;
    }

    body.live-slideshow-page .live-show-message {
        margin: 7px 0 0;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(19px, 2.25vw, 34px);
        font-style: italic;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    body.live-slideshow-page .live-show-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        /* Push Shared at + Featured lower */
        margin-top: 18px;
        transform: translateY(10px);
        font-size: 12px;
        opacity: .78;
        color: rgba(255, 255, 255, .72);
    }

    body.live-slideshow-page .live-show-featured {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .12);
    }

    body.live-slideshow-page .live-show-controls {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 999px;
        background: rgba(15, 13, 12, .52);
        backdrop-filter: blur(16px);
        transition: opacity .25s ease, transform .25s ease;
    }

    body.live-slideshow-page .live-show.idle .live-show-controls {
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
    }

    body.live-slideshow-page .live-show-control {
        display: grid;
        width: 42px;
        height: 42px;
        padding: 0;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #fff;
        cursor: pointer;
        font-size: 18px;
    }

        body.live-slideshow-page .live-show-control:hover,
        body.live-slideshow-page .live-show-control:focus-visible {
            background: rgba(255, 255, 255, .14);
            outline: none;
        }

    body.live-slideshow-page .live-show-counter {
        min-width: 70px;
        text-align: center;
        font-size: 12px;
        font-weight: 800;
        opacity: .9;
    }

@media (max-width: 720px) {
    body.live-slideshow-page .live-show-top {
        gap: 12px;
        padding: max(16px, env(safe-area-inset-top)) 18px 0;
    }

    body.live-slideshow-page .live-show-title {
        max-width: 58vw;
    }

    body.live-slideshow-page .live-show-status {
        padding: 8px 10px;
    }

    body.live-slideshow-page .live-show-back {
        margin-right: 18px;
    }

    body.live-slideshow-page .live-show-bottom {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        gap: 18px;
        min-height: calc(100dvh - 150px);
        padding: 36px 18px max(18px, env(safe-area-inset-bottom));
    }

    @media (max-width: 720px) {
        body.live-slideshow-page .live-show-caption {
            max-width: 100%;
            transform: translateY(5px);
            text-align: left;
            align-self: stretch;
            padding-left: 6px;
        }

        body.live-slideshow-page .live-show-name,
        body.live-slideshow-page .live-show-message,
        body.live-slideshow-page .live-show-meta {
            text-align: left;
            justify-content: flex-start;
        }
    }

    body.live-slideshow-page .live-show-controls {
        align-self: center;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body.live-slideshow-page .live-show-kicker {
        font-size: 9px;
        letter-spacing: .16em;
    }

    body.live-slideshow-page .live-show-title {
        max-width: 56vw;
        font-size: clamp(22px, 7vw, 32px);
    }

    body.live-slideshow-page .live-show-status {
        gap: 6px;
        padding: 7px 9px;
        font-size: 11px;
    }

    body.live-slideshow-page .live-show-control {
        width: 38px;
        height: 38px;
    }

    body.live-slideshow-page .live-show-counter {
        min-width: 54px;
    }

    body.live-slideshow-page .live-show-message {
        font-size: clamp(18px, 5.4vw, 26px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.live-slideshow-page .live-show-image,
    body.live-slideshow-page .live-show-controls,
    body.live-slideshow-page .live-show-back {
        transition: none;
    }
}
/*gallery slideshow*/
.guest-gallery-header-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    align-items: center;
}

.guest-gallery-slideshow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid rgba(60, 48, 39, .22);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

    .guest-gallery-slideshow-btn:hover,
    .guest-gallery-slideshow-btn:focus-visible {
        background: rgba(60, 48, 39, .08);
    }

@media (max-width: 640px) {
    .guest-gallery-header-actions {
        width: 100%;
    }

        .guest-gallery-slideshow-btn,
        .guest-gallery-header-actions .guest-gallery-upload-btn {
            width: auto;
            flex: 1 1 0;
        }
}

body.live-slideshow-page .live-show.pseudo-fullscreen {
    width: 100%;
    min-height: 100dvh;
}

    body.live-slideshow-page .live-show.pseudo-fullscreen .live-show-stage {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
    }


/* ==========================================================
   ADMIN LIVE ACTIVITY DASHBOARD
   Append to the END of wwwroot/css/site.css
   ========================================================== */

.admin-live-dashboard {
    margin: 24px 0 28px;
    padding: 24px;
    border: 1px solid rgba(82, 61, 42, .12);
    border-radius: 24px;
    background: rgba(255, 252, 247, .92);
    box-shadow: 0 14px 42px rgba(62, 45, 29, .07);
}

.admin-live-dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

    .admin-live-dashboard-head h2 {
        margin: 4px 0 6px;
    }

    .admin-live-dashboard-head p {
        margin: 0;
        color: #74695e;
    }

.admin-live-connection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(71, 99, 70, .18);
    border-radius: 999px;
    background: rgba(235, 246, 233, .8);
    color: #456044;
    font-size: 12px;
    font-weight: 800;
}

.admin-live-connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ca46b;
    box-shadow: 0 0 0 4px rgba(108, 164, 107, .12);
}

.admin-live-connection.is-offline {
    background: #f5efe7;
    color: #7a654f;
}

    .admin-live-connection.is-offline .admin-live-connection-dot {
        background: #b99872;
        box-shadow: none;
    }

.admin-live-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.admin-live-metric {
    padding: 16px;
    border: 1px solid rgba(82, 61, 42, .1);
    border-radius: 18px;
    background: #fff;
}

.admin-live-metric-value {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    line-height: 1;
    color: #2d251f;
}

.admin-live-metric-label {
    display: block;
    margin-top: 8px;
    color: #7b6f64;
    font-size: 12px;
    font-weight: 700;
}

.admin-live-feed-wrap {
    margin-top: 18px;
    border-top: 1px solid rgba(82,61,42,.1);
    padding-top: 18px;
}

.admin-live-feed-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .admin-live-feed-title-row span {
        color: #8a7e72;
        font-size: 12px;
    }

.admin-live-feed {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.admin-live-feed-empty {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 150px;
    text-align: center;
    color: #8a7e72;
    border: 1px dashed rgba(82,61,42,.14);
    border-radius: 16px;
}

    .admin-live-feed-empty strong {
        color: #4c4036;
    }

.admin-live-feed-empty-icon {
    font-size: 24px;
}

.admin-live-feed-item {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(82,61,42,.09);
    border-radius: 14px;
    background: #fff;
    animation: adminLiveIn .22s ease both;
}

.admin-live-feed-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #f2ece4;
    color: #5e4b3a;
    font-weight: 900;
}

.admin-live-feed-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

    .admin-live-feed-copy strong {
        color: #30271f;
        font-size: 13px;
    }

    .admin-live-feed-copy span {
        overflow: hidden;
        color: #7a6d61;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.admin-live-feed-item time {
    color: #9a8d80;
    font-size: 11px;
    white-space: nowrap;
}

@keyframes adminLiveIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .admin-live-dashboard {
        padding: 18px;
        border-radius: 20px;
    }

    .admin-live-dashboard-head {
        flex-direction: column;
    }

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

    .admin-live-feed-item {
        grid-template-columns: 34px minmax(0,1fr);
    }

        .admin-live-feed-item time {
            grid-column: 2;
        }
}

/* ==========================================================
   EVENT-WIDE LIVE PRESENCE
   Append to the END of wwwroot/css/site.css
   ========================================================== */

.guest-event-presence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 11px;
    border: 1px solid rgba(88, 73, 58, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    color: rgba(70, 57, 45, .78);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    width: fit-content;
}

    .guest-event-presence[hidden] {
        display: none !important;
    }

.guest-event-presence-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #6fa06f;
    box-shadow: 0 0 0 4px rgba(111, 160, 111, .12);
}

/* The live dashboard grows from four cards to six.
   Existing dashboard styles still apply; this keeps the cards balanced. */
.admin-live-metrics {
    grid-template-columns: repeat( auto-fit, minmax(130px, 1fr));
}

@media (max-width: 720px) {
    .guest-event-presence {
        margin-top: 8px;
        font-size: 11px;
    }

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

.guest-gallery-header-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    align-items: center;
}

.guest-gallery-slideshow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid rgba(60, 48, 39, .22);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

    .guest-gallery-slideshow-btn:hover,
    .guest-gallery-slideshow-btn:focus-visible {
        background: rgba(60, 48, 39, .08);
    }

@media (max-width: 640px) {
    .guest-gallery-header-actions {
        width: 100%;
    }

        .guest-gallery-slideshow-btn,
        .guest-gallery-header-actions .guest-gallery-upload-btn {
            width: auto;
            flex: 1 1 0;
        }
}

/* =========================================================
   PERSISTENT EVENT ANALYTICS
   Append to the bottom of wwwroot/css/site.css
   ========================================================= */

.admin-analytics {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid #e8e0d7;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 42px rgba(78, 61, 45, .06);
}

.admin-analytics-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

    .admin-analytics-head h2 {
        margin: 4px 0 6px;
        color: #241c15;
        font-size: 24px;
    }

    .admin-analytics-head p {
        margin: 0;
        color: #806f60;
        font-size: 13px;
    }

.admin-analytics-saved-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #dfe7d9;
    border-radius: 999px;
    background: #f3f8f0;
    color: #527048;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-analytics-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.admin-analytics-kpi {
    min-width: 0;
    padding: 16px;
    border: 1px solid #ebe4dc;
    border-radius: 17px;
    background: #fff;
}

    .admin-analytics-kpi strong {
        display: block;
        color: #241c15;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 28px;
        line-height: 1;
    }

    .admin-analytics-kpi span {
        display: block;
        margin-top: 8px;
        color: #4c4036;
        font-size: 12px;
        font-weight: 800;
    }

    .admin-analytics-kpi small {
        display: block;
        margin-top: 4px;
        color: #978777;
        font-size: 10px;
        line-height: 1.35;
    }

.admin-analytics-grid {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.4fr);
    gap: 16px;
    margin-top: 16px;
}

.admin-analytics-highlights,
.admin-upload-trend {
    padding: 18px;
    border: 1px solid #ebe4dc;
    border-radius: 19px;
    background: #fff;
}

    .admin-analytics-highlights h3,
    .admin-upload-trend h3 {
        margin: 0;
        color: #2d241d;
        font-size: 14px;
    }

.admin-analytics-photo {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 9px;
    border: 1px solid #eee7df;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

    .admin-analytics-photo:hover,
    .admin-analytics-photo:focus-visible {
        transform: translateY(-1px);
        border-color: #d9cab9;
        background: #fcfaf7;
        outline: none;
    }

    .admin-analytics-photo img {
        width: 58px;
        height: 58px;
        object-fit: cover;
        border-radius: 11px;
        background: #eee8e2;
    }

.admin-analytics-photo-copy {
    min-width: 0;
}

    .admin-analytics-photo-copy small,
    .admin-analytics-photo-copy strong,
    .admin-analytics-photo-copy em {
        display: block;
    }

    .admin-analytics-photo-copy small {
        color: #9a7652;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: .14em;
    }

    .admin-analytics-photo-copy strong {
        margin-top: 3px;
        overflow: hidden;
        color: #30261f;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-analytics-photo-copy em {
        margin-top: 4px;
        color: #8d7b6c;
        font-size: 10px;
        font-style: normal;
    }

.admin-analytics-photo-empty,
.admin-upload-trend-empty {
    margin-top: 12px;
    padding: 18px;
    border: 1px dashed #e4d9ce;
    border-radius: 14px;
    color: #9a8979;
    font-size: 11px;
    text-align: center;
}

.admin-upload-trend-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .admin-upload-trend-head p {
        margin: 4px 0 0;
        color: #978777;
        font-size: 11px;
    }

    .admin-upload-trend-head > strong {
        color: #755b40;
        font-size: 11px;
    }

.admin-upload-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 210px;
    margin-top: 18px;
    padding-top: 12px;
    overflow-x: auto;
}

.admin-upload-bar-column {
    display: grid;
    grid-template-rows: 18px 150px 30px;
    gap: 5px;
    align-items: end;
    justify-items: center;
    min-width: 42px;
    flex: 1 0 42px;
}

.admin-upload-bar-count {
    color: #6f5a47;
    font-size: 10px;
    font-weight: 800;
}

.admin-upload-bar-track {
    position: relative;
    display: block;
    width: 24px;
    height: 150px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1ece7;
}

.admin-upload-bar-fill {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    min-height: 8px;
    border-radius: 999px;
    background: #755b40;
}

.admin-upload-bar-date {
    color: #9a8979;
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .admin-analytics-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-analytics {
        padding: 18px;
        border-radius: 20px;
    }

    .admin-analytics-head {
        flex-direction: column;
    }

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

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

@media (max-width: 460px) {
    .admin-analytics-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .admin-analytics-kpi {
        padding: 14px;
    }

        .admin-analytics-kpi strong {
            font-size: 24px;
        }
}

/* =========================================================   ANALYTICS SPACING + PHOTO PREVIEW MODAL   ========================================================= */ .admin-analytics {
    margin-bottom: 26px;
}

.admin-analytics-photo-button {
    width: 100%;
    border: 1px solid #eee7df;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

body.admin-analytics-modal-open {
    overflow: hidden;
}

.admin-analytics-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

    .admin-analytics-modal[hidden] {
        display: none;
    }

.admin-analytics-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 19, 15, .74);
    backdrop-filter: blur(8px);
}

.admin-analytics-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 94vw);
    max-height: 90dvh;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: #171411;
    box-shadow: 0 28px 90px rgba(0,0,0,.38);
}

.admin-analytics-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
}

    .admin-analytics-modal-topbar strong {
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.admin-analytics-modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

    .admin-analytics-modal-close:hover, .admin-analytics-modal-close:focus-visible {
        background: rgba(255,255,255,.16);
        outline: none;
    }

.admin-analytics-modal-image-wrap {
    display: grid;
    place-items: center;
    min-height: 280px;
    max-height: calc(90dvh - 68px);
    padding: 18px;
}

    .admin-analytics-modal-image-wrap img {
        display: block;
        max-width: 100%;
        max-height: calc(90dvh - 104px);
        object-fit: contain;
        border-radius: 14px;
    }

@media (max-width: 760px) {
    .admin-analytics {
        margin-bottom: 20px;
    }

    .admin-analytics-modal {
        padding: 12px;
    }

    .admin-analytics-modal-dialog {
        width: 100%;
        max-height: 92dvh;
        border-radius: 18px;
    }

    .admin-analytics-modal-image-wrap {
        padding: 10px;
        max-height: calc(92dvh - 64px);
    }

        .admin-analytics-modal-image-wrap img {
            max-height: calc(92dvh - 92px);
        }
}

/* =========================================================
   GUEST FAVORITES / MY SAVED PHOTOS
   Append to the bottom of wwwroot/css/site.css
   ========================================================= */

.guest-favorites-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 22px;
    padding: 12px 14px;
    border: 1px solid rgba(82, 66, 48, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .66);
    backdrop-filter: blur(10px);
}

.guest-favorites-toolbar-main {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.guest-favorites-filter,
.guest-favorites-download {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(72, 57, 44, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: #44372d;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

    .guest-favorites-filter:hover,
    .guest-favorites-download:hover:not(:disabled) {
        transform: translateY(-1px);
        border-color: rgba(72, 57, 44, .3);
        background: #fff;
    }

    .guest-favorites-filter.is-active {
        border-color: rgba(117, 91, 64, .42);
        background: #755b40;
        color: #fff;
    }

.guest-favorites-filter-heart {
    font-size: 18px;
    line-height: 1;
}

.guest-favorites-count {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(117, 91, 64, .1);
    font-size: 10px;
}

.guest-favorites-filter.is-active .guest-favorites-count {
    background: rgba(255, 255, 255, .18);
}

.guest-favorites-download:disabled {
    opacity: .45;
    cursor: default;
}

.guest-favorites-status {
    color: #8a796a;
    font-size: 11px;
    text-align: right;
}

.guest-gallery-card.favorite-filter-hidden {
    display: none !important;
}

.guest-gallery-favorite {
    position: absolute;
    z-index: 8;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(30, 25, 21, .52);
    backdrop-filter: blur(8px);
    color: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: .92;
    transition: transform .16s ease, background .16s ease, opacity .16s ease;
}

    .guest-gallery-favorite:hover,
    .guest-gallery-favorite:focus-visible {
        transform: scale(1.06);
        background: rgba(30, 25, 21, .76);
        opacity: 1;
    }

    .guest-gallery-favorite.is-favorite {
        border-color: rgba(255, 255, 255, .7);
        background: rgba(117, 91, 64, .92);
        color: #fff;
    }

.guest-favorite-icon {
    display: block;
    transform: translateY(-1px);
}

#lightbox.guest-lightbox .guest-lightbox-favorite {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    font-size: 23px;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

    #lightbox.guest-lightbox .guest-lightbox-favorite:hover,
    #lightbox.guest-lightbox .guest-lightbox-favorite:focus-visible {
        transform: scale(1.04);
        background: rgba(255, 255, 255, .16);
    }

    #lightbox.guest-lightbox .guest-lightbox-favorite.is-favorite {
        border-color: rgba(255, 255, 255, .46);
        background: #755b40;
    }

@media (max-width: 720px) {
    .guest-favorites-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
        margin-bottom: 18px;
        padding: 11px;
    }

    .guest-favorites-toolbar-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .guest-favorites-filter,
    .guest-favorites-download {
        width: 100%;
        min-width: 0;
        padding-left: 9px;
        padding-right: 9px;
    }

    .guest-favorites-status {
        padding: 0 4px 2px;
        text-align: left;
    }

    .guest-gallery-favorite {
        top: 8px;
        left: 8px;
        width: 36px;
        height: 36px;
        opacity: 1;
    }
}

@media (max-width: 420px) {
    .guest-favorites-toolbar-main {
        grid-template-columns: 1fr;
    }
}

.guest-gallery-header-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    align-items: center;
}

.guest-gallery-slideshow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid rgba(60, 48, 39, .22);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

    .guest-gallery-slideshow-btn:hover,
    .guest-gallery-slideshow-btn:focus-visible {
        background: rgba(60, 48, 39, .08);
    }

@media (max-width: 640px) {
    .guest-gallery-header-actions {
        width: 100%;
    }

        .guest-gallery-slideshow-btn,
        .guest-gallery-header-actions .guest-gallery-upload-btn {
            width: auto;
            flex: 1 1 0;
        }
}

/* ==========================================================
   ADMIN NAVBAR LIVE NOTIFICATIONS
   Append this section to the END of wwwroot/css/site.css
   ========================================================== */
.admin-notification-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.admin-notification-button {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #554a41;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

    .admin-notification-button:hover, .admin-notification-button:focus-visible, .admin-notification-button.is-open {
        border-color: #e7ddd2;
        background: #f7f3ee;
        color: #755b40;
        outline: none;
    }

.admin-notification-bell-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-notification-badge {
    position: absolute;
    top: -2px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #9c554b;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
}

.admin-notification-button.activity-pulse {
    animation: adminNotificationBellPulse .45s ease;
}

@keyframes adminNotificationBellPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.admin-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: -54px;
    z-index: 300;
    width: min(390px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid #e5ddd4;
    border-radius: 18px;
    background: rgba(255,253,250,.98);
    box-shadow: 0 22px 65px rgba(56,43,31,.18);
    backdrop-filter: blur(18px);
}

    .admin-notification-panel[hidden] {
        display: none;
    }

    .admin-notification-panel::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 66px;
        width: 11px;
        height: 11px;
        border-top: 1px solid #e5ddd4;
        border-left: 1px solid #e5ddd4;
        background: #fffdfa;
        transform: rotate(45deg);
    }

.admin-notification-panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 17px 14px;
    border-bottom: 1px solid #eee6dd;
    background: #fffdfa;
}

    .admin-notification-panel-head > div {
        min-width: 0;
    }

    .admin-notification-panel-head strong {
        display: block;
        color: #241d17;
        font-size: 14px;
        line-height: 1.25;
    }

    .admin-notification-panel-head > div > span {
        display: block;
        margin-top: 3px;
        color: #8c7d70;
        font-size: 10px;
    }

.admin-notification-live {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #dce8d9;
    border-radius: 999px;
    background: #f2f8f0;
    color: #456542;
    font-size: 10px;
    font-weight: 800;
}

.admin-notification-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #79ba75;
    box-shadow: 0 0 0 4px rgba(121,186,117,.12);
}

.admin-notification-list {
    max-height: min(440px, calc(100vh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-notification-item {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 13px 15px;
    border-bottom: 1px solid #f0e9e1;
    background: transparent;
    animation: adminNotificationItemIn .22s ease both;
}

    .admin-notification-item:last-child {
        border-bottom: 0;
    }

    .admin-notification-item:hover {
        background: #faf6f1;
    }

@keyframes adminNotificationItemIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-notification-item-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #f2ece5;
    color: #755b40;
    font-size: 15px;
    font-weight: 800;
}

.admin-notification-item-copy {
    min-width: 0;
}

    .admin-notification-item-copy strong {
        display: block;
        overflow: hidden;
        color: #2a221c;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-notification-item-copy span {
        display: -webkit-box;
        margin-top: 3px;
        overflow: hidden;
        color: #817266;
        font-size: 10px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.admin-notification-item time {
    align-self: start;
    padding-top: 2px;
    color: #a09285;
    font-size: 9px;
    white-space: nowrap;
}

.admin-notification-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 17px;
    color: #7f7165;
}

.admin-notification-empty-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #f2ece5;
    color: #92775e;
}

.admin-notification-empty strong {
    display: block;
    color: #40352c;
    font-size: 12px;
}

.admin-notification-empty div > span {
    display: block;
    margin-top: 3px;
    color: #938477;
    font-size: 10px;
    line-height: 1.4;
}

.admin-live-dashboard {
    padding-bottom: 22px;
}

@media (max-width: 700px) {
    .admin-notification-panel {
        position: fixed;
        top: 62px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100dvh - 76px);
    }

        .admin-notification-panel::before {
            display: none;
        }

    .admin-notification-list {
        max-height: calc(100dvh - 150px);
    }
}

@media (max-width: 480px) {
    .site-nav {
        gap: 8px;
    }

    .admin-notification-button {
        width: 34px;
        height: 34px;
    }

    .admin-notification-item {
        grid-template-columns: 36px minmax(0,1fr);
    }

        .admin-notification-item time {
            grid-column: 2;
            padding-top: 0;
        }
}


/* =========================================================
   EVENT QR GALLERY PWA
   Guest-facing install + admin fallback + iOS instructions
   ========================================================= */

.pwa-install-button,
.guest-pwa-install,
.guest-gallery-install-btn {
    font: inherit;
}

.pwa-install-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #e1d6ca;
    border-radius: 999px;
    background: #f8f4ef;
    color: #604d3b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

    .pwa-install-button.is-available {
        display: inline-flex;
    }

    .pwa-install-button:hover,
    .pwa-install-button:focus-visible {
        border-color: #cfbda9;
        background: #fff;
        outline: none;
        transform: translateY(-1px);
    }

    .pwa-install-button svg,
    .guest-pwa-install svg,
    .guest-gallery-install-btn svg,
    .pwa-install-sheet-icon svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Guest event landing install action */
.guest-pwa-install {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(78, 61, 45, .18);
    background: rgba(255, 255, 255, .72);
    color: #554333;
    cursor: pointer;
}

    .guest-pwa-install.is-available {
        display: inline-flex;
    }

    .guest-pwa-install:hover,
    .guest-pwa-install:focus-visible {
        background: #fff;
        border-color: rgba(117, 91, 64, .36);
        outline: none;
    }

/* Guest gallery install action */
.guest-gallery-install-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid rgba(60, 48, 39, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .66);
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

    .guest-gallery-install-btn.is-available {
        display: inline-flex;
    }

    .guest-gallery-install-btn:hover,
    .guest-gallery-install-btn:focus-visible {
        background: #fff;
        border-color: rgba(60, 48, 39, .34);
        outline: none;
        transform: translateY(-1px);
    }

/* iPhone / iPad install instructions */
body.pwa-install-sheet-open {
    overflow: hidden;
}

.pwa-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

    .pwa-install-sheet[hidden] {
        display: none;
    }

.pwa-install-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 23, 19, .55);
    backdrop-filter: blur(6px);
}

.pwa-install-sheet-card {
    position: absolute;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: min(430px, calc(100vw - 24px));
    padding: 25px 22px 22px;
    border: 1px solid rgba(85, 66, 49, .12);
    border-radius: 24px;
    background: #fffdfa;
    color: #342a22;
    box-shadow: 0 26px 70px rgba(36, 27, 20, .24);
    transform: translateX(-50%);
}

.pwa-install-sheet-close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e7ddd2;
    border-radius: 50%;
    background: #faf6f1;
    color: #55483e;
    font: inherit;
    font-size: 21px;
    cursor: pointer;
}

.pwa-install-sheet-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #755b40;
    color: #fff;
}

    .pwa-install-sheet-icon svg {
        width: 22px;
        height: 22px;
    }

.pwa-install-sheet-eyebrow {
    color: #8a6d4d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.pwa-install-sheet-card h2 {
    margin: 7px 42px 9px 0;
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1.08;
}

.pwa-install-sheet-card p {
    margin: 0;
    color: #75685d;
    font-size: 13px;
    line-height: 1.55;
}

.pwa-install-sheet-steps {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

    .pwa-install-sheet-steps span {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 12px;
        border: 1px solid #ece3da;
        border-radius: 14px;
        background: #faf7f3;
        font-size: 12px;
        font-weight: 800;
    }

    .pwa-install-sheet-steps b {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 50%;
        background: #755b40;
        color: #fff;
        font-size: 10px;
    }

.pwa-install-sheet-note {
    padding-top: 2px;
    font-size: 11px !important;
}

/* Update toast */
.pwa-update-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(390px, calc(100vw - 32px));
    padding: 12px 13px;
    border: 1px solid #ded4ca;
    border-radius: 16px;
    background: rgba(255, 253, 250, .98);
    color: #44372d;
    box-shadow: 0 18px 48px rgba(56, 43, 31, .16);
    backdrop-filter: blur(16px);
}

    .pwa-update-toast[hidden] {
        display: none;
    }

.pwa-update-toast-copy {
    min-width: 0;
    flex: 1;
}

    .pwa-update-toast-copy strong,
    .pwa-update-toast-copy span {
        display: block;
    }

    .pwa-update-toast-copy strong {
        font-size: 12px;
    }

    .pwa-update-toast-copy span {
        margin-top: 2px;
        color: #857568;
        font-size: 10px;
    }

.pwa-update-toast button {
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: #755b40;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 640px) {
    .guest-gallery-install-btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .pwa-install-fallback span {
        display: none;
    }

    .pwa-install-fallback {
        width: 34px;
        padding: 0;
        border-radius: 50%;
    }
}

/* =========================================================
   GUEST PWA INSTALL CARD - FINAL FIX
   Matches current Details.cshtml markup exactly.
   ========================================================= */

.guest-landing-actions .guest-install-card {
    width: 100%;
    min-height: 68px;
    display: none;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin: 0;
    border: 1px solid var(--guest-border);
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    color: var(--guest-text);
    text-align: left;
    font: inherit;
    box-shadow: 0 8px 22px rgba(63,48,35,.055);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

    .guest-landing-actions .guest-install-card.is-available {
        display: grid !important;
    }

    .guest-landing-actions .guest-install-card:hover,
    .guest-landing-actions .guest-install-card:focus-visible {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--guest-primary) 35%, var(--guest-border));
        background: #fff;
        box-shadow: 0 12px 28px rgba(63,48,35,.09);
        outline: none;
    }

    .guest-landing-actions .guest-install-card:active {
        transform: translateY(0);
    }

.guest-landing-actions .guest-install-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--guest-primary) 13%, white);
    color: var(--guest-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.guest-landing-actions .guest-install-copy {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
}

    .guest-landing-actions .guest-install-copy strong {
        display: block;
        width: 100%;
        margin: 0;
        color: var(--guest-text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .guest-landing-actions .guest-install-copy small {
        display: block;
        width: 100%;
        margin: 0;
        color: var(--guest-muted);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

.guest-landing-actions .guest-install-chevron {
    justify-self: end;
    align-self: center;
    color: var(--guest-primary);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

/* Gallery install button uses the same visual language. */
.guest-gallery-header-actions .guest-gallery-install-btn {
    min-height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(60,48,39,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

    .guest-gallery-header-actions .guest-gallery-install-btn.is-available {
        display: inline-flex !important;
    }

    .guest-gallery-header-actions .guest-gallery-install-btn svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }

@media (max-width: 700px) {
    .guest-landing-actions .guest-install-card {
        min-height: 66px;
        grid-template-columns: 42px minmax(0, 1fr) 20px;
        gap: 11px;
        padding: 10px 13px;
        border-radius: 15px;
    }

    .guest-landing-actions .guest-install-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 11px;
    }

    .guest-landing-actions .guest-install-copy strong {
        font-size: 13px;
    }

    .guest-landing-actions .guest-install-copy small {
        font-size: 11px;
    }

    .guest-gallery-header-actions .guest-gallery-install-btn {
        flex: 1 1 100%;
        width: 100%;
        border-radius: 14px;
    }
}

/* =========================================================
       GUEST PHOTO SHARE
       ========================================================= */

.guest-gallery-share {
    position: absolute;
    z-index: 12;
    top: 8px;
    right: 52px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    background: rgba(32, 27, 23, .56);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .13);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font: inherit;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease;
}

    .guest-gallery-share:hover,
    .guest-gallery-share:focus-visible {
        transform: scale(1.07);
        background: rgba(32, 27, 23, .78);
        outline: none;
    }

    .guest-gallery-share svg,
    #lightbox.guest-lightbox .guest-lightbox-share svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

#lightbox.guest-lightbox .guest-lightbox-share {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

    #lightbox.guest-lightbox .guest-lightbox-share:hover,
    #lightbox.guest-lightbox .guest-lightbox-share:focus-visible {
        transform: scale(1.04);
        background: rgba(255, 255, 255, .16);
        outline: none;
    }

.guest-share-toast {
    position: fixed;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 12000;
    transform: translate(-50%, 12px);
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(45, 38, 32, .95);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

    .guest-share-toast.is-visible {
        opacity: 1;
        transform: translate(-50%, 0);
    }

@media (max-width: 420px) {
    .guest-gallery-share {
        top: 8px;
        right: 50px;
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   EVENT ARCHIVE
   ========================================================= */

.admin-archive-banner,
.guest-archive-banner {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfd4c7;
    background: #f7f1e9;
    color: #55483d;
}

.admin-archive-banner {
    max-width: 1180px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .admin-archive-banner > div {
        min-width: 0;
    }

    .admin-archive-banner strong,
    .admin-archive-banner span,
    .guest-archive-banner strong,
    .guest-archive-banner span {
        display: block;
    }

    .admin-archive-banner span,
    .guest-archive-banner span {
        margin-top: 3px;
        color: #7a6c60;
        font-size: 12px;
        line-height: 1.45;
    }

.guest-archive-banner {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 15px;
}

.admin-archive-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eee5db;
    color: #6e5c4d;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-control-row-static {
    cursor: default !important;
    opacity: .72;
}

.admin-archive-row {
    opacity: .95;
}

[data-event-archived="true"] .guest-reaction-button:disabled,
[data-event-archived="true"] [data-reaction]:disabled,
[data-event-archived="true"] .guest-comment-submit:disabled,
[data-event-archived="true"] #commentSubmit:disabled {
    opacity: .42;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .admin-archive-banner {
        align-items: stretch;
        flex-direction: column;
    }

        .admin-archive-banner form,
        .admin-archive-banner button {
            width: 100%;
        }
}