.elementor-401 .elementor-element.elementor-element-94dd600 > .elementor-container > .elementor-column > .elementor-widget-wrap{align-content:center;align-items:center;}.elementor-401 .elementor-element.elementor-element-94dd600:not(.elementor-motion-effects-element-type-background), .elementor-401 .elementor-element.elementor-element-94dd600 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:var( --e-global-color-secondary );background-image:url("https://instametal.ca/wp-content/uploads/2025/10/montreal-2-scaled.jpg");background-position:center center;background-repeat:no-repeat;background-size:cover;}.elementor-401 .elementor-element.elementor-element-94dd600 > .elementor-background-overlay{background-color:transparent;background-image:radial-gradient(at bottom right, var( --e-global-color-text ) 10%, #190C0D00 100%);opacity:0.74;transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-401 .elementor-element.elementor-element-94dd600 > .elementor-container{min-height:34vh;}.elementor-401 .elementor-element.elementor-element-94dd600{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-401 .elementor-element.elementor-element-2955b1b.elementor-column > .elementor-widget-wrap{justify-content:center;}.elementor-401 .elementor-element.elementor-element-5e567e6 > .elementor-container{max-width:659px;}.elementor-401 .elementor-element.elementor-element-6f65a86{text-align:center;}.elementor-401 .elementor-element.elementor-element-6f65a86 .elementor-heading-title{font-family:"Oswald", Sans-serif;font-size:45px;font-weight:500;text-transform:uppercase;font-style:normal;text-decoration:none;line-height:1.2em;letter-spacing:0px;color:#FFFFFF;}.elementor-401 .elementor-element.elementor-element-102f5a5{--display:flex;}@media(max-width:1024px){.elementor-401 .elementor-element.elementor-element-94dd600 > .elementor-container{min-height:523px;}.elementor-401 .elementor-element.elementor-element-94dd600{padding:0% 5% 0% 5%;}.elementor-401 .elementor-element.elementor-element-6f65a86 .elementor-heading-title{font-size:45px;}}@media(max-width:767px){.elementor-401 .elementor-element.elementor-element-94dd600 > .elementor-container{min-height:71vh;}.elementor-401 .elementor-element.elementor-element-6f65a86 .elementor-heading-title{font-size:28px;line-height:1.1em;}}/* Start custom CSS for shortcode, class: .elementor-element-7a27518 *//* Main grid */
.projets-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Each project row */
.projet-item {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 2rem;
}

/* Gallery container */
.gallery-container {
    flex: 1;
    max-width: 50%;
    position: relative;
}

/* Main image */
.main-image {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    border-radius: 10px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* Navigation buttons on big image */
.nav-btn {
    position: absolute;
    top: 50%;
    height: 100%;
    transform: translateY(-50%);
    background: transparent !important;
    color: white;
    border: none !important;
    padding: 0.5rem 1rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.nav-btn.prev {
    left: 0;
    padding-left: 1.5rem;
}

.nav-btn.next {
    right: 0;
    padding-right: 1.5rem;
}

/* Thumbnails wrapper */
.thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 10px;
}

/* Scrollable thumbnails */
.thumbnails {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0.5rem;
    flex: 1;
    padding-bottom: 5px;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.6;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}

.thumbnails img.active {
    opacity: 1;
    outline: 2px solid #007bff;
}

/* Thumbnail scroll buttons */
.thumb-nav {
    background: transparent !important;
    color: black !important;
    border: none !important;
    font-size: 1.2rem;
    cursor: pointer;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Project info */
.projet-info {
    flex: 1;
    max-width: 45%;
}

.projet-info h2 {
    margin: 0;
}

.description {
    margin-top: 0.5rem;
    line-height: 1.4;
}

.chip {
    display: inline-block;
    background: #eee;
    border-radius: 16px;
    padding: 0.4rem 0.8rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Modal */
.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-modal.active {
    display: flex;
}

/* Overlay */
.image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

/* Modal content */
.image-modal-content {
    position: relative;
    background: rgba(0,0,0,0.95);
    padding: 1rem;
    border-radius: 10px;
    width: 80vw;
    height: 90vh;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Big image inside modal */
.modal-image-container {
    position: relative;
    width: 100%;
    height: 70%;
}

.modal-image-container img.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation inside modal image container */
.modal-image-container .nav-btn.prev {
    left: 10px;
}

.modal-image-container .nav-btn.next {
    right: 10px;
}

/* Close button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Modal thumbnails */
.modal-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-top: 10px;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.modal-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: 0.2s;
}

.modal-thumb.active {
    border-color: white;
    opacity: 1;
}

.modal-thumb:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .projet-item {
        flex-direction: column;
        align-items: center;
    }

    .gallery-container,
    .projet-info {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .main-image {
        height: 30vh;
    }

    .nav-btn {
        font-size: 1.5rem;
        padding: 0.3rem 0.5rem;
    }

    .thumbnails img, .modal-thumb {
        width: 60px;
        height: 45px;
    }
}/* End custom CSS */