/* ==========================================================================
   Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Typography Scale - Based on TypeScale.csv */
    --t1-size: 4rem;          /* 64px */
    --t1-line-height: 4.25rem; /* 72px, ratio: 1.125 */
    --t1-letter-spacing: -0.0212em;

    --t2-size: 3.375rem;      /* 54px */
    --t2-line-height: 3.5rem;   /* 64px, ratio: 1.1852 */
    --t2-letter-spacing: -0.0196em;

    --h1-size: 2.8125rem;     /* 45px */
    --h1-line-height: 3.25rem; /* 52px, ratio: 1.1556 */
    --h1-letter-spacing: -0.0176em;

    --h2-size: 2.375rem;      /* 38px */
    --h2-line-height: 3.15rem;   /* 48px, ratio: 1.2632 */
    --h2-letter-spacing: -0.0153em;

    --h3-size: 2rem;          /* 32px */
    --h3-line-height: 2.5rem; /* 40px, ratio: 1.25 */
    --h3-letter-spacing: -0.0125em;

    --xxl-size: 1.6875rem;    /* 27px */
    --xxl-line-height: 2.25rem; /* 36px, ratio: 1.3333 */
    --xxl-letter-spacing: -0.0093em;

    --xl-size: 1.35rem;     /* 23px */
    --xl-line-height: 2.2rem;   /* 32px, ratio: 1.3913 */
    --xl-letter-spacing: -0.0057em;

    --l-size: 1.1875rem;      /* 19px */
    --l-line-height: 1.85rem; /* 28px, ratio: 1.4737 */
    --l-letter-spacing: 0.0em;

    --m-size: 1rem;           /* 16px */
    --m-line-height: 1.5rem;  /* 24px, ratio: 1.5 */
    --m-letter-spacing: 0.015em;

    --s-size: 0.8125rem;      /* 13px */
    --s-line-height: 1.25rem; /* 20px, ratio: 1.5385 */
    --s-letter-spacing: 0.0131em;

    --xs-size: 0.6875rem;     /* 11px */
    --xs-line-height: 1.25rem; /* 20px, ratio: 1.8182 */
    --xs-letter-spacing: 0.0209em;

    /* Spacing Scale */
    --space-unit: 1.25rem;
    --space-xs: calc(0.3 * var(--space-unit));
    --space-s: calc(0.5 * var(--space-unit));
    --space-m: var(--space-unit);
    --space-l: calc(1.5 * var(--space-unit));
    --space-xl: calc(2.25 * var(--space-unit));
    --space-xxl: calc(4.5 * var(--space-unit));
    
    /* Theme Colors */
    --minimalist-bg: #FFFBF0;
    --minimalist-text: #333333;
    --minimalist-text-light: #656565;
    --minimalist-text-lighter: #b5b5b5;
    --minimalist-text-dark: #333333;
    --minimalist-name: #FC574F;
    --minimalist-highlight: #6279cd;
    --minimalist-divider: rgba(0, 0, 0, 0.1);
    --talks-bg: #1C1C1C;
    --punctuation-color: #c0c0c0;
    
    /* Industry Category Colors */
    --agriculture-color: #FFB347;
    --healthcare-color: #9370DB;
    --hospitality-color: #4682B4;
    --frontline-color: #3CB371;
    --sales-color: #FFD700;
    --operations-color: #FF6347;
    --social-color: #1E90FF;
    --logistics-color: #CD853F;
    --consumer-color: #20B2AA;
    --jiva-color: #3CB371;

    /* Client Brand Colors */
    --color-temasek: #7637d3;
    --color-nea: #009B4F;
    --color-daimler: #319db0;
    --color-spgroup: #F7931D;
    --color-singtel: #F01616;
    --color-capita: #192bc8;
    --color-curtis: #2727cf;
    --color-sph: #0066B3;
    --color-scoot: #EDB72B;
    --color-dbschenker: #CC0000;
    --color-starhub: #0ca735;

    --tag-talks-bg: rgba(220, 138, 21, 0.15);
    --tag-talks-color: rgba(220, 138, 21, 1);
    --tag-workshops-bg: rgba(151, 70, 255, 0.25);
    --tag-workshops-color: rgba(188, 136, 255, 1);
    --tag-lectures-bg: rgba(59, 179, 113, 0.15);
    --tag-lectures-color: rgba(59, 179, 113, 1);
    --tag-others-bg: rgba(30, 142, 250, 0.22);
    --tag-others-color: rgba(30, 142, 250, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 300;
    font-size: var(--m-size);
    line-height: var(--m-line-height);
    letter-spacing: var(--m-letter-spacing);
    background-color: var(--minimalist-bg);
    color: var(--minimalist-text);
}

