/* Responsive polish (the theme's responsive mode was off on the old Joomla site) */

/* Always show the vertical scrollbar, so short pages (contact) do not shift sideways compared to long ones */
html{overflow-y:scroll}

@media (max-width:767px){
  /* No 50 px gap above the header on phones (theme margin on the page wrapper) */
  #sunfw-wrapper{margin-top:0}

  /* Homepage heading was desktop-sized */
  .articleBody h1,.item-page h1{font-size:24px;line-height:1.25}

  /* Footer as a centred flex column: copyright, "Всички права запазени", then the svweb.eu credit,
     each on its own row (the theme floats the right box right, which kept it at the edge) */
  #sunfw_section_content-bottom .row{display:flex;flex-direction:column;align-items:center}
  #sunfw_section_content-bottom .row>[class*="col-xs-"]{float:none;flex:0 0 auto;width:100%;max-width:100%}
  #sunfw_section_content-bottom .row>[class*="col-xs-"] *{float:none!important}
  #sunfw_section_content-bottom p{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:4px 0;text-align:center!important}
  #sunfw_section_content-bottom a[href*="svweb.eu"]{order:2;margin:4px 0 0!important}
}

@media (max-width:600px){
  /* Sidebars under the content: full width instead of two narrow columns */
  #column_column-6,#column_column-8{flex:0 0 100%;max-width:100%;width:100%!important}
  #column_column-6 .module-title,#column_column-8 .module-title{background-position:top center!important}
  #column_column-6 img,#column_column-8 img{max-width:100%;height:auto}
}
