:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.88);
    --panel-2: rgba(15, 23, 42, 0.82);
    --border: rgba(148, 163, 184, 0.14);
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #0ea5e9;
    --primary-2: #38bdf8;
    --primary-soft: rgba(14, 165, 233, 0.12);
    --success: #22c55e;
    --danger: #ef4444;
    --shadow: 0 18px 42px rgba(2, 8, 23, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top, rgba(14, 165, 233, 0.08), transparent 32%),
        linear-gradient(180deg, #020617 0%, #081121 100%);
    color: var(--text);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 2.5rem 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.logo-container a {
    display: inline-flex;
    align-items: center;
}

#logo {
    height: 58px;
    width: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-support-btn {
    border: 1px solid rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.12);
    color: #e0f2fe;
    font-weight: 700;
}

.nav-support-btn:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(56, 189, 248, 0.6);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    border-radius: 12px;
    width: 46px;
    height: 46px;
    cursor: pointer;
}

main {
    padding-bottom: 2rem;
}

.flash-message {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    font-weight: 600;
}

.flash-success {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #dcfce7;
}

.flash-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fee2e2;
}

.page-hero,
.home-hero {
    padding: 3.5rem 0 2rem;
}

.page-hero h1,
.home-hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    color: #f8fafc;
}

.page-hero p,
.home-hero-copy p {
    color: var(--muted);
    max-width: 70ch;
}

.home-hero-grid,
.highlight-grid,
.contact-layout {
    display: grid;
    gap: 1.2rem;
}

.home-hero-copy,
.home-hero-panel,
.service-card,
.highlight-copy,
.highlight-panel,
.link-card,
.cta-box,
.contact-card,
.contact-info-card,
.ticket-callout,
.faq-item {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.home-hero-copy,
.highlight-copy,
.highlight-panel,
.cta-box,
.contact-card,
.contact-info-card,
.ticket-callout {
    padding: 1.5rem;
}

.home-hero-panel {
    padding: 1.2rem;
}

.hero-info-card {
    width: 100%;
    padding: 1.35rem;
    border-radius: 20px;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.95) 58%);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.eyebrow,
.hero-card-label,
.link-card-tag,
.mini-stat-card span {
    display: inline-block;
    color: #7dd3fc;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.4rem;
}

.section-heading h2,
.highlight-copy h2,
.cta-box h2,
.ticket-callout h2,
.contact-card h2,
.contact-info-card h3 {
    margin: 0.3rem 0 0.8rem;
    color: #f8fafc;
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

.section-heading p,
.highlight-copy p,
.cta-box p,
.ticket-callout p,
.contact-card p,
.contact-ticket-copy,
.faq-item p,
.process-step p,
.service-card p,
.link-card p {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.9rem 1.15rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.hero-primary-btn {
    background: #0ea5e9;
    color: #082f49;
}

.hero-primary-btn:hover {
    transform: translateY(-2px);
    background: #38bdf8;
}

.hero-secondary-btn {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.22);
}

.hero-secondary-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.55);
    background: rgba(14, 165, 233, 0.1);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.trust-chip {
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.16);
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 600;
}

.support-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 62ch;
}

.hero-info-card h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
}

.hero-info-card ul,
.highlight-list,
.contact-help-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: #cbd5e1;
}

.hero-info-card li + li,
.highlight-list li + li,
.contact-help-list li + li {
    margin-top: 0.55rem;
}

.service-cards,
.link-cards,
.faq-list,
.process-steps,
.highlight-panel,
.contact-side,
.contact-info-list {
    display: grid;
    gap: 1rem;
}

.service-card,
.link-card,
.faq-item {
    padding: 1.25rem;
}

.service-icon,
.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
}

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 14px;
    font-size: 1.15rem;
}

.service-card h3,
.link-card h3,
.faq-item h3,
.process-step h3 {
    margin: 0 0 0.6rem;
    color: #f8fafc;
}

