#mytemplateModal .modal-dialog{
    border-radius: 15px;
}
#mytemplateModal .modal-header{
    display:inline-block;
}
#mytemplateModal .modal-body{
    overflow:auto;
    height: 500px;
}
#mytemplateModal .template-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 0px;
    height: 100%;
}
#mytemplateModal .template-img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}
#mytemplateModal .template-card {
    border: 1px solid transparent;
}
#mytemplateModal .template-card:hover {
    box-shadow: 0 3px 3px 1px #f4433647;
    border: 1px solid #F44336;
}
#mytemplateModal .hover-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    display: flex;
    gap: 10px;

    opacity: 0;
    transition: 0.3s ease;
    
    pointer-events: none;
}

#mytemplateModal .template-card:hover .hover-icons {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

#mytemplateModal .template-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.3s;
}

#mytemplateModal.template-card:hover::after {
    opacity: 1;
}

#mytemplateModal .icon {
    pointer-events: auto;
    background: white;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#previewImage {
    transition: 0.3s;
}
#previewImage:hover {
    transform: scale(1.02);
}
#mytemplateModal .custom-filter a.active {
    border: 1px solid #F44336;
    color: #F44336;
    background: rgb(244 67 54 / 3%);
}
#mytemplateModal .custom-filter a:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
}
#mytemplateModal .custom-filter a {
    display: inline-block;
    text-decoration: none;
    margin-right: 5px;
    font-size: 14px;
    padding: 6px 15px;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 20px;
    min-width: 57px;
    text-align: center;
    margin-bottom:4px;
}
#mytemplateModal .custom-filter {
    margin-bottom: 20px;
}