In an attempt to customize my site's layout, I experimented with overriding the @media query using child CSS and the customization CSS function within the WP interface.
Below, I've included a snippet of code that I discovered in the parent CSS file:
@media only screen and (max-width: 1280px){
.content-both-sidebars .content-area{float:none !important;width:100% !important;left:auto !important;border-width:0 !important}
.content-both-sidebars:not(.separate-layout) .content-area{padding:0 !important;margin-bottom:40px}
.content-both-sidebars .widget-area.sidebar-primary,.content-both-sidebars .widget-area.sidebar-secondary{float:left;width:49% !important; left:auto !important; padding:0 !important}
.content-both-sidebars .widget-area.sidebar-primary{float:right}
.content-both-sidebars:not(.separate-layout) .widget-area.sidebar-primary,.content-both-sidebars:not(.separate-layout) .widget-area.sidebar-secondary{width:48% !important}
.separate-layout.content-both-sidebars .content-area{margin-bottom:20px}
.separate-layout.content-both-sidebars .widget-area.sidebar-primary,.separate-layout.content-both-sidebars .widget-area.sidebar-secondary{width:49% !important}
.separate-layout.content-both-sidebars .widget-area.sidebar-secondary{margin-bottom:20px}
.separate-layout.content-both-sidebars .widget-area.sidebar-primary{padding-left:0}
}
@media only screen and (max-width: 1080px){
.content-both-sidebars .content-area{float:none !important;width:100% !important;left:auto !important;border-width:0 !important}
.content-both-sidebars:not(.separate-layout) .content-area{padding:0 !important;margin-bottom:40px}
.content-both-sidebars .widget-area.sidebar-primary,.content-both-sidebars .widget-area.sidebar-secondary{float:left;width:49% !important; left:auto !important; padding:0 !important}
.content-both-sidebars .widget-area.sidebar-primary{float:right}
.content-both-sidebars:not(.separate-layout) .widget-area.sidebar-primary,.content-both-sidebars:not(.separate-layout) .widget-area.sidebar-secondary{width:48% !important}
.separate-layout.content-both-sidebars .content-area{margin-bottom:20px}
.separate-layout.content-both-sidebars .widget-area.sidebar-primary,.separate-layout.content-both-sidebars .widget-area.sidebar-secondary{width:49% !important}
.separate-layout.content-both-sidebars .widget-area.sidebar-secondary{margin-bottom:20px}
.separate-layout.content-both-sidebars .widget-area.sidebar-primary{padding-left:0}
}
My objective is to override the first @media query (max-width: 1280px) and have the second one take precedence. Although I managed to achieve this by editing the parent CSS file directly, I am having difficulty replicating the same result when working with a child theme or utilizing the CSS customization feature in the WP interface.
Any assistance would be greatly appreciated! Please advise.