/* Moderní styl pro Atec Zephyr vlog */
/* Barvy: oranžová, černá a bílá (podle loga JH_Avionic) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Moderní modré tóny */
    --primary-orange: #2563eb;
    --light-orange: #60a5fa;
    --dark-orange: #1d4ed8;
    --pale-orange: #eff6ff;
    --sky-blue: #dbeafe;
    
    /* Černá a šedá */
    --dark-gray: #0f172a;
    --medium-gray: #334155;
    --light-gray: #64748b;
    --lighter-gray: #f8fafc;
    --bg-gray: #f4f8ff;
    
    /* Bílá */
    --white: #ffffff;
    
    /* Text */
    --text-dark: #0f172a;
    --text-light: #334155;
    
    /* Akcent */
    --accent: #2563eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.22), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, var(--bg-gray) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -120px;
    right: -80px;
    background: rgba(96, 165, 250, 0.35);
}

body::after {
    bottom: -140px;
    left: -100px;
    background: rgba(37, 99, 235, 0.22);
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #0f172a 0%, var(--dark-orange) 45%, var(--primary-orange) 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.home-navbar {
    max-width: 1100px;
    padding-inline: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    height: 42px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.menu {
    display: flex;
    list-style: none;
    gap: 0.55rem;
}

.menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    transition: all 0.25s ease;
    font-weight: 600;
}

.menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-1px);
}

.admin-controls {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.8rem;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.admin-controls .button {
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}

.admin-controls .button-small {
    padding: 0.45rem 0.85rem;
    font-size: 0.95rem;
}

.admin-controls .button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.admin-controls .admin-save {
    border-color: rgba(255, 255, 255, 0.72);
    background: var(--white);
    color: var(--dark-orange);
}

.admin-controls .admin-save:hover:not(:disabled) {
    background: #eff6ff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.admin-controls .admin-save:disabled {
    opacity: 0.62;
    cursor: default;
}

.menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* ===== MAIN ===== */
main {
    flex: 1;
    max-width: 1100px;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero sekce */
.hero {
    text-align: center;
    padding: 2.25rem 2rem;
    background: rgba(255, 255, 255, 0.92);
    margin: 1.25rem 0 2rem;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-left: 4px solid var(--primary-orange);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.34;
    pointer-events: none;
}

.hero::before {
    width: 180px;
    height: 180px;
    background: rgba(96, 165, 250, 0.18);
    top: -60px;
    left: -30px;
}

.hero::after {
    width: 140px;
    height: 140px;
    background: rgba(37, 99, 235, 0.14);
    right: -20px;
    bottom: -40px;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--dark-orange);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.02rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
}

.hero-banner {
    min-height: clamp(430px, 52vw, 620px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-left: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    background: #071a3c;
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.22),
        0 4px 12px rgba(15, 23, 42, 0.12);
    isolation: isolate;
}

.hero-banner::before,
.hero-banner::after {
    content: none;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 45%, rgba(3, 12, 31, 0.18) 62%, rgba(3, 12, 31, 0.92) 100%),
        linear-gradient(90deg, rgba(3, 12, 31, 0.38) 0%, transparent 42%);
    pointer-events: none;
}

