/*
 * PERSONE DESIGN - Bootstrap 3 look on Bootstrap 5.3 (bs5-compat.css)
 *
 * Load order on Bootstrap 5 pages (same slot the Bootstrap 3 CSS used to have):
 *   1. /vendor/bootstrap/5.3.9/css/bootstrap.min.css
 *   2. /css/bs5-compat.css   <- this file
 *   3. /css/styles.css       (unchanged; still wins over everything above)
 *
 * Purpose: Bootstrap 5 provides the grid, utilities and JavaScript (collapse, carousel, modal).
 * This file restores the Bootstrap 3.3.5 (+ bootstrap-theme) metrics and component looks that
 * styles.css was written against, so the upgrade does not change the visual presentation.
 * Rules are ported from Bootstrap 3.3.5 (MIT, (c) Twitter, Inc.); ".in" became ".show" for Bootstrap 5 JS.
 * Only include this file on pages that load Bootstrap 5. Do not load it next to Bootstrap 3.
 */

/* ---------- Base / type (BS3 scaffolding.less + type.less) ---------- */
:root { scroll-behavior: auto; } /* BS5 turns on smooth scrolling; BS3 jumped. "Back to Top" keeps jumping. */

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.42857143;
	color: #333;
	background-color: #fff;
}

h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; }
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; padding-left: 40px; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
b, strong { font-weight: 700; }
small { font-size: 85%; }

a { color: #337ab7; text-decoration: none; }
a:hover, a:focus { color: #23527c; text-decoration: underline; }
a:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; }

hr {
	box-sizing: content-box;
	height: 0;
	margin-top: 20px;
	margin-bottom: 20px;
	color: gray;
	border: 0;
	border-top: 1px solid #eee;
	opacity: 1;
}

img { vertical-align: middle; }

/* Forms base (BS3 normalize + forms.less; BS5 reboot differs slightly) */
button, input, optgroup, select, textarea { margin: 0; font: inherit; color: inherit; }
button { overflow: visible; }
button, select { text-transform: none; }
button, input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; }
input { line-height: normal; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700; }

/* Blockquote (BS5 only gives it a bottom margin) */
blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eee; }
blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; }
blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #777; }
blockquote footer::before, blockquote small::before, blockquote .small::before { content: '\2014 \00A0'; }

/* BS3 class kept in the markup: styles.css gives .img-fluid extra margins, so carousel images keep this one */
.img-responsive { display: block; max-width: 100%; height: auto; }

/* BS3 clearfix (also stops the first child's top margin collapsing through these boxes, as in BS3) */
.clearfix::before, .clearfix::after,
.container::before, .container::after,
.container-fluid::before, .container-fluid::after,
.navbar::before, .navbar::after,
.navbar-header::before, .navbar-header::after,
.navbar-collapse::before, .navbar-collapse::after,
.nav::before, .nav::after { display: table; content: " "; }
.clearfix::after, .container::after, .container-fluid::after, .navbar::after,
.navbar-header::after, .navbar-collapse::after, .nav::after { clear: both; }

/* ---------- Grid: BS3 container widths and 30px gutters ---------- */
.container, .container-fluid, .row { --bs-gutter-x: 30px; }
.container { max-width: none; }                                  /* BS3 used fixed widths, no 576px step, no 1320px step */
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

/* ---------- Nav / navbar (BS3 navs.less + navbar.less + theme) ---------- */
/* Undo BS5's flex navbar so the BS3 float layout below applies */
.nav, .navbar-nav { display: block; flex-direction: row; flex-wrap: nowrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.navbar { display: block; flex-wrap: nowrap; align-items: normal; justify-content: normal; padding: 0; }
.navbar > .container, .navbar > .container-fluid { display: block; flex-wrap: nowrap; align-items: normal; justify-content: normal; }
.navbar-collapse { flex-basis: auto; flex-grow: 0; align-items: normal; }

.nav > li { position: relative; display: block; }
.nav > li > a { position: relative; display: block; padding: 10px 15px; }
.nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eee; }

.navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; }
@media (min-width: 768px) { .navbar { border-radius: 4px; } }
@media (min-width: 768px) { .navbar-header { float: left; } }

.navbar-collapse {
	padding-right: 15px;
	padding-left: 15px;
	overflow-x: visible;
	-webkit-overflow-scrolling: touch;
	border-top: 1px solid transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.navbar-collapse.show { overflow-y: auto; }
@media (min-width: 768px) {
	.navbar-collapse { width: auto; border-top: 0; box-shadow: none; }
	.navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; }
	.navbar-collapse.show { overflow-y: visible; }
	.navbar-fixed-top .navbar-collapse { padding-right: 0; padding-left: 0; }
}

.container > .navbar-header, .container-fluid > .navbar-header,
.container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; }
@media (min-width: 768px) {
	.container > .navbar-header, .container-fluid > .navbar-header,
	.container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; }
}

.navbar-fixed-top .navbar-collapse { max-height: 340px; }
@media (max-device-width: 480px) and (orientation: landscape) { .navbar-fixed-top .navbar-collapse { max-height: 200px; } }
.navbar-fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; border-width: 0 0 1px; border-radius: 0; }

.navbar-brand {
	float: left;
	height: 50px;
	padding: 15px 15px;
	margin-right: 0;
	font-size: 18px;
	line-height: 20px;
	white-space: normal;
	text-decoration: none;
}
.navbar-brand:hover, .navbar-brand:focus { text-decoration: none; }
.navbar-brand > img { display: block; }
@media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } }

.navbar-toggle {
	position: relative;
	float: right;
	padding: 9px 10px;
	margin-top: 8px;
	margin-right: 15px;
	margin-bottom: 8px;
	background-color: transparent;
	background-image: none;
	border: 1px solid transparent;
	border-radius: 4px;
}
.navbar-toggle:focus { outline: 0; }
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
@media (min-width: 768px) { .navbar-toggle { display: none; } }

.navbar-nav { margin: 7.5px -15px; }
.navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
@media (min-width: 768px) {
	.navbar-nav { float: left; margin: 0; }
	.navbar-nav > li { float: left; }
	.navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; }
	.navbar-right { float: right !important; margin-right: -15px; }
	.navbar-right ~ .navbar-right { margin-right: 0; }
}

