Fix profile image aspect ratio (1:1) and add missing styles

This commit is contained in:
choibk 2026-01-19 19:14:00 +09:00
parent 4863537f6a
commit 1fb7634e95

View File

@ -1366,4 +1366,72 @@ img {
box-shadow: var(--shadow);
}
/* ... NewsDetail content styles ... */
/* ... NewsDetail content styles ... */
/* About.css Consolidated */
.expert-profile {
margin-top: 4rem;
margin-bottom: 4rem;
}
.profile-wrapper {
display: flex;
flex-direction: column;
gap: 3rem;
align-items: center;
}
@media (min-width: 768px) {
.profile-wrapper {
flex-direction: row;
align-items: flex-start;
}
}
.profile-image-container {
flex-shrink: 0;
width: 100%;
max-width: 350px;
/* Adjust as needed */
}
.profile-image {
width: 100%;
aspect-ratio: 1 / 1;
/* Enforce 1:1 Square aspect ratio */
object-fit: cover;
/* Ensure image covers the square area */
border-radius: 1rem;
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
}
.profile-content-container {
flex: 1;
}
.profile-card {
background-color: var(--white);
padding: 2.5rem;
border-radius: 1rem;
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
height: 100%;
display: flex;
align-items: center;
}
.profile-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.profile-list li {
font-size: 1.05rem;
color: var(--text-color);
font-weight: 500;
}