.link-card {
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(2, 8, 23, 0.24);
}

.mini-stat-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.mini-stat-card strong {
    color: #e2e8f0;
    line-height: 1.4;
}

.process-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #082f49;
    font-weight: 800;
    font-size: 1rem;
}

.contact-form,
.form-group {
    display: grid;
    gap: 0.75rem;
}

.form-group label {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.5);
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    background: rgba(2, 6, 23, 0.72);
}

.contact-submit-btn,
.contact-ticket-btn {
    width: 100%;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 0.85rem;
    align-items: start;
}

.contact-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.contact-info-item strong {
    display: block;
    margin-bottom: 0.22rem;
    color: #f8fafc;
}

.contact-info-item a,
.contact-info-item span,
.footer-links-group a,
footer p {
    color: var(--muted);
    text-decoration: none;
}

.contact-info-item a:hover,
.footer-links-group a:hover {
    color: #e2e8f0;
}

footer {
    margin-top: 2rem;
    padding: 2.5rem 0 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    display: grid;
    gap: 1.4rem;
}

.footer-grid h3,
.footer-heading {
    color: #f8fafc;
}

.footer-links-group {
    display: grid;
    gap: 0.55rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #e2e8f0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    color: #38bdf8;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

@media (min-width: 860px) {
    .home-hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

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

    .highlight-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }

    .link-cards,
    .faq-list,
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 82px;
        right: 1rem;
        width: min(340px, calc(100% - 2rem));
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.14);
        box-shadow: 0 18px 42px rgba(2, 8, 23, 0.28);
    }

    nav ul.show {
        display: flex;
    }

    nav a {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .home-hero-copy,
    .home-hero-panel,
    .service-card,
    .highlight-copy,
    .highlight-panel,
    .link-card,
    .cta-box,
    .contact-card,
    .contact-info-card,
    .ticket-callout,
    .faq-item {
        border-radius: 18px;
    }

    .home-hero-copy,
    .highlight-copy,
    .highlight-panel,
    .cta-box,
    .contact-card,
    .contact-info-card,
    .ticket-callout {
        padding: 1.15rem;
    }

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

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

    .process-step {
        grid-template-columns: 1fr;
    }

    .process-step span {
        width: 44px;
        height: 44px;
    }

    .container {
        width: min(100% - 1rem, 1120px);
    }
}
.catalog-toolbar,
.gallery-toolbar,
.empty-state-card,
.catalog-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.82));
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.14);
}

.catalog-toolbar,
.gallery-toolbar,
.empty-state-card {
    padding: 1.5rem;
}

.catalog-toolbar,
.gallery-toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.catalog-toolbar h2,
.gallery-toolbar h2,
.empty-state-card h2 {
    margin: 0.3rem 0 0.7rem;
    color: #f8fafc;
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.catalog-toolbar p,
.gallery-toolbar p,
.empty-state-card p {
    color: #94a3b8;
    max-width: 70ch;
}

.catalog-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.catalog-grid {
    display: grid;
    gap: 1rem;
}

.catalog-card {
    overflow: hidden;
}

.catalog-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.45);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.catalog-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card-body {
    padding: 1.2rem;
}

.catalog-card-tag {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.catalog-card-body h3 {
    margin: 0 0 0.55rem;
    color: #f8fafc;
}

.catalog-card-body p {
    margin: 0;
    color: #94a3b8;
}

.catalog-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

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

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.82));
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.14);
    text-decoration: none;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.empty-state-card {
    text-align: center;
}

.empty-state-card .hero-actions {
    justify-content: center;
}

