/* =====================================================
   EMRE ÇAĞMAN — Custom Site Styles
   ===================================================== */

/* --- Reset & Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }

/* --- Container ------------------------------------- */
.ec-wrap { max-width: 960px; margin: 0 auto; padding: 0 28px; }

/* --- Header ---------------------------------------- */
.ec-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
}
.ec-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ec-logo a { display: flex; align-items: center; }
.ec-logo img { height: 52px; width: auto; }

.ec-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.ec-nav a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1a1a1a;
    transition: opacity .2s;
}
.ec-nav a:hover,
.ec-nav a.active { opacity: .45; }

/* --- Footer ---------------------------------------- */
.ec-footer {
    background: #f5f5f5;
    padding: 36px 0 20px;
    margin-top: 80px;
}
.ec-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    flex-wrap: wrap;
}
.ec-footer-logo img { height: 52px; width: auto; }
.ec-footer-social {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ec-footer-social a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1a1a1a;
    transition: opacity .2s;
}
.ec-footer-social a:hover { opacity: .45; }
.ec-footer-cta a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1.5px solid #1a1a1a;
    padding: 9px 20px;
    display: inline-block;
    transition: all .2s;
    white-space: nowrap;
}
.ec-footer-cta a:hover { background: #1a1a1a; color: #fff; }
.ec-footer-copy {
    font-size: 11px;
    color: #aaa;
    padding-top: 16px;
    border-top: 1px solid #e2e2e2;
}

/* --- HOME PAGE ------------------------------------- */

/* Hero */
.ec-hero { padding: 52px 0 44px; }
.ec-hero-text {
    max-width: 660px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 23px;
    line-height: 1.6;
    color: #1a1a1a;
}

/* Works masonry on home */
.ec-home-works { padding: 0 0 48px; }
.ec-masonry {
    column-count: 3;
    column-gap: 16px;
}
.ec-masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
}
.ec-masonry-item a { display: block; }
.ec-masonry-item-img {
    overflow: hidden;
    background: #ebebeb;
    line-height: 0;
}
.ec-masonry-item-img img {
    width: 100%;
    transition: transform .45s ease;
}
.ec-masonry-item a:hover .ec-masonry-item-img img { transform: scale(1.04); }
.ec-masonry-item-title {
    font-size: 11px;
    color: #888;
    padding: 7px 0 0;
    letter-spacing: .02em;
}

/* "Let's work together!" strip */
.ec-cta-strip {
    background: #1a1a1a;
    color: #fff;
    padding: 30px 0;
    margin: 0 0 60px;
}
.ec-cta-strip .ec-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.ec-cta-text { font-size: 18px; font-weight: 600; }
.ec-cta-btn {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    border: 1.5px solid #fff;
    padding: 9px 20px;
    display: inline-block;
    transition: all .2s;
    white-space: nowrap;
}
.ec-cta-btn:hover { background: #fff; color: #1a1a1a; }

/* Art & Design section on home */
.ec-home-art { padding: 0 0 60px; }
.ec-section-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.02em;
}
.ec-section-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 560px;
}

/* Art portrait grid */
.ec-portrait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ec-portrait-item a { display: block; }
.ec-portrait-item-img {
    overflow: hidden;
    background: #ebebeb;
    aspect-ratio: 3 / 4;
    line-height: 0;
}
.ec-portrait-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.ec-portrait-item a:hover .ec-portrait-item-img img { transform: scale(1.04); }
.ec-portrait-item-title {
    font-size: 11px;
    color: #888;
    padding: 7px 0 0;
}

/* Blog preview on home */
.ec-home-blog { padding: 0 0 0; }
.ec-home-blog-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid #ebebeb;
    align-items: start;
}
.ec-home-blog-item:last-child { border-bottom: 1px solid #ebebeb; }
.ec-home-blog-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}
.ec-home-blog-title a:hover { opacity: .6; }
.ec-home-blog-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 14px;
}
.ec-home-blog-meta { font-size: 11px; color: #aaa; margin-bottom: 14px; }
.ec-home-blog-read {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 1.5px solid #1a1a1a;
    padding-bottom: 1px;
    display: inline-block;
    transition: opacity .2s;
}
.ec-home-blog-read:hover { opacity: .5; }
.ec-home-blog-img {
    overflow: hidden;
    background: #ebebeb;
    line-height: 0;
}
.ec-home-blog-img img { width: 100%; height: 220px; object-fit: cover; }

/* --- WORKS / ART LIST PAGE ----------------------- */
.ec-list-header { padding: 36px 0 24px; }
.ec-list-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }

