/*
 * Flexible Content (`vc_flexible_content`)
 *
 * Loaded only on pages that use this element, after common.css. Rules
 * shared with other elements are in common.css.
 */

/* The tile image. It was a background with a fixed 100px height and a float,
* inside a Bootstrap grid; it is an <img> in a shape box now, so the crop is
* object-fit and the height comes from the shape. Without a shape the image
* keeps its own proportions. */
.flex-thumbnails__img > .flex-thumbnails__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* The space between the rows of tiles, matching the 1.5rem Bootstrap already
* puts between the columns, so the grid is evenly spaced both ways.
*
* The caption used to carry the only vertical spacing in the whole block - a
* 15px bottom margin, inside the tile. So a tile without a caption had no
* spacing at all and the rows sat flush against each other, and a tile with
* one was 129px tall against its neighbours' 93px. The gap belongs to the row,
* which has it whatever the tiles contain.
*
* row-gap rather than --bs-gutter-y. Bootstrap delivers that gutter by putting
* margin-top on every child and cancelling the first row with an equal
* negative margin-top on the row itself - so the row's own box began 24px
* higher than it should, and a second grid in the same column pulled up into
* whatever was above it. A gap applies only between the lines and leaves no
* edge to cancel. */
.flex-thumbnails {
    row-gap: 1.5rem;
}

/* Blocks in the same column, and only where something follows - a grid or a
* button that ends the column adds no trailing space. This is also what sits
* between a grid and its own Load more button, which is why that button has no
* top margin of its own: one rule spaces every combination the same way. */
.flex-thumbnails:not(:first-child) {
    margin-top: 1.5rem;
}

.flex-thumbnails:not(:last-child),
.flex-thumbnails__more:not(:last-child) {
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .flex-thumbnails > .flex-thumbnails__wrap {
        margin-bottom: 0;
    }
}

/* A gallery tile. It opens a lightbox rather than going anywhere, so it is a
* button - which means undoing the browser's own button styling, and giving
* the shape box a display, since a span is inline by default. */
.flex-thumbnails__tile {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.flex-thumbnails__tile > .flex-thumbnails__img {
    display: block;
}

/* A cue that the tile does something, since there is no caption to say so. */
.flex-thumbnails__tile > .flex-thumbnails__img > .flex-thumbnails__image {
    transition: transform .3s ease-in-out;
}

.flex-thumbnails__tile:hover > .flex-thumbnails__img > .flex-thumbnails__image,
.flex-thumbnails__tile:focus-visible > .flex-thumbnails__img > .flex-thumbnails__image {
    transform: scale(1.06);
}

/* The lightbox. One slide at a time, sized to the viewport rather than the
* image, so a tall photograph does not push the caption off the screen.
*
* overflow is stated because slick's default arrow positions sit 25px outside
* the slider, which pushed the body 25px wider than itself and put a
* horizontal scrollbar across the dialog. The arrows are inside it now, but
* nothing in a lightbox should scroll sideways in any case. */
/* No panel: the image sits straight on the darkened page. The dialog carried
* `section--white`, which painted it white; that is off the markup now and the
* background and border are stated here so nothing else can paint it either. */
.cwb-gallery .modal-content {
    background: transparent;
    border: 0;
    box-shadow: none;
    /* `.modal-content{min-height:100vh}` in this stylesheet makes every modal
     * as tall as the window below 768px, which leaves a centred dialog nothing
     * to centre within - it filled the screen and sat against the top. */
    min-height: 0;
}

.cwb-gallery .modal-body {
    /* What the popup has always shown: the theme's `.modal-content .modal-body`
     * took the padding to 0 and scrolled it vertically, and a more specific
     * copy of those two values kept that once the rule moved here. The 24px
     * and the vertical clipping this rule once asked for never showed. */
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.cwb-gallery .cwb-gallery__caption {
    color: #fff;
}

/* Darker than Bootstrap's own 0.5, so the page reads as put away rather than
* dimmed - the image is the only thing on a transparent dialog now. */
body.cwb-gallery-open .modal-backdrop.show {
    --bs-backdrop-opacity: .85;
    opacity: .85;
}

/* A stage of a fixed height, so the lightbox is the same size before an image
* has loaded, while it loads, and on every slide after it - see the note in
* app.js about what adaptiveHeight did instead.
*
* On the figure rather than the slide. Slick writes `display: inline-block`
* onto the slide as an inline style, which no rule can outscore, so a stage
* built there was never a flex container and its image sat at the top of it
* instead of in the middle. The figure is this element's own and slick does
* not touch it. */
.cwb-gallery__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    margin: 0;
    width: 100%;
}

/* The image.
*
* Three classes, because `.slick-slider .slick-slide img` sets max-height:40vh
* and object-fit:cover on every slide image on the site - which capped this at
* 40vh whatever was asked for, and would crop a photograph in a lightbox
* rather than show all of it. `contain` is the whole point here. */
.cwb-gallery .cwb-gallery__slider .cwb-gallery__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 52vh;
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .cwb-gallery__figure {
        min-height: 58vh;
    }

    .cwb-gallery .cwb-gallery__slider .cwb-gallery__image {
        max-height: 50vh;
    }
}

