/* ================================================================
   illustration.css — Styles specific to illustration.html
   ================================================================ */

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 1rem 50px;
    font-size: 0.85rem;
    color: #666;
    background: #faf8f3;
    border-bottom: 1px solid #e8dcc8;
}

.breadcrumb a {
    color: #4a7c6f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8b7355;
}

@media (max-width: 768px) {
    .breadcrumb { padding: 1rem 20px; }
}

/* ── Page Header ── */
.page-header {
    background-color: #fff;
    padding: 1rem 50px 1.75rem;
    text-align: center;
    border-bottom: 1px solid #e8dcc8;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 16px;
    color: #666;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Filter Bar ── */
.filter-bar {
    background-color: #fff;
    padding: 24px 50px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8dcc8;
}

.filter-btn {
    padding: 8px 22px;
    border: 1px solid #e0d8cf;
    background: #fff;
    color: #666;
    border-radius: 24px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: #4a7c6f;
    color: #4a7c6f;
}

.filter-btn.active {
    background-color: #4a7c6f;
    color: #fff;
    border-color: #4a7c6f;
}

/* ── Gallery ── */
.gallery-section {
    padding: 48px 50px 80px;
}

.theme-group {
    margin-bottom: 64px;
}

.theme-group.hidden {
    display: none;
}

.theme-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8dcc8;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .overlay {
    background: rgba(0,0,0,0.18);
}

.overlay-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-item:hover .overlay-title {
    opacity: 1;
    transform: translateY(0);
}

/* Aspect ratio helpers — overridden to let images show at natural proportions */
.ratio-1-1,
.ratio-4-3,
.ratio-3-4,
.ratio-16-9 { aspect-ratio: auto; }

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.94);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-top: 16px;
    text-align: center;
}

/* Nav arrows */
.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 1010;
}

.lb-arrow:hover {
    background: rgba(255,255,255,0.22);
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* Close button */
.lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 1010;
}

.lb-close:hover {
    background: rgba(255,255,255,0.22);
}

/* Counter */
.lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    letter-spacing: 1px;
}

/* Thumbnails strip */
.lb-thumbs {
    position: fixed;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 80vw;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
}

.lb-thumbs::-webkit-scrollbar { display: none; }

.lb-thumb {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s ease, outline 0.2s ease;
    flex-shrink: 0;
    outline: 2px solid transparent;
}

.lb-thumb.current {
    opacity: 1;
    outline: 2px solid rgba(255,255,255,0.8);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .page-header { padding: 0.875rem 20px 1.5rem; }
    .page-header h1 { font-size: 32px; }
    .filter-bar {
        padding: 12px 16px;
        gap: 6px;
    }
    .filter-btn {
        padding: 5px 12px;
        font-size: 10px;
        letter-spacing: 0.4px;
        border-radius: 16px;
    }
    .gallery-section { padding: 36px 20px 60px; }
    .gallery-grid { gap: 6px; }
    .lb-arrow { width: 40px; height: 40px; font-size: 20px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

@media (max-width: 480px) {
    .gallery-grid { gap: 4px; }
    .filter-bar {
        padding: 10px 12px;
        gap: 5px;
    }
    .filter-btn {
        padding: 4px 10px;
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}
