/*
Theme Name: Espresso Theme
Theme URI: https://www.espressonews.gr
Author: MINOANDESIGN
Author URI: https://www.minoandesign.gr
Description: Custom news magazine theme for espressonews.gr — modern editorial design with multiple section layouts, carousel, popular posts, and full responsive support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://www.minoandesign.gr
Text Domain: espresso-theme
Tags: news, magazine, editorial, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ── Base Reset ──────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.md-espresso-main {
    max-width: 1500px;
    margin: 0 auto;
}

/* ── Responsive embeds (all social/video platforms) ───────── */
.espresso-single__content iframe,
.espresso-single__content embed,
.espresso-single__content object,
.espresso-single__content video,
.espresso-page__content iframe,
.espresso-page__content embed,
.espresso-page__content object,
.espresso-page__content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* YouTube, Vimeo, Dailymotion, Glomex */
.espresso-single__content .wp-block-embed,
.espresso-single__content .wp-block-embed__wrapper,
.espresso-single__content .video-container,
.espresso-single__content [class*="glomex"],
.espresso-single__content [data-provider] {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

/* Twitter/X embeds */
.espresso-single__content .twitter-tweet,
.espresso-single__content .twitter-tweet-rendered,
.espresso-single__content twitterwidget {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Instagram embeds */
.espresso-single__content .instagram-media,
.espresso-single__content .instagram-media-rendered {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Facebook embeds */
.espresso-single__content .fb_iframe_widget,
.espresso-single__content .fb_iframe_widget span,
.espresso-single__content .fb_iframe_widget iframe,
.espresso-single__content .fb-post,
.espresso-single__content .fb-video {
    max-width: 100% !important;
    width: 100% !important;
}

/* TikTok embeds */
.espresso-single__content .tiktok-embed,
.espresso-single__content blockquote[cite*="tiktok"] {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Glomex player */
.espresso-single__content .glomex-player,
.espresso-single__content glomex-player,
.espresso-single__content [class*="glomex"] {
    max-width: 100% !important;
    width: 100% !important;
}

.espresso-single__content .glomex-player iframe,
.espresso-single__content glomex-player iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* Generic oEmbed wrapper */
.wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    max-width: 100% !important;
    width: 100% !important;
}
