ChandimaPrabath's picture
css patch
b6ca13e
.cast-section h2 {
margin-bottom: 15px;
font-size: 1.2rem;
border-bottom: 2px solid #4339ff;
padding-bottom: 5px;
font-weight: 600;
}
.cast-list {
list-style: none;
padding: 0;
display: flex;
gap: 20px; /* Adjusted space between items */
overflow-x: auto;
scroll-behavior: smooth;
}
.cast-list::-webkit-scrollbar {
height: 8px;
}
.cast-list::-webkit-scrollbar-thumb {
background-color: var(--primary-special-color);
border-radius: 4px;
}
.cast-list::-webkit-scrollbar-track {
background-color: var(--bg-primary);
}
.cast-item {
margin: 0;
display: flex; /* Use flex to align image and text */
align-items: center; /* Center vertically */
width: auto; /* Allow dynamic width */
}
.cast-image-container {
position: relative;
min-width: 70px;
min-height: 70px;
border-radius: 50%; /* Circular container */
overflow: hidden;
margin-right: 10px; /* Space between image and text */
}
.cast-image {
border-radius: 50%; /* Circular images */
object-position: top;
}
.cast-name {
font-weight: 300; /* Highlight the actor's name */
text-overflow: clip;
}