/* Gerbang Media visual refinements. Customizer CSS variables remain the source of truth where available. */
:root{--gm-red:#E70102;--gm-blue:#014898;--gm-navy:#10274A;--gm-sky:#01ACFE;}
.gmr-logo{max-width:280px}
.gmr-logo img.custom-logo{max-width:100%;max-height:80px;width:auto;height:auto;object-fit:contain}
@media(min-width:993px) and (max-width:1200px){.gmr-logo{max-width:230px}}
@media(max-width:992px){.gmr-logo-mobile{min-height:48px;height:auto;max-width:calc(100% - 94px);margin:2px 0}.gmr-logo-mobile img.custom-logo{width:auto;height:auto;max-width:min(64vw,245px);max-height:48px;object-fit:contain}.gmr-topnavwrap .row-flex{min-height:52px;gap:6px}.gmr-topnavwrap .gmr-navright{max-width:88px;gap:4px}}
@media(max-width:360px){.gmr-logo-mobile img.custom-logo{max-width:calc(100vw - 128px);max-height:43px}.gmr-topnavwrap .row-flex{gap:3px}}
/* Match related-news cards and image crops without changing WordPress queries or URLs. */
.gmr-related-post .wpberita-list-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px;margin:0;padding:0}
.gmr-related-post .list-gallery.related-gallery{display:flex;flex-direction:column;float:none;width:auto;min-width:0;margin:0;padding:0;overflow:hidden}
.gmr-related-post .list-gallery.related-gallery .post-thumbnail{display:block;position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;margin:0 0 10px;background:var(--greybody-bgcolor,#efefef)}
.gmr-related-post .list-gallery.related-gallery .post-thumbnail>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.gmr-related-post .list-gallery.related-gallery .list-gallery-title{flex:1;min-width:0}
.gmr-related-post .list-gallery.related-gallery .list-gallery-title>a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis;min-height:3.9em;line-height:1.3;font-size:clamp(14px,1.25vw,17px);overflow-wrap:anywhere}
.gmr-related-post .related-text{margin-bottom:20px;padding-top:15px;border-top:2px solid var(--border-color,#ddd);color:var(--scheme-color,var(--gm-red))}
@media(max-width:767px){.gmr-related-post .wpberita-list-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.gmr-related-post .list-gallery.related-gallery .list-gallery-title>a{font-size:15px;min-height:3.9em}}
@media(max-width:360px){.gmr-related-post .wpberita-list-gallery{gap:18px 10px}.gmr-related-post .list-gallery.related-gallery .list-gallery-title>a{font-size:14px}}

/* Compact Breaking News strip. The global header row height was inflating this area on mobile. */
.gmr-topnotification{padding:2px 0!important;font-size:13px!important;line-height:1.35!important;min-height:0!important}
.gmr-topnotification .list-flex,.gmr-topnotification .row-flex,.gmr-topnotification .wrap-marquee,.gmr-topnotification .marquee{min-height:0!important;height:auto!important}
.gmr-topnotification .row-flex{gap:8px!important}
.gmr-topnotification .text-marquee{padding:5px 9px!important;border-radius:5px!important;font-size:13px!important;line-height:1.25!important}
.gmr-topnotification .gmr-recent-marquee{font-size:13px!important;line-height:1.35!important}
@media(max-width:600px){.gmr-topnotification{padding:2px 0!important}.gmr-topnotification .text-marquee{padding:4px 8px!important;font-size:12px!important}.gmr-topnotification .gmr-recent-marquee{font-size:12px!important;line-height:1.3!important}}
/* Footer colors follow the site's brand palette; white background preserves logo contrast. */
.site-footer{background-color:var(--footer-bgcolor,#fff);color:var(--footer-color,var(--gm-navy))}
.site-footer a{color:var(--footer-linkcolor,var(--gm-blue))}
.site-footer a:hover,.site-footer a:focus{color:var(--footer-hover-linkcolor,var(--gm-red))}
.footer-menu li:after{color:currentColor;opacity:.6}
/* Article body readability and responsive media. */
.entry-content-single{overflow-wrap:break-word}
.entry-content-single img,.entry-content-single video,.entry-content-single iframe{max-width:100%}
.entry-content-single img{height:auto}
.entry-content-single table{max-width:100%}
@media(max-width:600px){.entry-content-single{font-size:16px;line-height:1.75}.entry-content-single p{line-height:1.75}.entry-content-single iframe{width:100%;height:auto;aspect-ratio:16/9}}

/* Prevent clearfix pseudo-elements from occupying cells in the Baca Juga CSS grid. */
.gmr-related-post .wpberita-list-gallery.clearfix:before,
.gmr-related-post .wpberita-list-gallery.clearfix:after{display:none!important;content:none!important}
.gmr-related-post .wpberita-list-gallery{grid-auto-flow:row;align-items:start}
.gmr-related-post .list-gallery.related-gallery{grid-column:auto!important;grid-row:auto!important}

/* Keep native and custom share actions aligned in a single compact row on mobile. */
.gmcm-share-row>.table-row{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px;width:100%}
.gmcm-share-row>.table-row>.table-cell{display:block!important;float:none!important;width:auto!important;min-width:0;padding:0!important}
.gmcm-share-row .gmr-content-share{flex:1 1 auto;min-width:0}
.gmcm-share-row .gmr-socialicon-share{display:flex!important;align-items:center;justify-content:flex-start!important;flex-wrap:nowrap!important;float:none!important;width:100%;min-width:0;gap:4px;margin:0!important;padding:0!important;white-space:nowrap}
.gmr-content-share .gmr-socialicon-share>li.pin{display:none!important}
.gmcm-share-row .gmr-socialicon-share>li{display:flex!important;flex:0 0 36px;width:36px!important;min-width:36px;height:40px;float:none!important;align-items:center;justify-content:center;margin:0!important;padding:0!important;list-style:none}
.gmcm-post-nav--single{grid-template-columns:minmax(0,1fr)}
.gmcm-share-row .gmr-socialicon-share>li>a,.gmcm-share-row .gmcm-social-feature .gmcm-action-button{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;min-width:36px;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important;border:0!important;border-radius:6px!important;background:#f1f2f4!important;color:var(--gm-blue,#014898)!important;box-shadow:none!important}
.gmcm-share-row .gmr-socialicon-share>li>a svg,.gmcm-share-row .gmcm-social-feature .gmcm-action-button svg{width:20px;height:20px;flex:0 0 20px}
.gmcm-share-row .gmcm-social-feature .gmcm-action-label,.gmcm-share-row .gmcm-social-feature .gmcm-story-button span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:360px){.gmcm-share-row>.table-row{gap:4px}.gmcm-share-row .gmr-socialicon-share{gap:2px}.gmcm-share-row .gmr-socialicon-share>li,.gmcm-share-row .gmr-socialicon-share>li>a,.gmcm-share-row .gmcm-social-feature .gmcm-action-button{flex-basis:32px;width:32px!important;min-width:32px;height:36px!important;min-height:36px!important}.gmcm-share-row .gmr-socialicon-share>li>a svg,.gmcm-share-row .gmcm-social-feature .gmcm-action-button svg{width:18px;height:18px;flex-basis:18px}}