.cwb-gallery__caption {
    margin-top: 12px;
    text-align: center;
}

/* Slick lays its track out with flex, so a slide has to be allowed to be as
* tall as its own image and caption. */
.cwb-gallery__slider .slick-slide {
    height: auto;
}

/* The lightbox's own buttons - the two arrows and the close.
*
* Every one of them has to outscore something. `.slick-slider .slick-arrow`
* sets a transparent background and hides the arrows outright, and
* `.modal .btn-close` paints a white background with !important - which is why
* the close button has a class of its own rather than a second !important.
*
* Three classes for the arrows, not two: `.slick-slider .slick-arrow` is also
* two, and it lives in the compiled block at the foot of this file, so an
* equal score is settled by source order in its favour. */
.cwb-gallery .cwb-gallery__slider .cwb-gallery__nav,
.cwb-gallery .cwb-gallery__close {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #10171e;
    border-radius: 50%;
    background: #fff;
    color: #10171e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
}

.cwb-gallery .cwb-gallery__slider .cwb-gallery__nav {
    top: 50%;
    transform: translateY(-50%);
}

.cwb-gallery .cwb-gallery__slider .cwb-gallery__nav--prev {
    left: 0;
}

.cwb-gallery .cwb-gallery__slider .cwb-gallery__nav--next {
    right: 0;
}

.cwb-gallery .cwb-gallery__close {
    top: 0;
    right: 0;
    z-index: 3;
    font-size: 18px;
}

/* Dimmed rather than recoloured, so it still reads as the same button.
* `.slick-slider .slick-arrow.slick-disabled` would otherwise grey the border
* and the glyph separately. */
.cwb-gallery .cwb-gallery__slider .cwb-gallery__nav.slick-disabled {
    /* The background is restated because
     * `.slick-slider .slick-arrow.slick-disabled` sets it transparent at the
     * same three classes as the rule above, and wins on source order. */
    background: #fff;
    border-color: #10171e;
    color: #10171e;
    opacity: .3;
    cursor: default;
}

/* A tile waiting on the Load more button. `.row > *` sets width and padding
* but no display, so [hidden] would hold on its own; it is stated because a
* later rule setting a display on the column would silently bring the tile
* back. */
.flex-thumbnails__wrap[hidden] {
    display: none;
}

/* `.link .btn-link:after` gives every link on the site a right-pointing angle.
* This button does not go anywhere - it opens downwards and closes upwards -
* so it takes those two glyphs instead, keeping the family, position and
* spacing the shared rule already sets. The state comes from aria-expanded,
* which the handler is already maintaining, so nothing has to be toggled
* twice. */
.flex-thumbnails__more .btn-link.flex-thumbnails__more-btn:after {
    content: "\f107";
}

