{"id":43755,"date":"2026-10-27T10:55:48","date_gmt":"2026-10-27T07:55:48","guid":{"rendered":"https:\/\/bti.stu.edu.iq\/college-hallways\/"},"modified":"2026-10-29T12:20:50","modified_gmt":"2026-10-29T09:20:50","slug":"college-hallways","status":"publish","type":"page","link":"https:\/\/bti.stu.edu.iq\/en\/college-hallways\/","title":{"rendered":"College Hallways"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"43755\" class=\"elementor elementor-43755 elementor-43571\">\n\t\t\t\t<div class=\"elementor-element elementor-element-85d3e35 e-con-full e-flex e-con e-parent\" data-id=\"85d3e35\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c638f40 elementor-widget elementor-widget-html\" data-id=\"c638f40\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- BTI Halls & Facilities (Tabbed System) -->\r\n<div class=\"bti-halls-wrapper\" dir=\"ltr\">\r\n    <!-- Pannellum Library for 360\u00b0 Images -->\r\n    <link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/pannellum@2.5.6\/build\/pannellum.css\"\/>\r\n    <script type=\"text\/javascript\" src=\"https:\/\/cdn.jsdelivr.net\/npm\/pannellum@2.5.6\/build\/pannellum.js\"><\/script>\r\n\r\n    <style>\r\n        @import url('https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;600;700;800;900&display=swap');\r\n\r\n        .bti-halls-wrapper {\r\n            \/* Official brand colors *\/\r\n            --maroon: #6b141c;\r\n            --maroon-light: #8f1d27;\r\n            --navy: #22313a;\r\n            --navy-light: #344954;\r\n            --gold: #cbb08a;\r\n            --bg-dark: #0f161c;\r\n            \r\n            font-family: \"Inter\", \"Segoe UI\", sans-serif;\r\n            padding: 40px 15px;\r\n            max-width: 1200px;\r\n            margin: 2rem auto;\r\n            box-sizing: border-box;\r\n            background: var(--bg-dark);\r\n            border-radius: 24px;\r\n            position: relative;\r\n            overflow: hidden;\r\n        }\r\n\r\n        .bti-halls-wrapper * {\r\n            box-sizing: border-box;\r\n            margin: 0;\r\n            padding: 0;\r\n        }\r\n\r\n        \/* Background glow *\/\r\n        .bti-halls-wrapper::before {\r\n            content: \"\";\r\n            position: absolute;\r\n            top: 0; left: 0; width: 100%; height: 100%;\r\n            background: \r\n                radial-gradient(circle at 20% 20%, rgba(107, 20, 28, 0.15) 0%, transparent 50%),\r\n                radial-gradient(circle at 80% 80%, rgba(34, 49, 58, 0.2) 0%, transparent 50%);\r\n            pointer-events: none;\r\n        }\r\n\r\n        \/* ===== Tab System ===== *\/\r\n        .bti-tabs-nav {\r\n            display: flex;\r\n            justify-content: center;\r\n            gap: 10px;\r\n            margin-bottom: 30px;\r\n            position: relative;\r\n            z-index: 5;\r\n        }\r\n\r\n        .bti-tab-btn {\r\n            background: transparent;\r\n            color: #ffffff;\r\n            border: 2px solid var(--navy-light);\r\n            padding: 12px 30px;\r\n            border-radius: 30px;\r\n            font-size: 1.1rem;\r\n            font-weight: 800;\r\n            cursor: pointer;\r\n            transition: all 0.3s ease;\r\n            font-family: inherit;\r\n            outline: none;\r\n        }\r\n\r\n        .bti-tab-btn:hover, \r\n        .bti-tab-btn:focus, \r\n        .bti-tab-btn:active {\r\n            border-color: var(--gold);\r\n            background: rgba(203, 176, 138, 0.1);\r\n            color: #ffffff !important;\r\n            box-shadow: 0 0 15px rgba(203, 176, 138, 0.2);\r\n        }\r\n\r\n        .bti-tab-btn.active {\r\n            background: var(--maroon);\r\n            color: #ffffff !important;\r\n            border-color: var(--maroon-light);\r\n            box-shadow: 0 4px 15px rgba(107, 20, 28, 0.4);\r\n        }\r\n\r\n        \/* ===== Tab Content ===== *\/\r\n        .bti-tab-content {\r\n            display: none;\r\n            animation: fadeIn 0.5s ease;\r\n            position: relative;\r\n            z-index: 2;\r\n        }\r\n\r\n        .bti-tab-content.active {\r\n            display: block;\r\n        }\r\n\r\n        @keyframes fadeIn {\r\n            from { opacity: 0; transform: translateY(10px); }\r\n            to { opacity: 1; transform: translateY(0); }\r\n        }\r\n\r\n        \/* ===== Section Title ===== *\/\r\n        .bti-section-title {\r\n            text-align: center;\r\n            margin-bottom: 30px;\r\n        }\r\n\r\n        .bti-section-title h2 {\r\n            font-size: 2.2rem;\r\n            font-weight: 900;\r\n            color: #ffffff;\r\n            margin-bottom: 10px;\r\n        }\r\n\r\n        .bti-section-title h2 span { color: #ffffff; }\r\n\r\n        .bti-section-title p {\r\n            color: #ffffff;\r\n            opacity: 0.8;\r\n            font-weight: 600;\r\n            font-size: 1rem;\r\n        }\r\n\r\n        \/* ========================================= *\/\r\n        \/* Tab 1: Departments Map *\/\r\n        \/* ========================================= *\/\r\n        .bti-map-container {\r\n            position: relative;\r\n            width: 100%;\r\n            max-width: 1000px;\r\n            height: 550px;\r\n            margin: 0 auto;\r\n            background-color: #111a20;\r\n            background-image: \r\n                linear-gradient(rgba(34, 49, 58, 0.5) 1px, transparent 1px),\r\n                linear-gradient(90deg, rgba(34, 49, 58, 0.5) 1px, transparent 1px);\r\n            background-size: 40px 40px;\r\n            border-radius: 20px;\r\n            border: 1px solid var(--navy-light);\r\n            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 50px rgba(0, 0, 0, 0.8);\r\n            overflow: hidden;\r\n        }\r\n\r\n        .bti-holo-building {\r\n            position: absolute;\r\n            background: rgba(203, 176, 138, 0.03);\r\n            border: 1px solid rgba(203, 176, 138, 0.15);\r\n            border-radius: 10px;\r\n            pointer-events: none;\r\n        }\r\n        .bti-holo-path {\r\n            position: absolute;\r\n            background: transparent;\r\n            border-top: 2px dashed rgba(203, 176, 138, 0.15);\r\n            border-bottom: 2px dashed rgba(203, 176, 138, 0.15);\r\n            pointer-events: none;\r\n        }\r\n        .bld-1 { top: 10%; left: 10%; width: 25%; height: 25%; }\r\n        .bld-2 { top: 10%; left: 45%; width: 20%; height: 25%; }\r\n        .bld-3 { top: 15%; left: 75%; width: 20%; height: 20%; }\r\n        .bld-4 { top: 50%; left: 15%; width: 20%; height: 30%; }\r\n        .bld-5 { top: 55%; left: 45%; width: 25%; height: 25%; }\r\n        .bld-6 { top: 50%; left: 80%; width: 15%; height: 30%; }\r\n        .bld-7 { top: 35%; left: 38%; width: 20%; height: 15%; }\r\n        .path-1 { top: 40%; left: 0; width: 100%; height: 30px; }\r\n        .path-2 { top: 0; left: 35%; width: 30px; height: 100%; border-left: 2px dashed rgba(34, 49, 58, 0.4); border-right: 2px dashed rgba(34, 49, 58, 0.4); border-top: none; border-bottom: none; }\r\n\r\n        .bti-marker-wrap {\r\n            position: absolute;\r\n            transform: translate(-50%, -50%);\r\n            display: flex;\r\n            flex-direction: column;\r\n            align-items: center;\r\n            cursor: pointer;\r\n            z-index: 10;\r\n            transition: z-index 0.3s ease;\r\n        }\r\n        .bti-marker-wrap:hover { z-index: 20; }\r\n        .bti-marker-dot {\r\n            position: relative;\r\n            width: 34px; height: 34px;\r\n            border-radius: 50%;\r\n            background: var(--navy);\r\n            border: 2px solid var(--gold);\r\n            box-shadow: 0 0 15px rgba(203, 176, 138, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5);\r\n            display: flex; align-items: center; justify-content: center;\r\n            transition: all 0.3s ease;\r\n        }\r\n        .bti-marker-dot::after {\r\n            content: \"\"; position: absolute;\r\n            width: 8px; height: 8px;\r\n            background: var(--gold); border-radius: 50%;\r\n            box-shadow: 0 0 8px var(--gold);\r\n        }\r\n        .bti-marker-dot svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; opacity: 0; transition: all 0.3s ease; }\r\n        .bti-marker-pulse { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--gold); animation: markerPulse 2s infinite; pointer-events: none; }\r\n        \r\n        .bti-marker-label {\r\n            margin-top: 8px;\r\n            background: rgba(15, 22, 28, 0.9); \r\n            backdrop-filter: blur(8px);\r\n            color: #ffffff; \r\n            padding: 6px 14px; \r\n            border-radius: 6px;\r\n            font-size: 0.75rem; \r\n            font-weight: 700; \r\n            white-space: nowrap;\r\n            border: 1px solid rgba(255, 255, 255, 0.2); \r\n            box-shadow: 0 4px 10px rgba(0,0,0,0.5);\r\n            transition: all 0.3s ease; \r\n            text-align: center; \r\n            line-height: 1.4;\r\n        }\r\n        \r\n        .bti-marker-wrap:hover .bti-marker-dot, .bti-marker-wrap:active .bti-marker-dot {\r\n            background: var(--maroon); border-color: #ffffff;\r\n            box-shadow: 0 0 25px rgba(107, 20, 28, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.5);\r\n            transform: scale(1.1);\r\n        }\r\n        .bti-marker-wrap:hover .bti-marker-dot::after { background: #ffffff; box-shadow: 0 0 10px #ffffff; }\r\n        .bti-marker-wrap:hover .bti-marker-dot svg { opacity: 1; stroke: #ffffff; }\r\n        .bti-marker-wrap:hover .bti-marker-label { border-color: #ffffff; color: #ffffff; background: var(--maroon); transform: translateY(2px); }\r\n        \r\n        @keyframes markerPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }\r\n        \r\n        .marker-1 { top: 22%; left: 22%; } .marker-2 { top: 22%; left: 55%; } .marker-3 { top: 25%; left: 85%; }\r\n        .marker-4 { top: 65%; left: 25%; } .marker-5 { top: 68%; left: 57%; } .marker-6 { top: 65%; left: 88%; } .marker-7 { top: 43%; left: 48%; }\r\n\r\n        \/* ========================================= *\/\r\n        \/* Tab 2: Student Halls *\/\r\n        \/* ========================================= *\/\r\n        .bti-student-grid {\r\n            display: grid;\r\n            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));\r\n            gap: 25px;\r\n            max-width: 1000px;\r\n            margin: 0 auto;\r\n        }\r\n\r\n        .bti-student-card {\r\n            background: var(--navy);\r\n            border: 1px solid var(--navy-light);\r\n            border-radius: 16px;\r\n            overflow: hidden;\r\n            position: relative;\r\n            transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);\r\n            box-shadow: 0 10px 30px rgba(0,0,0,0.3);\r\n            display: flex;\r\n            flex-direction: column;\r\n        }\r\n\r\n        .bti-student-card:hover {\r\n            transform: translateY(-5px);\r\n            border-color: var(--gold);\r\n            box-shadow: 0 20px 40px rgba(107, 20, 28, 0.4);\r\n        }\r\n\r\n        \/* Cover image at top of the card *\/\r\n        .bti-student-img-placeholder {\r\n            width: 100%;\r\n            height: 220px;\r\n            background-size: cover;\r\n            background-position: center;\r\n            background-color: var(--bg-dark);\r\n            position: relative;\r\n            display: flex;\r\n            align-items: center;\r\n            justify-content: center;\r\n            border-bottom: 1px solid var(--navy-light);\r\n            cursor: pointer;\r\n            overflow: hidden;\r\n        }\r\n        .bti-student-img-placeholder::before {\r\n            content: \"\";\r\n            position: absolute;\r\n            inset: 0;\r\n            background: linear-gradient(135deg, rgba(15, 22, 28, 0.55) 0%, rgba(34, 49, 58, 0.25) 100%);\r\n            z-index: 1;\r\n            transition: background 0.4s ease;\r\n        }\r\n        .bti-student-img-placeholder:hover::before {\r\n            background: linear-gradient(135deg, rgba(107, 20, 28, 0.5) 0%, rgba(34, 49, 58, 0.3) 100%);\r\n        }\r\n        .bti-student-img-placeholder::after {\r\n            content: \"\";\r\n            position: absolute;\r\n            inset: 0;\r\n            background: rgba(0,0,0,0.35);\r\n            opacity: 0;\r\n            z-index: 2;\r\n            transition: opacity 0.3s ease;\r\n        }\r\n        .bti-student-img-placeholder:hover::after { opacity: 1; }\r\n        \r\n        .bti-student-img-hint {\r\n            position: absolute;\r\n            inset: 0;\r\n            display: flex;\r\n            align-items: center;\r\n            justify-content: center;\r\n            z-index: 3;\r\n            opacity: 0;\r\n            transform: scale(0.9);\r\n            transition: all 0.35s ease;\r\n            color: #fff;\r\n            font-weight: 800;\r\n            font-size: 0.95rem;\r\n            gap: 8px;\r\n            flex-direction: column;\r\n            text-align: center;\r\n        }\r\n        .bti-student-img-placeholder:hover .bti-student-img-hint {\r\n            opacity: 1;\r\n            transform: scale(1);\r\n        }\r\n        .bti-student-img-hint svg {\r\n            width: 40px;\r\n            height: 40px;\r\n            stroke: #fff;\r\n            fill: none;\r\n            stroke-width: 2;\r\n        }\r\n\r\n        .bti-student-photo-count {\r\n            position: absolute;\r\n            bottom: 15px;\r\n            left: 15px;\r\n            background: rgba(15, 22, 28, 0.88);\r\n            backdrop-filter: blur(5px);\r\n            color: var(--gold);\r\n            padding: 6px 14px;\r\n            border-radius: 20px;\r\n            font-size: 0.8rem;\r\n            font-weight: 700;\r\n            display: flex;\r\n            align-items: center;\r\n            gap: 6px;\r\n            border: 1px solid rgba(203, 176, 138, 0.5);\r\n            z-index: 4;\r\n        }\r\n        .bti-student-photo-count svg {\r\n            width: 14px;\r\n            height: 14px;\r\n            stroke: currentColor;\r\n            fill: none;\r\n            stroke-width: 2;\r\n        }\r\n\r\n        .bti-student-icon {\r\n            position: absolute;\r\n            top: 20px;\r\n            right: 20px;\r\n            background: rgba(107, 20, 28, 0.85);\r\n            backdrop-filter: blur(5px);\r\n            width: 50px;\r\n            height: 50px;\r\n            border-radius: 50%;\r\n            display: flex;\r\n            align-items: center;\r\n            justify-content: center;\r\n            border: 1px solid var(--gold);\r\n            z-index: 4;\r\n            box-shadow: 0 4px 12px rgba(0,0,0,0.4);\r\n        }\r\n\r\n        .bti-student-icon svg {\r\n            width: 24px;\r\n            height: 24px;\r\n            stroke: #ffffff; \r\n            fill: none;\r\n            stroke-width: 2;\r\n        }\r\n\r\n        .bti-student-info {\r\n            padding: 20px 25px 25px;\r\n            position: relative;\r\n            z-index: 2;\r\n            flex-grow: 1;\r\n            display: flex;\r\n            flex-direction: column;\r\n        }\r\n\r\n        .bti-student-title {\r\n            font-size: 1.5rem;\r\n            font-weight: 900;\r\n            color: #ffffff;\r\n            margin-bottom: 8px;\r\n        }\r\n\r\n        .bti-student-desc {\r\n            font-size: 0.95rem;\r\n            color: #ffffff; \r\n            opacity: 0.85;\r\n            font-weight: 600;\r\n            line-height: 1.6;\r\n            margin-bottom: 20px;\r\n            flex-grow: 1;\r\n        }\r\n\r\n        \/* Button to open the photo gallery *\/\r\n        .bti-student-btn {\r\n            display: inline-flex;\r\n            align-items: center;\r\n            gap: 8px;\r\n            font-size: 0.9rem;\r\n            font-weight: 800;\r\n            color: #ffffff; \r\n            background: var(--maroon);\r\n            border: 1px solid var(--maroon-light);\r\n            padding: 10px 22px;\r\n            border-radius: 30px;\r\n            width: fit-content;\r\n            cursor: pointer;\r\n            font-family: inherit;\r\n            transition: all 0.3s ease;\r\n        }\r\n        .bti-student-btn svg {\r\n            width: 16px;\r\n            height: 16px;\r\n            stroke: currentColor;\r\n            fill: none;\r\n            stroke-width: 2;\r\n        }\r\n        .bti-student-btn:hover,\r\n        .bti-student-btn:focus {\r\n            background: var(--maroon-light);\r\n            box-shadow: 0 5px 15px rgba(107, 20, 28, 0.5);\r\n            transform: translateY(-2px);\r\n        }\r\n\r\n        \/* ===== 360\u00b0 Viewer Modal ===== *\/\r\n        .bti-modal-360 {\r\n            position: fixed; top: 0; left: 0; width: 100%; height: 100%;\r\n            background: rgba(15, 22, 28, 0.95); backdrop-filter: blur(15px);\r\n            z-index: 99999; display: flex; align-items: center; justify-content: center;\r\n            opacity: 0; visibility: hidden; transition: all 0.4s ease;\r\n        }\r\n        .bti-modal-360.is-active { opacity: 1; visibility: visible; }\r\n        .bti-modal-content {\r\n            width: 90%; max-width: 1100px; height: 75vh;\r\n            background: #000; border-radius: 16px; overflow: hidden;\r\n            position: relative; box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);\r\n            border: 2px solid var(--gold); transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);\r\n        }\r\n        .bti-modal-360.is-active .bti-modal-content { transform: scale(1); }\r\n        #panorama-container { width: 100%; height: 100%; }\r\n        \r\n        .bti-modal-close {\r\n            position: absolute; top: 15px; right: 15px; width: 45px; height: 45px;\r\n            background: var(--maroon); backdrop-filter: blur(5px); \r\n            border: 1px solid var(--maroon-light); border-radius: 50%;\r\n            color: #ffffff; \r\n            display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.3s ease;\r\n        }\r\n        .bti-modal-close:hover, .bti-modal-close:active { background: var(--maroon-light); color: #fff; transform: rotate(90deg) scale(1.1); }\r\n        .bti-modal-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; }\r\n        \r\n        .bti-modal-title {\r\n            position: absolute; bottom: 20px; right: 20px; \r\n            background: rgba(34, 49, 58, 0.9); \r\n            color: #ffffff; \r\n            padding: 10px 20px; border-radius: 8px; font-weight: 800; font-size: 1.1rem; \r\n            border: 1px solid rgba(255, 255, 255, 0.3); \r\n            box-shadow: 0 0 15px rgba(203, 176, 138, 0.2); z-index: 10; pointer-events: none;\r\n        }\r\n\r\n        \/* ========================================= *\/\r\n        \/* ===== Photo Gallery Modal ===== *\/\r\n        \/* ========================================= *\/\r\n        .bti-gallery-modal {\r\n            position: fixed; inset: 0;\r\n            background: rgba(15, 22, 28, 0.97);\r\n            backdrop-filter: blur(15px);\r\n            z-index: 100000;\r\n            display: flex; align-items: center; justify-content: center;\r\n            opacity: 0; visibility: hidden;\r\n            transition: opacity 0.4s ease, visibility 0.4s ease;\r\n            padding: 20px;\r\n        }\r\n        .bti-gallery-modal.is-active { opacity: 1; visibility: visible; }\r\n\r\n        .bti-gallery-content {\r\n            width: 100%;\r\n            max-width: 1150px;\r\n            height: 90vh;\r\n            background: #0a1015;\r\n            border: 1px solid var(--gold);\r\n            border-radius: 16px;\r\n            overflow: hidden;\r\n            display: flex;\r\n            flex-direction: column;\r\n            position: relative;\r\n            transform: scale(0.95);\r\n            transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);\r\n            box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);\r\n        }\r\n        .bti-gallery-modal.is-active .bti-gallery-content { transform: scale(1); }\r\n\r\n        .bti-gallery-header {\r\n            display: flex;\r\n            align-items: center;\r\n            justify-content: space-between;\r\n            gap: 15px;\r\n            padding: 14px 20px;\r\n            background: rgba(34, 49, 58, 0.7);\r\n            border-bottom: 1px solid rgba(203, 176, 138, 0.3);\r\n            flex-shrink: 0;\r\n        }\r\n        .bti-gallery-title {\r\n            color: #fff;\r\n            font-weight: 900;\r\n            font-size: 1.15rem;\r\n            display: flex;\r\n            align-items: center;\r\n            gap: 10px;\r\n        }\r\n        .bti-gallery-title::before {\r\n            content: \"\";\r\n            width: 6px; height: 22px;\r\n            background: var(--maroon);\r\n            border-radius: 3px;\r\n        }\r\n        .bti-gallery-counter {\r\n            color: var(--gold);\r\n            font-weight: 800;\r\n            font-size: 0.95rem;\r\n            background: rgba(15, 22, 28, 0.7);\r\n            padding: 5px 14px;\r\n            border-radius: 20px;\r\n            border: 1px solid rgba(203, 176, 138, 0.4);\r\n            margin-inline-start: auto;\r\n        }\r\n        .bti-gallery-close {\r\n            width: 42px; height: 42px;\r\n            background: var(--maroon);\r\n            border: 1px solid var(--maroon-light);\r\n            border-radius: 50%;\r\n            color: #fff;\r\n            cursor: pointer;\r\n            display: flex; align-items: center; justify-content: center;\r\n            transition: all 0.3s ease;\r\n            flex-shrink: 0;\r\n        }\r\n        .bti-gallery-close:hover {\r\n            background: var(--maroon-light);\r\n            transform: rotate(90deg) scale(1.1);\r\n        }\r\n        .bti-gallery-close svg {\r\n            width: 20px; height: 20px;\r\n            stroke: currentColor; fill: none; stroke-width: 2.5;\r\n        }\r\n\r\n        .bti-gallery-stage {\r\n            flex: 1;\r\n            position: relative;\r\n            display: flex;\r\n            align-items: center;\r\n            justify-content: center;\r\n            background: #000;\r\n            overflow: hidden;\r\n            min-height: 0;\r\n        }\r\n        .bti-gallery-main {\r\n            max-width: 100%;\r\n            max-height: 100%;\r\n            object-fit: contain;\r\n            display: block;\r\n            opacity: 1;\r\n            transition: opacity 0.25s ease;\r\n        }\r\n        .bti-gallery-main.is-loading { opacity: 0.3; }\r\n\r\n        .bti-gallery-nav {\r\n            position: absolute;\r\n            top: 50%;\r\n            transform: translateY(-50%);\r\n            width: 55px; height: 55px;\r\n            border-radius: 50%;\r\n            background: rgba(107, 20, 28, 0.85);\r\n            border: 1px solid var(--gold);\r\n            color: #fff;\r\n            cursor: pointer;\r\n            display: flex; align-items: center; justify-content: center;\r\n            transition: all 0.3s ease;\r\n            z-index: 5;\r\n            backdrop-filter: blur(5px);\r\n        }\r\n        .bti-gallery-nav:hover {\r\n            background: var(--maroon);\r\n            transform: translateY(-50%) scale(1.12);\r\n            box-shadow: 0 0 20px rgba(107, 20, 28, 0.7);\r\n        }\r\n        .bti-gallery-nav svg {\r\n            width: 26px; height: 26px;\r\n            stroke: currentColor; fill: none; stroke-width: 2.5;\r\n        }\r\n        .bti-gallery-prev { left: 18px; }\r\n        .bti-gallery-next { right: 18px; }\r\n\r\n        .bti-gallery-thumbs {\r\n            display: flex;\r\n            gap: 8px;\r\n            padding: 12px 15px;\r\n            overflow-x: auto;\r\n            background: rgba(0, 0, 0, 0.5);\r\n            border-top: 1px solid rgba(203, 176, 138, 0.25);\r\n            scrollbar-width: thin;\r\n            scrollbar-color: var(--gold) transparent;\r\n            flex-shrink: 0;\r\n        }\r\n        .bti-gallery-thumbs::-webkit-scrollbar { height: 6px; }\r\n        .bti-gallery-thumbs::-webkit-scrollbar-track { background: transparent; }\r\n        .bti-gallery-thumbs::-webkit-scrollbar-thumb {\r\n            background: var(--gold);\r\n            border-radius: 3px;\r\n        }\r\n        .bti-gallery-thumb {\r\n            flex-shrink: 0;\r\n            width: 90px; height: 65px;\r\n            border-radius: 8px;\r\n            overflow: hidden;\r\n            cursor: pointer;\r\n            border: 2px solid transparent;\r\n            opacity: 0.55;\r\n            transition: all 0.25s ease;\r\n            background: #000;\r\n            padding: 0;\r\n        }\r\n        .bti-gallery-thumb img {\r\n            width: 100%; height: 100%;\r\n            object-fit: cover;\r\n            display: block;\r\n            pointer-events: none;\r\n        }\r\n        .bti-gallery-thumb:hover {\r\n            opacity: 1;\r\n            transform: scale(1.05);\r\n            border-color: rgba(203, 176, 138, 0.6);\r\n        }\r\n        .bti-gallery-thumb.active {\r\n            border-color: var(--gold);\r\n            opacity: 1;\r\n            box-shadow: 0 0 12px rgba(203, 176, 138, 0.6);\r\n        }\r\n\r\n        \/* ===== Mobile Enhancements ===== *\/\r\n        @media (max-width: 768px) {\r\n            .bti-tabs-nav { flex-direction: column; gap: 10px; }\r\n            .bti-tab-btn { width: 100%; text-align: center; }\r\n            .bti-section-title h2 { font-size: 1.8rem; }\r\n            .bti-map-container { height: 450px; background-size: 20px 20px; }\r\n            .bti-student-grid { grid-template-columns: 1fr; }\r\n            .bti-modal-content { height: 60vh; width: 95%; }\r\n            .bti-modal-title { font-size: 0.9rem; padding: 8px 16px; bottom: 15px; right: 15px; }\r\n            .bti-modal-close { width: 40px; height: 40px; top: 10px; right: 10px; }\r\n            .bti-marker-dot { width: 28px; height: 28px; }\r\n            .bti-marker-dot::after { width: 6px; height: 6px; }\r\n            .bti-marker-label { margin-top: 6px; font-size: 0.7rem; padding: 4px 8px; max-width: 100px; white-space: normal; line-height: 1.3; }\r\n            .marker-1 { top: 15%; left: 25%; } .marker-2 { top: 15%; left: 75%; } .marker-3 { top: 35%; left: 15%; }\r\n            .marker-4 { top: 38%; left: 85%; } .marker-5 { top: 65%; left: 25%; } .marker-6 { top: 65%; left: 75%; }\r\n            .marker-7 { top: 90%; left: 50%; }\r\n            .bld-1, .bld-2, .bld-3, .bld-4, .bld-5, .bld-6, .bld-7, .path-1, .path-2 { display: none; }\r\n\r\n            \/* Gallery on mobile *\/\r\n            .bti-gallery-modal { padding: 8px; }\r\n            .bti-gallery-content { height: 96vh; border-radius: 12px; }\r\n            .bti-gallery-header { padding: 10px 14px; }\r\n            .bti-gallery-title { font-size: 0.95rem; }\r\n            .bti-gallery-counter { font-size: 0.8rem; padding: 4px 10px; }\r\n            .bti-gallery-close { width: 36px; height: 36px; }\r\n            .bti-gallery-close svg { width: 18px; height: 18px; }\r\n            .bti-gallery-nav { width: 44px; height: 44px; }\r\n            .bti-gallery-nav svg { width: 20px; height: 20px; }\r\n            .bti-gallery-prev { left: 8px; }\r\n            .bti-gallery-next { right: 8px; }\r\n            .bti-gallery-thumb { width: 62px; height: 46px; }\r\n            .bti-gallery-thumbs { padding: 10px; }\r\n            .bti-student-img-placeholder { height: 180px; }\r\n        }\r\n    <\/style>\r\n\r\n    <!-- Tab Buttons -->\r\n    <div class=\"bti-tabs-nav\">\r\n        <button class=\"bti-tab-btn active\" data-tab=\"tab-college\">College Halls (Departments)<\/button>\r\n        <button class=\"bti-tab-btn\" data-tab=\"tab-students\">Student Halls (Facilities)<\/button>\r\n    <\/div>\r\n\r\n    <!-- Tab 1: Departments Map -->\r\n    <div class=\"bti-tab-content active\" id=\"tab-college\">\r\n        <div class=\"bti-section-title\">\r\n            <h2>College <span>Halls<\/span><\/h2>\r\n            <p>Click on a department to start the 360\u00b0 virtual tour<\/p>\r\n        <\/div>\r\n\r\n        <div class=\"bti-map-container\" id=\"hallsContainer\">\r\n            <div class=\"bti-holo-building bld-1\"><\/div>\r\n            <div class=\"bti-holo-building bld-2\"><\/div>\r\n            <div class=\"bti-holo-building bld-3\"><\/div>\r\n            <div class=\"bti-holo-building bld-4\"><\/div>\r\n            <div class=\"bti-holo-building bld-5\"><\/div>\r\n            <div class=\"bti-holo-building bld-6\"><\/div>\r\n            <div class=\"bti-holo-building bld-7\"><\/div>\r\n            <div class=\"bti-holo-path path-1\"><\/div>\r\n            <div class=\"bti-holo-path path-2\"><\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <!-- Tab 2: Student Halls -->\r\n    <div class=\"bti-tab-content\" id=\"tab-students\">\r\n        <div class=\"bti-section-title\">\r\n            <h2>Student <span>Halls<\/span><\/h2>\r\n            <p>Explore the student and service facilities at the college<\/p>\r\n        <\/div>\r\n\r\n        <div class=\"bti-student-grid\">\r\n\r\n            <!-- Central Library Card -->\r\n            <div class=\"bti-student-card\">\r\n                <div class=\"bti-student-img-placeholder\"\r\n                     data-gallery=\"library\"\r\n                     style=\"background-image: url('https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/1bda8494-f39f-4575-b8f3-2f618ddeae55.jpg');\">\r\n                    <div class=\"bti-student-img-hint\">\r\n                        <svg viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"8\"><\/circle><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"><\/line><line x1=\"11\" y1=\"8\" x2=\"11\" y2=\"14\"><\/line><line x1=\"8\" y1=\"11\" x2=\"14\" y2=\"11\"><\/line><\/svg>\r\n                        Click to view photos\r\n                    <\/div>\r\n                    <div class=\"bti-student-photo-count\">\r\n                        <svg viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"><\/rect><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"><\/circle><polyline points=\"21 15 16 10 5 21\"><\/polyline><\/svg>\r\n                        13 Photos\r\n                    <\/div>\r\n                    <div class=\"bti-student-icon\">\r\n                        <svg viewBox=\"0 0 24 24\"><path d=\"M4 19.5A2.5 2.5 0 0 1 6.5 17H20\"><\/path><path d=\"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z\"><\/path><line x1=\"8\" y1=\"7\" x2=\"16\" y2=\"7\"><\/line><line x1=\"8\" y1=\"11\" x2=\"14\" y2=\"11\"><\/line><\/svg>\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"bti-student-info\">\r\n                    <div class=\"bti-student-title\">Central Library<\/div>\r\n                    <div class=\"bti-student-desc\">A knowledge landmark housing thousands of books and academic references serving students and researchers at the college.<\/div>\r\n                    <button type=\"button\" class=\"bti-student-btn\" data-gallery=\"library\">\r\n                        <svg viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"><\/rect><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"><\/circle><polyline points=\"21 15 16 10 5 21\"><\/polyline><\/svg>\r\n                        View Photo Gallery\r\n                    <\/button>\r\n                <\/div>\r\n            <\/div>\r\n\r\n            <!-- Sports Hall Card -->\r\n            <div class=\"bti-student-card\">\r\n                <div class=\"bti-student-img-placeholder\"\r\n                     data-gallery=\"sports\"\r\n                     style=\"background-image: url('https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/227dd030-ecc3-4eff-a2b3-b4038beb0c7f.jpg');\">\r\n                    <div class=\"bti-student-img-hint\">\r\n                        <svg viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"8\"><\/circle><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"><\/line><line x1=\"11\" y1=\"8\" x2=\"11\" y2=\"14\"><\/line><line x1=\"8\" y1=\"11\" x2=\"14\" y2=\"11\"><\/line><\/svg>\r\n                        Click to view photos\r\n                    <\/div>\r\n                    <div class=\"bti-student-photo-count\">\r\n                        <svg viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"><\/rect><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"><\/circle><polyline points=\"21 15 16 10 5 21\"><\/polyline><\/svg>\r\n                        4 Photos\r\n                    <\/div>\r\n                    <div class=\"bti-student-icon\">\r\n                        <svg viewBox=\"0 0 24 24\"><path d=\"M6 9H4.5a2.5 2.5 0 0 1 0-5H6\"><\/path><path d=\"M18 9h1.5a2.5 2.5 0 0 0 0-5H18\"><\/path><path d=\"M4 22h16\"><\/path><path d=\"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22\"><\/path><path d=\"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22\"><\/path><path d=\"M18 2H6v7a6 6 0 0 0 12 0V2Z\"><\/path><\/svg>\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"bti-student-info\">\r\n                    <div class=\"bti-student-title\">Sports Hall<\/div>\r\n                    <div class=\"bti-student-desc\">A facility equipped for sports activities and physical fitness, promoting student well-being and teamwork.<\/div>\r\n                    <button type=\"button\" class=\"bti-student-btn\" data-gallery=\"sports\">\r\n                        <svg viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"><\/rect><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"><\/circle><polyline points=\"21 15 16 10 5 21\"><\/polyline><\/svg>\r\n                        View Photo Gallery\r\n                    <\/button>\r\n                <\/div>\r\n            <\/div>\r\n\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <!-- 360\u00b0 Viewer Modal -->\r\n    <div class=\"bti-modal-360\" id=\"modal360\">\r\n        <div class=\"bti-modal-content\">\r\n            <button class=\"bti-modal-close\" id=\"closeModal\">\r\n                <svg viewBox=\"0 0 24 24\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"><\/line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"><\/line><\/svg>\r\n            <\/button>\r\n            <div class=\"bti-modal-title\" id=\"modalTitle\">Department Name<\/div>\r\n            <div id=\"panorama-container\"><\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <!-- Photo Gallery Modal -->\r\n    <div class=\"bti-gallery-modal\" id=\"galleryModal\" aria-hidden=\"true\">\r\n        <div class=\"bti-gallery-content\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"galleryTitle\">\r\n            <div class=\"bti-gallery-header\">\r\n                <div class=\"bti-gallery-title\" id=\"galleryTitle\">Central Library<\/div>\r\n                <div class=\"bti-gallery-counter\" id=\"galleryCounter\">1 \/ 13<\/div>\r\n                <button type=\"button\" class=\"bti-gallery-close\" id=\"galleryClose\" aria-label=\"Close\">\r\n                    <svg viewBox=\"0 0 24 24\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"><\/line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"><\/line><\/svg>\r\n                <\/button>\r\n            <\/div>\r\n\r\n            <div class=\"bti-gallery-stage\" id=\"galleryStage\">\r\n                <button type=\"button\" class=\"bti-gallery-nav bti-gallery-prev\" id=\"galleryPrev\" aria-label=\"Previous\">\r\n                    <svg viewBox=\"0 0 24 24\"><polyline points=\"15 18 9 12 15 6\"><\/polyline><\/svg>\r\n                <\/button>\r\n                <img decoding=\"async\" class=\"bti-gallery-main\" id=\"galleryMain\" src=\"\" alt=\"\">\r\n                <button type=\"button\" class=\"bti-gallery-nav bti-gallery-next\" id=\"galleryNext\" aria-label=\"Next\">\r\n                    <svg viewBox=\"0 0 24 24\"><polyline points=\"9 18 15 12 9 6\"><\/polyline><\/svg>\r\n                <\/button>\r\n            <\/div>\r\n\r\n            <div class=\"bti-gallery-thumbs\" id=\"galleryThumbs\"><\/div>\r\n        <\/div>\r\n    <\/div>\r\n<\/div>\r\n\r\n<script>\r\n(function() {\r\n    \"use strict\";\r\n\r\n    \/\/ ==========================================\r\n    \/\/ 1. Tab System\r\n    \/\/ ==========================================\r\n    const tabBtns = document.querySelectorAll(\".bti-tab-btn\");\r\n    const tabContents = document.querySelectorAll(\".bti-tab-content\");\r\n\r\n    tabBtns.forEach(btn => {\r\n        btn.addEventListener(\"click\", function() {\r\n            tabBtns.forEach(b => b.classList.remove(\"active\"));\r\n            tabContents.forEach(c => c.classList.remove(\"active\"));\r\n            this.classList.add(\"active\");\r\n            const target = this.getAttribute(\"data-tab\");\r\n            document.getElementById(target).classList.add(\"active\");\r\n        });\r\n    });\r\n\r\n    \/\/ ==========================================\r\n    \/\/ 2. Department Data (Map)\r\n    \/\/ ==========================================\r\n    const departments = [\r\n        { id: \"cs\", name: \"Computer Science & Artificial Intelligence\", icon: '<svg viewBox=\"0 0 24 24\"><rect x=\"2\" y=\"3\" width=\"20\" height=\"14\" rx=\"2\" ry=\"2\"><\/rect><line x1=\"8\" y1=\"21\" x2=\"16\" y2=\"21\"><\/line><line x1=\"12\" y1=\"17\" x2=\"12\" y2=\"21\"><\/line><\/svg>', image: \"https:\/\/pannellum.org\/images\/alma.jpg\", position: \"marker-1\" },\r\n        { id: \"mech\", name: \"Mechanical Technologies\", icon: '<svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"3\"><\/circle><path d=\"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z\"><\/path><\/svg>', image: \"https:\/\/pannellum.org\/images\/alma.jpg\", position: \"marker-2\" },\r\n        { id: \"chem\", name: \"Chemical Industries\", icon: '<svg viewBox=\"0 0 24 24\"><path d=\"M10 2v7.31\"><\/path><path d=\"M14 9.3V1.99\"><\/path><path d=\"M8.5 2h7\"><\/path><path d=\"M14 9.3a6.5 6.5 0 1 1-4 0\"><\/path><path d=\"M5.52 16h12.96\"><\/path><\/svg>', image: \"https:\/\/pannellum.org\/images\/alma.jpg\", position: \"marker-3\" },\r\n        { id: \"elec\", name: \"Electrical Technologies\", icon: '<svg viewBox=\"0 0 24 24\"><polygon points=\"13 2 3 14 12 14 11 22 21 10 12 10 13 2\"><\/polygon><\/svg>', image: \"https:\/\/pannellum.org\/images\/alma.jpg\", position: \"marker-4\" },\r\n        { id: \"surv\", name: \"Surveying Engineering\", icon: '<svg viewBox=\"0 0 24 24\"><path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\"><\/path><circle cx=\"12\" cy=\"10\" r=\"3\"><\/circle><\/svg>', image: \"https:\/\/pannellum.org\/images\/alma.jpg\", position: \"marker-5\" },\r\n        { id: \"build\", name: \"Building & Construction\", icon: '<svg viewBox=\"0 0 24 24\"><path d=\"M3 21h18\"><\/path><path d=\"M9 8h1\"><\/path><path d=\"M9 12h1\"><\/path><path d=\"M9 16h1\"><\/path><path d=\"M14 8h1\"><\/path><path d=\"M14 12h1\"><\/path><path d=\"M14 16h1\"><\/path><path d=\"M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16\"><\/path><\/svg>', image: \"https:\/\/pannellum.org\/images\/alma.jpg\", position: \"marker-6\" },\r\n        { id: \"deanship\", name: \"Deanship\", icon: '<svg viewBox=\"0 0 24 24\"><path d=\"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5\"\/><\/svg>', image: \"https:\/\/pannellum.org\/images\/alma.jpg\", position: \"marker-7\" }\r\n    ];\r\n\r\n    const container = document.getElementById(\"hallsContainer\");\r\n    const modal = document.getElementById(\"modal360\");\r\n    const closeBtn = document.getElementById(\"closeModal\");\r\n    const modalTitle = document.getElementById(\"modalTitle\");\r\n    let viewerInstance = null;\r\n\r\n    departments.forEach(function(dept) {\r\n        const marker = document.createElement(\"div\");\r\n        marker.className = `bti-marker-wrap ${dept.position}`;\r\n        marker.innerHTML = `\r\n            <div class=\"bti-marker-dot\">\r\n                <div class=\"bti-marker-pulse\"><\/div>\r\n                ${dept.icon}\r\n            <\/div>\r\n            <div class=\"bti-marker-label\">${dept.name}<\/div>\r\n        `;\r\n        marker.addEventListener(\"click\", function() { \r\n            open360(dept.name, dept.image); \r\n        });\r\n        container.appendChild(marker);\r\n    });\r\n\r\n    \/\/ ==========================================\r\n    \/\/ 3. Open 360\u00b0 Viewer\r\n    \/\/ ==========================================\r\n    function open360(title, imageUrl) {\r\n        modal.classList.add(\"is-active\");\r\n        modalTitle.textContent = title;\r\n        if (viewerInstance) { viewerInstance.destroy(); viewerInstance = null; }\r\n        document.getElementById(\"panorama-container\").innerHTML = \"\";\r\n        setTimeout(function() {\r\n            viewerInstance = pannellum.viewer('panorama-container', {\r\n                \"type\": \"equirectangular\",\r\n                \"panorama\": imageUrl,\r\n                \"autoLoad\": true,\r\n                \"showControls\": true,\r\n                \"compass\": true,\r\n                \"backgroundColor\": [15, 22, 28]\r\n            });\r\n        }, 100);\r\n    }\r\n\r\n    function close360() {\r\n        modal.classList.remove(\"is-active\");\r\n        if (viewerInstance) { viewerInstance.destroy(); viewerInstance = null; }\r\n    }\r\n\r\n    closeBtn.addEventListener(\"click\", close360);\r\n    modal.addEventListener(\"click\", function(e) { if (e.target === modal) close360(); });\r\n    document.addEventListener(\"keydown\", function(e) { if (e.key === \"Escape\" && modal.classList.contains(\"is-active\")) close360(); });\r\n\r\n    \/\/ ==========================================\r\n    \/\/ 4. Photo Gallery (Lightbox)\r\n    \/\/ ==========================================\r\n    const galleryData = {\r\n        library: {\r\n            title: \"Central Library\",\r\n            images: [\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/1bda8494-f39f-4575-b8f3-2f618ddeae55.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/1f76ee21-3350-463e-abd0-464377625eb5.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/5b993a37-d45d-4806-8626-ca8c28c4e0d1.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/5eda4c5b-d40f-4c62-8308-e013feea9d63.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/07a344ce-471f-40c7-b328-d6d7dd7eecd3.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/7460fb29-2c48-4053-a758-7072105c9cf2.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/67039590-7933-4fc7-862b-64fae37381b4.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/a9446f7b-5032-432a-95af-50dcf7355574.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/d1225dbf-a3a9-4451-8c84-090fdc4b93dd.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/df7a3fd5-83d1-4a22-972a-658957afa023.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/e6304383-0017-480d-b060-205965874949.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/f51afbb8-f47e-427a-8933-8b4e81862f6e.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/073a01aa-1040-4dd2-9053-366ca1036c6f.jpg\"\r\n            ]\r\n        },\r\n        sports: {\r\n            title: \"Sports Hall\",\r\n            images: [\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/227dd030-ecc3-4eff-a2b3-b4038beb0c7f.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/7451056c-fc05-4e1d-85c3-c2c2807d68d8.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/c033fab5-f610-4c3b-b77c-0945136a2144.jpg\",\r\n                \"https:\/\/bti.stu.edu.iq\/wp-content\/uploads\/2026\/10\/ee6327ef-f054-4d10-90b0-bca7b48e70fa.jpg\"\r\n            ]\r\n        }\r\n    };\r\n\r\n    const gModal    = document.getElementById(\"galleryModal\");\r\n    const gTitle    = document.getElementById(\"galleryTitle\");\r\n    const gCounter  = document.getElementById(\"galleryCounter\");\r\n    const gMain     = document.getElementById(\"galleryMain\");\r\n    const gPrev     = document.getElementById(\"galleryPrev\");\r\n    const gNext     = document.getElementById(\"galleryNext\");\r\n    const gClose    = document.getElementById(\"galleryClose\");\r\n    const gStage    = document.getElementById(\"galleryStage\");\r\n    const gThumbs   = document.getElementById(\"galleryThumbs\");\r\n\r\n    let gState = { key: null, index: 0, images: [], title: \"\", lastFocus: null };\r\n\r\n    function buildThumbs() {\r\n        gThumbs.innerHTML = \"\";\r\n        gState.images.forEach(function(src, i) {\r\n            const btn = document.createElement(\"button\");\r\n            btn.type = \"button\";\r\n            btn.className = \"bti-gallery-thumb\" + (i === gState.index ? \" active\" : \"\");\r\n            btn.setAttribute(\"aria-label\", \"Image \" + (i + 1));\r\n            btn.innerHTML = '<img decoding=\"async\" src=\"' + src + '\" alt=\"\" loading=\"lazy\">';\r\n            btn.addEventListener(\"click\", function() { showImage(i); });\r\n            gThumbs.appendChild(btn);\r\n        });\r\n    }\r\n\r\n    function showImage(i) {\r\n        if (!gState.images.length) return;\r\n        if (i < 0) i = gState.images.length - 1;\r\n        if (i >= gState.images.length) i = 0;\r\n        gState.index = i;\r\n\r\n        gMain.classList.add(\"is-loading\");\r\n        const preload = new Image();\r\n        preload.onload = function() {\r\n            gMain.src = preload.src;\r\n            gMain.classList.remove(\"is-loading\");\r\n        };\r\n        preload.onerror = function() {\r\n            gMain.src = gState.images[i];\r\n            gMain.classList.remove(\"is-loading\");\r\n        };\r\n        preload.src = gState.images[i];\r\n\r\n        gCounter.textContent = (i + 1) + \" \/ \" + gState.images.length;\r\n\r\n        const thumbs = gThumbs.querySelectorAll(\".bti-gallery-thumb\");\r\n        thumbs.forEach(function(t, idx) { t.classList.toggle(\"active\", idx === i); });\r\n        if (thumbs[i]) {\r\n            thumbs[i].scrollIntoView({ behavior: \"smooth\", block: \"nearest\", inline: \"center\" });\r\n        }\r\n    }\r\n\r\n    function openGallery(key) {\r\n        const data = galleryData[key];\r\n        if (!data) return;\r\n        gState = { key: key, index: 0, images: data.images, title: data.title, lastFocus: document.activeElement };\r\n        gTitle.textContent = data.title;\r\n        gMain.src = data.images[0];\r\n        gCounter.textContent = \"1 \/ \" + data.images.length;\r\n        buildThumbs();\r\n        gModal.classList.add(\"is-active\");\r\n        gModal.setAttribute(\"aria-hidden\", \"false\");\r\n        document.body.style.overflow = \"hidden\";\r\n        setTimeout(function() { gClose.focus(); }, 50);\r\n        showImage(0);\r\n    }\r\n\r\n    function closeGallery() {\r\n        gModal.classList.remove(\"is-active\");\r\n        gModal.setAttribute(\"aria-hidden\", \"true\");\r\n        document.body.style.overflow = \"\";\r\n        gMain.src = \"\";\r\n        gThumbs.innerHTML = \"\";\r\n        if (gState.lastFocus && typeof gState.lastFocus.focus === \"function\") {\r\n            gState.lastFocus.focus();\r\n        }\r\n    }\r\n\r\n    \/\/ Open gallery from the cover image or the button\r\n    document.querySelectorAll(\"[data-gallery]\").forEach(function(el) {\r\n        el.addEventListener(\"click\", function() {\r\n            openGallery(this.getAttribute(\"data-gallery\"));\r\n        });\r\n    });\r\n\r\n    gPrev.addEventListener(\"click\", function() { showImage(gState.index - 1); });\r\n    gNext.addEventListener(\"click\", function() { showImage(gState.index + 1); });\r\n    gClose.addEventListener(\"click\", closeGallery);\r\n\r\n    \/\/ Close when clicking on the backdrop\r\n    gModal.addEventListener(\"click\", function(e) {\r\n        if (e.target === gModal) closeGallery();\r\n    });\r\n\r\n    \/\/ Keyboard navigation (LTR)\r\n    document.addEventListener(\"keydown\", function(e) {\r\n        if (!gModal.classList.contains(\"is-active\")) return;\r\n        if (e.key === \"Escape\") { closeGallery(); }\r\n        else if (e.key === \"ArrowLeft\") { showImage(gState.index - 1); }\r\n        else if (e.key === \"ArrowRight\") { showImage(gState.index + 1); }\r\n    });\r\n\r\n    \/\/ Touch swipe on mobile (LTR)\r\n    let touchStartX = 0;\r\n    let touchStartY = 0;\r\n    gStage.addEventListener(\"touchstart\", function(e) {\r\n        if (e.changedTouches.length !== 1) return;\r\n        touchStartX = e.changedTouches[0].screenX;\r\n        touchStartY = e.changedTouches[0].screenY;\r\n    }, { passive: true });\r\n    gStage.addEventListener(\"touchend\", function(e) {\r\n        if (e.changedTouches.length !== 1) return;\r\n        const dx = touchStartX - e.changedTouches[0].screenX;\r\n        const dy = touchStartY - e.changedTouches[0].screenY;\r\n        if (Math.abs(dx) > 50 && Math.abs(dx) > Math.abs(dy)) {\r\n            if (dx > 0) showImage(gState.index + 1); \/\/ swipe left = next\r\n            else showImage(gState.index - 1);        \/\/ swipe right = previous\r\n        }\r\n    }, { passive: true });\r\n\r\n})();\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>College Halls (Departments) Student Halls (Facilities) College Halls Click on a department to start the 360\u00b0 virtual tour Student Halls Explore the student and service facilities at the college Click to view photos 13 Photos Central Library A knowledge landmark housing thousands of books and [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-43755","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/pages\/43755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/comments?post=43755"}],"version-history":[{"count":7,"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/pages\/43755\/revisions"}],"predecessor-version":[{"id":43874,"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/pages\/43755\/revisions\/43874"}],"wp:attachment":[{"href":"https:\/\/bti.stu.edu.iq\/en\/wp-json\/wp\/v2\/media?parent=43755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}