/* PinFin page gradients (header body + about.php sections) */
:root {
    --eg-page-bg: linear-gradient(135deg, #003b73, #00916e);
    --eg-about-section-bg: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(5, 150, 105, 0.85) 100%);
}

/* Events gallery — login gate (blurred mock of real gallery UI) */
.eg-gate {
    --eg-green: #0e7a3e;
    --eg-ink: #0f172a;
    --eg-muted: #64748b;
    position: relative;
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 2rem 1rem;
    background: var(--eg-page-bg);
}
.eg-gate-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    pointer-events: none;
    z-index: 0;
}
.eg-gate-preview .eg-directory {
    width: 100%;
    max-width: 1280px;
    margin: 0;
    padding: 0;
    filter: blur(11px) saturate(1.15);
    transform: scale(1.02);
    opacity: 0.92;
}
.eg-gate-mock-layout {
    pointer-events: none;
}
.eg-gate-mock-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--eg-ink);
    background: transparent;
}
.eg-gate-mock-event.is-active {
    background: linear-gradient(135deg, rgba(14, 122, 62, 0.12), rgba(0, 174, 239, 0.1));
    color: var(--eg-green);
    font-weight: 600;
}
.eg-gate-mock-event::after {
    content: '12';
    font-size: 0.7rem;
    color: var(--eg-muted);
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}
.eg-gate-mock-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--eg-ink);
    margin: 0;
}
.eg-gate-mock-sizes {
    display: flex;
    gap: 0.35rem;
}
.eg-gate-mock-sizes span {
    display: block;
    width: 3.25rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #e2e8f0;
}
.eg-gate-mock-sizes span:first-child {
    background: linear-gradient(135deg, #0e7a3e, #00aeef);
}
.eg-gate-mock-photo {
    aspect-ratio: 1;
    border-radius: 10px;
    background: #cbd5e1;
}
.eg-gate-card {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 28rem;
    margin: 2rem 1.25rem;
    padding: 2rem 1.75rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}
.eg-gate-card h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.65rem;
}
.eg-gate-card p {
    margin: 0 0 1.35rem;
    color: #64748b;
    line-height: 1.6;
    font-size: 1.05rem;
}
.eg-gate-login {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #0e7a3e 0%, #00aeef 100%);
    box-shadow: 0 8px 24px rgba(14, 122, 62, 0.35);
    transition: opacity 0.15s, transform 0.15s;
}
.eg-gate-login:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}
.eg-gate-register {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: #0e7a3e;
    font-weight: 600;
    text-decoration: none;
}
.eg-gate-register:hover {
    text-decoration: underline;
}

/* Events gallery — PinFin community photo albums */
.eg-page {
    --eg-green: #0e7a3e;
    --eg-blue: #00aeef;
    --eg-ink: #0f172a;
    --eg-muted: #64748b;
    --eg-border: #e2e8f0;
    --eg-card: #ffffff;
    min-height: 60vh;
    /* Transparent so site body gradient shows (same as about.php) */
    background: transparent;
}

/* Content shell — matches business-and-halal-restaurants-finland hero boxes */
.eg-directory {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2.5rem;
}

.eg-hero {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.1rem 1.35rem;
    border-left: 4px solid #059669;
}
.eg-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 48rem;
}
.eg-hero-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.eg-hero-text {
    min-width: 0;
}
.eg-hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 0.2rem;
    line-height: 1.25;
}
.eg-hero-subtitle {
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 540px) {
    .eg-hero {
        padding: 1rem 1.1rem;
    }
    .eg-hero-inner {
        gap: 0.85rem;
    }
    .eg-hero-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    .eg-hero-title {
        font-size: 1.3rem;
    }
    .eg-hero-subtitle {
        font-size: 0.88rem;
    }
}

.eg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--eg-border);
    margin-bottom: 1.25rem;
}
.eg-toolbar h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--eg-ink);
    margin: 0;
}
.eg-size-picker {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--eg-muted);
}
.eg-size-picker button {
    border: 1px solid var(--eg-border);
    background: var(--eg-card);
    color: var(--eg-ink);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.eg-size-picker button:hover {
    border-color: var(--eg-green);
}
.eg-size-picker button.is-active {
    background: linear-gradient(135deg, var(--eg-green), var(--eg-blue));
    color: #fff;
    border-color: transparent;
}

.eg-admin-bar {
    max-width: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.eg-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.5rem;
    padding: 0;
}
@media (max-width: 768px) {
    .eg-layout {
        grid-template-columns: 1fr;
    }
}

.eg-sidebar {
    background: var(--eg-card);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 1rem;
    align-self: start;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}
@media (max-width: 768px) {
    .eg-sidebar {
        position: static;
        max-height: none;
    }
}
.eg-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eg-muted);
    margin: 0 0 0.75rem;
    font-weight: 700;
}
.eg-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.eg-event-list li {
    margin-bottom: 0.25rem;
}
.eg-event-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--eg-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
}
.eg-event-btn:hover {
    background: #f1f5f9;
}
.eg-event-btn.is-active {
    background: linear-gradient(135deg, rgba(14, 122, 62, 0.12), rgba(0, 174, 239, 0.1));
    color: var(--eg-green);
    font-weight: 600;
}
.eg-event-btn .eg-count {
    font-size: 0.75rem;
    color: var(--eg-muted);
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}
.eg-event-btn.is-active .eg-count {
    background: rgba(14, 122, 62, 0.15);
    color: var(--eg-green);
}

