/* ==================================================
   BASIN VE MEDYA — GENEL AYARLAR
   ================================================== */

.yc-press,
.yc-press *,
.yc-press *::before,
.yc-press *::after,
.yc-press-gallery,
.yc-press-gallery * {
    box-sizing: border-box;
}

.yc-press {
    padding-block: clamp(40px, 4.2vw, 80px);
    background-color: #fff;
    color: #476e70;
    font-family: "Poppins", sans-serif;
}

.yc-press__container {
    width: 70.416667%;
    max-width: 1352px;
    margin-inline: auto;
}

/* ==================================================
   BAŞLIK VE AÇIKLAMA
   ================================================== */

.yc-press__heading {
    margin-bottom: clamp(28px, 3vw, 58px);
    text-align: center;
}

.yc-press__title {
    margin: 0;
    color: #476e70;
    font-family: inherit;
    font-size: clamp(26px, 2.4vw, 46px);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.yc-press__description {
    max-width: 1100px;
    margin: clamp(12px, 1.1vw, 21px) auto 0;
    color: #374345;
    font-family: inherit;
    font-size: clamp(13px, 0.94vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* ==================================================
   TÜM EKRANLARDA DÖRT SÜTUN
   Küçük önizlemeye tıklanınca büyük görsel açılır.
   ================================================== */

.yc-press__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.25vw, 24px);
}

.yc-press .yc-press__card {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1.025;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #bdcccd;
    border-radius: 14px;
    background: #f3f6f6;
    box-shadow: none;
    appearance: none;
    cursor: zoom-in;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

/* Haber görselinin tamamını gösterir; metni kırpmaz. */
.yc-press__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
}

.yc-press .yc-press__card:hover {
    border-color: #476e70;
    box-shadow: 0 4px 14px rgb(71 110 112 / 12%);
}

.yc-press__card:focus-visible,
.yc-press__button:focus-visible {
    outline: 3px solid #476e70;
    outline-offset: 4px;
}

/* ==================================================
   DAHA FAZLA BUTONU
   ================================================== */

.yc-press__actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(28px, 3vw, 58px);
}

.yc-press .yc-press__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(180px, 15vw, 280px);
    max-width: 100%;
    min-height: 44px;
    padding: 12px 24px;
    border: 0;
    border-radius: 3px;
    background-color: #476e70;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.yc-press .yc-press__button:hover {
    background-color: #36585a;
    color: #fff;
}

/* ==================================================
   AYNI SAYFADA AÇILAN GALERİ
   ================================================== */

.yc-press-gallery {
    width: min(1100px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 16px;
    overflow: auto;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #476e70;
    font-family: "Poppins", sans-serif;
}

.yc-press-gallery::backdrop {
    background: rgb(0 0 0 / 78%);
}

.yc-press-gallery__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.yc-press-gallery .yc-press-gallery__toolbar h2 {
    margin: 0;
    color: inherit;
    font: 600 18px/1.4 "Poppins", sans-serif;
}

.yc-press-gallery__stage {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
}

.yc-press-gallery__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72dvh;
    min-width: 0;
    margin: 0;
    object-fit: contain;
}

/* Kapatma ve önceki/sonraki butonları. */
.yc-press-gallery .yc-press-gallery__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #bdcccd;
    border-radius: 50%;
    background: #fff;
    color: #476e70;
    box-shadow: none;
    appearance: none;
    cursor: pointer;
}

.yc-press-gallery__control svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yc-press-gallery .yc-press-gallery__control:hover {
    background: #e5f0f0;
}

.yc-press-gallery__control:focus-visible {
    outline: 2px solid #476e70;
    outline-offset: 3px;
}

.yc-press-gallery .yc-press-gallery__control[hidden] {
    display: none;
}

.yc-press-gallery .yc-press-gallery__caption {
    margin: 14px 0 0;
    color: #374345;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: break-word;
}

/* ==================================================
   TABLET — DÖRT SÜTUN KORUNUR
   ================================================== */

@media (min-width: 768px) and (max-width: 1199.98px) {
    .yc-press__container {
        width: calc(100% - 64px);
    }
}

/* ==================================================
   MOBİL — DÖRT SÜTUN KORUNUR
   ================================================== */

@media (max-width: 767.98px) {
    .yc-press {
        padding-block: 40px;
    }

    .yc-press__container {
        width: calc(100% - 32px);
    }

    .yc-press__title {
        font-size: clamp(26px, 6vw, 34px);
    }

    .yc-press__description {
        font-size: 14px;
    }

    .yc-press__grid {
        gap: 6px;
    }

    .yc-press .yc-press__card {
        border-radius: 6px;
    }

    .yc-press-gallery {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px;
    }

    /* Görsele tam genişlik verilir; oklar alt sıraya geçer. */
    .yc-press-gallery__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .yc-press-gallery__image {
        grid-column: 1 / -1;
        grid-row: 1;
        max-height: 60dvh;
    }

    .yc-press-gallery [data-gallery-prev] {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .yc-press-gallery [data-gallery-next] {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
}

/* Önceki video bölümüyle aralık. */
.yc-videos + .yc-press {
    padding-top: clamp(40px, 4vw, 64px);
}

@media (prefers-reduced-motion: reduce) {
    .yc-press .yc-press__card,
    .yc-press .yc-press__button {
        transition: none;
    }
}
/* MOBİL: haber görsellerini iki sütun, iki satır gösterir. */
@media (max-width: 767.98px) {
    .yc-press__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .yc-press .yc-press__card {
        border-radius: 10px;
    }
}