/* ==========================================================================
   Typography Utility Classes
   ========================================================================== */
.t1 {
    font-size: var(--t1-size);
    line-height: var(--t1-line-height);
    letter-spacing: var(--t1-letter-spacing);
}

.t2 {
    font-size: var(--t2-size);
    line-height: var(--t2-line-height);
    letter-spacing: var(--t2-letter-spacing);
}

.h1 {
    font-size: var(--h1-size);
    line-height: var(--h1-line-height);
    letter-spacing: var(--h1-letter-spacing);
}

.h2 {
    font-size: var(--h2-size);
    line-height: var(--h2-line-height);
    letter-spacing: var(--h2-letter-spacing);
}

.h3 {
    font-size: var(--h3-size);
    line-height: var(--h3-line-height);
    letter-spacing: var(--h3-letter-spacing);
}

.text-xxl {
    font-size: var(--xxl-size);
    line-height: var(--xxl-line-height);
    letter-spacing: var(--xxl-letter-spacing);
}

.text-xl {
    font-size: var(--xl-size);
    line-height: var(--xl-line-height);
    letter-spacing: var(--xl-letter-spacing);
}

.text-l {
    font-size: var(--l-size);
    line-height: var(--l-line-height);
    letter-spacing: var(--l-letter-spacing);
}

.text-m {
    font-size: var(--m-size);
    line-height: var(--m-line-height);
    letter-spacing: var(--m-letter-spacing);
}

.text-s {
    font-size: var(--s-size);
    line-height: var(--s-line-height);
    letter-spacing: var(--s-letter-spacing);
}

.text-xs {
    font-size: var(--xs-size);
    line-height: var(--xs-line-height);
    letter-spacing: var(--xs-letter-spacing);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 70em;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xxl);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.minimalist-nav {
    margin-bottom: var(--space-xl);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-l);
    justify-content: flex-end;
}

.nav-links a {
    color: var(--minimalist-text-lighter);
    border-bottom: none;
    font-size: var(--xl-size);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #6D6D6D;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.minimalist-header {
    text-align: left;
    margin-bottom: var(--space-m);
    margin-top: var(--space-xxl);
}

.minimalist-header .name {
    font-size: var(--t1-size);
    line-height: var(--t1-line-height);
    letter-spacing: var(--t1-letter-spacing);
    font-weight: 300;
    color: var(--minimalist-name);
    margin-bottom: var(--space-s);
}

.minimalist-header .title {
    font-size: var(--h2-size);
    line-height: var(--h2-line-height);
    letter-spacing: var(--h2-letter-spacing);
    font-weight: 300;
}

/* ==========================================================================
   Links & Interactive Elements
   ========================================================================== */
a {
    color: var(--social-color);
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

a:hover {
    border-color: rgba(0, 0, 0, 0.6);
}

.client {
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.client:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.minimalist-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-xl);
}

.section-title {
    font-size: var(--h2-size);
    line-height: var(--h2-line-height);
    letter-spacing: var(--h2-letter-spacing);
    color: var(--minimalist-name);
    font-weight: 300;
    margin-bottom: 0;
    background: var(--minimalist-bg);
    grid-column: 1;
}

/* Experience Items */
.experience-item {
    display: block;
    margin-bottom: var(--space-xl);
}

.experience-header {
    margin-bottom: var(--space-xs);
}

