/*
 * Additions to the stylesheets of the old site (assets/pearl/).
 * Everything here replaces something a removed plugin used to provide.
 */

body { overflow-x: hidden; }

/* ---- page-builder grid: only the few rules the old layout relied on ------------------------- */
/* no negative side margins on .wpb_row: the sections already sit inside .row, which has them */
.wpb_row::before, .wpb_row::after, .vc_clearfix::before, .vc_clearfix::after { content: " "; display: table; }
.wpb_row::after, .vc_clearfix::after { clear: both; }
.vc_column_container { box-sizing: border-box; min-height: 1px; padding-left: 0; padding-right: 0; position: relative; width: 100%; }
.vc_column_container > .vc_column-inner { box-sizing: border-box; padding-left: 15px; padding-right: 15px; width: 100%; }
.vc_column-inner::before, .vc_column-inner::after { content: " "; display: table; }
.vc_column-inner::after { clear: both; }
@media (min-width: 768px) {
	.vc_col-sm-4, .vc_col-sm-6, .vc_col-sm-8, .vc_col-sm-12 { float: left; }
	.vc_col-sm-12 { width: 100%; }
	.vc_col-sm-8 { width: 66.66666667%; }
	.vc_col-sm-6 { width: 50%; }
	.vc_col-sm-4 { width: 33.33333333%; }
}
.wpb_content_element { margin-bottom: 35px; }
.wpb_single_image img { height: auto; max-width: 100%; vertical-align: top; }
.wpb_single_image.vc_align_right { text-align: right; }
.wpb_single_image .vc_figure { display: inline-block; margin: 0; max-width: 100%; vertical-align: top; }
.vc_empty_space_inner { display: block; }