.flex-thumbnails__more .btn-link.flex-thumbnails__more-btn[aria-expanded="true"]:after {
    content: "\f106";
}

.flex-thumbnails__btn--title {
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* The caption is the link's own text, so it takes the section's Text Link
* Colour. Three classes and an element, which outweighs the two
* `.section--blue` rules further down that hardcode #fff and #6F96B7. */
.flex-thumbnails a.flex-thumbnails__btn .flex-thumbnails__btn--title {
    color: var(--cwb-link, #6f96b7);
}

.flex-thumbnails a.flex-thumbnails__btn:hover .flex-thumbnails__btn--title {
    color: var(--cwb-link-hover, #6f96b7);
}

.section--blue .flex-thumbnails__btn--title {
    color: #fff;
}

.section--blue .card-body .flex-thumbnails__btn--title {
    color: #6F96B7;
}

.flexible-content-slider .slick-slider--with-icon .slick-arrow.slick-prev {
    left: 15px;
}

.flexible-content-slider .slick-slider--with-icon .slick-arrow.slick-next {
    right: 15px;
}

/* The form heading follows the section it sits in, like the rest of the form.
It was pinned to #262626, which fought whatever the colour profile set. */
.form-container .main-heading{color:inherit;}

/* The Flexible Content Gravity form block, and only that - nothing else emits
these two classes.

It used to force a white background, its own 34/38/50/38 padding and black
text, so the form ignored the colour profile of the section it sat in: on a
dark section it was a white card with black text whatever the profile said.
Background and text now come from the section, which Global Options already
drives, and the padding goes with the card it was insetting. Only the gap
below the form is left, since that is spacing rather than colour. */
.col-form .form-container {
    min-height: auto;
    margin-bottom: 24px;
}

.btn-expand-close{display:none;}

.btn-expand-close:after{ content: "\f106" !important;}

.margin-top-lg{position:relative;margin-top:-125px}

@media (max-width:991px) {
    .margin-top-lg{margin-top:0}
}

.cwb-slider__img--overlay::after{content:"";position:absolute;inset:0;z-index:1;background:var(--cwb-slider-overlay,transparent);pointer-events:none}

@media (max-width:767px) {
    .welcome--section .margin-top-lg .single-img:nth-child(2){display:none}
}

.link .expand-content{display:none}

/* Flexible Content - Rating ===============================================
*
* This block has never had a rule of its own. Every `.stars` rule in this
* stylesheet is scoped to `.rating-sec`, which only 3 Columns full height
* emits - so the stars rendered as inline SVGs with no layout, no gap and no
* colour but the white written into the path. Its own class, so nothing here
* reaches that element. */
.cwb-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    /* The section's Accent Background, the same property the list markers and
     * the slider dots take. A profile with no accent set falls back to the
     * Default profile's before it ever reaches CSS; black is for a section
     * with no profile at all. */
    color: var(--cwb-accent-bg, #000);
}

/* Only when something follows it in the column, so a rating standing on its
* own does not add a gap under the last thing on the card. :last-child counts
* elements, so a rating that is the only block is last as well as first and
* takes nothing either way. */
.cwb-rating:not(:last-child) {
    margin-bottom: 10px;
}

/* Sized so five never wrap out of a half-width column: the stars are 48x45 in
* the file, which is 190px across at this height before gaps. Width follows
* the viewBox. */
.cwb-rating .cwb-rating__star {
    flex: 0 0 auto;
    width: auto;
    height: 38px;
}

@media (max-width: 575.98px) {
    .cwb-rating .cwb-rating__star {
        height: 28px;
    }
}

.cwb-overlay-image > .cwb-overlay-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.flex-thumbnails__img.cwb-circle {
    --cwb-circle-size: 100%;
}