.experience-header h3 {
    font-size: var(--xl-size);
    line-height: var(--xl-line-height);
    letter-spacing: var(--xl-letter-spacing);
    color: var(--minimalist-text-dark);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.experience-details {
    margin-bottom: var(--space-xxl);
}

.experience-details p {
    font-size: var(--l-size);
    line-height: var(--l-line-height);
    letter-spacing: var(--l-letter-spacing);
    color: var(--minimalist-text-light);
    margin-bottom: var(--space-l);
}

.experience-highlights {
    list-style-type: none;
    padding-left: 0;
    color: var(--minimalist-text-light);
    margin-bottom: var(--space-xl);
}

.experience-highlights li {
    font-size: var(--l-size);
    line-height: var(--l-line-height);
    letter-spacing: var(--l-letter-spacing);
    margin-bottom: var(--space-s);
    margin-left: var(--space-l);
    list-style-type: disc;
}
.experience-company .experience-highlights{
    font-weight: 300;
    color: var(--minimalist-text-light);
}
.experience-content-wrapper {
    grid-column: 2;
}

.experience-location {
    color: var(--minimalist-text-light);
    font-size: var(--s-size);
}

.experience-company {
    font-size: var(--l-size);
    font-weight: 600;
    margin-bottom: var(--space-s);
}

.experience-list li{
    margin-bottom: var(--space-l);
    margin-left: var(--space-xs);
}

.experience-period {
    font-size: var(--l-size);
    color: var(--minimalist-text-light);
    font-weight: 300;
    margin-left: var(--space-xxs);
}

.social-presence {
    margin-bottom: var(--space-l);
    font-size: var(--l-size);
    line-height: var(--l-line-height);
}

.social-presence a {
    color: var(--minimalist-highlight);
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease;
}
.company-name{
    color: var(--minimalist-name);
}

/* Bio Section */
.bio-section {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    margin: var(--space-l) 0;
}

.bio-text {
    flex: 1;
}

.bio-text p, .intro-text {
    margin-bottom: var(--space-xl);
    font-size: var(--xl-size);
    line-height: var(--xl-line-height);
}

.intro-text {
    margin-bottom: var(--space-m);
}

.bio-text strong {
    font-weight: 500;
}

/* Profile Image */
.profile-image {
    flex: 1;
}

.profile-image .portrait {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

/* ==========================================================================
   Talks Section
   ========================================================================== */
.talks-section {
    position: relative;
    background-color: var(--talks-bg);
    color: white;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: var(--space-xxl) 0;
}

.talks-section .container {
    padding: 0 var(--space-xxl);
}

.talks-section h2 {
    font-size: var(--h2-size);
    line-height: var(--h2-line-height);
    letter-spacing: var(--h2-letter-spacing);
    font-weight: 300;
    margin-bottom: calc(var(--space-xxl) * 1.5);
    color: white;
    text-transform: lowercase;
}

.talks-list {
    display: flex;
    flex-direction: column;
}

.talk-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-l) 0 var(--space-m);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: var(--space-xs);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Fade out only: opacity and transform */
.talk-item.fading-out {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide: layout removal only, no opacity/transform transition */
.talk-item.hide {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.98);
    transition: none;
}

.talk-title {
    width: 100%;
    font-size: var(--xl-size);
    line-height: var(--xl-line-height);
}

.talk-item .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.talk-host {
    color: var(--agriculture-color);
    font-size: var(--m-size);
}

.talk-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--m-size);
}

.year-header {
    font-size: var(--m-size);
    line-height: var(--m-line-height);
    letter-spacing: var(--m-letter-spacing);
    font-weight: 300;
    color: white;
    margin: var(--space-xl) 0 var(--space-m);
    padding-top: var(--space-l);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.year-header:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ==========================================================================
   Profile Gallery
   ========================================================================== */
.profile-gallery {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--minimalist-bg);
    padding: var(--space-xl) var(--space-s) var(--space-xl) var(--space-s);
}

.gallery-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-s);
}

.gallery-image {
    overflow: hidden;
    border-radius: 5px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover img {
    transform: scale(1.03);
}

/* Specifically disable zoom for profile gallery images */
.profile-gallery .gallery-image:hover img {
    transform: none;
}

/* ==========================================================================
   Experience Gallery
   ========================================================================== */
.experience-content-wrapper {
    max-width: 65ch;
}
.experience-gallery {
    margin: var(--space-l) 0;
    width: 100%;
}
.experience-gallery .gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-m);
    width: 100%;
}
.experience-gallery .gallery-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.experience-gallery .gallery-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}
.experience-gallery .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.experience-gallery .caption {
    font-size: var(--m-size);
    line-height: var(--m-line-height);
    letter-spacing: var(--m-letter-spacing);
    color: var(--minimalist-text-light);
    text-align: center;
    font-style: italic;
}
@media (max-width: 768px) {
    .experience-gallery .gallery-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Lightbox Styles
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease-out;
}

