/* =========================================
   EDITORIAL DETAIL POPUP
========================================= */

.detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 90px 40px 40px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.detail-overlay.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.detail-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(35, 31, 27, .48);

    backdrop-filter:
        blur(8px);
}

.editorial-detail {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        54% 46%;

    width:
        min(1180px,
            calc(100vw - 120px));

    height:
        min(620px,
            calc(100vh - 150px));

    overflow: visible;

    background:
        #f3eee5;

    border:
        1px solid rgba(92, 78, 63, .16);

    box-shadow:
        0 35px 90px rgba(45, 38, 31, .28);

    will-change:
        transform,
        opacity;
}


/* =========================================
   CLOSE
========================================= */

.detail-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 20;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        #5b534a;

    cursor: pointer;
}

.detail-close:hover {
    color:
        #211d19;
}

.detail-close svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.6;
}


/* =========================================
   SOL EDITORIAL ALAN
========================================= */

.editorial-left {
    position: relative;

    display: grid;

    grid-template-columns:
        1fr 190px;

    grid-template-rows:
        auto 1fr auto;

    column-gap: 34px;

    min-width: 0;
    height: 100%;

    padding:
        0 42px 34px 0;

    background:
        #eee7dc;
}


/* =========================================
   IMAGE
========================================= */

.editorial-cover {
    position: relative;

    grid-column:
        1 / 3;

    width:
        calc(100% + 55px);

    height:
        390px;

    margin-top:
        -32px;

    margin-left:
        -45px;

    overflow:
        hidden;

    background-color:
        #eee7dc;

    background-position:
        center;

    background-size:
        cover;

    background-repeat:
        no-repeat;

    box-shadow:
        0 28px 55px rgba(0, 0, 0, .28);

    cursor:
        zoom-in;
}

.editorial-cover::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        rgba(238,
            231,
            220,
            .22);

    backdrop-filter:
        blur(18px);

    pointer-events:
        none;
}

.editorial-cover img {
    position: relative;

    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;

    object-fit:
        contain;

    object-position:
        center;
}


/* =========================================
   DATE / ACTIONS
========================================= */

.editorial-primary-meta {
    grid-column: 1;
    grid-row: 3;

    align-self:
        center;

    margin-left:
        28px;
}

.editorial-date {
    position: relative;

    display: flex;

    align-items:
        flex-end;

    gap: 14px;

    margin:
        0 0 30px;

    padding-bottom:
        18px;
}

.editorial-date::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width:
        115px;

    height:
        1px;

    background:
        linear-gradient(90deg,
            rgba(157, 125, 83, .85),
            rgba(157, 125, 83, 0));
}

.editorial-date-day {
    color:
        #2b2722;

    font-size:
        72px;

    font-weight:
        700;

    line-height:
        .82;

    letter-spacing:
        -4.5px;
}

.editorial-date-info {
    display: flex;

    flex-direction:
        column;

    padding-bottom:
        2px;
}

.editorial-date-month {
    color:
        #3d3731;

    font-size:
        14px;

    font-weight:
        700;

    letter-spacing:
        1.7px;
}

.editorial-date-year {
    margin-top:
        5px;

    color:
        #8a8177;

    font-size:
        12px;

    font-weight:
        500;

    letter-spacing:
        1.4px;
}

.editorial-actions {
    display: flex;

    align-items:
        center;

    justify-content:
        flex-start;

    gap:
        10px;

    margin: 0;
}

.editorial-action {
    width:
        34px;

    height:
        34px;

    display:
        grid;

    place-items:
        center;

    padding: 0;

    border:
        1px solid rgba(80, 69, 58, .24);

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, .32);

    color:
        #5f574f;

    cursor:
        pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.editorial-action svg {
    width:
        15px;

    height:
        15px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.6;
}

.editorial-action:hover {
    transform:
        translateY(-2px);

    color:
        #211d19;

    border-color:
        rgba(80, 69, 58, .42);

    background:
        rgba(255, 255, 255, .7);
}


/* =========================================
   LEFT TAGS
========================================= */

.editorial-meta {
    grid-column: 2;
    grid-row: 3;

    align-self:
        center;

    margin: 0;

    padding-right:
        18px;
}

.editorial-side-tags {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;
}

.editorial-side-tags span {
    padding:
        5px 8px;

    border:
        1px solid rgba(98, 84, 69, .18);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, .26);

    color:
        #756b60;

    font-size:
        9.5px;

    font-weight:
        500;
}