.hero-content {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-kicker span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.hero-banner h1,
.hero-banner .subtitle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Obsah */
.content {
    padding: 1rem 0 2rem;
}

.aircraft-info {
    margin-bottom: 2rem;
}

.aircraft-info h2 {
    color: var(--dark-orange);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.4rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.info-card h3 {
    color: var(--medium-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-card .highlight {
    color: var(--primary-orange);
    font-size: 1.5rem;
    font-weight: 700;
}

.info-card .highlight a {
    color: inherit;
    text-decoration: none;
}

.info-card .highlight a:hover {
    text-decoration: none;
}

/* Příběh */
.story {
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-orange);
    border: 1px solid rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
}

.story h2 {
    color: var(--dark-orange);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.story p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Aktuality */
.updates h2 {
    color: var(--dark-orange);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.update-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    border-left: 4px solid var(--light-orange);
    border: 1px solid rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(10px);
}

.update-card h3 {
    color: var(--dark-orange);
    margin-bottom: 0.5rem;
}

.update-card .date {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ===== GALERIE ===== */
.gallery-intro {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 1.6rem;
    border-radius: 20px;
    margin: 1.25rem 0 1rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 100%;
}

.gallery-intro p {
    margin-bottom: 0.7rem;
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(8px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.gallery-delete {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.gallery-delete:hover {
    background: rgba(255, 255, 255, 1);
}

.gallery-title-label {
    padding: 0.9rem 1rem 0.1rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    min-height: 2.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.placeholder-image {
    height: 180px;
    background: linear-gradient(135deg, var(--pale-orange) 0%, var(--lighter-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.gallery-item p {
    padding: 1rem;
    text-align: center;
    color: var(--medium-gray);
    font-weight: 500;
}

.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.gallery-title,
.gallery-description {
    width: 100%;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-title {
    min-height: 2.8rem;
}

.gallery-description {
    min-height: 5rem;
    resize: vertical;
}

.gallery-title:focus,
.gallery-description:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.gallery-note {
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
    padding: 1rem;
    background: var(--pale-orange);
    border-radius: 12px;
}

.gallery-msg {
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.95rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.gallery-controls {
    display:flex;
    gap:0.75rem;
    align-items:center;
    justify-content:flex-end;
    margin: 0.25rem 0 1rem 0;
    padding: 0.75rem 0.9rem;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
}

.gallery-controls label {
    color: var(--medium-gray);
    font-weight:600;
}

.gallery-controls select {
    padding:0.45rem 0.7rem;
    border-radius:999px;
    border:1px solid rgba(37, 99, 235, 0.16);
    background:var(--white);
    color: var(--text-dark);
    outline: none;
}

.gallery-count {
    margin-left: auto;
    color: var(--light-gray);
    font-size:0.95rem;
}

/* ===== SPRÁVA BLOKŮ ===== */
.admin-dialog {
    width: min(900px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 20px;
    background: #f8fafc;
    color: var(--text-dark);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.admin-dialog::backdrop {
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.admin-dialog-header,
.admin-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: #fff;
}

.admin-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.admin-dialog-header h2,
.admin-dialog-header p {
    margin: 0;
}

.admin-dialog-header p {
    margin-top: 0.25rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.admin-dialog-close {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: var(--lighter-gray);
    color: var(--text-dark);
    font-size: 1.6rem;
    cursor: pointer;
}

.blocks-admin-list {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
}

.blocks-admin-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto;
    gap: 0.9rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.13);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.blocks-admin-row-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.blocks-admin-row-header h3 {
    margin: 0;
    font-size: 1rem;
}

.blocks-admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.blocks-admin-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-orange);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
}

.blocks-admin-move:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.55);
    background: var(--lighter-gray);
}

.blocks-admin-move:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.blocks-admin-count {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--lighter-gray);
    color: var(--medium-gray);
    font-size: 0.82rem;
    font-weight: 600;
}

.blocks-admin-row label {
    display: grid;
    gap: 0.35rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
    font-weight: 600;
}

.blocks-admin-row input,
.blocks-admin-row textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
}

.blocks-admin-row textarea {
    min-height: 4.6rem;
    resize: vertical;
}

.blocks-admin-row input:focus,
.blocks-admin-row textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.blocks-admin-delete {
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 10px;
    background: #fff;
    color: #dc2626;
    font-weight: 700;
    cursor: pointer;
}

.admin-dialog-actions {
    position: sticky;
    bottom: 0;
    justify-content: flex-end;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
}

@media (max-width: 768px) {
    .gallery-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
        border-radius: 18px;
    }

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

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

/* ===== UŽITEČNÉ ===== */
.useful-section {
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    margin: 1.25rem 0 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
}

.useful-section h2 {
    color: var(--dark-orange);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.useful-section > p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.specs {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.55), rgba(248, 250, 252, 0.95));
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.specs h3 {
    color: var(--dark-orange);
    margin-bottom: 1rem;
}

.specs ul + h3 {
    margin-top: 1.75rem;
}

.specs ul {
    list-style: none;
}

.specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.specs li:last-child {
    border-bottom: none;
}

.links-list {
    list-style: none;
}

.links-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lighter-gray);
}

.links-list a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links-list a:hover {
    color: var(--dark-orange);
    text-decoration: underline;
}

.checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.checklist li {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    color: var(--text-dark);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: var(--white);
    padding: 2.25rem 1.25rem;
    margin-top: auto;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.16);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: var(--white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(10px);
}

.footer-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.footer-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.footer-content .copyright {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .footer-link {
        width: 100%;
        justify-content: center;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-banner {
        min-height: clamp(430px, 105vw, 500px);
        margin-top: 0.85rem;
        margin-bottom: 1.4rem;
        padding: 1.1rem;
        border-radius: 18px;
    }

    .hero-image {
        inset: 0 0 auto;
        height: auto;
        object-fit: contain;
        object-position: center top;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            transparent 35%,
            rgba(3, 12, 31, 0.12) 48%,
            rgba(3, 12, 31, 0.96) 73%,
            #071a3c 100%
        );
    }

    .hero-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .hero-kicker {
        justify-content: center;
        font-size: 0.72rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    main {
        padding-inline: 0.75rem;
    }

    .home-navbar {
        padding-inline: 0.75rem;
    }

    .hero-banner {
        padding: 0.3rem;
        border-radius: 14px;
    }

    .hero-content {
        padding: 0.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox-content {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: min(100%, 92vw);
    max-height: min(100%, 82vh);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-content.zoomed {
    max-width: none;
    max-height: none;
}

#caption {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    width: min(92%, 720px);
    max-width: 720px;
    line-height: 1.6;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    margin: 1.5rem auto 0;
    align-self: center;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 1rem;
}

#caption strong {
    display: block;
    font-size: 1.12rem;
    letter-spacing: 0.01em;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #fff;
}

#caption p {
    margin: 0;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

@media (max-width: 640px) {
    .lightbox {
        padding: 1rem 0.75rem;
    }
    .lightbox-content {
        max-width: min(100%, 96vw);
        max-height: min(100%, 72vh);
    }
    #caption {
        width: min(96%, 100%);
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: var(--primary-orange);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1001;
}

.prev {
    left: 20px;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 102, 0, 0.8);
}

/* ===== MODERN GALLERY ENHANCEMENTS ===== */
.gallery-grid {
    display: block;
    padding: 1rem 0;
}

.gallery-block {
    width: 100%;
    margin-bottom: 2.5rem;
}

.gallery-block-header {
    position: relative;
    margin-bottom: 2.25rem;
    padding: 1.35rem 1.5rem 1.4rem 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.13);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9));
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.gallery-block-header::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.gallery-block-info {
    max-width: 78ch;
}

.gallery-block-title {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.gallery-block-description {
    margin: 0.75rem 0 0;
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.gallery-block-description.is-collapsed {
    display: -webkit-box;
    max-height: 17em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
}

.gallery-block-description.is-expanded {
    display: block;
    max-height: none;
}

.gallery-description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--dark-orange);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-description-toggle::after {
    content: '↓';
    font-size: 0.95em;
    transition: transform 0.2s ease;
}

.gallery-description-toggle[aria-expanded='true']::after {
    transform: rotate(180deg);
}

.gallery-description-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.42);
    background: var(--white);
    color: #1e40af;
}

.gallery-description-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

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

.gallery-block-description:empty {
    display: none;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 12px;
    background: #fff;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.35s ease;
    will-change: transform;
}

.gallery-item:hover img,
.gallery-item.visible img {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.03);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.9rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.28s ease;
}

.gallery-item:hover figcaption,
.gallery-item.visible figcaption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-thumb {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.gallery-thumb-error {
    background: var(--lighter-gray);
    color: transparent;
}

.gallery-title-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.9rem;
    min-height: 3rem;
    background: #fff;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox tweaks */
.lightbox {
    transition: opacity 200ms ease, visibility 200ms ease;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
}

.lightbox[style*="display: block"], .lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 95%;
    max-height: 85vh;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    border-radius: 8px;
    cursor: zoom-in;
    user-select: none;
    touch-action: none;
}

.lightbox-content.zoomed {
    cursor: grab;
}

.lightbox-content.zoomed:active {
    cursor: grabbing;
}

.prev, .next, .close {
    background: rgba(0,0,0,0.35);
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 160ms ease;
}

.prev:hover, .next:hover, .close:hover {
    background: rgba(255,102,0,0.9);
}

@media (max-width: 768px) {
    .gallery-block-header {
        margin-bottom: 1.75rem;
        padding: 1.1rem 1.1rem 1.15rem 1.35rem;
    }

    .gallery-block-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .gallery-block-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-item img { height: 180px; }
}

@media (max-width: 480px) {
    .gallery-block-grid { grid-template-columns: 1fr; }
    .gallery-item img { height: 220px; }
}

@media (min-width: 769px) and (max-width: 1050px) {
    .gallery-block-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
