/* ------------------------------------------------------------------
   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;
}

/* Brand rationale notes interleaved between gallery sections */
.brand-note {
    margin: 8px 0 45px;
    padding-left: 22px;
    border-left: 2px solid #E83D24;
    max-width: 760px;
}

.brand-note h4 {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 19px;
    color: #E83D24;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.brand-note p {
    margin: 0;
    color: #6d6d6d;
    font-size: 14.5px;
    line-height: 1.7;
}

/* Poster + mockup pairs: scale (never crop) to a matching height so both sit on the same level */
.poster-grid .cell {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-grid .cell img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .poster-grid .cell {
        height: 380px;
    }
}

/* Embedded brand guide artifact */
.embed-frame {
    position: relative;
    width: 100%;
    padding-top: 62%;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f2ee;
    border: 1px solid #e4e0dc;
}

.embed-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.section-caption.embed-fallback {
    margin: 12px 0 0;
}