/* =========================================
   SAĞ İÇERİK
========================================= */

.editorial-content {
    position: relative;

    min-width: 0;
    height: 100%;

    overflow:
        hidden;

    background:
        #f8f4ed;
}

.editorial-scroll {
    height:
        100%;

    overflow-y:
        auto;

    padding:
        58px 58px 60px;

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(104, 91, 77, .32) transparent;
}

.editorial-scroll::-webkit-scrollbar {
    width:
        5px;
}

.editorial-scroll::-webkit-scrollbar-track {
    background:
        transparent;
}

.editorial-scroll::-webkit-scrollbar-thumb {
    border-radius:
        10px;

    background:
        rgba(104, 91, 77, .32);
}

.editorial-header {
    padding-right:
        20px;
}

.editorial-title {
    margin: 0;

    color:
        #2a2621;

    font-size:
        38px;

    font-weight:
        700;

    line-height:
        1.12;

    letter-spacing:
        -1.4px;
}

.editorial-lead {
    margin:
        20px 0 0;

    color:
        #6f675e;

    font-size:
        13px;

    line-height:
        1.75;
}

.editorial-tags {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-top:
        22px;

    padding-bottom:
        25px;

    border-bottom:
        1px solid rgba(86, 73, 61, .14);
}

.editorial-tags span {
    color:
        #756b60;

    font-size:
        10px;

    font-weight:
        500;
}

.editorial-text {
    padding-top:
        25px;

    color:
        #49433c;
}

.editorial-text p {
    margin:
        0 0 20px;

    color:
        #49433c;

    font-size:
        13px;

    line-height:
        1.82;
}

.editorial-text h2,
.editorial-text h3 {
    margin:
        34px 0 14px;

    color:
        #2d2823;

    font-size:
        18px;

    font-weight:
        700;

    letter-spacing:
        -.35px;
}


/* =========================================
   PREVIOUS / NEXT POST
========================================= */

