/*
Theme Name: Elegant Magazine Child
Theme URI: https://www.afthemes.com/products/elegant-magazine/
Template: elegant-magazine
Author: AF themes
Author URI: https://www.afthemes.com/
Description: An elegant and minimalist theme, which is predominantly designed for a web news portal and magazine with an immense research on contemporary online newspapers. With the help of available customizer options and widgets, you can implement layout as a trending news journals, modern fashion magazine, travel blogging &amp; magazine, clean and minimal news sites, blogging site and even more. The theme is SEO friendly with optimized code and awesome support. See our demos: https://afthemes.com/elegant-magazine-demos/ and support at : https://afthemes.com/supports/
Tags: news,blog,entertainment,one-column,two-columns,three-columns,four-columns,grid-layout,block-patterns,block-styles,left-sidebar,right-sidebar,custom-header,flexible-header,custom-background,custom-logo,custom-menu,custom-colors,featured-images,full-width-template,post-formats,rtl-language-support,footer-widgets,translation-ready,theme-options,threaded-comments,wide-blocks
Version: 4.3.5.1.1765852949
Updated: 2025-12-16 10:42:29

*/

/* 自訂樣式請加在這裡 */


/* 修正頭部樣式 */
#masthead .masthead-banner.data-bg:before{
	content: none !important;
}

@media (min-width:992px){
	.masthead-banner.data-bg{
		min-height:299px;
		background-size: cover;
		background-position: center;
	}	
}


/*
Theme Name: Elegant Magazine Child
Template: elegant-magazine
*/

/* ============================================================================
   替代被移除的 Inline CSS
   ============================================================================ */

/* 1. Custom Header 靜態樣式 */
body .masthead-banner.data-bg:before {
    background: rgba(0, 0, 0, 0);
}

.site-title,
.site-description {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* 2. Sticky Sidebar 使用 CSS 實作 */
#secondary,
.sidebar,
.widget-area {
    position: -webkit-sticky;
    position: sticky;
    top: 30px;
    align-self: flex-start;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* 手機版不使用 sticky */
@media (max-width: 991px) {
    #secondary,
    .sidebar,
    .widget-area {
        position: static;
        max-height: none;
    }
}

/* 3. Block Library Theme 基本樣式（根據需要調整） */
.wp-block-quote {
    border-left: 0.25em solid;
    margin: 0 0 1.75em;
    padding-left: 1em;
}

.wp-block-separator {
    border: none;
    border-bottom: 2px solid;
    margin-left: auto;
    margin-right: auto;
}

/* 更多區塊樣式... */