.navbar-default { background-color: #f8f8f8; border-color: #e7e7e7; }
.navbar-default .navbar-brand { color: #777; }
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; }
.navbar-default .navbar-nav > li > a { color: #777; }
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333; background-color: transparent; }
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus { color: #555; background-color: #e7e7e7; }
.navbar-default .navbar-toggle { border-color: #ddd; }
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #ddd; }
.navbar-default .navbar-toggle .icon-bar { background-color: #888; }
.navbar-default .navbar-collapse { border-color: #e7e7e7; }

/* bootstrap-theme.css (3.3.5) navbar */
.navbar-default {
	background-image: linear-gradient(to bottom, #fff 0, #f8f8f8 100%);
	background-repeat: repeat-x;
	border-radius: 4px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
}
.navbar-fixed-top { border-radius: 0; }
.navbar-default .navbar-nav > .active > a {
	background-image: linear-gradient(to bottom, #dbdbdb 0, #e2e2e2 100%);
	background-repeat: repeat-x;
	box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
}
.navbar-brand, .navbar-nav > li > a { text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }

/* ---------- Carousel (BS3 carousel.less; works with BS5 .carousel-item / data-bs-*) ---------- */
.carousel-inner > .carousel-item > img,
.carousel-inner > .carousel-item > a > img { line-height: 1; }

/* Scoped to the BS3-style .left/.right controls: bs5-lightbox also puts a bare .carousel-control class on its
   own (BS5) arrows, and an unscoped "left: 0" here pulled the lightbox's Next arrow into the middle of the image.
   :where() keeps the specificity of plain .carousel-control, so styles.css (width: 10%) still wins as in BS3. */
.carousel-control:where(.left, .right) {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 15%;
	font-size: 20px;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
	opacity: .5;
}
.carousel-control.left {
	background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .0001) 100%);
	background-repeat: repeat-x;
}
.carousel-control.right {
	right: 0;
	left: auto;
	background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .5) 100%);
	background-repeat: repeat-x;
}
.carousel-control:where(.left, .right):hover, .carousel-control:where(.left, .right):focus { color: #fff; text-decoration: none; outline: 0; opacity: .9; }

/* Glyphicon chevrons, redrawn as inline SVG (same glyph outlines, 1em box, baseline at .8em) */
.carousel-control .pd-chevron {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	fill: currentColor;
	overflow: visible;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}
.carousel-control .pd-chevron-left { left: 50%; margin-left: -10px; }
.carousel-control .pd-chevron-right { right: 50%; margin-right: -10px; }
@media screen and (min-width: 768px) {
	.carousel-control .pd-chevron { width: 30px; height: 30px; margin-top: -15px; }
	.carousel-control .pd-chevron-left { margin-left: -15px; }
	.carousel-control .pd-chevron-right { margin-right: -15px; }
}

/* Indicators: BS3 circles instead of BS5 bars */
.carousel-indicators {
	position: absolute;
	right: auto;
	bottom: 10px;
	left: 50%;
	z-index: 15;
	display: block;
	width: 60%;
	padding-left: 0;
	margin: 0 0 10px -30%;
	text-align: center;
	list-style: none;
}
.carousel-indicators [data-bs-target] {
	box-sizing: border-box;
	display: inline-block;
	flex: none;
	width: 10px;
	height: 10px;
	padding: 0;
	margin: 1px;
	text-indent: -999px;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0);
	background-clip: border-box;
	border: 1px solid #fff;
	border-radius: 10px;
	opacity: 1;
	transition: none;
}
.carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #fff; }

.carousel-caption {
	position: absolute;
	right: 15%;
	bottom: 20px;
	left: 15%;
	z-index: 10;
	padding-top: 20px;
	padding-bottom: 20px;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.carousel-caption .btn { text-shadow: none; }
@media screen and (min-width: 768px) {
	.carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; }
	.carousel-indicators { bottom: 20px; }
}

/* ---------- Jumbotron (removed in BS5) ---------- */
.jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #eee; }
.jumbotron h1, .jumbotron .h1 { color: inherit; }
.jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; }
.jumbotron > hr { border-top-color: #d5d5d5; }
.container .jumbotron, .container-fluid .jumbotron { border-radius: 6px; }
.jumbotron .container { max-width: 100%; }
@media screen and (min-width: 768px) {
	.jumbotron { padding-top: 48px; padding-bottom: 48px; }
	.container .jumbotron, .container-fluid .jumbotron { padding-right: 60px; padding-left: 60px; }
	.jumbotron h1, .jumbotron .h1 { font-size: 63px; }
}

/* ---------- Wells (removed in BS5; styles.css restyles colour and radius on top of these) ---------- */
.well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); }
.well blockquote { border-color: rgba(0, 0, 0, .15); }
.well-lg { padding: 24px; border-radius: 6px; }
.well-sm { padding: 9px; border-radius: 3px; }
/* bootstrap-theme.css (3.3.5) */
.well {
	background-image: linear-gradient(to bottom, #e8e8e8 0, #f5f5f5 100%);
	background-repeat: repeat-x;
	border-color: #dcdcdc;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
}

/* ---------- Buttons (BS3 buttons.less + theme) ---------- */
/* BS5 draws .btn from --bs-btn-* variables. They are reset to BS3 values here, so BS5-only variants that BS3 did not
   have (btn-secondary, btn-dark, btn-light, ...) fall back to a plain BS3 .btn, which is what styles.css restyles. */
.btn {
	--bs-btn-padding-x: 12px;
	--bs-btn-padding-y: 6px;
	--bs-btn-font-family: inherit;
	--bs-btn-font-size: 14px;
	--bs-btn-font-weight: 400;
	--bs-btn-line-height: 1.42857143;
	--bs-btn-color: #333;
	--bs-btn-bg: transparent;
	--bs-btn-border-width: 1px;
	--bs-btn-border-color: transparent;
	--bs-btn-border-radius: 4px;
	--bs-btn-hover-color: #333;
	--bs-btn-hover-bg: transparent;
	--bs-btn-hover-border-color: transparent;
	--bs-btn-active-color: #333;
	--bs-btn-active-bg: transparent;
	--bs-btn-active-border-color: transparent;
	--bs-btn-disabled-color: #333;
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: transparent;
	--bs-btn-disabled-opacity: .65;
	--bs-btn-box-shadow: none;
	--bs-btn-focus-box-shadow: none;
	white-space: nowrap;
	touch-action: manipulation;
	background-image: none;
	transition: none;
}
.btn:focus, .btn.focus, .btn:active:focus, .btn.active:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; }
.btn:active, .btn.active { background-image: none; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); }
.btn-default {
	--bs-btn-color: #333; --bs-btn-bg: #fff; --bs-btn-border-color: #ccc;
	--bs-btn-hover-color: #333; --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad;
	--bs-btn-active-color: #333; --bs-btn-active-bg: #e6e6e6; --bs-btn-active-border-color: #adadad;
	--bs-btn-disabled-color: #333; --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: #ccc;
}
.btn-primary {
	--bs-btn-color: #fff; --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4;
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74;
	--bs-btn-active-color: #fff; --bs-btn-active-bg: #286090; --bs-btn-active-border-color: #204d74;
	--bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #337ab7; --bs-btn-disabled-border-color: #2e6da4;
}
/* BS3 also coloured .btn-primary without .btn (the site uses <a class="btn-primary">) */
.btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; }
.btn-lg { --bs-btn-padding-y: 10px; --bs-btn-padding-x: 16px; --bs-btn-font-size: 18px; --bs-btn-line-height: 1.3333333; --bs-btn-border-radius: 6px; }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: 5px; }
/* bootstrap-theme.css (3.3.5) */
.btn-default, .btn-primary { text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); }
.btn-default:active, .btn-default.active, .btn-primary:active, .btn-primary.active { box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); }
.btn-default { text-shadow: 0 1px 0 #fff; background-image: linear-gradient(to bottom, #fff 0, #e0e0e0 100%); background-repeat: repeat-x; border-color: #ccc; }
.btn-default:hover, .btn-default:focus { background-color: #e0e0e0; background-position: 0 -15px; }
.btn-primary { background-image: linear-gradient(to bottom, #337ab7 0, #265a88 100%); background-repeat: repeat-x; border-color: #245580; }
.btn-primary:hover, .btn-primary:focus { background-color: #265a88; background-position: 0 -15px; }

/* ---------- BS3 utilities removed in BS5 (kept last, as in BS3's utilities.less) ---------- */
.text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; }

/* ---------- Site additions on BS5 components ---------- */
/* Lightbox arrows (bs5-lightbox): drawn exactly like the site's page-carousel (slider/jumbotron) arrows, so arrows are
   consistent everywhere: the bold Glyphicon chevron in white at 50% opacity (reads as grey on the artwork), with
   the same soft drop shadow and edge shading, 30px from 768px up and 20px below, and 90% opacity on hover/focus.
   The icon stays centred in the unchanged 10%-wide control, so alignment and click areas do not move. */
.lightbox .carousel-control-prev,
.lightbox .carousel-control-next { opacity: .5; }
/* same edge shading as the page carousel (styles.css .carousel-control.left/.right), which is what keeps the
   white chevron readable on light artwork.
   The lightbox controls are 75% of the image height (h-75), so the shading is drawn on a pseudo-element stretched
   to the full image height (1/6 of the control's height above and below); the click area itself is unchanged. */
.lightbox .carousel-control-prev::before,
.lightbox .carousel-control-next::before { content: ""; position: absolute; left: 0; right: 0; top: -16.6667%; bottom: -16.6667%; z-index: -1; pointer-events: none; }
.lightbox .carousel-control-prev::before { background-image: linear-gradient(to right, rgba(0, 0, 0, .25) 0, rgba(0, 0, 0, .0001) 100%); }
.lightbox .carousel-control-next::before { background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .25) 100%); }
.lightbox .carousel-control-prev:hover, .lightbox .carousel-control-next:hover,
.lightbox .carousel-control-prev:focus, .lightbox .carousel-control-next:focus { opacity: .9; }
.lightbox .carousel-control-prev-icon,
.lightbox .carousel-control-next-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	max-width: 100%;
	background-size: 100% 100%;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}
@media screen and (min-width: 768px) {
	.lightbox .carousel-control-prev-icon, .lightbox .carousel-control-next-icon { width: 30px; height: 30px; }
}
.lightbox .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -150 1200 1200' fill='%23fff'%3e%3cpath transform='translate(0 960) scale(1 -1)' d='M885 900l-352 -353l352 -353l-197 -198l-552 552l552 550z'/%3e%3c/svg%3e"); }
.lightbox .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -150 1200 1200' fill='%23fff'%3e%3cpath transform='translate(0 960) scale(1 -1)' d='M1064 547l-551 -551l-198 198l353 353l-353 353l198 198z'/%3e%3c/svg%3e"); }
/* Keyboard focus only (never at rest): BS5 removes the outline, so show a ring that reads on any artwork. */
.lightbox .carousel-control-prev:focus-visible .carousel-control-prev-icon,
.lightbox .carousel-control-next:focus-visible .carousel-control-next-icon {
	border-radius: 50%;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

/* Grid: BS5 pads every direct child of .row (.row > *). BS3 only padded .col-* columns, so non-column children
   (e.g. .portfolio_sub_links on portfolio pages) sit flush with the row as before. */
.row > :where(:not([class*="col-"])) { padding-left: 0; padding-right: 0; }
/* BS3 gave every column min-height:1px, so empty spacer columns (e.g. blog side columns) still take a line. */
[class*="col-"] { min-height: 1px; }

/* Lightbox: centre in the full window. styles.css gives every .modal 60px of top padding (meant for the Contact
   pop-up), which pushed the lightbox ~30px below centre while the dimming covered the whole screen.
   .modal.lightbox outranks styles.css's .modal, so only the lightbox changes; Contact keeps its spacing. */
.modal.lightbox { padding-top: 0; }

/* ---------- BS3 thumbnail (removed in BS5; used by blog image strips) ---------- */
.thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; transition: border .2s ease-in-out; box-shadow: 0 1px 2px rgba(0, 0, 0, .075); }
.thumbnail > img, .thumbnail a > img { display: block; max-width: 100%; height: auto; margin-right: auto; margin-left: auto; }
a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #337ab7; }

/* ---------- BS3 column push/pull (BS5 has none). The migration renames the tier like other column classes
   (BS3 sm -> md, md -> lg), so the breakpoints are unchanged. ---------- */
.col-push-0 { position: relative; left: auto; }
.col-pull-0 { position: relative; right: auto; }
.col-push-1 { position: relative; left: 8.33333333%; }
.col-pull-1 { position: relative; right: 8.33333333%; }
.col-push-2 { position: relative; left: 16.66666667%; }
.col-pull-2 { position: relative; right: 16.66666667%; }
.col-push-3 { position: relative; left: 25%; }
.col-pull-3 { position: relative; right: 25%; }
.col-push-4 { position: relative; left: 33.33333333%; }
.col-pull-4 { position: relative; right: 33.33333333%; }
.col-push-5 { position: relative; left: 41.66666667%; }
.col-pull-5 { position: relative; right: 41.66666667%; }
.col-push-6 { position: relative; left: 50%; }
.col-pull-6 { position: relative; right: 50%; }
.col-push-7 { position: relative; left: 58.33333333%; }
.col-pull-7 { position: relative; right: 58.33333333%; }
.col-push-8 { position: relative; left: 66.66666667%; }
.col-pull-8 { position: relative; right: 66.66666667%; }
.col-push-9 { position: relative; left: 75%; }
.col-pull-9 { position: relative; right: 75%; }
.col-push-10 { position: relative; left: 83.33333333%; }
.col-pull-10 { position: relative; right: 83.33333333%; }
.col-push-11 { position: relative; left: 91.66666667%; }
.col-pull-11 { position: relative; right: 91.66666667%; }
.col-push-12 { position: relative; left: 100%; }
.col-pull-12 { position: relative; right: 100%; }
@media (min-width: 768px) {
	.col-md-push-0 { position: relative; left: auto; }
	.col-md-pull-0 { position: relative; right: auto; }
	.col-md-push-1 { position: relative; left: 8.33333333%; }
	.col-md-pull-1 { position: relative; right: 8.33333333%; }
	.col-md-push-2 { position: relative; left: 16.66666667%; }
	.col-md-pull-2 { position: relative; right: 16.66666667%; }
	.col-md-push-3 { position: relative; left: 25%; }
	.col-md-pull-3 { position: relative; right: 25%; }
	.col-md-push-4 { position: relative; left: 33.33333333%; }
	.col-md-pull-4 { position: relative; right: 33.33333333%; }
	.col-md-push-5 { position: relative; left: 41.66666667%; }
	.col-md-pull-5 { position: relative; right: 41.66666667%; }
	.col-md-push-6 { position: relative; left: 50%; }
	.col-md-pull-6 { position: relative; right: 50%; }
	.col-md-push-7 { position: relative; left: 58.33333333%; }
	.col-md-pull-7 { position: relative; right: 58.33333333%; }
	.col-md-push-8 { position: relative; left: 66.66666667%; }
	.col-md-pull-8 { position: relative; right: 66.66666667%; }
	.col-md-push-9 { position: relative; left: 75%; }
	.col-md-pull-9 { position: relative; right: 75%; }
	.col-md-push-10 { position: relative; left: 83.33333333%; }
	.col-md-pull-10 { position: relative; right: 83.33333333%; }
	.col-md-push-11 { position: relative; left: 91.66666667%; }
	.col-md-pull-11 { position: relative; right: 91.66666667%; }
	.col-md-push-12 { position: relative; left: 100%; }
	.col-md-pull-12 { position: relative; right: 100%; }
}
@media (min-width: 992px) {
	.col-lg-push-0 { position: relative; left: auto; }
	.col-lg-pull-0 { position: relative; right: auto; }
	.col-lg-push-1 { position: relative; left: 8.33333333%; }
	.col-lg-pull-1 { position: relative; right: 8.33333333%; }
	.col-lg-push-2 { position: relative; left: 16.66666667%; }
	.col-lg-pull-2 { position: relative; right: 16.66666667%; }
	.col-lg-push-3 { position: relative; left: 25%; }
	.col-lg-pull-3 { position: relative; right: 25%; }
	.col-lg-push-4 { position: relative; left: 33.33333333%; }
	.col-lg-pull-4 { position: relative; right: 33.33333333%; }
	.col-lg-push-5 { position: relative; left: 41.66666667%; }
	.col-lg-pull-5 { position: relative; right: 41.66666667%; }
	.col-lg-push-6 { position: relative; left: 50%; }
	.col-lg-pull-6 { position: relative; right: 50%; }
	.col-lg-push-7 { position: relative; left: 58.33333333%; }
	.col-lg-pull-7 { position: relative; right: 58.33333333%; }
	.col-lg-push-8 { position: relative; left: 66.66666667%; }
	.col-lg-pull-8 { position: relative; right: 66.66666667%; }
	.col-lg-push-9 { position: relative; left: 75%; }
	.col-lg-pull-9 { position: relative; right: 75%; }
	.col-lg-push-10 { position: relative; left: 83.33333333%; }
	.col-lg-pull-10 { position: relative; right: 83.33333333%; }
	.col-lg-push-11 { position: relative; left: 91.66666667%; }
	.col-lg-pull-11 { position: relative; right: 91.66666667%; }
	.col-lg-push-12 { position: relative; left: 100%; }
	.col-lg-pull-12 { position: relative; right: 100%; }
}
@media (min-width: 1200px) {
	.col-xl-push-0 { position: relative; left: auto; }
	.col-xl-pull-0 { position: relative; right: auto; }
	.col-xl-push-1 { position: relative; left: 8.33333333%; }
	.col-xl-pull-1 { position: relative; right: 8.33333333%; }
	.col-xl-push-2 { position: relative; left: 16.66666667%; }
	.col-xl-pull-2 { position: relative; right: 16.66666667%; }
	.col-xl-push-3 { position: relative; left: 25%; }
	.col-xl-pull-3 { position: relative; right: 25%; }
	.col-xl-push-4 { position: relative; left: 33.33333333%; }
	.col-xl-pull-4 { position: relative; right: 33.33333333%; }
	.col-xl-push-5 { position: relative; left: 41.66666667%; }
	.col-xl-pull-5 { position: relative; right: 41.66666667%; }
	.col-xl-push-6 { position: relative; left: 50%; }
	.col-xl-pull-6 { position: relative; right: 50%; }
	.col-xl-push-7 { position: relative; left: 58.33333333%; }
	.col-xl-pull-7 { position: relative; right: 58.33333333%; }
	.col-xl-push-8 { position: relative; left: 66.66666667%; }
	.col-xl-pull-8 { position: relative; right: 66.66666667%; }
	.col-xl-push-9 { position: relative; left: 75%; }
	.col-xl-pull-9 { position: relative; right: 75%; }
	.col-xl-push-10 { position: relative; left: 83.33333333%; }
	.col-xl-pull-10 { position: relative; right: 83.33333333%; }
	.col-xl-push-11 { position: relative; left: 91.66666667%; }
	.col-xl-pull-11 { position: relative; right: 91.66666667%; }
	.col-xl-push-12 { position: relative; left: 100%; }
	.col-xl-pull-12 { position: relative; right: 100%; }
}

/* ---------- Grid: Bootstrap 3 float layout (sitewide rollout) ----------
   BS5 rows are flexbox. Many pages put <br>, <hr>, loose text or extra blocks straight inside .row, or put columns
   outside any .row (e.g. careers.html). Under flexbox those collapse or stretch differently, so rows go back to BS3's
   block + clearfix layout and columns float exactly where BS3 floated them (base always; md/lg/xl from their breakpoint).
   BS5's column width/offset classes still set the widths. */
.row { display: block; flex-wrap: nowrap; } /* nowrap: styles.css makes rows flex columns below 768px; BS3 rows never wrapped */
.row::before, .row::after { display: table; content: " "; }
.row::after { clear: both; }
/* BS5 gives every direct child of .row width:100%; BS3 left non-column children (images, links) at their natural width. */
.row > :where(:not([class*="col-"])) { width: auto; }
/* ...and max-width:100%, which BS3 did not (e.g. a fixed-width note or a nested .row); responsive images keep theirs. */
.row > :where(:not([class*="col-"]):not(.img-responsive):not(.img-fluid)) { max-width: none; }
/* ...and margin-top:0 (.row > * { margin-top: var(--bs-gutter-y) }). Restore the top margins these elements had on the
   BS3 site (BS3 base + styles.css element rules); class rules in styles.css still win, as before. */
.row > :where(h1) { margin-top: 25px; }
.row > :where(h2) { margin-top: 30px; }
.row > :where(h4) { margin-top: 5px; }
.row > :where(h5, h6) { margin-top: 10px; }
.row > :where(hr) { margin-top: 1.5em; }
:is(.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12) { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; }
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { float: left; }
@media (min-width: 768px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } }
@media (min-width: 992px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } }
@media (min-width: 1200px) { .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 { float: left; } }

