/* ============================================================
   PAGE HERO
============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1565c0 100%);
    padding: 8rem 0 4rem; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 32px 32px; pointer-events: none;
}
.page-hero-circle {
    position: absolute; border-radius: 50%; pointer-events: none;
    width: 600px; height: 600px; background: var(--accent);
    opacity: .05; top: -200px; right: -150px;
}
.page-hero h1 {
    font-family: 'Playfair Display', serif; font-weight: 800;
    color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15;
    margin-bottom: .6rem;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.7; max-width: 480px; }
.breadcrumb-item a  { color: rgba(255,255,255,.55); text-decoration: none; font-size: .85rem; transition: color .2s; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: rgba(255,255,255,.75); font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* ============================================================
   UPLOAD NOTICE
============================================================ */
.upload-notice {
    background: var(--accent-light); border: 1px solid var(--accent);
    border-radius: 14px; padding: 1rem 1.5rem;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 2.5rem;
}
.upload-notice i   { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.upload-notice p   { color: var(--primary); font-size: .87rem; margin: 0; line-height: 1.5; }
.upload-notice strong { font-weight: 700; }

/* ============================================================
   FILTER TABS
============================================================ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2.5rem; }
.ftab {
    border: 1.5px solid #e2e8f0; background: #fff; color: var(--muted);
    border-radius: 50px; padding: 7px 20px; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: all .25s; user-select: none;
}
.ftab:hover  { border-color: var(--accent); color: var(--accent); }
.ftab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   MASONRY GRID
============================================================ */
.gal-masonry {
    columns: 4; column-gap: 12px;
}
.gal-item {
    break-inside: avoid; margin-bottom: 12px;
    border-radius: 16px; overflow: hidden; position: relative;
    cursor: pointer; display: block;
}
.gal-item:hover img { transform: scale(1.04); }
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-item img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; transition: transform .4s ease;
}

.gal-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: rgba(0,0,0,.5); opacity: 0;
    transition: opacity .3s; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; color: #fff;
}
.gal-overlay i    { font-size: 1.6rem; }
.gal-overlay span { font-size: .83rem; font-weight: 600; letter-spacing: .5px; }

/* ============================================================
   COLOR PALETTES (gc1–gc12)
============================================================ */
.gc1  { background: linear-gradient(150deg, var(--primary-dark), var(--primary)); }
.gc2  { background: linear-gradient(150deg, #0f4c60, #007a99); }
.gc3  { background: linear-gradient(150deg, #1a4731, #16a34a); }
.gc4  { background: linear-gradient(150deg, #3b1f6b, #7c3aed); }
.gc5  { background: linear-gradient(150deg, #7c2d12, #ea580c); }
.gc6  { background: linear-gradient(150deg, #1e3a5f, #2563eb); }
.gc7  { background: linear-gradient(150deg, #1a4731, #0d9488); }
.gc8  { background: linear-gradient(150deg, #4a1942, #be185d); }
.gc9  { background: linear-gradient(150deg, #14532d, #15803d); }
.gc10 { background: linear-gradient(150deg, #431407, #c2410c); }
.gc11 { background: linear-gradient(150deg, #1e1b4b, #4338ca); }
.gc12 { background: linear-gradient(150deg, #0c4a6e, #0284c7); }

/* ============================================================
   LIGHTBOX
============================================================ */
#lightbox {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
.lb-inner {
    position: relative; max-width: 900px; width: 92%; max-height: 90vh;
    border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column;
}
.lb-content {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 400px;
}
.lb-close {
    position: absolute; top: 14px; right: 14px;
    width: 40px; height: 40px; background: rgba(255,255,255,.15);
    border: none; border-radius: 50%; color: #fff; font-size: 1.1rem;
    cursor: pointer; z-index: 2; transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,.3); }

.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
    color: #fff; font-size: 1rem; cursor: pointer; z-index: 2;
    transition: background .2s; display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: -56px; }
.lb-next { right: -56px; }
.lb-prev:hover, .lb-next:hover { background: var(--accent); border-color: var(--accent); }
.lb-caption {
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.7); font-size: .85rem; text-align: center;
}

@media (max-width: 767px) {
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

/* ============================================================
   RESPONSIVE GRID
============================================================ */
@media (max-width: 991px) { .gal-masonry { columns: 3; } }
@media (max-width: 575px)  { .gal-masonry { columns: 2; } }
