/* bw-gallery.css — extracted from inline <style> during CSS centralisation.
 * Loaded alongside bw-base.css. Cascade order: bw-base.css first,
 * this file second (page-type rules win where they overlap).
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 100px; }
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #ffffff; color: #1a1a1a; overflow-x: hidden; }
        :root { --blue:#009CD9; --green:#3BB54A; --amber:#FDB827; --red:#EE3826; --purple:#7E3FB0; --text-dark:#1a1a1a; --text-body:#4a4a4a; --text-muted:#6b7280; --text-dim:#9ca3af; --light-alt:#f7f7f7; --line:#e6e6e6; }
        a { color: inherit; text-decoration: none; }
        img { max-width: 100%; display: block; }

        /* NAVBAR */
        .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0.6rem 2rem; display: flex; align-items: center; justify-content: space-between; transition: all 0.4s ease; background: rgba(15,15,15,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .navbar.scrolled { background: rgba(15,15,15,0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
        .navbar-logo img { height: 56px; width: auto; }
        .nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 1.8rem; list-style: none; align-items: center; }
        .nav-links a { color: white; font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.5rem 0; transition: color 0.3s; }
        .nav-links a:hover { color: var(--amber); }
        .nav-links a.active { color: var(--amber); }
        .nav-links a.active::after, .nav-links a:hover::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--amber); }
        .menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
        .mobile-menu { display: none; position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: #0f0f0f; z-index: 1500; padding: 5rem 2rem 2rem; transition: right 0.4s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
        .mobile-menu.open { right: 0; }
        .mobile-menu a { display: block; color: white; padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .mobile-menu-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

        /* PAGE HEADER */
        .page-header { position: relative; padding: 9rem 2rem 5rem; background: #0f0f0f url('images/gallery-page/gallery-05.jpg') center/cover no-repeat; background-attachment: fixed; overflow: hidden; text-align: center; color: white; }
        .page-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,15,0.55) 0%, rgba(15,15,15,0.85) 100%); pointer-events: none; }
        .page-header-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
        .breadcrumb { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
        .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
        .breadcrumb a:hover { color: var(--amber); }
        .breadcrumb i { font-size: 0.65rem; opacity: 0.5; }
        .page-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.25rem; color: white; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
        .page-subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 650px; margin: 0 auto; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

        /* GALLERY GRID */
        .gallery-section { padding: 5rem 2rem; background: #ffffff; }
        .gallery-inner { max-width: 1320px; margin: 0 auto; }
        .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; grid-auto-flow: dense; }
        .gallery-item { position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; aspect-ratio: 1 / 1; background: var(--light-alt); transition: transform 0.4s ease, box-shadow 0.4s ease; }
        .gallery-item.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
        .gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
        .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
        .gallery-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
        .gallery-item:hover img { transform: scale(1.06); }
        .gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.55) 100%); opacity: 0; transition: opacity 0.4s ease; }
        .gallery-item:hover::after { opacity: 1; }
        .gallery-item .zoom-icon { position: absolute; bottom: 0.85rem; right: 0.85rem; width: 38px; height: 38px; background: rgba(255,255,255,0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #1a1a1a; font-size: 0.85rem; opacity: 0; transform: translateY(8px); transition: all 0.4s ease; z-index: 2; }
        .gallery-item:hover .zoom-icon { opacity: 1; transform: translateY(0); }

        /* LIGHTBOX */
        .lightbox { position: fixed; inset: 0; background: rgba(8,8,8,0.94); z-index: 5000; display: none; align-items: center; justify-content: center; padding: 2rem; backdrop-filter: blur(8px); }
        .lightbox.open { display: flex; }
        .lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: lbZoom 0.3s ease; }
        @keyframes lbZoom { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; background: rgba(255,255,255,0.1); color: white; border: none; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
        .lightbox-close:hover { background: rgba(255,255,255,0.2); }
        .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.1); color: white; border: none; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
        .lightbox-nav:hover { background: rgba(255,255,255,0.2); }
        .lightbox-prev { left: 1.5rem; }
        .lightbox-next { right: 1.5rem; }
        .lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: white; font-size: 0.85rem; letter-spacing: 0.1em; opacity: 0.8; font-weight: 600; }

        /* CTA */
        .cta-section { background: linear-gradient(135deg, #1a1a1a 0%, #232323 100%); padding: 5rem 2rem; text-align: center; color: white; position: relative; overflow: hidden; }
        .cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(0,156,217,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(253,184,39,0.10) 0%, transparent 50%); }
        .cta-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
        .cta-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
        .cta-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem; }
        .cta-text { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 2.25rem; max-width: 600px; margin-left: auto; margin-right: auto; }
        .cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
        .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.95rem 2rem; border-radius: 4px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; }
        .btn-primary { background: var(--amber); color: #0f0f0f; border-color: var(--amber); }
        .btn-primary:hover { background: transparent; color: var(--amber); }
        .btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: white; }
        .btn-outline:hover { background: white; color: #0f0f0f; border-color: white; }

        /* FOOTER */
        .footer { background: #0a0a0a; color: white; border-top: 1px solid rgba(255,255,255,0.05); }
        .footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem; align-items: center; }
        .footer-main img { max-width: 280px; opacity: 0.85; }
        .footer-search h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: white; }
        .footer-search p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
        .search-form { display: flex; gap: 0.5rem; }
        .search-form input { flex: 1; padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: white; border-radius: 4px; font-size: 0.9rem; font-family: inherit; }
        .search-form input::placeholder { color: rgba(255,255,255,0.5); }
        .search-form input:focus { outline: none; border-color: var(--green); }
        .btn-green { background: var(--green); color: #0f0f0f; border: 2px solid var(--green); padding: 0.75rem 1.25rem; border-radius: 4px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; }
        .btn-green:hover { background: transparent; color: var(--green); }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 2rem; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
        .footer-bottom a { color: rgba(255,255,255,0.55); transition: color 0.3s; }
        .footer-bottom a:hover { color: var(--amber); }

        /* SOCIAL SIDEBAR */
        .social-sidebar { position: fixed; left: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0.5rem; z-index: 50; background: rgba(15,15,15,0.85); padding: 0.75rem 0.5rem; border-radius: 0 8px 8px 0; backdrop-filter: blur(8px); }
        .social-sidebar a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: white; font-size: 1rem; border-radius: 50%; transition: all 0.3s ease; }
        .social-sidebar a:hover { background: var(--amber); color: #0f0f0f; }

        @media (max-width: 1100px) {
            .gallery-grid { grid-template-columns: repeat(2, 1fr); }
            .gallery-item.wide { grid-column: span 2; }
            .gallery-item.tall { grid-row: span 1; aspect-ratio: 1 / 1; }
        }
        @media (max-width: 900px) {
            .nav-links { display: none; }
            .menu-toggle { display: block; }
            .mobile-menu { display: block; }
            .page-header { background-attachment: scroll; padding: 7.5rem 1.5rem 4rem; }
            .gallery-section { padding: 3rem 1.25rem; }
            .footer-main { grid-template-columns: 1fr; gap: 2rem; text-align: center; padding: 2.75rem 1.5rem; }
            .footer-main > div:first-child { display: flex; justify-content: center; }
            .social-sidebar { display: none; }
            .lightbox-nav { width: 40px; height: 40px; }
        }
        @media (max-width: 600px) {
            .gallery-grid { grid-template-columns: 1fr; gap: 0.85rem; }
            .gallery-item.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
            .navbar { padding: 0.5rem 1rem; }
            .navbar-logo img { height: 44px; }
        }
        /* Products dropdown */
        .nav-links > li { position: relative; }
        .nav-links .has-dropdown > a .chev { font-size: 0.6rem; margin-left: 0.4rem; transition: transform 0.25s; opacity: 0.75; }
        .nav-links .has-dropdown:hover > a .chev { transform: rotate(180deg); opacity: 1; }
        .dropdown { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px); background: rgba(15,15,15,0.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); min-width: 230px; padding: 0.4rem 0; border-radius: 10px; list-style: none; box-shadow: 0 18px 45px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; pointer-events: none; }
        .nav-links .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
        .dropdown li { padding: 0; }
        .nav-links .dropdown a { display: block; padding: 0.7rem 1.5rem; font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.88); border-left: 3px solid transparent; transition: background 0.15s, color 0.15s, border-left-color 0.15s; }
        .nav-links .dropdown a:hover { background: rgba(255,255,255,0.04); color: var(--amber, #FDB827); border-left-color: var(--amber, #FDB827); }
        .nav-links .dropdown a::after { display: none !important; }
        .dropdown-divider { border-top: 1px solid rgba(255,255,255,0.08); margin: 0.35rem 0; pointer-events: none; }
        .mobile-section { font-weight: 700 !important; }
        .mobile-sub { padding-left: 1.25rem !important; font-size: 0.95rem !important; opacity: 0.92; }