.post-nav {
    position:
        fixed;

    top:
        50%;

    z-index:
        1010;

    width:
        58px;

    height:
        58px;

    display:
        grid;

    place-items:
        center;

    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        rgba(255, 255, 255, .82);

    cursor:
        pointer;

    transform:
        translateY(-50%);

    transition:
        color .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.post-nav--prev {
    left:
        32px;
}

.post-nav--next {
    right:
        32px;
}

.post-nav svg {
    width:
        50px;

    height:
        50px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.4;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}

.post-nav:hover {
    color:
        #ffffff;
}

.post-nav--prev:hover {
    transform:
        translateY(-50%) translateX(-4px);
}

.post-nav--next:hover {
    transform:
        translateY(-50%) translateX(4px);
}

.post-nav[hidden] {
    display:
        none;
}


/* =========================================
   WHOLE POST CARD SLIDE
========================================= */
/* =========================================
   WHOLE POST CARD SLIDE — FULL SCREEN
========================================= */

.editorial-detail.slide-next {
    animation:
        wholeCardNext .28s cubic-bezier(.22, .61, .36, 1);
}

.editorial-detail.slide-prev {
    animation:
        wholeCardPrev .28s cubic-bezier(.22, .61, .36, 1);
}

@keyframes wholeCardNext {

    0% {
        opacity: 0;
        transform: translateX(100vw);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes wholeCardPrev {

    0% {
        opacity: 0;
        transform: translateX(-100vw);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }

}

/* =========================================
   IMAGE LIGHTBOX
========================================= */

.image-lightbox {
    position:
        fixed;

    inset:
        0;

    z-index:
        2000;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        30px;

    visibility:
        hidden;

    opacity:
        0;

    pointer-events:
        none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.image-lightbox.open {
    visibility:
        visible;

    opacity:
        1;

    pointer-events:
        auto;
}

.image-lightbox-backdrop {
    position:
        absolute;

    inset:
        0;

    background:
        rgba(24,
            21,
            18,
            .88);

    backdrop-filter:
        blur(8px);
}

.image-lightbox-image {
    position:
        relative;

    z-index:
        1;

    display:
        block;

    max-width:
        calc(100vw - 60px);

    max-height:
        calc(100vh - 60px);

    width:
        auto;

    height:
        auto;

    object-fit:
        contain;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .55);

    cursor:
        zoom-out;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .editorial-detail {
        grid-template-columns:
            52% 48%;

        width:
            min(94vw,
                1040px);
    }

    .editorial-left {
        grid-template-columns:
            1fr 165px;

        column-gap:
            22px;
    }

    .editorial-scroll {
        padding:
            50px 42px 54px;
    }

    .editorial-title {
        font-size:
            34px;
    }

}


@media (max-width: 760px) {

    .detail-overlay,
    .post-nav {
        display:
            none !important;
    }

}

/* =========================================
   EDITORIAL POPUP — TYPOGRAPHY
========================================= */

.editorial-detail {
    font-family: "Manrope", sans-serif;
}

.editorial-title {
    font-family: "Manrope", sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.editorial-lead {
    margin: 16px 0 0;
    max-width: 90%;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: rgba(35, 31, 27, 0.62);
}

/* =========================================
   SQUARE IMAGE LAYOUT
========================================= */
/*
.editorial-detail.image-square {
    grid-template-columns:
        48% 52%;

    width:
        min(1080px,
            calc(100vw - 120px));
}

.editorial-detail.image-square .editorial-cover {
    width:
        calc(100% + 30px);

    height:
        430px;
}

.editorial-detail.image-square .editorial-cover::after {
    display:
        none;
}

.editorial-detail.image-square .editorial-cover img {
    object-fit:
        cover;
}
*/
/* =========================================
   PORTRAIT IMAGE LAYOUT
   Popup preview = sabit 4:5
   Lightbox = orijinal görsel
========================================= */

.editorial-detail.image-portrait,
.editorial-detail.image-square {
    grid-template-columns: 377px 543px;

    width:
        min(920px,
            calc(100vw - 120px));
}

.editorial-detail.image-portrait .editorial-cover,
.editorial-detail.image-square .editorial-cover {
    width:
        360px;

    height:
        auto;

    aspect-ratio:
        4 / 5;

    margin-top:
        -32px;

    margin-left:
        -45px;

    overflow:
        hidden;

    background-image:
        none !important;
}

.editorial-detail.image-portrait .editorial-cover::after,
.editorial-detail.image-square .editorial-cover::after {
    display:
        none;
}

.editorial-detail.image-portrait .editorial-cover img,
.editorial-detail.image-square .editorial-cover img {
    width:
        100%;

    height:
        100%;

    max-width:
        none;

    max-height:
        none;

    object-fit:
        cover;

    object-position:
        center center;
}

.editorial-detail.image-portrait .editorial-actions,
.editorial-detail.image-square .editorial-actions {
    margin-top:
        -12px;
}

/* =========================================
   PORTRAIT + SQUARE IMAGE LAYOUT
   Square görseller portrait olarak gösterilir
========================================= */

.editorial-detail.image-portrait,
.editorial-detail.image-square {
    grid-template-columns: 377px 583px;

    width:
        min(960px,
            calc(100vw - 120px));
}

.editorial-detail.image-portrait .editorial-cover,
.editorial-detail.image-square .editorial-cover {
    width: 360px;
    height: auto;
    aspect-ratio: 4 / 5;

    margin-top: -32px;
    margin-left: -45px;

    overflow: hidden;

    background-image:
        none !important;
}

.editorial-detail.image-portrait .editorial-cover::after,
.editorial-detail.image-square .editorial-cover::after {
    display: none;
}

.editorial-detail.image-portrait .editorial-cover img,
.editorial-detail.image-square .editorial-cover img {
    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center center;
}

.editorial-detail.image-portrait .editorial-actions,
.editorial-detail.image-square .editorial-actions {
    margin-top: -12px;
}


/* =========================================
   LANDSCAPE IMAGE LAYOUT
========================================= */

.editorial-detail.image-landscape {
    grid-template-columns: 52% 48%;

    width:
        min(1240px,
            calc(100vw - 100px));

    height:
        min(620px,
            calc(100vh - 150px));
}

.editorial-detail.image-landscape .editorial-cover {
    aspect-ratio: 16 / 9;
    height: auto;

    overflow: hidden;

    background-image:
        none !important;
}

.editorial-detail.image-landscape .editorial-cover::after {
    display: none;
}

.editorial-detail.image-landscape .editorial-cover img {
    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center;
}

/* =========================================
   EDITORIAL ACTION BUTTONS
========================================= */

.editorial-action {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 0;

    background: transparent;

    color: rgba(35, 31, 27, 0.68);

    cursor: pointer;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.editorial-action svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editorial-action:hover {
    color: #231f1b;
    transform: translateY(-2px);
}

/* =========================================
   TURAN EDITORIAL ACTIONS
========================================= */

.editorial-detail .editorial-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.editorial-detail .editorial-action {
    width: auto;
    height: 30px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #756b60;
    cursor: pointer;
}

.editorial-detail .editorial-action svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor !important;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editorial-detail .editorial-action span {
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.editorial-detail .editorial-action:hover {
    color: #2a2621;
    transform: none;
}

.editorial-detail .editorial-actions {
    gap: 22px;
    margin-top: 4px;
}

.editorial-detail .editorial-action {
    height: 34px;
    gap: 8px;
    color: #625a52;
}

.editorial-detail .editorial-action svg {
    width: 17px;
    height: 17px;
}

.editorial-detail .editorial-action span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* =========================================
   TURAN EDITORIAL TAGS
========================================= */

.editorial-detail .editorial-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.editorial-detail .editorial-side-tags span {
    padding: 0;

    border: 0;
    background: transparent;

    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;

    color: #4f4841;

    cursor: pointer;

    transition: color 0.16s ease;
}

.editorial-detail .editorial-side-tags span::before {
    content: none;
}

.editorial-detail .editorial-side-tags span:hover {
    color: #1f1b18;
    text-decoration: none;
    transform: none;
}

.editorial-detail .editorial-meta {
    position: relative;
    z-index: 50;
    pointer-events: auto;
}

.editorial-detail .editorial-side-tags {
    position: relative;
    z-index: 51;
    pointer-events: auto;
}

.editorial-detail .editorial-side-tags span {
    position: relative;
    z-index: 52;
    pointer-events: auto !important;
    cursor: pointer;
}

.post-nav i {
    font-size: 30px !important;
}

/* =========================================
   POPUP POST GALLERY
========================================= */

.editorial-popup-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(86, 73, 61, .14);
}

.editorial-popup-gallery[hidden] {
    display: none !important;
}

.editorial-popup-gallery__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: zoom-in;
}

.editorial-popup-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-popup-gallery__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .60);
    opacity: 1;
    pointer-events: none;
    transition: opacity .18s ease;
}

.editorial-popup-gallery__thumb:hover::after {
    opacity: 0;
}


/* =========================================
   POPUP GALLERY LIGHTBOX ARROWS
========================================= */

.image-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2010;
    width: 70px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    font-size: 30px;
    cursor: pointer;
    transform: translateY(-50%);
}

.image-lightbox-nav[hidden] {
    display: none !important;
}

.image-lightbox-nav--prev {
    left: 18px;
}

.image-lightbox-nav--next {
    right: 18px;
}

.image-lightbox-nav:hover {
    color: #fff;
}

.image-lightbox-nav {
    z-index: 5 !important;
    pointer-events: auto !important;
}

.image-lightbox-backdrop {
    z-index: 0;
}

.image-lightbox-image {
    z-index: 1;
}
/* =========================================================
   POPUP ALT META — FINAL
========================================================= */

.editorial-detail .editorial-left {
    grid-template-rows: auto 1fr auto auto;
}

.editorial-detail .editorial-primary-meta {
    grid-column: 1 / 3;
    grid-row: 3;
    align-self: start;
    margin-left: 28px;
    margin-right: 18px;
}

.editorial-detail .editorial-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    margin-top: 4px;
}

.editorial-detail .editorial-action {
    flex: 0 0 auto;
}

.editorial-detail #detailCommentButton {
    flex: 0 0 auto;
}

.editorial-detail .editorial-meta {
    grid-column: 1 / 3;
    grid-row: 4;
    align-self: start;
    margin: 8px 18px 0 28px;
    padding: 0;
    min-width: 0;
}

.editorial-detail .editorial-side-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.editorial-detail .editorial-side-tags span {
    flex: 0 1 auto;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* =========================================================
   POPUP TAG SATIR SINIRI — FINAL
========================================================= */

.editorial-detail .editorial-side-tags {
    overflow: hidden;
    max-width: 100%;
    max-height: 38px;
}

.editorial-detail.image-portrait .editorial-side-tags,
.editorial-detail.image-square .editorial-side-tags {
    max-height: 60px;
}

.editorial-detail .editorial-side-tags span {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.editorial-detail .editorial-side-tags span[hidden] {
    display: none !important;
}


/* Galeri görseli açıklaması */

.image-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 2;
    width: min(720px, calc(100vw - 40px));
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
    transform: translateX(-50%);
    pointer-events: none;
}

.image-lightbox-caption:empty {
    display: none;
}