/* per-section spacing that used to be stored in the page builder */
.vc_custom_1470773916369 { margin-top: -80px !important; padding-bottom: 0 !important; }
.vc_custom_1470773149042 { padding-top: 0 !important; }
.vc_custom_1475927036332 { margin-bottom: -80px !important; background-image: url(../../../uploads/2016/04/city-bg.jpg) !important; }
.vc_custom_1470774949223 { padding-bottom: 0 !important; }
.vc_custom_1470775059836 { padding-top: 0 !important; }
.vc_custom_1470775039623 { margin-bottom: -80px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.vc_custom_1470774771444 { padding-top: 0 !important; padding-bottom: 0 !important; }
.pearl-section-has-fill { background-position: center; background-size: cover; }
.pearl-section-has-fill.bg-fixed { background-attachment: fixed; }

/* sections that run edge to edge (the builder did this with a script).
   Below 768px the .row they sit in already spans the whole screen, so nothing to stretch;
   the content column keeps the width of .container (750 / 970 / 1200), like the old site. */
@media (min-width: 768px) {
	.mp-full-width { box-sizing: border-box; left: 50%; margin-left: -50vw !important; margin-right: 0 !important; position: relative; width: 100vw; }
	.mp-full-width:not(.mp-stretch) > .wpb_column { float: none; margin-left: auto; margin-right: auto; max-width: 750px; }
}
@media (min-width: 992px) { .mp-full-width:not(.mp-stretch) > .wpb_column { max-width: 970px; } }
@media (min-width: 1200px) { .mp-full-width:not(.mp-stretch) > .wpb_column { max-width: 1200px; } }

/* ---- title banner of inner pages ------------------------------------------------------------- */
/* The title is positioned absolutely, so its column is empty; Bootstrap's min-height: 1px on it
   pushed the banner picture 1px down and left a thin white line under the header. */
.sub-banner .col-md-12 { min-height: 0; }

/* ---- home slider (replaces Slider Revolution) ------------------------------------------------ */
.mp-slider { --s: 1; background: #e9e9e9; height: calc(900px * var(--s)); overflow: hidden; position: relative; width: 100%; }
.mp-slide { background-position: center center; background-repeat: no-repeat; background-size: cover; inset: 0; opacity: 0; position: absolute; transition: opacity .8s ease, visibility .8s; visibility: hidden; }
.mp-slide.is-active { opacity: 1; visibility: visible; }
.mp-slide-inner { color: #fff; inset: 0; position: absolute; text-align: center; }
.mp-slide-title, .mp-slide-sub { left: 0; position: absolute; right: 0; top: 50%; white-space: nowrap; }
.mp-slide-title { font-family: Tangerine, cursive; font-size: calc(200px * var(--s)); font-weight: 400; line-height: 1; transform: translateY(calc(-50% - 36px * var(--s))); }
.mp-slide-sub { font-family: Raleway, sans-serif; font-size: calc(30px * var(--s)); font-weight: 900; letter-spacing: calc(12px * var(--s)); line-height: 1.2; padding-left: calc(12px * var(--s)); transform: translateY(calc(-50% + 77px * var(--s))); }
.mp-slide-btn, .mp-slide-btn:visited { border: 1px solid #fff; color: #fff; font: 500 17px/17px Roboto, sans-serif; left: 50%; padding: 12px 35px; position: absolute; text-decoration: none; top: calc(575px * var(--s)); transform: translateX(-50%); transition: background-color .3s, border-color .3s; white-space: nowrap; }
.mp-slide-btn:hover, .mp-slide-btn:focus { background: #58595b; border-color: #58595b; color: #fff; text-decoration: none; }
.mp-arrow { background: #fff; border: 0; cursor: pointer; height: 70px; margin-top: -35px; padding: 0; position: absolute; top: 50%; width: 70px; z-index: 5; }
.mp-arrow.mp-prev { left: 40px; }
.mp-arrow.mp-next { right: 40px; }
.mp-arrow::before { border-bottom: 2px solid rgba(0, 0, 0, .5); border-left: 2px solid rgba(0, 0, 0, .5); content: ""; height: 18px; left: 50%; margin: -9px 0 0 -5px; position: absolute; top: 50%; transform: rotate(45deg); transition: border-color .3s; width: 18px; }
.mp-arrow.mp-next::before { margin-left: -13px; transform: rotate(-135deg); }
.mp-arrow:hover::before { border-color: #000; }
@media (max-width: 767px) {
	.mp-arrow { height: 44px; margin-top: -22px; width: 44px; }
	.mp-arrow.mp-prev { left: 10px; }
	.mp-arrow.mp-next { right: 10px; }
	.mp-slide-btn { font-size: 13px; padding: 8px 20px; }
}

/* ---- gallery page (looks like the gallery plugin of the old site) ------------------------------ */
/* Thumbnail size --t follows the gallery width (120 / 64 / 48 px); the script refines it and sets
   --mask, the width of the visible part of the thumbnail strip (whole thumbnails only). */
.mp-gallery { --t: 48px; box-sizing: border-box; padding: 12px; width: 100%; }
@media (min-width: 480px) { .mp-gallery { --t: 64px; } }
@media (min-width: 992px) { .mp-gallery { --t: 120px; } }
.mp-gallery-stage { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.mp-gallery-main { height: 100%; left: 0; max-width: none; object-fit: cover; opacity: 0; position: absolute; top: 0; transition: opacity .8s ease; width: 100%; }
.mp-gallery-main.is-active { opacity: 1; }
.mp-gallery-nav { background: url(pearl/images/white-arrows.jpg) no-repeat 0 0; border: 0; cursor: pointer; height: 58px; padding: 0; position: absolute; top: calc(50% - 24px); width: 57px; z-index: 2; }
.mp-gallery-prev { left: 0; }
.mp-gallery-next { background-position: -56px 0; right: 0; }
.mp-gallery-strip { height: calc(var(--t) + 24px); margin: 10px 4px 0; position: relative; }
.mp-strip-mask { height: 100%; margin: 0 auto; overflow: hidden; width: var(--mask, calc(100% - 72px)); }
.mp-strip-track { display: flex; transition: transform .5s ease; }
.mp-strip-track a { background: #fff; box-sizing: border-box; display: block; flex: 0 0 var(--t); height: var(--t); margin: 12px 4px; opacity: .8; padding: 2px; transition: opacity .2s; }
.mp-strip-track a:hover, .mp-strip-track a:focus, .mp-strip-track a.is-active { opacity: 1; }
.mp-strip-track img { display: block; height: 100%; object-fit: cover; width: 100%; }
.mp-strip-nav { background: none; border: 0; cursor: pointer; height: 32px; margin-top: -16px; padding: 0; position: absolute; top: 50%; width: 32px; }
.mp-strip-prev { left: 0; }
.mp-strip-next { right: 0; }
.mp-strip-nav::before { border-right: 4px solid #333; border-top: 4px solid #333; content: ""; height: 11px; left: 50%; margin: -6px 0 0 -9px; position: absolute; top: 50%; transform: rotate(45deg); width: 11px; }
.mp-strip-prev::before { margin-left: -3px; transform: rotate(-135deg); }
.mp-strip-nav:hover::before { border-color: #000; }
.mp-strip-nav:disabled { cursor: default; }
.mp-strip-nav:disabled::before { border-color: #ccc; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; margin: -1px; overflow: hidden; position: absolute !important; width: 1px; }

/* ---- map without an API key ------------------------------------------------------------------ */
.mp-map { border: 0; display: block; width: 100%; }

/* ---- cookie notice ---------------------------------------------------------------------------- */
.mp-cookie-bar { background-color: #464646; bottom: 0; box-sizing: border-box; color: #ddd; left: 0; padding: 15px 20px; position: fixed; width: 100%; z-index: 99999; }
.mp-cookie-bar[hidden] { display: none; }
.mp-cookie-bar a { color: #fff; }
.mp-cookie-bar .ctcc-inner { align-items: center; display: flex; justify-content: center; }
.mp-cookie-bar .ctcc-right-side { flex-shrink: 0; }
.mp-cookie-bar button { background: #0a4e99; border: 0; border-radius: 3px; color: #fff; cursor: pointer; margin: 0 0 0 20px; padding: 6px 9px; }

/* ---- forms -------------------------------------------------------------------------------------- */
.wpcf7-response-output.mp-error { border: 2px solid #f7e700; display: block; margin: 2em .5em 1em; padding: .2em 1em; }
.mp-thanks { margin-bottom: 60px; text-align: center; }
