/*
   PUBLIC GALLERY - Premium Agenda Style
*/

/* Global */
body {
    background-color: #f8fafc;
    color: #334155;
}

/* Hero Section */
.gallery-hero {
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Optional background pattern */
.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
    pointer-events: none;
}

.gallery-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.gallery-hero .hero-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.gallery-hero .hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gallery-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

/* Filter Sticky Bar */
.gallery-filter-section {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.03);
}

.gallery-filter-section.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 50px;
    display: inline-flex;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.gallery-filters .filter-tag {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    z-index: 1;
}

.gallery-filters .filter-tag:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.gallery-filters .filter-tag.active {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    font-weight: 700;
}

/* Gallery Grid (Agenda Layout) */
.gallery-section {
    padding: 4rem 0 6rem;
    background: #fcfcfc;
}

.gallery-grid-agenda {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.gallery-card-agenda {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.gallery-card-agenda:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-color: #cbd5e1;
}

/* Pattern: Wide Card (Span 2 cols) */
.gallery-card-agenda.card-wide {
    grid-column: span 2;
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; 
    overflow: hidden;
}

.gallery-card-agenda.card-wide .card-image-wrapper {
    padding-top: 55%; 
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card-agenda:hover .card-image {
    transform: scale(1.08); 
}

/* View Details Overlay */
.view-details-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #0f172a;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gallery-card-agenda:hover .view-details-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Date Badge */
.card-date-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #2563eb;
    color: #fff;
    border-radius: 16px; 
    width: 64px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    z-index: 5;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.date-day {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

/* Content Area */
.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
    position: relative; 
}

/* Category Pill */
.card-category-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #f1f5f9; 
    color: #475569; 
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.gallery-card-agenda:hover .card-category-pill {
    background: #eff6ff;
    color: #2563eb;
}

/* Title */
.card-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a; 
    letter-spacing: -0.025em;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: #2563eb;
}

.gallery-card-agenda.card-wide .card-title {
    font-size: 1.75rem; 
}

/* Description / Excerpt */
.card-excerpt {
    font-size: 1.0625rem;
    color: #64748b; 
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.gallery-pagination {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

/* Detail Page Styles (retained but polished) */
.gallery-detail-hero {
    background: #fff;
    padding: 6rem 0 3rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.back-link:hover {
    color: #2563eb;
    transform: translateX(-4px);
}

.detail-header {
    max-width: 900px;
}

.detail-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-title {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 500;
}

.gallery-detail-content {
    padding: 4rem 0 8rem;
    background: #fff;
}

.detail-card {
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid-agenda {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-card-agenda.card-wide {
        grid-column: span 2; 
    }

    .gallery-hero .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid-agenda {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-card-agenda.card-wide {
        grid-column: span 1; 
    }
    
    .gallery-hero {
        padding: 5rem 0 3rem;
    }
    
    .gallery-hero .hero-title {
        font-size: 2.5rem;
    }

    .gallery-filter-section {
        top: 60px;
        padding: 0.75rem 0;
    }
    
    .gallery-filters {
        gap: 0.5rem;
        padding: 0 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .gallery-filters .filter-tag {
        white-space: nowrap;
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }

    .view-details-overlay {
        display: none; 
    }

    .gallery-detail-hero {
        padding: 5rem 0 2rem;
    }

    .detail-title {
        font-size: 2rem;
    }
}


.gallery-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero .hero-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.gallery-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gallery-hero .hero-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.gallery-filter-section {
    padding: 1rem 0 3rem;
    background: #fff;
}

/* Gallery Grid (Agenda Layout) */
.gallery-section {
    padding: 2rem 0 6rem;
    background: #ffffff;
}

.gallery-grid-agenda {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card-agenda {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card-agenda:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Pattern: Wide Card (Span 2 cols) */
.gallery-card-agenda.card-wide {
    grid-column: span 2;
    flex-direction: row;
}

/* Wait, mockup showing wide card 1 has text BELOW image, not side-by-side. 
   So flex-direction row is WRONG if it's the "Conference" card.
   But "View Details" is on main image.
   Let's stick to vertical layout but span 2 cols. 
*/
.gallery-card-agenda.card-wide {
    grid-column: span 2;
    flex-direction: column; 
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    /* Aspect ratio handling */
    padding-top: 60%;
    overflow: hidden;
}

.gallery-card-agenda.card-wide .card-image-wrapper {
    padding-top: 50%;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-agenda:hover .card-image {
    transform: scale(1.05);
}

/* View Details Overlay (for Wide Cards) */
.view-details-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2563eb;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.gallery-card-agenda:hover .view-details-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Date Badge (Blue Square) */
.card-date-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #2563eb;
    color: #fff;
    border-radius: 12px;
    width: 56px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.date-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
    opacity: 0.9;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

/* Content Area */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
    position: relative;
}

/* Category Pill */
.card-category-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}

/* Title */
.card-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: #1e293b;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    /* Multi-line truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: #2563eb;
}

.gallery-card-agenda.card-wide .card-title {
    font-size: 1.5rem;
}

/* Description / Excerpt */
.card-excerpt {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    /* Multi-line truncation */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.gallery-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid-agenda {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-card-agenda.card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid-agenda {
        grid-template-columns: 1fr;
    }
    
    .gallery-card-agenda.card-wide {
        grid-column: span 1;
    }
    
    .gallery-hero .hero-title {
        font-size: 2.25rem;
    }
    
    .view-details-overlay {
        opacity: 1;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: -1.5rem 0 0 auto;
        display: inline-flex;
        display: none;
    }
}

/* Detail Page Styles (retained) */
.gallery-detail-hero {
    background: #f8fafc;
    padding: 4rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-title {
    font-weight: 800;
    color: #0f172a;
}


.gallery-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero .hero-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.gallery-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.gallery-hero .hero-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Filter Sticky Bar */
.gallery-filter-section {
    padding: 1.5rem 0;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.gallery-filter-section.is-scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 1rem 0;
}

.gallery-filters {
    display: inline-flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-filters .filter-tag {
    position: relative;
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-600);
    background: transparent;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    overflow: hidden;
}

.gallery-filters .filter-tag:hover {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.gallery-filters .filter-tag.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), 0 2px 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    border-color: transparent;
}

.gallery-filters .filter-tag.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Gallery Grid (Cards) */
.gallery-section {
    padding: 4rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

.gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.gallery-card-new {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-100);
    display: flex;
    flex-direction: column;
}

.gallery-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-image-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-new:hover .card-image {
    transform: scale(1.05);
}

/* Date Badge */
.card-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    min-width: 60px;
}

.date-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Category Badge */
.card-category-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #fff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-title a {
    color: var(--neutral-900);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.card-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

/* Pagination */
.gallery-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--neutral-500);
}

.gallery-empty i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.gallery-empty h3 {
    font-size: 1.5rem;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

/* Detail Page Styles */
.gallery-detail-hero {
    background: var(--neutral-50);
    padding: 3rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-600);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.detail-header {
    max-width: 800px;
}

.detail-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--neutral-600);
    font-size: 1rem;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-detail-content {
    padding: 4rem 0;
    background: #fff;
}

.detail-card {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.detail-body {
    max-width: 800px;
    margin: 0 auto;
}

.detail-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-700);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid-new {
        grid-template-columns: 1fr;
    }

    .gallery-hero .hero-title {
        font-size: 2rem;
    }

    .detail-title {
        font-size: 2rem;
    }
}
/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox-info {
    margin-top: 1rem;
    text-align: center;
    color: #fff;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lightbox-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--primary-blue);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}