.eg-main {
    background: var(--eg-card);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.5rem 1.5rem;
    min-height: 320px;
}

.eg-grid {
    display: grid;
    gap: 0.75rem;
}
.eg-grid.size-s {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
.eg-grid.size-m {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.eg-grid.size-l {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.eg-photo-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #e2e8f0;
    cursor: zoom-in;
}
.eg-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.eg-photo-shield {
    position: absolute;
    inset: 0;
    bottom: 2.5rem;
    z-index: 2;
}
.eg-photo-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
}
.eg-photo-actions button {
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--eg-ink);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.15s, color 0.15s;
}
.eg-photo-actions button:hover {
    background: #fff;
}
.eg-photo-wrap--no-actions .eg-photo-shield {
    bottom: 0;
}
.eg-photo-actions button.is-liked {
    color: #dc2626;
}
.eg-photo-actions .eg-action-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* Community comments sidebar feed */
.eg-community-comments {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--eg-border);
}
.eg-community-comments h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eg-muted);
    margin: 0 0 0.65rem;
    font-weight: 700;
}
.eg-community-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}
.eg-community-feed li {
    margin-bottom: 0.45rem;
}
.eg-community-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--eg-border);
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.eg-community-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.eg-community-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--eg-ink);
    margin-bottom: 0.15rem;
}
.eg-community-item span {
    display: block;
    font-size: 0.78rem;
    color: var(--eg-muted);
    line-height: 1.4;
}
.eg-community-item time {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}
.eg-community-empty {
    font-size: 0.82rem;
    color: var(--eg-muted);
    margin: 0;
    line-height: 1.45;
}

/* Admin: pending comment moderation */
.eg-pending-panel {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--eg-border);
}
body.eg-admin-mode .eg-pending-panel {
    display: block;
}
.eg-pending-panel h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eg-muted);
    margin: 0 0 0.65rem;
    font-weight: 700;
}
.eg-pending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}
.eg-pending-item {
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
}
.eg-pending-item strong {
    display: block;
    color: var(--eg-ink);
}
.eg-pending-item .eg-pending-preview {
    color: #64748b;
    margin: 0.2rem 0;
    line-height: 1.35;
}
.eg-pending-item .eg-pending-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.eg-pending-item .eg-pending-actions button {
    flex: 1;
    padding: 0.25rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--eg-border);
    background: #fff;
}
.eg-pending-item .eg-pending-actions .eg-approve-btn {
    background: #059669;
    color: #fff;
    border-color: #059669;
}
.eg-pending-item .eg-pending-actions .eg-reject-btn {
    color: #b91c1c;
    border-color: #fecaca;
}
.eg-pending-empty {
    font-size: 0.8rem;
    color: var(--eg-muted);
    margin: 0;
}
.eg-comment-pending-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fef3c7;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.35rem;
}

/* Comments modal */
.eg-comments-modal {
    z-index: 10055;
}
.eg-comments-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(520px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.eg-comments-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--eg-ink);
}
.eg-comments-head {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--eg-border);
}
.eg-comments-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #e2e8f0;
}
.eg-comments-head h3 {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    color: var(--eg-ink);
}
.eg-comments-event {
    margin: 0;
    font-size: 0.82rem;
    color: var(--eg-muted);
}
.eg-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    min-height: 120px;
    max-height: 42vh;
}
.eg-comment-item {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.eg-comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.eg-comment-meta {
    font-size: 0.78rem;
    color: var(--eg-muted);
    margin-bottom: 0.25rem;
}
.eg-comment-meta strong {
    color: var(--eg-ink);
}
.eg-comment-body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
    word-break: break-word;
}
.eg-comment-body ul, .eg-comment-body ol {
    margin: 0.35rem 0 0.35rem 1.1rem;
    padding: 0;
}
.eg-comments-form-wrap {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--eg-border);
    background: #f1f5f9;
}
#eg-comment-submit {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: #1d4ed8;
    border: 2px solid #1e3a8a;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.4);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