@media (min-width: 860px) {
    .catalog-toolbar,
    .gallery-toolbar {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .catalog-toolbar,
    .gallery-toolbar,
    .empty-state-card,
    .catalog-card,
    .gallery-card {
        border-radius: 18px;
    }

    .catalog-toolbar,
    .gallery-toolbar,
    .empty-state-card {
        padding: 1.15rem;
    }

    .catalog-toolbar-actions,
    .catalog-card-actions {
        flex-direction: column;
    }

    .catalog-card-actions .hero-primary-btn,
    .catalog-card-actions .hero-secondary-btn,
    .catalog-toolbar-actions .hero-primary-btn,
    .catalog-toolbar-actions .hero-secondary-btn {
        width: 100%;
    }
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.82));
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.14);
    text-decoration: none;
    padding: 0;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: 0;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.lightbox-open {
    overflow: hidden;
}

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

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

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(6px);
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 1.5rem));
    height: min(90vh, 900px);
    margin: 4vh auto;
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    padding: 1rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.35);
    object-fit: contain;
    background: #020617;
}

.lightbox-close,
.lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    transform: scale(1.05);
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
}

.lightbox-close {
    position: absolute;
    top: -8px;
    right: 0;
    z-index: 4;
}

.lightbox-prev {
    justify-self: start;
}

.lightbox-next {
    justify-self: end;
}

.lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.92rem;
    z-index: 4;
}

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

    .lightbox-dialog {
        width: min(100% - 1rem, 1000px);
        grid-template-columns: 56px 1fr 56px;
    }

    .lightbox-content img {
        max-height: 72vh;
    }
}

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

    .lightbox-dialog {
        width: calc(100% - 0.75rem);
        margin: 2.5vh auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 0.75rem;
        height: auto;
    }

    .lightbox-content {
        padding: 0.5rem 0;
    }

    .lightbox-content img {
        max-height: 68vh;
        width: 100%;
    }

    .lightbox-close {
        top: 0;
        right: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 4;
    }

    .lightbox-prev {
        left: 0.4rem;
    }

    .lightbox-next {
        right: 0.4rem;
    }

    .lightbox-counter {
        bottom: -0.2rem;
    }
}
.lightbox-content {
    touch-action: pan-y;
}

.lightbox-content img {
    will-change: transform;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.lightbox.lightbox-visible {
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.lightbox.lightbox-visible .lightbox-backdrop {
    opacity: 1;
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 1.5rem));
    height: min(90vh, 900px);
    margin: 4vh auto;
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.lightbox.lightbox-visible .lightbox-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    padding: 1rem;
    touch-action: pan-y;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.35);
    object-fit: contain;
    background: #020617;
    will-change: transform, opacity;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.lightbox-content img.slide-out-next {
    opacity: 0;
    transform: translateX(-42px) scale(0.985);
}

.lightbox-content img.slide-out-prev {
    opacity: 0;
    transform: translateX(42px) scale(0.985);
}

.lightbox-content img.slide-in-next {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.lightbox-content img.slide-in-prev {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.lightbox-close,
.lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    transform: scale(1.06);
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
}

.lightbox-close {
    position: absolute;
    top: -8px;
    right: 0;
    z-index: 4;
}

.lightbox-prev {
    justify-self: start;
}

.lightbox-next {
    justify-self: end;
}

.lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.92rem;
    z-index: 4;
    backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox-backdrop,
    .lightbox-dialog,
    .lightbox-content img,
    .lightbox-close,
    .lightbox-nav {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 860px) {
    .lightbox-dialog {
        width: min(100% - 1rem, 1000px);
        grid-template-columns: 56px 1fr 56px;
    }

    .lightbox-content img {
        max-height: 72vh;
    }
}

@media (max-width: 640px) {
    .lightbox-dialog {
        width: calc(100% - 0.75rem);
        margin: 2.5vh auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 0.75rem;
        height: auto;
    }

    .lightbox-content {
        padding: 0.5rem 0;
    }

    .lightbox-content img {
        max-height: 68vh;
        width: 100%;
    }

    .lightbox-close {
        top: 0;
        right: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 4;
    }

    .lightbox-prev {
        left: 0.4rem;
    }

    .lightbox-next {
        right: 0.4rem;
    }

    .lightbox-counter {
        bottom: -0.2rem;
    }
}