.authors-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px; /* Optional: to limit the width of the container */
}

.author-card {
    perspective: 1000px;
}

.author-card p {
	font-size: 14px!important;
}
.author-card .card-back p {
	overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
}
.author-card .card-front h5 {
	margin-bottom: 0;
}
.author-card .card-back a:hover {
    text-decoration: underline;
}

.card {
    position: relative;
    width: 100%; /* Full width of the grid item */
    height: 300px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.author-card:hover .card {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-front {
    background: #fff;
}

.card-front img {
    width: 100px;
    height: 100px;
    border-radius: 50%!important;
    object-fit: cover;
}

.card-back {
    background: #f8f8f8;
    transform: rotateY(180deg);
}
