/* ------------------------------------------------------------------
   Custom brand overrides for Mohanned Ibrahim's portfolio
   (layered on top of the original Sonex template stylesheet)
   ------------------------------------------------------------------ */

@font-face {
    font-family: 'Foriene Serif';
    src: url('../fonts/foriene/Foriene-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Foriene Serif';
    src: url('../fonts/foriene/Foriene-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6,
.lead {
    font-family: 'Foriene Serif', 'Lora', serif;
}

/* Logo mark */
#sidebar .logo img {
    width: 42px;
    height: auto;
    display: block;
}

/* Profile photo on About page */
.profile-photo {
    border-radius: 50%;
    overflow: hidden;
    width: 220px;
    height: 220px;
    margin: 0 0 30px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Experience timeline (About page) */
.experience-timeline .job {
    padding: 26px 0;
    border-top: 1px solid #e6e6e6;
}

.experience-timeline .job:first-child {
    border-top: none;
}

.experience-timeline .job .job-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: baseline;
}

.experience-timeline .job h3 {
    margin: 0;
}

.experience-timeline .job .dates {
    color: #bfbfbf;
    font-size: 13px;
    white-space: nowrap;
}

.experience-timeline .job .role-title {
    color: #E83D24;
    font-style: italic;
    margin: 2px 0 8px;
}

.experience-timeline .job .location {
    color: #bfbfbf;
    font-size: 13px;
    margin: 0 0 10px;
}

.experience-timeline .job ul {
    margin: 0;
    padding-left: 18px;
}

.experience-timeline .job ul li {
    margin-bottom: 6px;
    color: #6d6d6d;
}

/* Skill / software chip lists on About page */
.chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip-list li {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 8px 8px 0;
    border: 1px solid #e6e6e6;
    border-radius: 30px;
    font-size: 13px;
    color: #6d6d6d;
}

/* Full project image galleries */
.gallery-section {
    margin: 45px 0 10px;
}

.gallery-section h3 {
    margin: 0 0 4px;
}

.gallery-section .section-caption {
    color: #bfbfbf;
    font-size: 13px;
    margin: 0 0 20px;
}

.gallery-grid .cell {
    margin-bottom: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tight banner strip: cells sit back-to-back with no vertical gap between rows */
.gallery-grid.tight-grid .cell {
    margin-bottom: 0;
}

