/* Bootstrap supplies the grid only: its typography/Reboot is intentionally excluded.
   The original stylesheets remain authoritative for the desktop appearance. */
.site-container { padding-left:0; padding-right:0; max-width:none; }
.body_content.row { --bs-gutter-x:0; --bs-gutter-y:0; margin-left:0; margin-right:0; align-items:flex-start; }
.body_content.row > .left-div, .body_content.row > .right-div { box-sizing:content-box; padding-left:0; padding-right:0; }
.body_content.row > .cls { width:0; padding:0; }
.mobile-menu-toggle, .mobile-submenu-toggle { display:none; }
/* Keep the shared desktop menu's original sizing, independently of the gallery. */
.menu { position:relative; z-index:200; }
/* The old slider used fixed-size background slices, which cropped on phones. */
.responsive-banner-page .topbanner { width:100%; height:auto; aspect-ratio:auto; overflow:visible; }
.responsive-banner-page #slider1.responsive-banner { display:grid; width:100% !important; height:auto !important; min-height:0; margin:0; background:none; }
.responsive-banner img { grid-area:1 / 1; display:block; position:static; align-self:center; width:100%; max-width:100%; height:auto; opacity:0; transition:opacity .5s ease; }
.responsive-banner img:first-child, .responsive-banner img.is-active { opacity:1; }
.responsive-banner.is-ready img:not(.is-active) { opacity:0; }
.gallery-container { width:700px; max-width:100%; padding:0 15px; box-sizing:border-box; margin:0 auto; }
.gallery-container .row { --bs-gutter-x:30px; }
.gallery-container .thumbnail { display:block; padding:4px; margin-bottom:20px; line-height:1.42857143; background-color:#fff; border:1px solid #ddd; border-radius:4px; }
.gallery-container .thumbnail img { display:block; max-width:100%; height:auto; margin-left:auto; margin-right:auto; }
.gallery-container .thumbnail:hover { border-color:#337ab7; }
.gallery-page .ddsmoothmenu > ul { display:flex; }
.gallery-page .ddsmoothmenu > ul > li { flex:0 0 auto; }
.gallery-page .ddsmoothmenu > ul > li:last-child { flex:1; width:auto !important; }
.gallery-page .ddsmoothmenu > ul > li:last-child > a { padding-right:10px; }
@media (min-width:980px) { #smoothmenu1.collapse { display:block !important; height:auto !important; } }
@media (max-width:979px) {
  #warper { width:calc(100% - 24px); }
  .header { display:flex; align-items:center; }
  .logo { width:50%; }
  .logo img { max-width:100%; height:auto; }
  .title { width:50%; }
  .title img { box-sizing:border-box; padding:0 0 0 15px; max-width:100%; height:auto; }
  .topbanner { width:100%; height:auto; aspect-ratio:978/239; overflow:hidden; }
  #slider1 { width:100% !important; height:100% !important; }
  .topbanner img { max-width:100%; height:auto; }
  #warper > div > img[src="images/shadow.png"] { max-width:100%; height:auto; }
  .mobile-menu-toggle { display:block; width:100%; height:39px; padding:0 16px; border:0; text-align:left; font:14px Arial,Helvetica,sans-serif; color:#2b2b2b; background:#fce2be url(../images/menu.png) left top no-repeat; cursor:pointer; }
  #smoothmenu1.collapse:not(.show) { display:none; }
  #smoothmenu1.collapsing { height:0; overflow:hidden; transition:height .2s; }
  #smoothmenu1 > ul, .gallery-page #smoothmenu1 > ul { display:block; width:100%; background:#fce2be; }
  #smoothmenu1 ul li { display:block; float:none; width:100% !important; }
  #smoothmenu1 ul li a { box-sizing:border-box; width:100%; height:auto; min-height:39px; padding:13px 40px 10px 16px; background-image:none; border-right:0; border-bottom:1px dotted #d2b99b; }
  #smoothmenu1 ul li a.lastitem-selected, #smoothmenu1 ul li a[aria-current="page"] { background:#e31a10; color:#fff; }
  #smoothmenu1 a.firstitem, #smoothmenu1 a.firstitem-selected { font-size:0; }
  #smoothmenu1 a.firstitem::before, #smoothmenu1 a.firstitem-selected::before { content:'Home'; font-size:14px; }
  #smoothmenu1 ul li ul { display:none !important; position:static !important; width:100% !important; height:auto !important; opacity:1 !important; visibility:visible !important; background:#fce2be; }
  #smoothmenu1 li.mobile-submenu-open > ul { display:block !important; }
  #smoothmenu1 ul li ul a { padding-left:30px; }
  #smoothmenu1 ul li ul ul a { padding-left:45px; }
  .mobile-submenu-toggle { display:block; position:absolute; top:0; right:0; width:39px; height:39px; border:0; background:transparent; color:#2b2b2b; font-size:20px; cursor:pointer; }
  .body_content { background-size:100% auto; }
  .body_content .left-div { width:29%; }
  .body_content .right-div { width:68%; margin-left:1%; }
  .body_content img { max-width:100%; height:auto; }
  .left-div .member-para > form > div { width:100% !important; }
  .left-div .frmtext { box-sizing:border-box; width:calc(100% - 12px); }
  .left-div .member-para p { overflow-wrap:anywhere; }
  .body_content .right-div .services { width:31%; margin-left:2%; }
  .right-div .member-para2 img { max-width:calc(50% - 35px); }
  .right-div .client-logos { display:flex; flex-wrap:wrap; align-items:center; }
  .client-logos img { object-fit:contain; }
  .footer { height:auto; min-height:85px; }
  .footer .left { width:calc(100% - 40px); }
  .footer .left #menu { width:auto; max-width:100%; }
  .footer .right { max-width:100%; }
  .body_content iframe { max-width:100%; }
  .body_content table { max-width:100%; }
  #form form > div { max-width:calc(100% - 13px); }
  #form .fieldname, #form .field { float:none; width:100%; }
  #form .field input, #form .field textarea, #form .field select { box-sizing:border-box; max-width:100%; }
}
@media (max-width:767px) {
  .body_content { background:#fff; }
  .body_content.row > .left-div, .body_content.row > .right-div { width:100%; margin-left:0; }
  .body_content .right-div .services { width:210px; max-width:100%; margin-left:10px; }
  .body_content .member { max-width:100%; }
  .body_content .member-para1 { width:100%; }
  .left-div .frmtext { width:240px; max-width:calc(100% - 20px); }
  .fieldname, .field { float:none; width:100%; }
  .field input, .field textarea, .field select { box-sizing:border-box; max-width:100%; }
  .right-div .member-para2 img { max-width:calc(50% - 35px); }
  .footer .left { margin-left:10px; margin-right:10px; width:calc(100% - 20px); }
}
@media (prefers-reduced-motion:reduce) { #smoothmenu1.collapsing, .responsive-banner img { transition:none; } }

/* Consistent contact rows, without spacing characters. */
.member-para .quick-contact-list { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:0 8px; margin:0; padding:10px 0 0 10px; font:12px/20px Arial,Helvetica,sans-serif; color:#313131; }
.quick-contact-list dt, .quick-contact-list dd { margin:0; padding:0; font-weight:normal; line-height:20px; }
.quick-contact-list dt { display:flex; justify-content:space-between; gap:8px; white-space:nowrap; min-width:0; float:none; clear:none; }
.quick-contact-list dt::after { content:":"; }
.quick-contact-list dd { min-width:0; }
.quick-contact-list a { color:inherit; text-decoration:none; white-space:nowrap; }
.quick-contact-list a:hover { text-decoration:underline; }
@media (min-width:768px) and (max-width:979px) { .member-para .quick-contact-list { grid-template-columns:1fr; row-gap:0; } .quick-contact-list dt { justify-content:flex-start; } .quick-contact-list dd + dt { margin-top:6px; } }