#eg-comment-submit:hover {
    background: #1e40af;
    border-color: #172554;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.45);
}
#eg-comment-submit:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
.eg-comments-rt {
    border: 1px solid var(--eg-border);
    border-radius: 10px;
    background: #fff;
    overflow: visible;
    margin-bottom: 0.55rem;
}
.eg-comments-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--eg-border);
    position: relative;
}
.eg-comments-toolbar button {
    padding: 0.2rem 0.45rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}
.eg-comments-toolbar emoji-picker[data-pf-emoji-picker] {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    z-index: 10;
}
.eg-comments-editor {
    min-height: 72px;
    max-height: 160px;
    overflow-y: auto;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
}
.eg-comments-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
}
.eg-comments-empty {
    text-align: center;
    color: var(--eg-muted);
    font-size: 0.88rem;
    padding: 1rem 0;
}

.eg-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--eg-muted);
}
.eg-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Admin bar */
.eg-btn-manage {
    background: var(--eg-ink);
    color: #fff;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.eg-btn-manage.is-on {
    background: linear-gradient(135deg, var(--eg-green), var(--eg-blue));
}
.eg-manage-panel {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px dashed var(--eg-border);
    border-radius: 12px;
}
.eg-manage-panel.is-visible {
    display: block;
}
.eg-manage-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.eg-manage-row input[type="text"],
.eg-manage-row input[type="date"] {
    flex: 1;
    min-width: 140px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--eg-border);
    border-radius: 8px;
}
.eg-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--eg-border);
    background: #fff;
}
.eg-btn-primary {
    background: var(--eg-green);
    color: #fff;
    border-color: var(--eg-green);
}
.eg-btn-danger {
    color: #b91c1c;
    border-color: #fecaca;
}
.eg-upload-zone {
    border: 2px dashed var(--eg-blue);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: var(--eg-muted);
    margin-top: 0.75rem;
    cursor: pointer;
}
.eg-upload-zone.is-dragover,
.eg-main.is-file-dragover .eg-grid {
    background: rgba(0, 174, 239, 0.06);
}
.eg-upload-zone-hint {
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}
.eg-upload-zone.is-uploading {
    pointer-events: none;
    cursor: wait;
    border-color: var(--eg-green);
    background: #f8fafc;
}
.eg-upload-zone.is-uploading .eg-upload-zone-prompt {
    display: none;
}
.eg-upload-progress {
    padding: 0.25rem 0.5rem 0;
}
.eg-upload-progress[hidden] {
    display: none !important;
}
.eg-upload-zone.is-uploading .eg-upload-progress {
    display: block;
}
.eg-upload-progress-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.eg-upload-spinner {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 174, 239, 0.25);
    border-top-color: var(--eg-blue);
    border-radius: 50%;
    animation: eg-upload-spin 0.75s linear infinite;
}
@keyframes eg-upload-spin {
    to {
        transform: rotate(360deg);
    }
}
.eg-upload-status {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
}
.eg-upload-status.is-error {
    color: #b91c1c;
}
.eg-upload-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.eg-upload-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--eg-green), var(--eg-blue));
    transition: width 0.15s ease-out;
}
.eg-upload-zone.is-uploading .eg-upload-progress-bar {
    transition: width 0.1s linear;
}
.eg-photo-wrap.is-admin {
    cursor: grab;
}
.eg-photo-wrap.is-admin .eg-photo-del {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(185, 28, 28, 0.9);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.eg-photo-wrap.is-admin:hover .eg-photo-del {
    opacity: 1;
}
.eg-photo-wrap.is-dragging {
    opacity: 0.5;
}
.eg-sidebar .eg-admin-event-tools {
    display: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--eg-border);
}
body.eg-admin-mode .eg-admin-event-tools {
    display: block;
}

/* Lightbox */
.eg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.eg-lightbox.is-open {
    display: flex;
}
.eg-lightbox img {
    max-width: min(96vw, 1200px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.eg-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.eg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.eg-lightbox-prev { left: 1rem; }
.eg-lightbox-next { right: 1rem; }
.eg-lightbox-cap {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    max-width: 90%;
    text-align: center;
}

/* Download notice modal */
.eg-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.eg-modal-backdrop.is-open {
    display: flex;
}
.eg-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.eg-modal h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: var(--eg-ink);
}
.eg-modal p {
    margin: 0 0 1rem;
    color: var(--eg-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}
.eg-modal .eg-btn-primary {
    display: inline-block;
    text-decoration: none;
    padding: 0.55rem 1.25rem;
}
