body{
    margin:0;
    
}
[hidden]{
    display:none!important;
    
}
img{
    max-width:100%;
    
}

:root{
  --bg:#f6f8fa; 
  --surface:#ffffff; 
  --fg:#17212b; 
  --muted:#56616d; 
  --line:#d9e0e6;
  --brand:#0b4f8a; 
  --brand-2:#0f8fb3;
  --tint:#e7f1f8; 
  --warn:#8a5a00; 
  --warn-bg:#fff4dc;
  --display:"Barlow","Arial Narrow",Arial,sans-serif; 
  --body:"Source Sans 3","Segoe UI",Arial,sans-serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0f151b; --surface:#161f27; --fg:#e4eaf0; --muted:#9aa7b3; --line:#2a3642;
  --brand:#6fb3ec; --brand-2:#4fc3e0; --tint:#18293a; --warn:#f0c46b; --warn-bg:#2d2412; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0f151b; --surface:#161f27; --fg:#e4eaf0; --muted:#9aa7b3; --line:#2a3642;
  --brand:#6fb3ec; --brand-2:#4fc3e0; --tint:#18293a; --warn:#f0c46b; --warn-bg:#2d2412; color-scheme:dark}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:17px;line-height:1.6}
a{color:var(--brand)}
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--surface);border-bottom:1px solid var(--line)}
.bar{max-width:1080px;margin:0 auto;padding:12px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px}
.logo{margin-right:auto;display:block;line-height:0}
.logo img{height:70px;width:auto;max-width:70vw}
/* header stays white in both themes so the logo keeps its contrast */
header{background:#fff;border-bottom-color:#d9e0e6}
header nav a{color:#17212b; transition:.3s;}
header nav a.on{    color: #fff;
    background: var(--brand);}
header .cta{background:#0b4f8a;color:#fff!important}

.section h2 {
    margin-bottom: 18px;
    margin-top: 0 !important;
    position: relative;
    padding-left: 40px;
    
}
/* قصّ الزاوية السفلية اليسرى */
.section h2::before {
        content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 25px;
    height: 25px;
    background: #85d9e9;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 100% 100%, 49% 100%, 0% 50%);
}
.section2 h2 {
    padding-left: 50px;
}
.section2 h2::before {
        border-radius: 10px;
    content: "";
    position: absolute;
    top: 50%;
    /* right: -45px; */
    left: 12px;
    height: 3px;
    background: #85d9e9;
    clip-path: unset;
    z-index: 100;
    transform: translateY(8px);
    width: 28px;
}

.section2 h2::after {
    border-radius: 10px;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    /* left: unset; */
    height: 3px;
    background: #85d9e9;
    clip-path: unset;
    z-index: 100;
    transform: translateY(18px);
    width: 40px;
}


.section p {
    /*margin-top: 18px;*/
}
/* Mobile navigation */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #d8e0e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #0b3d6b;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    header .bar {
        position: relative;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    header .bar nav {
        display: none;
        position: absolute;
        top: calc(100% + 0px);
        left: 0;
        right: 0;
        z-index: 1000;
        gap: 0;
        padding: 12px;
        background: #fff;
        height: calc(100vh - 110px);
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
    }

    header .bar nav.open {
        display: flex;
    }

    header .bar nav a {
        display: block;
        width: 100%;
        padding: 13px 14px;
        border-radius: 6px;
        text-decoration: none;
    }

    header .bar nav a:hover,
    header .bar nav a.on {
        background: #0b4f8a;
    }

    header .bar nav a.cta {
        margin-top: 8px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle span {
        transition: none;
    }
}


main {
    min-height: calc(100vh - 263px);
}

/* HERO: background photo → 50% white wash → animated network canvas → text */
.hero{position:relative;overflow:hidden;background:#dfe8ef url("../images/hero-bg.jpg") center/cover no-repeat;color:#17212b}
.hero-wash{position:absolute;inset:0;background:rgba(255,255,255,.5)}
#networkCanvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero-in{position:relative;max-width:1080px;margin:0 auto;padding:0 16px;padding-block:clamp(56px,10vw,120px);display:grid;gap:18px}
.hero h1{color:#0b3d6b;max-width:20ch}
.hero .lead{color:#26394a;max-width:58ch}
.hero .eyebrow{color:#0a7896}
.hero .btn{border-color:#0b4f8a;color:#0b4f8a;background:rgba(255,255,255,.75)}
.hero .btn.p{background:#0b4f8a;color:#fff}
nav{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
nav a{text-decoration:none;color:var(--fg);font-weight:600;font-size:15px;
    padding: 5px;
    border-radius: 3px;    transition: .3s;}
nav a:hover {
    color: #fff;
    background: var(--brand);
}
nav a.on{color:var(--brand);text-decoration:none;text-underline-offset:5px}
.cta{background:var(--brand);color:var(--surface)!important;padding:7px 14px;border-radius:4px}
.section{max-width:1080px;margin:0 auto;}
.section-background {
    padding: 28px 16px;
    border-bottom: 1px solid var(--line);
}
.page {
       padding: 28px 16px; 
}
/*section.page>*+*{margin-top:18px}*/
h1,h2,h3{font-family:var(--display);line-height:1.2;text-wrap:balance;margin:0}
h1{font-size:clamp(30px,5vw,44px);color:var(--brand)}
h2{font-size:26px;color:var(--brand);padding-top:22px;
/*border-top:1px solid var(--line);*/
margin-top:34px!important}
h3{font-size:19px;color:var(--fg)}
p{margin:0;max-width:68ch}
.main-block-wrapper {
    background: url(../images/page-title-bg.jpg) center / cover no-repeat;
}
.main-block {
    margin: auto;
    max-width : 1080px;
    padding: 18px;

}
.main-block h1 {
    margin-top:18px;
}
.lead{font-size:20px;color:var(--muted);max-width:62ch; margin-top:18px;}
.eyebrow{font-family:var(--display);font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--brand-2)}
ul{margin:0;padding-left:20px}
li+li{margin-top:4px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.why-grid {
    grid-template-columns:repeat(3,1fr);
}
.why-grid .box {
    text-align: center;
}
.products-grid,
 .solutions-grid{
    margin-top: 18px;
}
.solutions-grid .box ,
.products-grid .box {
    text-align: center;
}
.solutions-grid .box p {
    min-height: 82px;
}
.box{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:18px;min-width:0;}
.projects .box {
    background: var(--bg);
}
.rfq-box {
    margin-top: 18px;
    padding: 18px 18px 18px 36px;
    position: relative;
}
.rfq-box::before {
    position: absolute;
    content: '';
    height: 80%;
    width: 4px;
    border-radius: 25%;
    background-color: #85d9e9;
    left: 16px;
}
.contact-box {
       margin-bottom: 18px; 
       margin-top: 18px;
}
.box>*+*{margin-top:8px}
.box a.more{font-weight:600;text-decoration:none}
.box i {
    font-size: 26px;
    margin-bottom: 12px;
    color: #0b4f8a;
}
.steps{counter-reset:s;list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.steps li{counter-increment:s;background:var(--tint);border-radius:6px;padding:14px;margin:0; position: relative;}
.steps li::before{content:counter(s);display:block;font-family:var(--display);font-weight:700;font-size:22px;color:var(--brand);    margin-bottom: 5px; }
.steps i {
    z-index: 1;
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 38px;
    color: #0b4f8a4d;
}
.steps span {
    position: relative;
    z-index: 2;
}
.chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}
.chips li{margin:0;background:var(--tint);color:var(--fg);padding:5px 12px;border-radius:20px;font-size:15px}
.mep-chips {
    margin-bottom: 18px;
}
.packing-chips {
    margin-top: 18px;
}
.note{background:var(--warn-bg);color:var(--warn);border-radius:6px;padding:12px 14px;font-size:15px;max-width:none; margin: 18px 0;}
.btns{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-block;padding:10px 18px;border-radius:4px;font-weight:600;text-decoration:none;border:1px solid var(--brand);color:var(--brand)}
.btn.p{background:var(--brand);color:var(--surface)}
.meta{display:grid;grid-template-columns:max-content 1fr;gap:2px 12px;font-size:15px}
.meta dt{color:var(--muted)} .meta dd{margin:0}
.filters{display:flex;flex-wrap:wrap;gap:8px; margin-bottom: 18px;}
.filters button{font:inherit;font-size:15px;padding:6px 14px;border-radius:20px;border:1px solid var(--line);background:var(--surface);color:var(--fg);cursor:pointer}
.filters button.on{background:var(--brand);color:var(--surface);border-color:var(--brand)}
.ph{
    background:var(--tint);
    color:var(--muted);
    /*border:2px dashed var(--line);*/
    border-radius:4px;
    aspect-ratio:16/9;
    max-width:100%;
    display:grid;
    place-items:center;
    text-align:center;
    padding:0;
    box-sizing:border-box;
    font-size:14px;
    font-weight:600
}
.ph.wide{aspect-ratio:21/8;
        margin-bottom: 18px;
}
.about-box {
    margin-top: 18px;
}
.ph img {
    max-width: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/*.ph::before{content:"IMAGE PLACEHOLDER";display:block;font-family:var(--display);font-size:11px;letter-spacing:.14em;color:var(--brand-2);margin-bottom:4px}*/
form{display:grid;gap:14px;max-width:680px}
label{display:grid;gap:4px;font-weight:600;font-size:15px}
input,select,textarea{font:inherit;font-weight:400;padding:9px 11px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--fg);width:100%;box-sizing:border-box}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.contact_ph {
    margin-bottom: 0 !important;
}
.contact-text {
        width: fit-content;
    margin-left: auto;
    margin-bottom: 18px;
        font-size: 13px;
}
:focus-visible{outline:2px solid var(--brand-2);outline-offset:2px}
footer{border-top:1px solid var(--line);background:var(--surface)}
.footer-in {
    max-width: 1080px;
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 50px 0 35px;
    color: var(--muted);
    font-size: 14px;
}
.footer-in .column {
    width: 33%;
}
.footer-in .column .quick {
    padding-left: 60px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}
.footer-in .logo {
    margin-right: 0;
    margin-bottom: 25px;
}
.footer-in ul {
    list-style: none;
    padding-left: 60px;
}
.footer-in a {
    text-decoration: none;
        color: var(--muted);
        transition: .3s;
}
.footer-in a:hover {
    color: var(--brand);
}
footer .in{max-width:1080px;margin:0 auto;padding:24px 16px;font-size:14px;color:var(--muted);display:grid;gap:10px}
.web_text {
    text-align: center;
    padding-bottom: 20px;
        font-size: 14px;
}
.web_by {
    text-decoration: none;
    transition: .3s;
}
.web_by:hover {
    color: #0b4f8acc;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Other tabs: 2 cards per row */
.project-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 2fr));
    gap: 24px;
}
.project-grid > a {
    min-width: 0;
}

.project-grid > a[style*="display: none"] {
    display: none !important;
}

.about-section {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 35px;
}
.left {
    width: 45%;
}
.right {
        width: 50%;
}
.right .ph.wide {
    height: 100%;
}
.about-lead {
    max-width: 100%;
}
.about-text {
    max-width: 100%;
    margin-top: 18px;
}
.products-grid {
    grid-template-columns: repeat(3,1fr);
}
.products-grid .box img {
    max-width: 100%;
    width: 32px;
}
.project-item .ph {
    aspect-ratio: 4 / 3;
    height: 175px;
    display: block;
}
.project-item h3 {
    min-height: 65px;
    font-size: 18px;
}
@media(max-width: 992px){
    .project-grid ,
    .project-grid.two-columns {
        grid-template-columns: repeat(2, minmax(0, 12fr));
    }
    .footer-in {
        padding: 12px 16px;
    }
    .logo img {
        height: 50px;
    }
}
@media(max-width: 835px){
    .about-section {
        flex-direction: column;
    }
    .left ,
    .right {
        width: 100%;
    }
    .about-sec2 {
        flex-direction: column-reverse;
            margin: 0 !important;
    }
    .footer-in {
        flex-direction: column;
        align-items: center;
    }
    .footer-in .column {
        width: 50%;
    }
    .footer-in .column .quick,
    .footer-in ul {
        padding-left: 0;
    }
}
@media(max-width: 576px){
    .project-grid ,
    .project-grid.two-columns {
        grid-template-columns: repeat(1, minmax(0, 12fr));
    }
    .hero-in {
        text-align: center;
    }
    .btns {
        justify-content: center;
    }
    .why-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .footer-in .column {
        width: 100%;
        margin-top: 20px;
    }
    .logo img {
        height: 65px;
    }
    .whatsapp-btn {
        width: 90%;
    }
    .modal-wrapper {
        overflow-x: hidden;
    }
    .close-modal-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

    .project-img img {
        width: 100%;
    }
    
    .whatsapp-float {
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 30px;
        left: 30px; 
        background-color: #25d366; 
        color: #FFF;
        border-radius: 50%;
        text-align: center;
        font-size: 35px;
        box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .whatsapp-float:hover {
        background-color: #128C7E;
        color: #FFF;
        transform: scale(1.1);
        box-shadow: 2px 2px 15px rgba(0,0,0,0.25);
    }
    
    .whatsapp-pulse {
        animation: pulse-whatsapp 2s infinite;
    }
    
    @keyframes pulse-whatsapp {
        0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
        70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
        100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }

    @media (max-width: 768px) {
        .whatsapp-float {
            width: 50px;
            height: 50px;
            bottom: 20px;
            left: 20px;
            font-size: 30px;
        }
    }



/* Projects */

    .project-item { 
        cursor: pointer; 
        transition: transform 0.3s ease, box-shadow 0.3s ease; 
    }
    .project-item:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 12px 25px rgba(0,0,0,0.08); 
    }

    .project-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999999;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    .project-modal.active { display: flex; }
    
    .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(10, 25, 47, 0.85); 
        backdrop-filter: blur(6px);
        cursor: pointer;
    }
    
    .modal-nav-area {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 1250px;
        gap: 20px;
        z-index: 2;
    }

    .modal-wrapper-container {
        position: relative;
        width: 100%;
        max-width: 1100px;
    }

    .modal-wrapper {
        background: #fff;
        width: 100%;
        max-height: 90vh;
        border-radius: 16px;
        overflow-y: auto;
        box-shadow: 0 30px 60px rgba(0,0,0,0.3);
        animation: modalFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes modalFadeUp {
        from { opacity: 0; transform: translateY(40px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    
    .close-modal-btn {
        position: absolute;
        top: 21px;
        right: 21px;
        background: #fff;
        border: 1px solid #eaeaea;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        font-size: 18px;
        color: #333;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .close-modal-btn:hover { 
        background: #e74c3c; 
        color: #fff; 
        border-color: #e74c3c; 
        transform: rotate(90deg); 
    }

    .modal-hero-image {
        width: 100%;
        height: 55vh;
        min-height: 400px;
        background: #f4f4f4;
        position: relative;
    }
    .modal-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .nav-btn {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 20px;
        color: #fff;
        cursor: pointer;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .nav-btn:hover {
        background: #fff;
        color: var(--brand);
    }
    
    .modal-content-area {
        display: flex;
        flex-direction: column;
        padding: 30px 40px;
    }
    
    .modal-header-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 20px;
    }
    .solution-box p {
        min-height: 82px;
    }
    
    .modal-title-col {
        flex: 1;
    }
    
    .modal-cta-col {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    @media (max-width: 991px) {
        .modal-nav-area {
            gap: 10px;
        }
        .nav-btn {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
        .modal-hero-image {
            height: 300px;
            min-height: 300px;
        }
        .modal-content-area {
            padding: 20px;
        }
        .modal-header-row {
            flex-direction: column;
        }
        .modal-cta-col {
            width: 100%;
            justify-content: flex-start;
        }
        .close-modal-btn {
            top: -10px;
            right: 0px;
        }
    }
    
    .modal-title-col .eyebrow {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--muted, #666);
        font-weight: 700;
        margin-bottom: 5px;
    }
    
    .modal-title-col h2 {
        margin: 0;
        font-size: 2rem;
        color: var(--brand, #111);
        line-height: 1.2;
    }
    
    .modal-desc {
        font-size: 15.5px;
        line-height: 1.7;
        color: #444;
        white-space: pre-wrap; 
        margin: 0;
        padding: 0;
    }

    .modal-wrapper::-webkit-scrollbar {
        width: 8px;
    }
    .modal-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }
    .modal-wrapper::-webkit-scrollbar-thumb {
        background: #d0d0d0;
        border-radius: 10px;
    }
    .modal-wrapper::-webkit-scrollbar-thumb:hover {
        background: #bbb;
    }
    
    /* تنسيقات جزئية الواتساب المحدثة */
    .cta-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* أو flex-end إذا أردتها على اليمين تماماً داخل العمود */
    }

    .cta-heading {
        margin: 0 0 8px 0;
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--brand-2, #0f8fb3); /* لون أزرق فاتح / براند 2 */
    }

    .cta-inline {
        display: flex;
        align-items: center;
        gap: 15px;
        background: transparent; 
        padding: 0;
        border-radius: 0;
        border: none;
    }
    
    .cta-text {
        font-size: 15px;
        color: #444;
        font-weight: 600;
    }
    
    .whatsapp-circle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background-color: #25D366;
        color: white !important;
        border-radius: 50%;
        font-size: 22px;
        text-decoration: none;
        transition: 0.3s ease;
        position: relative;
    }
    
    .whatsapp-circle-btn:hover {
        background-color: #128C7E;
        transform: scale(1.05);
    }
    
    .pulse-animation {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }
        70% {
            transform: scale(1);
            box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
        }
        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }

    .project-name {
        margin-bottom: 25px;
        font-size: 2rem;
        color: var(--brand, #111);
        line-height: 1.2;
    }
    .type-eyebrow {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--muted, #666);
        font-weight: 700;
        margin-bottom: 10px;
        display: block;
    }
    .project-info {
        display: flex;
        align-items: center;
        justify-content: space-between;

    }
    .desc {
        width: 70%;
    }
    .project-info p {
     
        width: 100%;
        max-width: 100%;
    }
@media(max-width: 991px) {
    .project-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-container {
        margin-top: 0;
        text-align: center;
        width: 100%;
        align-items: center;
    }
    .desc {
        width: 100%;
    }
}
/* Project Gallery */
/* Main Layout */
.project-top-content {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    gap: 25px;
    align-items: stretch;
    margin-bottom: 45px;
}

/* Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 12px;
    min-width: 0;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f2f2;
}

.gallery-main a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-main a:hover img {
    transform: scale(1.04);
}

.gallery-zoom {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary, #b39d35);
    color: #fff;
    border-radius: 50%;
}

/* Vertical Thumbnails */
.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0 !important;
}

.gallery-thumbnails a {
    display: block !important;
    width: 100% !important;
    /* flex: 1; */
    min-height: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid transparent !important;
    opacity: .8;
    transition: .3s ease;
}

.gallery-thumbnails a:hover {
    opacity: 1;
    border-color: var(--bs-primary, #b39d35);
}

.gallery-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty Sidebar */
.project-sidebar {
    min-width: 0;
    min-height: 100%;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 991px) {
    .project-top-content {
        grid-template-columns: 1fr;
        margin-bottom: 25px;
    }

    .project-sidebar {
        min-height: 85px;
    }
    .gallery-main {
        width: 100%;
        aspect-ratio: unset;
    }
}

@media (max-width: 576px) {
    .project-gallery {
        grid-template-columns: minmax(0, 1fr) 75px;
        gap: 8px;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    .project-header .project-name {
        font-size: 26px;
    }

    .project-sidebar {
        padding: 18px;
    }
}