.has-gallery{display:flex}
#cat-flags{padding:0 10px;background-color:var(--light-blue);color:#fff}
#cat-flags ul{display:grid;gap:1em}
#cat-flags p{margin:0 0 20px;padding-bottom:7px;border-bottom:1px solid #fff}
#cat-flags a{color:#fff;text-decoration:none;display:block}
#cat-flags .current-menu-item a{pointer-events:none;font-weight:700}
#cat-flags .current-menu-item a:after{content:'\16B2';margin-left:3px}
.entry-content .links{margin-top:2em;text-align:center}
.gallery-flags{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));margin-bottom:4em;text-align: center;}
@media screen and (max-width: 767px) {
.has-gallery{flex-direction:column-reverse}
aside{margin-top:1em}
.gallery-menu-toggle{margin-left:auto;display:block}
.gallery-menu-toggle span{width:12px;display:inline-block;margin-left:10px;transition:all .3s ease-in-out}
.gallery-menu-toggle.active span{transform:scaleY(-1)}
#cat-flags{margin-top:1em;max-height:0;overflow:hidden;transition:all .3s ease-in-out}
#cat-flags.is-open{max-height:1000px;padding:10px}
}
@media screen and (min-width: 768px) {
.gallery-menu-toggle{display:none}
main{flex:1 1 auto}
.has-gallery{gap:20px;justify-content:space-between}
aside{margin-top:2em;flex:0 0 200px}

#cat-flags{padding:1em}
}
@media screen and (min-width: 1024px) {
aside{margin-top:3em;flex:0 0 300px}
}