.cast-section h2 { margin-bottom: 15px; font-size: 1.5rem; border-bottom: 2px solid #4339ff; padding-bottom: 5px; } .cast-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 15px; /* Adjusted space between items */ } .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; width: 100px; height: 100px; 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: bold; /* Highlight the actor's name */ text-overflow: clip; }