/* BS3 .btn-lg sized links on its own (the site uses <a class="btn-primary btn-lg">, without .btn). BS5's .btn-lg only
   sets variables that .btn reads, so restore the BS3 declarations for the no-.btn case. */
.btn-lg:where(:not(.btn)) { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; }

/* Links without href (<a name="...">): BS5's reboot gives them color:inherit. BS3 coloured them like any link, and several
   portfolio pages have unclosed <a name> anchors wrapping content, so restore the site's link colours (styles.css:
   a #666688, a:hover #000) and BS3's hover underline. */
a:not([href]):not([class]) { color: #666688; }
a:not([href]):not([class]):hover { color: #000; text-decoration: underline; }

/* <hr>: BS3 only set top/bottom margins, leaving the browser's auto side margins; BS5's reboot sets them to 0. Same result
   in normal flow, but inside styles.css's mobile flex rows an auto-margin <hr> shrank to nothing (invisible), as on the BS3 site. */
hr { margin-right: auto; margin-left: auto; }

/* ---------- Contact modal + form (Bootstrap 3.3.5 modals.less / forms.less / close.less) ----------
   Scoped to non-lightbox modals so the gallery lightbox keeps its reviewed Bootstrap 5 framing.
   styles.css restyles much of the contact modal on top of these, exactly as it did over Bootstrap 3. */
:where(.modal:not(.lightbox)) .modal-dialog { max-width: none; width: auto; margin: 10px; }
:where(.modal:not(.lightbox)).fade .modal-dialog { transform: translate(0, -25%); transition: transform .3s ease-out; }
:where(.modal:not(.lightbox)).show .modal-dialog { transform: none; }
:where(.modal:not(.lightbox)) .modal-content { display: block; color: inherit; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; box-shadow: 0 3px 9px rgba(0, 0, 0, .5); }
:where(.modal:not(.lightbox)) .modal-header { display: block; min-height: 16.43px; padding: 15px; border-bottom: 1px solid #e5e5e5; border-radius: 0; }
:where(.modal:not(.lightbox)) .modal-header .close { margin-top: -2px; }
:where(.modal:not(.lightbox)) .modal-title { margin: 0; line-height: 1.42857143; }
:where(.modal:not(.lightbox)) .modal-body { padding: 15px; }
:where(.modal:not(.lightbox)) .modal-footer { display: block; padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; border-radius: 0; }
:where(.modal:not(.lightbox)) .modal-footer > * { margin: 0; }
:where(.modal:not(.lightbox)) .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; }
@media (min-width: 768px) {
	:where(.modal:not(.lightbox)) .modal-dialog { width: 600px; margin: 30px auto; }
	:where(.modal:not(.lightbox)) .modal-content { box-shadow: 0 5px 15px rgba(0, 0, 0, .5); }
}
.close { float: right; font-size: 21px; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .2; }
.close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; opacity: .5; }
button.close { -webkit-appearance: none; appearance: none; padding: 0; cursor: pointer; background: transparent; border: 0; }
.form-group { margin-bottom: 15px; }
.form-control {
	display: block; width: 100%; height: 34px; min-height: 0; padding: 6px 12px; font-size: 14px; line-height: 1.42857143;
	color: #555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	-webkit-appearance: none; appearance: none;
}
.form-control:focus { color: #555; background-color: #fff; border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }
.form-control::placeholder { color: #999; opacity: 1; }
textarea.form-control { height: auto; min-height: 0; }
@media (prefers-reduced-motion: reduce) { :where(.modal:not(.lightbox)).fade .modal-dialog, .form-control { transition: none; } }

/* Contact modal: after a send only one footer button is visible (Close or Retry); centre it like Send. */
#contactForm .modal-footer .contact-form-status-btn { margin-left: auto; margin-right: auto; }
