.ews-team-mosaic-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.elementor-widget-ews_team_mosaic,
.elementor-widget-ews_team_mosaic .elementor-widget-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ews-mosaic-container {
    width: 100%;
    display: block;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.ews-mosaic-grid {
    position: relative;
    background: #fff;
    transform-origin: top left;
    flex-shrink: 0;
}

.ews-member-item {
    position: absolute;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 3px 4px 13px 0px rgba(0,0,0,0.25);
}

.ews-member-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.ews-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 97, 161, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 12%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ews-member-item:hover .ews-member-overlay {
    opacity: 1;
}

.ews-member-name {
    color: #ffffff;
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.ews-member-role {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.ews-member-since {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.ews-hide-names .ews-member-overlay {
    display: none !important;
}

.ews-mosaic-logo {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.ews-mosaic-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ews-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    width: 100%;
    height: 100%;
    font-size: 24px;
}

.ews-reset-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.ews-reset-button.visible {
    opacity: 1;
    transform: scale(1);
}

.ews-reset-button:hover {
    transform: scale(1.1);
}

.ews-reset-button svg {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 1000px) {
    .ews-mosaic-container {
        overflow: scroll;
        cursor: grab;
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        will-change: scroll-position;
    }
    
    .ews-mosaic-container::-webkit-scrollbar {
        display: none;
    }
    
    .ews-mosaic-container:active {
        cursor: grabbing;
    }
    
    .ews-mosaic-grid {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .ews-member-item {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }

    .ews-reset-button {
        display: flex;
    }
    
    .ews-member-item:active .ews-member-overlay {
        opacity: 1;
    }
    
    .ews-member-name {
        font-size: 20px;
    }
    
    .ews-member-role {
        font-size: 14px;
    }
    
    .ews-member-since {
        font-size: 12px;
    }
}

@media screen and (min-width: 1001px) {
    .ews-mosaic-container::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .ews-mosaic-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

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

    .ews-mosaic-container::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }
}
