:root {
    --color-cyan: #00d1ff;
    --color-mint: #adffed;
    --color-lime: #e4ff36;
    --color-purple: #e077ff;
    --color-dark: #1a1a1a;
    --color-gray: #666;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.gallery-hero {
    background: #1a1a1a;
    padding: 140px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-shape.shape-1 {
    width: 420px;
    height: 420px;
    background: var(--color-cyan);
    top: -160px;
    right: -80px;
    animation: float-shape 20s ease-in-out infinite;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-purple);
    bottom: -100px;
    left: -80px;
    animation: float-shape 15s ease-in-out infinite reverse;
}

.hero-shape.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--color-mint);
    top: 40%;
    right: 26%;
    animation: float-shape 18s ease-in-out infinite;
}

@keyframes float-shape {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 209, 255, 0.1);
    border: 2px solid var(--color-cyan);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    color: var(--color-cyan);
}

.hero-badge span {
    color: var(--color-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   CONTROLS BAR
══════════════════════════════════════════ */
.gallery-controls {
    background: white;
    border-bottom: 2px solid #f0f0f0;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.gallery-controls.sticky {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.controls-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Search */
.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 10px 16px;
    flex: 1;
    min-width: 200px;
    max-width: 340px;
    transition: border-color 0.25s ease;
}

.search-wrap:focus-within {
    border-color: var(--color-cyan);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.08);
}

.search-wrap svg {
    color: #aaa;
    flex-shrink: 0;
}
.search-wrap:focus-within svg {
    color: var(--color-cyan);
}

.search-wrap input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.92rem;
    color: var(--color-dark);
    width: 100%;
    font-family: inherit;
}

.search-wrap input::placeholder {
    color: #bbb;
}

/* Year chips */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.chip {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.chip:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.chip.active {
    background: linear-gradient(135deg, var(--color-cyan), #00b8e6);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 209, 255, 0.3);
}

/* Count */
.results-count {
    font-size: 0.88rem;
    color: #999;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
}

.results-count span {
    font-weight: 900;
    color: var(--color-cyan);
    font-size: 1rem;
}

/* ══════════════════════════════════════════
   GALLERY SECTION
══════════════════════════════════════════ */
.gallery-section {
    padding: 80px 20px 120px;
    background: #f8f9fa;
    min-height: 400px;
}

.gallery-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 0;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--color-cyan),
        var(--color-purple),
        var(--color-lime)
    );
    border-radius: 2px;
}

.timeline-entry {
    display: flex;
    gap: 0;
    margin-bottom: 56px;
    position: relative;
    animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger entries */
.timeline-entry:nth-child(1) {
    animation-delay: 0.05s;
}
.timeline-entry:nth-child(2) {
    animation-delay: 0.1s;
}
.timeline-entry:nth-child(3) {
    animation-delay: 0.15s;
}
.timeline-entry:nth-child(4) {
    animation-delay: 0.2s;
}
.timeline-entry:nth-child(5) {
    animation-delay: 0.25s;
}
.timeline-entry:nth-child(6) {
    animation-delay: 0.3s;
}
.timeline-entry:nth-child(n + 7) {
    animation-delay: 0.35s;
}

/* ── Date Marker ── */
.timeline-marker {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 28px;
    padding-top: 6px;
    position: relative;
}

/* Dot on the line */
.marker-dot {
    position: absolute;
    right: -8px;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan), #00b8e6);
    border: 3px solid white;
    box-shadow:
        0 0 0 3px rgba(0, 209, 255, 0.25),
        0 4px 12px rgba(0, 209, 255, 0.3);
    z-index: 2;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.timeline-entry:hover .marker-dot {
    transform: scale(1.3);
    box-shadow:
        0 0 0 6px rgba(0, 209, 255, 0.15),
        0 6px 20px rgba(0, 209, 255, 0.4);
}

.marker-date {
    text-align: right;
    line-height: 1;
}

.marker-day {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1;
    letter-spacing: -1px;
}

.marker-month {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.marker-year {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #aaa;
    margin-top: 3px;
}

/* ── Card ── */
.timeline-card {
    flex: 1;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 28px;
}

.timeline-entry:hover .timeline-card {
    border-color: rgba(0, 209, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 209, 255, 0.12);
    transform: translateY(-3px);
}

.card-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-dark);
    flex: 1;
    line-height: 1.3;
}

.card-desc {
    width: 100%;
    font-size: 0.92rem;
    color: var(--color-gray);
    line-height: 1.65;
    margin-top: 6px;
    margin-bottom: 0;
}

.photo-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(0, 209, 255, 0.08);
    border: 1.5px solid rgba(0, 209, 255, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-cyan);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Photo Grid ── */
.photo-grid {
    display: grid;
    gap: 3px;
    padding: 3px;
}

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

/* First photo in 3-col gets double width */
.photo-grid-3 .photo-thumb:first-child {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    aspect-ratio: 4 / 3;
}

.photo-grid-1 .photo-thumb {
    aspect-ratio: 16 / 7;
}
.photo-grid-2 .photo-thumb {
    aspect-ratio: 16 / 9;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.photo-thumb:hover img {
    transform: scale(1.06);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: white;
}

.photo-overlay svg {
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.photo-thumb:hover .photo-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.photo-thumb:hover .photo-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* Extra photos (collapsed) */
.extra-photos {
    padding: 0 3px 3px;
}

/* ── Expand Button ── */
.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-top: 2px solid #f0f0f0;
    color: var(--color-cyan);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.expand-btn:hover {
    background: rgba(0, 209, 255, 0.06);
    color: #00a8cc;
}

.expand-icon {
    transition: transform 0.3s ease;
}

/* ══════════════════════════════════════════
   EMPTY / NO RESULTS
══════════════════════════════════════════ */
.gallery-empty,
.no-results {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gallery-empty svg,
.no-results svg {
    color: #ddd;
}

.gallery-empty h3,
.no-results h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-dark);
}

.gallery-empty p,
.no-results p {
    font-size: 1rem;
    color: var(--color-gray);
}

/* ══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    transform: rotate(90deg);
}

.lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-inner img {
    transform: scale(1);
}

.lightbox-inner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .timeline::before {
        left: 100px;
    }
    .timeline-marker {
        width: 100px;
    }
    .marker-day {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.4rem;
    }
    .hero-lead {
        font-size: 1.05rem;
    }

    .gallery-controls {
        top: 0;
        padding: 14px 16px;
    }
    .controls-container {
        gap: 12px;
    }
    .search-wrap {
        max-width: 100%;
    }

    .timeline::before {
        left: 0;
        display: none;
    }

    .timeline-entry {
        flex-direction: column;
        gap: 10px;
    }
    .timeline-marker {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0;
    }
    .marker-dot {
        position: static;
    }
    .marker-date {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }
    .marker-day {
        font-size: 1.4rem;
    }
    .marker-month,
    .marker-year {
        font-size: 0.78rem;
    }

    .timeline-card {
        margin-left: 0;
    }

    .photo-grid-3 .photo-thumb:first-child {
        grid-column: span 1;
    }
    .photo-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .card-header {
        padding: 18px 20px 14px;
    }
    .card-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding: 100px 16px 70px;
    }
    .gallery-hero h1 {
        font-size: 1.9rem;
    }
    .gallery-section {
        padding: 50px 12px 80px;
    }

    .photo-grid-2,
    .photo-grid-3 {
        grid-template-columns: 1fr;
    }
    .photo-grid-3 .photo-thumb:first-child {
        grid-column: span 1;
    }

    .filter-chips {
        gap: 6px;
    }
    .chip {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}