@media (max-width: 768px) {
    /* Elfsight galeri içindeki tüm başlık ve açıklama katmanlarını zorla açar */
    .eapps-youtube-gallery-item-info *,
    .yottie-widget-video-info *,
    [class*="eapps-youtube-gallery-item-description"],
    [class*="eapps-youtube-gallery-item-title"] {
        white-space: normal !important;
        -webkit-line-clamp: initial !important;
        line-clamp: initial !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

@media (max-width: 768px) {
    /* Butonu kırmızı şeride çevirip yatayda tam ortaya hizalar */
    .yottie-popup-control-close {
        background-color: #d32f2f !important; /* Kırmızı arka plan */
        width: auto !important; 
        height: 40px !important;
        padding: 0 20px !important; /* Metnin sağından ve solundan boşluk */
        border-radius: 8px !important; /* Hafif oval köşeler */
        opacity: 1 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
        
        /* Ortaya hizalama ayarları */
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: -45px !important; /* Üstten boşluk */
        
        /* İçeriği (metni) ortalama */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Çarpı (X) işaretinin birinci çizgisini iptal edip metin ekler */
    .yottie-popup-control-close::before {
        content: "VİDEOYU KAPAT" !important;
        color: #ffffff !important; /* Beyaz yazı rengi */
        font-size: 14px !important;
        font-weight: 700 !important;
        background-color: transparent !important;
        width: auto !important;
        height: auto !important;
        position: static !important;
        transform: none !important;
        white-space: nowrap !important; /* Metnin alt satıra kaymasını engeller */
    }
    
    /* Çarpı (X) işaretinin ikinci çizgisini tamamen gizler */
    .yottie-popup-control-close::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Yan yana (flex) dizilimi iptal edip alt alta (block) dizer */
    div[class*="yottie-widget-header-inner"] {
        display: block !important;
        text-align: center !important;
        height: auto !important;
        padding: 15px 10px !important;
    }
    
    /* Logoyu ortalar ve altına boşluk bırakır */
    div[class*="yottie-widget-header-logo"] {
        display: inline-block !important;
        margin-bottom: 10px !important;
        float: none !important;
    }
    
    /* Başlık alanına %100 genişlik verir */
    div[class*="yottie-widget-header-info"],
    div[class*="yottie-widget-header-channel"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Metnin tamamen serbestçe aşağı uzamasını sağlar */
    div[class*="yottie-widget-header-channel-title"] {
        display: block !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow: visible !important;
        text-overflow: unset !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        height: auto !important;
        max-height: none !important;
        line-height: 1.4 !important;
        font-size: 16px !important;
    }
}
