/* ═══════════════════════════════════════════════
   LIPAS Projects Showcase — lpro.css v1.2
   Full width · clean nav · 2x2 mobile meta · no zoom
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* ────────────────────────────────────────────
   LISTING PAGE
──────────────────────────────────────────── */
.lpro-wrap {
    width: 100%;
    padding: 28px 40px 60px;
}
.lpro-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.lpro-tab {
    font-size: 13px;
    padding: 7px 20px;
    border-radius: 24px;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.lpro-tab:hover { border-color: #234435; color: #234435; }
.lpro-tab.act   { background: #234435; color: #cabda1; border-color: #234435; }

.lpro-grid { display: grid; gap: 20px; }
.lpro-cols-2 { grid-template-columns: repeat(2,1fr); }
.lpro-cols-3 { grid-template-columns: repeat(3,1fr); }
.lpro-cols-4 { grid-template-columns: repeat(4,1fr); }

.lpro-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: border-color .2s, transform .2s;
}
.lpro-card:hover { border-color: #234435; transform: translateY(-3px); }
.lpro-featured   { grid-column: span 2; }

.lpro-card-img-link {
    display: block;
    overflow: hidden;
    position: relative;
}
.lpro-card-img-link img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.lpro-featured .lpro-card-img-link img { height: 380px; }
.lpro-card:hover .lpro-card-img-link img { transform: scale(1.05); }
.lpro-no-img {
    height: 280px;
    background: #e8eeeb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lpro-yt-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(220,0,0,.88);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    display: flex; align-items: center; gap: 5px;
    z-index: 2;
}
.lpro-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; padding: 16px;
}
.lpro-overlay-tag {
    background: #234435; color: #cabda1;
    font-size: 10px; font-weight: 700;
    padding: 4px 14px; border-radius: 20px;
    opacity: 0; transform: translateY(6px);
    transition: all .25s;
}
.lpro-card:hover .lpro-overlay-tag { opacity: 1; transform: translateY(0); }

.lpro-info { padding: 14px 18px 18px; }
.lpro-sector {
    font-size: 10px; font-weight: 700; color: #873b2b;
    text-transform: uppercase; letter-spacing: 0.6px;
    display: block; margin-bottom: 5px;
}
.lpro-name {
    font-size: 16px !important; font-weight: 600 !important;
    margin: 0 0 10px !important; line-height: 1.3 !important;
}
.lpro-name a { color: #1a1a1a; text-decoration: none; }
.lpro-name a:hover { color: #234435; }
.lpro-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lpro-loc {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #777;
    flex: 1; min-width: 0; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.lpro-year { font-size: 12px; color: #999; white-space: nowrap; }
.lpro-none { text-align: center; color: #888; padding: 40px; font-size: 14px; grid-column: 1/-1; }

/* ────────────────────────────────────────────
   DETAIL PAGE — ALL FULL WIDTH
──────────────────────────────────────────── */
.lpro-detail-page {
    width: 100%;
    padding-bottom: 60px;
}

/* Breadcrumb */
.lpro-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; font-size: 13px; color: #888;
    padding: 20px 40px;
}
.lpro-breadcrumb a { color: #234435; text-decoration: none; }
.lpro-breadcrumb a:hover { text-decoration: underline; }
.lpro-sep { color: #ccc; }
.lpro-bc-cur { color: #333; font-weight: 500; }

/* ── HERO — full width ── */
.lpro-hero-wrap { width: 100%; }

.lpro-hero-tabs { display: flex; width: 100%; border-bottom: 1px solid #ddd; }
.lpro-htab {
    flex: 1; padding: 13px 16px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; color: #555;
    background: #f0f0ee;
    border: none; border-right: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; transition: all .2s;
}
.lpro-htab:last-child { border-right: none; }
.lpro-htab.act        { background: #234435; color: #cabda1; }
.lpro-htab:hover:not(.act) { background: #e8eeeb; color: #234435; }
.lpro-htab svg { flex-shrink: 0; }

.lpro-hero-panel { width: 100%; }
.lpro-hero-img { position: relative; width: 100%; overflow: hidden; background: #e8eeeb; }
.lpro-hero-img img { width: 100%; height: 560px; object-fit: cover; display: block; }
.lpro-hero-placeholder { width: 100%; height: 420px; background: #e8eeeb; display: flex; align-items: center; justify-content: center; position: relative; }
.lpro-hero-badge {
    position: absolute; top: 20px; left: 24px;
    background: #234435; color: #cabda1;
    font-size: 12px; font-weight: 700;
    padding: 5px 16px; border-radius: 24px; z-index: 2;
}
.lpro-hero-year {
    position: absolute; top: 20px; right: 24px;
    background: rgba(255,255,255,.92); color: #234435;
    font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 24px; z-index: 2;
}

/* YouTube embed */
.lpro-yt-wrap { position: relative; width: 100%; padding-bottom: 56.25%; background: #0f0f0f; }
.lpro-yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── CONTENT — full width with padding ── */
.lpro-detail-inner { width: 100%; padding: 0 40px; }
.lpro-detail-body  { padding: 32px 0 0; }

.lpro-detail-sector {
    font-size: 11px; font-weight: 700; color: #873b2b;
    text-transform: uppercase; letter-spacing: 0.6px;
    display: block; margin-bottom: 6px;
}
.lpro-detail-title {
    font-size: 32px !important; font-weight: 700 !important;
    color: #1a1a1a !important; margin: 0 0 16px !important;
    line-height: 1.2 !important;
}
.lpro-detail-desc {
    font-size: 15px; color: #555; line-height: 1.85;
    margin: 0 0 28px;
}

/* ── META ROW — full width ── */
.lpro-meta-row {
    display: flex; flex-wrap: wrap;
    border: 1px solid #e0e0e0; border-radius: 10px;
    overflow: hidden; margin-bottom: 36px;
    width: 100%;
}
.lpro-meta-item { flex: 1; min-width: 100px; padding: 16px 20px; border-right: 1px solid #e0e0e0; }
.lpro-meta-item:last-child { border-right: none; }
.lpro-meta-label { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 5px; }
.lpro-meta-val   { font-size: 14px; font-weight: 600; color: #1a1a1a; }

/* ── GALLERY — full width, no zoom button ── */
.lpro-gallery-section { margin-top: 0; width: 100%; }
.lpro-gal-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }

.lpro-gal-main {
    width: 100%;
    overflow: hidden;
    background: #e8eeeb;
    margin-bottom: 16px;
    border-radius: 10px;
}
.lpro-gal-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity .25s;
    border-radius: 0;
}

/* ── NAV BUTTONS — clean premium ── */
.lpro-gal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.lpro-gal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1.5px solid #234435;
    background: transparent;
    color: #234435;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, color .18s;
    letter-spacing: 0.2px;
}
.lpro-gal-btn:hover { background: #234435; color: #cabda1; }
.lpro-gal-btn:hover svg { stroke: #cabda1; }
.lpro-gal-btn svg { stroke: #234435; transition: stroke .18s; }

.lpro-gal-count { font-size: 14px; color: #777; font-weight: 500; }

/* Thumbnail strip */
.lpro-gal-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.lpro-gal-th {
    width: 80px; height: 62px;
    border-radius: 6px; overflow: hidden;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
    flex-shrink: 0;
}
.lpro-gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpro-gal-th.act   { border-color: #234435; }
.lpro-gal-th:hover { border-color: #234435; transform: scale(1.04); }

/* Back button */
.lpro-back-row { padding: 32px 40px 0; }
.lpro-back-btn {
    display: inline-flex; align-items: center; gap: 7px;
    color: #234435; text-decoration: none;
    font-size: 13px; font-weight: 600;
    padding: 10px 20px;
    border: 1.5px solid #234435; border-radius: 7px;
    transition: all .2s;
}
.lpro-back-btn:hover { background: #234435; color: #cabda1; }

/* ────────────────────────────────────────────
   LIGHTBOX
──────────────────────────────────────────── */
.lpro-lb-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(4,4,4,.93);
    z-index: 99999;
    align-items: center; justify-content: center; padding: 20px;
}
.lpro-lb-overlay.open { display: flex; }
.lpro-lb-box { width: 100%; max-width: 960px; display: flex; flex-direction: column; gap: 14px; }
.lpro-lb-topbar { display: flex; align-items: center; justify-content: space-between; }
.lpro-lb-title { font-size: 13px; color: rgba(202,189,161,.85); font-weight: 500; }
.lpro-lb-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all .2s;
}
.lpro-lb-close:hover { background: rgba(255,255,255,.22); transform: scale(1.08); }
.lpro-lb-img-wrap {
    width: 100%; max-height: 72vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 10px; background: #111;
}
.lpro-lb-img-wrap img { max-width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.lpro-lb-nav { display: flex; align-items: center; gap: 14px; }
.lpro-lb-arr {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid rgba(202,189,161,.35);
    background: rgba(35,68,53,.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all .2s;
}
.lpro-lb-arr:hover { border-color: #cabda1; background: rgba(35,68,53,.75); transform: scale(1.08); }
.lpro-lb-strip {
    display: flex; gap: 8px; overflow-x: auto; flex: 1;
    padding-bottom: 3px;
    scrollbar-width: thin; scrollbar-color: rgba(202,189,161,.3) transparent;
}
.lpro-lb-th {
    width: 62px; height: 46px; border-radius: 6px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color .15s;
}
.lpro-lb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpro-lb-th.act  { border-color: #cabda1; }
.lpro-lb-th:hover { border-color: rgba(202,189,161,.65); }

/* ────────────────────────────────────────────
   RESPONSIVE — TABLET
──────────────────────────────────────────── */
@media (max-width: 900px) {
    .lpro-wrap        { padding: 20px 24px 40px; }
    .lpro-breadcrumb  { padding: 16px 24px; }
    .lpro-detail-inner{ padding: 0 24px; }
    .lpro-back-row    { padding: 24px 24px 0; }
    .lpro-cols-3,
    .lpro-cols-4      { grid-template-columns: repeat(2,1fr); }
    .lpro-featured    { grid-column: span 2; }
    .lpro-hero-img img{ height: 420px; }
    .lpro-detail-title{ font-size: 26px !important; }
}

/* ────────────────────────────────────────────
   RESPONSIVE — MOBILE 640px
──────────────────────────────────────────── */
@media (max-width: 640px) {

    /* Listing */
    .lpro-wrap { padding: 16px 16px 40px; }
    .lpro-cols-2,.lpro-cols-3,.lpro-cols-4 { grid-template-columns: 1fr; }
    .lpro-featured { grid-column: span 1; }
    .lpro-card-img-link img { height: 240px; }
    .lpro-featured .lpro-card-img-link img { height: 260px; }
    .lpro-no-img { height: 240px; }

    /* Detail */
    .lpro-breadcrumb  { padding: 14px 16px; font-size: 12px; }
    .lpro-detail-inner{ padding: 0 16px; }
    .lpro-back-row    { padding: 20px 16px 0; }
    .lpro-detail-title{ font-size: 22px !important; }
    .lpro-detail-desc { font-size: 14px; margin-bottom: 20px; }
    .lpro-detail-body { padding: 20px 0 0; }

    /* Hero tabs — short labels on mobile */
    .lpro-htab { font-size: 13px; padding: 12px 10px; gap: 6px; }
    .lpro-htab .lpro-htab-text { display: none; }
    .lpro-htab-short { display: inline !important; }

    .lpro-hero-img img    { height: 260px; }
    .lpro-hero-placeholder{ height: 220px; }
    .lpro-hero-badge { font-size: 11px; padding: 4px 12px; top: 12px; left: 14px; }
    .lpro-hero-year  { font-size: 11px; padding: 4px 10px; top: 12px; right: 14px; }

    /* Meta — 2x2 grid on mobile */
    .lpro-meta-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .lpro-meta-item {
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 14px;
    }
    .lpro-meta-item:nth-child(2n)   { border-right: none; }
    .lpro-meta-item:nth-last-child(-n+2) { border-bottom: none; }

    /* Gallery — full width, no zoom */

    /* Nav buttons — smaller */
    .lpro-gal-btn { padding: 9px 16px; font-size: 12px; gap: 6px; }
    .lpro-gal-count { font-size: 13px; }

    /* Thumbs */
    .lpro-gal-th { width: 64px; height: 50px; }
    .lpro-gal-strip { gap: 7px; }

    /* Lightbox */
    .lpro-lb-overlay { padding: 12px; }
    .lpro-lb-img-wrap { max-height: 58vh; }
    .lpro-lb-img-wrap img { max-height: 58vh; }
    .lpro-lb-th { width: 48px; height: 36px; }
    .lpro-lb-arr { width: 38px; height: 38px; }
    .lpro-lb-title { font-size: 12px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ────────────────────────────────────────────
   RESPONSIVE — SMALL PHONES 400px
──────────────────────────────────────────── */
@media (max-width: 400px) {
    .lpro-detail-title { font-size: 19px !important; }
    .lpro-hero-img img { height: 220px; }
    .lpro-lb-img-wrap,
    .lpro-lb-img-wrap img { max-height: 50vh; }
    .lpro-gal-th  { width: 54px; height: 42px; }
    .lpro-gal-btn { padding: 8px 12px; font-size: 11px; }
    .lpro-meta-val { font-size: 13px; }
}

/* ────────────────────────────────────────────
   STACKED GALLERY — full width, natural height
   Like copperstone.in — every image shown in full
──────────────────────────────────────────── */
.lpro-gallery-full {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.lpro-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px 16px;
}
.lpro-gal-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.lpro-gal-count-static {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

.lpro-gallery-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lpro-stack-item {
    width: 100%;
    overflow: hidden;
    background: #f0ede8;
    line-height: 0;
}

.lpro-stack-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    transition: opacity .3s;
}

/* Responsive gallery header padding */
@media (max-width: 900px) {
    .lpro-gallery-header { padding: 24px 24px 14px; }
}
@media (max-width: 640px) {
    .lpro-gallery-header { padding: 20px 16px 12px; }
    .lpro-gallery-stack  { gap: 2px; }
}
