
.ImgAbs1 { position: relative; top: 0%; left: 10%;  transform: perspective(1800px) rotateY(15deg) scale(1.05); transform-origin: left center;}
.ImgAbs2 { position: relative; top: 13%;right: -4%; z-index: 5; transform: perspective(1400px) rotateY(-15deg) scale(1.1);  transform-origin: right center;}
.ImgAbs3 { position: relative; top: 2%; right: 10%; transform: perspective(1400px) rotateY(-15deg) scale(1.1); transform-origin: right center;}



.email-template-item {
    height: 420px;
    overflow: hidden;
    position: relative;
}

.email-template-item img {
    width: 100%;
    display: block;
}



.email-template-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}



.email-template-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #f5f5f5;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.email-template-item:hover {
    transform: scale(1.025);
    box-shadow: 0 8px 25px rgba(0,0,0,0.16);
    z-index: 2;
}

.email-template-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.email-template-item:hover img {
    transform: scale(1.04);
}



/* magnifying Glass icon */

.email-template-item::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%) scale(0.7);
    background-color: rgba(0, 0, 0, 0.65);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.email-template-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



/* LIGHTBOX */


.email-template-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.email-template-lightbox-content img.template-changing {
    opacity: 0;
    transform: scale(0.97);
}



.email-template-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
     background: rgba(0,0,0,0.60);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.email-template-lightbox.active {
    display: flex;
}

.email-template-lightbox-content {
    position: relative;
    max-width: 1000px;
    max-height: 90vh;
    animation: templateZoom 0.3s ease;
}



@keyframes templateZoom {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* CLOSE BUTTON */

.email-template-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.email-template-close:hover {
    transform: scale(1.15);
}


/* PREVIOUS / NEXT */

.email-template-prev,
.email-template-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 100000;
    padding: 20px;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.email-template-prev {
    left: 15px;
}

.email-template-next {
    right: 15px;
}

.email-template-prev:hover {
    transform: translateY(-50%) scale(1.15);
}

.email-template-next:hover {
    transform: translateY(-50%) scale(1.15);
}


/* MOBILE */

@media (max-width: 900px) {
    .email-template-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .email-template-lightbox {
        padding: 20px;
    }

    .email-template-prev,
    .email-template-next {
        font-size: 35px;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .email-template-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .email-template-close {
        top: 12px;
        right: 18px;
        font-size: 35px;
    }

    .email-template-lightbox-content img {
        max-height: 82vh;
    }
}


/* MOBILE NAVIGATION (≤1000px)
=============================================================================== */
@media (min-width: 2000px) {


}


/* TABLET AND BELOW (651px - 1000px)
=============================================================================== */ 
@media (min-width: 651px) and (max-width: 1000px) {

.TeamImages img { width:25%; margin: 2%;}




}

/* TABLET AND BELOW (≤650px)
=============================================================================== */  
@media (max-width: 650px) {
.TeamImages img { width:40%; margin: 2%;}

}

/* Smaller Screen (1000px - 1300px)
=============================================================================== */
@media (min-width: 1000px) and (max-width: 1300px) {    

}