/* .franklin-content {
    max-width: 1400px;
    margin: 0 auto;
} */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}
.portfolio-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--link-color-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.portfolio-subtitle {
    font-size: 1.2rem;
    color: var(--heading-color);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}
.project-card {
    background: var(--secondary-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.project-image {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.project-image * {
    margin: 0 !important;
    padding: 0 !important;
}
.project-image p {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.project-image img {
    max-width: 98%;
    max-height: 98%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}
.project-info {
    padding: 24px;
}
.project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    margin-top: 0;
}
.project-info h3 a {
    color: var(--heading-color);
    text-decoration: none;
    white-space: normal; /* override franklin-content's ellipsis rule */
    overflow: visible;
}
.project-info h3 a:hover {
    color: var(--link-color-main);
    text-decoration: underline;
}
.project-info p {
    color: var(--body-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .portfolio-header h1 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