.lightbox.active .lightbox-content {
    opacity: 1;
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    font-size: var(--m-size);
    line-height: var(--m-line-height);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: var(--h2-size);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: var(--h2-size);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.divider {
    height: 1px;
    background-color: var(--minimalist-divider);
    margin: var(--space-l) 0;
}

.punctuation {
    color: var(--punctuation-color);
}

.jiva {
    color: var(--jiva-color);
    text-decoration: none;
}

.at{
    color: var(--minimalist-name);
}

/* Industry Category Colors */
.agriculture { color: var(--agriculture-color); }
.healthcare { color: var(--healthcare-color); }
.hospitality { color: var(--hospitality-color); }
.frontline { color: var(--frontline-color); }
.sales { color: var(--sales-color); }
.operations { color: var(--operations-color); }
.social { color: var(--social-color); }
.logistics { color: var(--logistics-color); }
.consumer { color: var(--consumer-color); }

/* Client Brand Colors */
.client.temasek { color: var(--color-temasek); }
.client.nea { color: var(--color-nea); }
.client.daimler { color: var(--color-daimler); }
.client.spgroup { color: var(--color-spgroup); }
.client.singtel { color: var(--color-singtel); }
.client.capita { color: var(--color-capita); }
.client.curtis { color: var(--color-curtis); }
.client.sph { color: var(--color-sph); }
.client.dbschenker { color: var(--color-dbschenker); }
.client.starhub { color: var(--color-starhub); }

/* ==========================================================================
   Resources Section (Talks Page)
   ========================================================================== */
.resources-section {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
}

.resources-section h2 {
    font-size: var(--h2-size);
    line-height: var(--h2-line-height);
    letter-spacing: var(--h2-letter-spacing);
    font-weight: 300;
    color: var(--minimalist-name);
    margin-bottom: var(--space-m);
    text-transform: none;
}

.resources-columns {
    display: block;
    gap: 0;
}

.resource-column {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.resource-column h3 {
    font-size: var(--h3-size);
    line-height: var(--h3-line-height);
    color: var(--minimalist-text-dark);
    font-weight: 500;
    margin-bottom: var(--space-s);
}

.downloads-list {
    list-style: disc inside;
    padding: 0 0 0 var(--space-l);
    margin: 0;
}

.downloads-list li {
    margin-bottom: var(--space-m);
    font-size: var(--l-size);
    line-height: var(--l-line-height);
}

.downloads-list a {
    color: inherit;
    border-bottom: 1px dotted rgba(0,0,0,0.15);
    transition: border-color 0.3s;
}

.downloads-list a:hover {
    border-color: rgba(0,0,0,0.6);
    color: var(--minimalist-name);
}

@media (max-width: 768px) {
    .resources-section {
        padding: 0;
        border-radius: 0;
    }
    .resources-columns {
        gap: 0;
    }
    .resource-column {
        padding: 0;
    }
    .resources-section h2 {
        margin-bottom: var(--space-s);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        /* Scale down typography for mobile */
        --t1-size: 3rem;          /* 48px */
        --t1-line-height: 2.5rem; /* 54px */
        
        --t2-size: 2.5rem;        /* 40px */
        --t2-line-height: 3rem;    /* 48px */
        
        --h1-size: 2.125rem;      /* 34px */
        --h1-line-height: 2.5rem;  /* 40px */
        
        --h2-size: 1.75rem;       /* 28px */
        --h2-line-height: 2.25rem; /* 36px */
        
        --h3-size: 1.5rem;        /* 24px */
        --h3-line-height: 2rem;    /* 32px */
    }

    .container {
        padding: var(--space-m);
    }
    
    .minimalist-header {
        margin-top: 0;
    }
    
    .bio-section {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-end;
        gap: var(--space-s);
    }

    .talks-section {
        padding: var(--space-xl) 0;
    }

    .talks-section .container {
        padding: 0 var(--space-m);
    }

    .talks-section h2 {
        margin-bottom: var(--space-l);
    }

    .talk-item {
        padding: var(--space-m) 0 var(--space-s);
    }

    .talk-item .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .talk-meta {
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: var(--space-xs);
    }

    .minimalist-header .name {
        display: flex;
        flex-direction: column;
        gap: var(--space-s);
    }
    
    .minimalist-header .name .arrow {
        display: block;
        margin-top: var(--space-xs);
    }

    .minimalist-section {
        display: block;
    }

    .section-title {
        margin-bottom: var(--space-l);
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* Talks Filters Bar - Mockup Style */
.talks-filters {
    margin-bottom: var(--space-l);
    display: flex;
    gap: var(--space-m);
    flex-wrap: wrap;
    justify-content: flex-start;
}
.filter-btn {
    background: var(--minimalist-text-dark);
    color: var(--minimalist-text-lighter);
    font-size: var(--m-size);
    line-height: var(--m-line-height);
    letter-spacing: var(--m-letter-spacing);
    font-weight: 500;
    padding: var(--space-xs) var(--space-m);
    border-radius: 2em;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
    margin-bottom: var(--space-s);
}

.filter-btn.active,
.filter-btn:focus {
    background: var(--minimalist-name);
    color: #fff;
}

/* Colored filters: only active/focus state gets color */
.filter-btn.agriculture.active,
.filter-btn.agriculture:focus {
    background: var(--tag-talks-color);
    color: #fff;
}
.filter-btn.hospitality.active,
.filter-btn.hospitality:focus {
    background: var(--tag-workshops-color);
    color: #fff;
}
.filter-btn.frontline.active,
.filter-btn.frontline:focus {
    background: var(--tag-lectures-color);
    color: #fff;
}
.filter-btn.social.active,
.filter-btn.social:focus {
    background: var(--tag-others-color);
    color: #fff;
}

/* Talk Tags Styling - Match Filter Buttons */
.talk-tags {
    margin-top: var(--space-xs);
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}
.tag {
    display: inline-block;
    font-size: var(--s-size);
    font-weight: 500;
    line-height: var(--s-line-height);
    letter-spacing: var(--s-letter-spacing);
    padding: var(--space-xs) var(--space-s);
    border-radius: 2em;
    border: none;
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
    vertical-align: middle;
    white-space: nowrap;
}

/* Tag color classes (use only CSS variables, match provided color palette) */
.tag.agriculture { background: var(--tag-talks-bg); color: var(--tag-talks-color); }
.tag.hospitality { background: var(--tag-workshops-bg); color: var(--tag-workshops-color); }
.tag.frontline { background: var(--tag-lectures-bg); color: var(--tag-lectures-color); }
.tag.social { background: var(--tag-others-bg); color: var(--tag-others-color); }

/* Thumbnails 200px high styling - reusable class for talks page */
.thumbnails-200h .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-l);
    justify-content: flex-start;
    align-items: flex-start;
}
.thumbnails-200h .gallery-item {
    position: relative;
}
.thumbnails-200h .gallery-image {
    position: relative;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background-color: transparent;
    border-radius: 7px;
}
.thumbnails-200h .gallery-image img {
    position: static;
    top: unset;
    left: unset;
    height: 200px;
    width: auto;
    object-fit: contain;
    border-radius: 7px;
    display: block;
    background: none;
}
.thumbnails-200h p.caption {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 0.5rem;
    color: #666;
}
@media (max-width: 1024px) {
    .thumbnails-200h .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .thumbnails-200h .gallery-image img {
        height: 120px;
    }
}
@media (max-width: 640px) {
    .thumbnails-200h .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .thumbnails-200h .gallery-image img {
        height: 90px;
    }
}

/* ==========================================================================
   Portfolio Styles
   ========================================================================== */
.portfolio-content {
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-frame {
    border: 1px solid var(--minimalist-name);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.portfolio-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    margin-top: var(--space-xl);
}

.portfolio-link {
    color: var(--minimalist-text);
    text-decoration: none;
    font-size: var(--m-size);
    transition: color 0.2s ease;
    display: block;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--minimalist-divider);
}

.portfolio-link:hover {
    color: var(--minimalist-name);
}

.portfolio-link::before {
    content: "→";
    margin-right: var(--space-xs);
    color: inherit;
}

.last-updated {
    margin-top: var(--space-xl);
    font-style: italic;
    color: var(--minimalist-text-light);
}

/* Portfolio Responsive Styles */
@media (max-width: 768px) {
    .portfolio-content {
        max-width: 100%;
        padding: 0 var(--space-m);
    }

    .portfolio-frame {
        margin-bottom: var(--space-l);
    }
}