.ec-works-grid {
    column-count: 3;
    column-gap: 16px;
    padding: 0 0 60px;
}
.ec-works-grid-cols-2 { column-count: 2; }
.ec-works-grid-cols-3 { column-count: 3; }
.ec-works-grid-cols-4 { column-count: 4; }
.ec-works-item {
    break-inside: avoid;
    margin-bottom: 16px;
}
.ec-works-item.is-gallery-wide {
    column-span: all;
}
.ec-works-item a { display: block; }
.ec-works-item-img {
    overflow: hidden;
    background: #ebebeb;
    line-height: 0;
}
.ec-works-item-img img { width: 100%; transition: transform .45s; }
.ec-works-item a:hover .ec-works-item-img img { transform: scale(1.04); }
.ec-works-item-title {
    font-size: 11px;
    color: #888;
    padding: 7px 0 0;
}

/* --- CONTENT DETAIL PAGE ------------------------- */
.ec-detail-back {
    padding: 20px 0 4px;
    font-size: 12px;
    color: #aaa;
    letter-spacing: .04em;
}
.ec-detail-back a { transition: opacity .2s; }
.ec-detail-back a:hover { opacity: .6; }

/* Works detail: 2-col (info left, gallery right) */
.ec-detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 52px;
    padding: 16px 0 60px;
    align-items: start;
}
.ec-detail-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -.02em;
}
.ec-detail-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.85;
    margin-bottom: 24px;
}
.ec-detail-meta { margin-bottom: 12px; }
.ec-detail-meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.ec-detail-meta-value { font-size: 13px; color: #666; }

/* Gallery mosaic */
.ec-gallery { }
.ec-gallery-full { margin-bottom: 12px; line-height: 0; overflow: hidden; background: #ebebeb; }
.ec-gallery-full img { width: 100%; cursor: pointer; }
.ec-gallery-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 0;
}
.ec-gallery-row.c2 { grid-template-columns: 1fr 1fr; }
.ec-gallery-row.c3 { grid-template-columns: 1fr 1fr 1fr; }
.ec-gallery-row-item { overflow: hidden; background: #ebebeb; cursor: pointer; }
.ec-gallery-row-item img { width: 100%; height: 100%; object-fit: cover; }

/* Art & Design detail: top info 2-col + gallery below */
.ec-art-detail-top {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 48px;
    padding: 16px 0 36px;
    align-items: start;
}
.ec-art-detail-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}
.ec-art-detail-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.85;
}
.ec-art-detail-sidebar { }

