/* ============================================
   PROJECT DETAIL PAGE - DARK PREMIUM THEME
   ============================================ */
body { background: #0a0a12 !important; }

.project-detail-page {
    background: #0a0a12;
    color: #e8ecf4;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ---------- HERO ---------- */
.project-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 80px 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,18,0.15) 0%,
        rgba(10,10,18,0.55) 50%,
        rgba(10,10,18,0.97) 100%
    );
    z-index: 1;
}
.project-hero .container { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Breadcrumb */
.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 40px;
}
.project-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; }
.project-breadcrumb a:hover { color: #ff6b35; }
.project-breadcrumb .bc-sep { opacity: 0.3; }
.project-breadcrumb .bc-current { color: #ff6b35; font-weight: 600; }

/* Badges */
.project-badges { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.p-badge {
    padding: 5px 16px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(12px);
}
.p-badge-type { background: rgba(99,102,241,0.2); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.p-badge-space { background: rgba(255,255,255,0.06); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.1); }

/* Title */
.project-hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    margin: 0 0 28px 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -2px;
    color: #fff;
}

/* Meta Strip */
.project-meta-strip { display: flex; gap: 36px; flex-wrap: wrap; }
.meta-chip { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.meta-chip-icon { font-size: 1.2rem; }

/* ---------- INFO SECTION ---------- */
.project-info-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a12 0%, #0f0f1e 50%, #0a0a12 100%);
}
.project-info-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.project-info-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left - Description */
.section-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #ff6b35;
    margin-bottom: 20px;
    font-weight: 700;
}
.project-desc-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(240,240,245,0.75);
    margin-bottom: 40px;
}
.room-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.room-tag {
    padding: 7px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    transition: all 0.3s;
}
.room-tag:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

/* Right - Detail Card */
.project-detail-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 36px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5);
}
.project-detail-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.project-detail-card h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.15), transparent);
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .dt-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail-row .dt-value { color: #f1f5f9; font-weight: 500; font-size: 0.95rem; }

/* ---------- GALLERY ---------- */
.project-gallery-section {
    padding: 100px 0;
    background: #08080f;
}
.project-gallery-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gallery-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 56px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
}
.gallery-empty {
    text-align: center;
    padding: 80px 24px;
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
}
.gallery-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; display: block; }

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #141420;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2,0,0.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(10,10,18,0.7);
    backdrop-filter: blur(10px);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}
.gallery-caption-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,18,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}
.gallery-item:hover .gallery-caption-overlay { opacity: 1; }
.gallery-caption-overlay p {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    margin: 0;
    transform: translateY(8px);
    transition: transform 0.4s;
}
.gallery-item:hover .gallery-caption-overlay p { transform: translateY(0); }

/* ---------- VIDEOS ---------- */
.project-video-section {
    padding: 60px 0 100px;
    background: #08080f;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---------- RELATED PROJECTS ---------- */
.related-section {
    padding: 100px 0;
    background: #0a0a12;
}
.related-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.related-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 56px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.related-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #141420;
    aspect-ratio: 4/3;
    text-decoration: none;
    display: block;
}
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2,0,0.2,1);
}
.related-card:hover img { transform: scale(1.08); }
.related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,18,0.95) 0%, rgba(10,10,18,0.3) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: background 0.4s;
}
.related-card:hover .related-card-overlay { background: linear-gradient(to top, rgba(10,10,18,0.98) 0%, rgba(10,10,18,0.5) 50%, rgba(10,10,18,0.1) 100%); }
.related-cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff6b35;
    font-weight: 700;
    margin-bottom: 8px;
}
.related-card-overlay h3 {
    color: #fff;
    font-size: 1.15rem;
    margin: 0 0 6px 0;
    font-family: 'Outfit', sans-serif;
}
.related-card-overlay p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* ---------- CTA ---------- */
.project-cta-section {
    padding: 100px 0 120px;
    background: #0a0a12;
}
.project-cta-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cta-box {
    background: linear-gradient(145deg, rgba(99,102,241,0.06), rgba(168,85,247,0.06));
    border: 1px solid rgba(255,255,255,0.06);
    padding: 72px 40px;
    border-radius: 32px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}
