/*
Theme Name: Radiocon Reference
Description: Radiocon Infosystem reference website, packaged as a self-contained WordPress theme with an editable content dashboard.
Version: 1.0.2
Author: Radiocon Infosystem
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: radiocon-reference
*/
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { overflow-x: hidden; }
section[id], footer[id] { scroll-margin-top: 96px; }
.header .navbar-brand img { max-width: 260px; width: 260px; height: auto; }
.footer img { max-width: 222px; width: auto; height: auto; max-height: 45px; }
body.admin-bar .header.position-absolute, body.admin-bar .navbar-sticky.navbar-stuck { top: 32px; }
body:not(.home) .header { position: relative !important; background: #0b0f19; }
body:not(.home) .header.navbar-stuck { position: sticky !important; top: 0; }
body:not(.home).admin-bar .header.navbar-stuck { top: 32px; }
.rc-page-content { min-height: 45vh; padding-top: 64px; padding-bottom: 64px; }
.rc-page-content img { max-width: 100%; height: auto; }
.rc-page-content .alignwide { width: 100%; }
.rc-page-content .alignfull { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.rc-page-content a { overflow-wrap: anywhere; }
.rc-post-list { display: grid; gap: 24px; }
.rc-post-list article { padding: 24px; border: 1px solid var(--si-border-color); border-radius: 10px; }
.rc-skip-link { position: absolute; left: -9999px; top: 12px; z-index: 99999; background: #fff; color: #111827; padding: 12px 20px; border-radius: 8px; }
.rc-skip-link:focus { left: 12px; }
.btn-scroll-top { z-index: 1035; }
#category .card-img { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
#category .card-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
#client .swiper-wrapper { align-items: center; transition-timing-function: linear !important; }
#product .card-img-top { object-fit: contain; }
@media (max-width: 782px) { body.admin-bar .header.position-absolute, body.admin-bar .navbar-sticky.navbar-stuck, body:not(.home).admin-bar .header.navbar-stuck { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .navbar-sticky.navbar-stuck { top: 0; } .header .navbar-brand img { max-width: 160px; width: 160px; } .header .pe-lg-1 { margin-right: 12px !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Keep every category, product and news photograph visible without a slider. */
.rc-image-grid { display: grid; gap: 24px; align-items: start; }
.rc-image-item { min-width: 0; width: auto; }
#category .rc-image-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#product .rc-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#blog .rc-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#product .rc-image-item > a:first-child { display: block; }
#product .rc-image-item > a > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
#blog .card-img-top { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
#about .parallax { min-height: 320px; }
#about .parallax-layer:first-child { position: relative; }
@media (max-width: 991px) {
  #category .rc-image-grid, #product .rc-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  #category .rc-image-grid, #product .rc-image-grid, #blog .rc-image-grid { grid-template-columns: minmax(0, 1fr); }
  #about .parallax { min-height: 280px; }
}