/* Prev / Next bar */
.ec-prev-next {
    background: #f5f5f5;
    padding: 18px 0;
    margin: 0 0 60px;
}
.ec-prev-next .ec-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ec-prev-next a {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1a1a1a;
    transition: opacity .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ec-prev-next a:hover { opacity: .45; }
.ec-prev-next a.disabled { opacity: .25; pointer-events: none; }
.ec-grid-icon {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 3px;
}
.ec-grid-icon span { width: 5px; height: 5px; background: #1a1a1a; display: block; }

/* Related works */
.ec-related { padding: 0 0 80px; }
.ec-related-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -.01em;
    margin-bottom: 28px;
}
.ec-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ec-related-item a { display: block; }
.ec-related-item-img {
    overflow: hidden;
    background: #ebebeb;
    aspect-ratio: 4/3;
    line-height: 0;
}
.ec-related-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.ec-related-item a:hover .ec-related-item-img img { transform: scale(1.04); }
.ec-related-item-title { font-size: 11px; color: #888; padding: 7px 0 0; text-align: center; }

/* --- BLOG LIST PAGE ------------------------------ */
.ec-blog-item {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid #ebebeb;
    align-items: start;
}
.ec-blog-item:last-child { border-bottom: 1px solid #ebebeb; }
.ec-blog-item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}
.ec-blog-item-title a:hover { opacity: .6; }
.ec-blog-item-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 16px;
}
.ec-blog-item-meta { font-size: 11px; color: #bbb; margin-bottom: 14px; }
.ec-blog-item-read {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 1.5px solid #1a1a1a;
    padding-bottom: 1px;
    display: inline-block;
    transition: opacity .2s;
}
.ec-blog-item-read:hover { opacity: .5; }
.ec-blog-item-right { }
.ec-blog-item-img {
    overflow: hidden;
    background: #ebebeb;
    margin-bottom: 12px;
    line-height: 0;
}
.ec-blog-item-img img { width: 100%; height: 200px; object-fit: cover; }
.ec-blog-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.ec-blog-item-tag {
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
    border: 1px solid #ddd;
    padding: 3px 8px;
}
.ec-blog-share {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- BLOG DETAIL PAGE ----------------------------- */
.ec-blog-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 64px;
    padding: 0 0 80px;
    align-items: start;
}
.ec-blog-detail-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.ec-blog-detail-body {
    font-size: 14px;
    line-height: 1.9;
    color: #333;
}
.ec-blog-detail-body p { margin-bottom: 1em; }
.ec-blog-detail-body h2,
.ec-blog-detail-body h3 { font-size: 16px; font-weight: 700; margin: 1.5em 0 .5em; }
.ec-blog-detail-meta { font-size: 11px; color: #bbb; margin: 20px 0 0; }
.ec-blog-detail-cover { margin-bottom: 28px; overflow: hidden; background: #ebebeb; line-height: 0; }
.ec-blog-detail-cover img { width: 100%; max-height: 400px; object-fit: cover; }

/* Blog sidebar */
.ec-sidebar { position: sticky; top: 100px; }
.ec-sidebar-section { margin-bottom: 32px; }
.ec-sidebar-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 14px;
}
.ec-sidebar-search { display: flex; border: 1px solid #ddd; }
.ec-sidebar-search input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 12px;
    font-family: inherit;
    background: transparent;
}
.ec-sidebar-search button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}
.ec-sidebar-recent li {
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}
.ec-sidebar-recent li a:hover { opacity: .6; }
.ec-sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-sidebar-tag {
    font-size: 9px;
    letter-spacing: .07em;
    text-transform: uppercase;
    border: 1px solid #ddd;
    padding: 4px 10px;
    color: #555;
    transition: all .2s;
}
.ec-sidebar-tag:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.ec-sidebar-cats li {
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ec-sidebar-cats li a:hover { opacity: .6; }

/* Slider dots */
.ec-slider { position: relative; margin-bottom: 28px; overflow: hidden; background: #ebebeb; line-height: 0; }
.ec-slider img { width: 100%; max-height: 400px; object-fit: cover; }
.ec-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 0 0;
}
.ec-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background .2s;
}
.ec-slider-dot.active { background: #1a1a1a; }

/* --- PROFILE PAGE --------------------------------- */

/* Full-bleed hero photo */
.ec-profile-hero {
    width: 100%;
    height: 540px;
    overflow: hidden;
    background: #ebebeb;
    line-height: 0;
}
.ec-profile-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Name block below hero */
.ec-profile-nameblock {
    padding: 28px 0 36px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 52px;
}
.ec-profile-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.ec-profile-title-text { font-size: 12px; color: #888; }

/* Profile section */
.ec-profile-section { padding: 0 0 56px; }
.ec-profile-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #1a1a1a;
}
.ec-profile-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
}
.ec-profile-bio {
    font-size: 13px;
    line-height: 1.85;
    color: #444;
}
.ec-profile-bio p { margin-bottom: 1em; }
.ec-profile-extra h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0;
}
.ec-profile-extra p,
.ec-profile-extra li {
    font-size: 12px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 6px;
}
.ec-exp-yr { color: #aaa; margin-right: 8px; font-size: 11px; }
.ec-exp-inst { color: #aaa; }

/* Recent works 6-col grid */
.ec-profile-works-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding-bottom: 60px;
}
.ec-profile-work-item {
    display: block;
    overflow: hidden;
    background: #ebebeb;
    aspect-ratio: 4 / 3;
    line-height: 0;
}
.ec-profile-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.ec-profile-work-item:hover img { transform: scale(1.05); }

/* Profile social thumbnails row */
.ec-profile-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 0 60px;
}
.ec-profile-thumb {
    width: 80px;
    height: 80px;
    overflow: hidden;
    background: #ebebeb;
}
.ec-profile-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- UTILITIES ------------------------------------ */
.ec-empty { text-align: center; padding: 80px 0; font-size: 13px; color: #bbb; }
.ec-page-pad { padding-bottom: 80px; }

/* Lightbox override */
.cbp-lightbox-bottom { display: none !important; }

/* --- RESPONSIVE ----------------------------------- */
@media (max-width: 900px) {
    .ec-detail-layout { grid-template-columns: 1fr; }
    .ec-art-detail-top { grid-template-columns: 1fr; }
    .ec-blog-detail-wrap { grid-template-columns: 1fr; }
    .ec-sidebar { position: static; }
    .ec-portrait-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-works-grid { column-count: 2; }
    .ec-masonry { column-count: 2; }
    .ec-profile-works-grid { grid-template-columns: repeat(4, 1fr); }
    .ec-profile-hero { height: 380px; }
}
@media (max-width: 680px) {
    .ec-nav { gap: 14px; }
    .ec-hero-text { font-size: 19px; }
    .ec-portrait-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-works-grid { column-count: 2; }
    .ec-masonry { column-count: 2; }
    .ec-home-blog-item { grid-template-columns: 1fr; }
    .ec-blog-item { grid-template-columns: 1fr; }
    .ec-related-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-profile-2col { grid-template-columns: 1fr; }
    .ec-profile-works-grid { grid-template-columns: repeat(3, 1fr); }
    .ec-profile-hero { height: 280px; }
    .ec-cta-strip .ec-wrap { flex-direction: column; gap: 16px; text-align: center; }
    .ec-footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 480px) {
    .ec-portrait-grid, .ec-works-grid { column-count: 1; }
    .ec-portrait-grid { grid-template-columns: 1fr; }
    .ec-masonry { column-count: 1; }
    .ec-related-grid { grid-template-columns: 1fr; }
    .ec-profile-works-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-nav { gap: 10px; }
    .ec-nav a { font-size: 10px; letter-spacing: .08em; }
}