.cta-box h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #fff;
}
.cta-box p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 40px;
    font-weight: 300;
}
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}
.cta-btn-primary {
    background: linear-gradient(135deg, #ff6b35, #e85d26);
    color: #fff;
    border: none;
    box-shadow: 0 8px 30px rgba(255,107,53,0.3);
}
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,107,53,0.4); }
.cta-btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
}
.cta-btn-outline:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.3); }

/* ---------- LIGHTBOX ---------- */
.gal-lightbox {
    position: fixed; inset: 0;
    background: rgba(10,10,18,0.97);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(15px);
}
.gal-lightbox.active { display: flex; }
.gal-lightbox-main {
    width: 100%; height: 75vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
    overflow: hidden; /* Added to contain zoomed images */
}

/* Controls overlay */
.gal-lightbox-controls {
    position: absolute; top: 20px; right: 20px;
    display: flex; gap: 12px; z-index: 10003;
}
.gal-lightbox-controls button {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
    font-size: 1.4rem;
    backdrop-filter: blur(10px);
}
.gal-lightbox-controls button:hover { 
    background: #ff6b35; 
    border-color: #ff6b35;
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}
.gal-lightbox-controls button.gal-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* True Full Screen Logic - Container Target */
.gal-lightbox:fullscreen {
    background: #000 !important;
}
.gal-lightbox:fullscreen .gal-lightbox-info,
.gal-lightbox:fullscreen .gal-lightbox-controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.gal-lightbox:fullscreen:hover .gal-lightbox-controls {
    opacity: 1;
    pointer-events: auto;
}
.gal-lightbox:fullscreen .gal-lightbox-main {
    height: 100vh !important;
    width: 100vw !important;
}
.gal-lightbox:fullscreen img,
.gal-lightbox:-webkit-full-screen img {
    width: 100% !important; height: 100% !important;
    max-width: 100% !important; max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.gal-lightbox:fullscreen .gal-lightbox-nav {
    display: flex !important;
    width: 60px; height: 60px;
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
}
.gal-lightbox:fullscreen .gal-lightbox-nav.prev { left: 20px; }
.gal-lightbox:fullscreen .gal-lightbox-nav.next { right: 20px; }

.gal-lightbox img {
    max-width: calc(100vw - 160px); max-height: 100%;
    border-radius: 12px; object-fit: contain;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
    transition: opacity 0.3s ease; /* Removed transform transition for smoother zooming */
    transform-origin: center center;
    cursor: zoom-in;
}
.gal-lightbox img.zoomed { cursor: grab; }
.gal-lightbox img.zoomed:active { cursor: grabbing; }
.gal-lightbox-info {
    margin-top: 20px; text-align: center;
}
.gal-lightbox-caption {
    font-size: 1.1rem; color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}
.gal-lightbox-project-link {
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
.gal-lightbox-share {
    display: flex; gap: 10px; justify-content: center;
    margin-top: 16px;
}
.gal-lightbox-share .share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff; cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
}
.gal-lightbox-share .share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.gal-lightbox-share .share-btn:hover { transform: translateY(-2px); }
.gal-lightbox-share .share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.gal-lightbox-share .share-btn.telegram:hover { background: #0088cc; border-color: #0088cc; }
.gal-lightbox-share .share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.gal-lightbox-share .share-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.gal-lightbox-share .share-btn.copy-link:hover { background: #ff6b35; border-color: #ff6b35; }

/* Navigation arrows */
.gal-lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px;
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.8rem;
    transition: all 0.3s; z-index: 10001;
    backdrop-filter: blur(10px);
}
.gal-lightbox-nav:hover { 
    background: #ff6b35; 
    border-color: #ff6b35;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}
.gal-lightbox-nav.prev { left: 20px; }
.gal-lightbox-nav.next { right: 20px; }

/* Toast Notification (Unified) */
.gallery-toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #25d366; color: #fff;
    padding: 10px 24px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600;
    z-index: 99999; opacity: 0;
    transition: all 0.3s; pointer-events: none;
}
.gallery-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- SOCIAL SHARE ---------- */
.social-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- ADMIN EDIT BUTTON ---------- */
.admin-edit-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ff6b35;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

@media (max-width: 768px) {
    .project-hero { min-height: 65vh; padding-bottom: 60px; }
    .project-hero-title { font-size: 2.5rem; letter-spacing: -1px; }
    .project-breadcrumb { display: none; }
    .project-info-layout { grid-template-columns: 1fr !important; gap: 48px !important; }
    .project-info-section { padding: 60px 0; }
    .project-desc-text { font-size: 1.1rem; line-height: 1.7; }
    .project-gallery-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 48px 24px; }
    .gal-lightbox { padding: 20px 0; justify-content: flex-start; }
    .gal-lightbox img { max-width: 100vw; max-height: 70vh; border-radius: 0; }
    
    /* Reposition lightbox nav for mobile to prevent overlap - place at bottom */
    .gal-lightbox-nav {
        position: fixed !important;
        top: auto !important;
        bottom: 100px !important;
        transform: none !important;
        width: 54px !important;
        height: 54px !important;
        font-size: 1.5rem !important;
        background: rgba(10, 10, 20, 0.85) !important;
        border-radius: 50% !important;
        z-index: 10001 !important;
    }
    .gal-lightbox-nav.prev { left: 20px !important; right: auto !important; }
    .gal-lightbox-nav.next { right: 20px !important; left: auto !important; }
    
    .gal-lightbox-info { margin-top: 60px !important; }
    .gal-lightbox-info { padding: 0 16px 20px; }
}

/* VR Badge / Tour Trigger */
.vr-badge-container { margin-top: 30px; }
.vr-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid #ff6b35;
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.vr-badge-btn:hover { background: #ff6b35; box-shadow: 0 0 20px rgba(255,107,53,0.4); transform: translateY(-2px); }
.vr-icon-360 { width: 32px; height: 32px; background: #ff6b35; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: rotate360 4s linear infinite; }
@keyframes rotate360 { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 15, 25, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    border: 1px solid rgba(255, 107, 53, 0.3);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ---------- PROJECT DRAWINGS ---------- */
.project-drawings-section {
    padding: 80px 0 100px;
    background: #08080f;
    border-top: 1px solid rgba(255,255,255,0.03);
}
.drawings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.drawing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}
.drawing-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.drawing-preview {
    position: relative;
    aspect-ratio: 3/2;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drawing-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s;
}
.drawing-card:hover .drawing-preview img {
    opacity: 1;
    transform: scale(1.05);
}
.pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
}
.pdf-placeholder .icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.pdf-placeholder .ext {
    font-size: 0.7rem;
    font-weight: 700;
    background: #ff3b30;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.drawing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 18, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.drawing-card:hover .drawing-overlay {
    opacity: 1;
}
.drawing-info {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}
.drawing-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lock-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* Locked State UI */
.drawing-locked-state {
    aspect-ratio: 3/2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.01),
        rgba(255, 255, 255, 0.01) 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
}
.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}
.locked-text {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.locked-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .drawings-grid {
        grid-template-columns: 1fr;
    }
}

/* Force mobile lightbox nav to bottom - highest specificity */
@media screen and (max-width: 768px) {
    .gal-lightbox-nav {
        position: fixed !important;
        top: auto !important;
        bottom: 120px !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.8) !important;
        font-size: 1.5rem !important;
        z-index: 100001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    }
    .gal-lightbox-nav.prev {
        left: 15px !important;
        right: auto !important;
    }
    .gal-lightbox-nav.next {
        right: 15px !important;
        left: auto !important;
    }
    .gal-lightbox img {
        max-width: 100% !important;
        max-height: 65vh !important;
        margin-bottom: 0 !important;
    }
    .gal-lightbox-info {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(0,0,0,0.8) !important;
        padding: 15px !important;
        margin: 0 !important;
    }
}
