/**************************************
* Gallery and Media
**************************************/
.wp-caption, .media {
    margin-bottom: 20px;
    max-width: 100%;
    background: var(--colour-white);
    position: relative;
    clear: both;
    text-align: center;
}

.widget_media_gallery {
    padding: 2rem 0;
    background-color: var(--colour-back);
    color: var(--colour-fore);
}

.gallery,
.top-gallery {
    margin: 0 0 var(--width-gutter);
    width: 100%;
    overflow: hidden;
}

.gallery figure.gallery-item a,
.top-gallery figure.gallery-item a {
    display: block;
}

.gallery figcaption,
.top-gallery figcaption {
    color: var(--colour-grey3);
}

@media screen and (min-width: 768px) {
    .gallery,
    .top-gallery {
        max-width: var(--width-12-col);
        width: 100vw;
        margin: 0 auto;
        height: 100%;
    }
}

/**************************************
 * Slick not yet active
 **************************************/
figure.gallery-item {
    display: block !important;
    overflow: hidden;
}

.gallery-icon img,
.gallery,
.top-gallery {
    max-height: 50vh;
    min-height: 500px;
    display: block;
    overflow: hidden;
}

.gallery-icon img {
    max-width: none;
    width: auto;
    margin: 0 auto;
}

@supports (object-fit: cover) {
    .gallery-icon img,
    .gallery,
    .top-gallery {
        display: block;
        object-fit: cover;
        height: 100%;
        width: 100%;
    }
}

.gallery:not(.slick-initialized),
.top-gallery:not(.slick-initialized) {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    justify-content: left;
    scroll-snap-type: x mandatory;
    max-height: 50vh;
    min-height: 500px;
}

.gallery:not(.slick-initialized) figure,
.top-gallery:not(.slick-initialized) figure {
    overflow: hidden;
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    justify-content: center;
    margin: 0;
    padding: 0;
    display: flex;
    max-height: 100%;
}

.gallery:not(.slick-initialized) figure .gallery-icon,
.top-gallery:not(.slick-initialized) figure .gallery-icon {
    width: 100%;
    height: 100%;
}

.gallery:not(.slick-initialized) .gallery-icon img,
.top-gallery:not(.slick-initialized) .gallery-icon img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/**************************************
 * Slick Controls "X of Y" controls
 **************************************/
.slick-controls:empty {
    visibility: hidden;
    margin: 0;
}

.slick-controls .slick-prev.slick-arrow:after {
    content: '\e609';
}

.slick-controls .slick-arrow {
    overflow: hidden;
    position: absolute;
    text-indent: 100em;
    white-space: nowrap;
    padding: 0;
    text-align: center;
    min-height: 0;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.4rem;
    border: solid 1px;
    background-color: transparent;
    border-radius: 0;
    color: inherit;
    left: 0;
    z-index: 100;
    top: 0;
}

.slick-controls .slick-arrow.slick-next {
    left: auto;
    right: 0;
}

.slick-controls .slick-arrow:focus,
.slick-controls .slick-arrow:hover {
    outline: 0 none;
    color: var(--colour-high);
}

.slick-controls .slick-arrow.slick-disabled {
    color: var(--colour-grey2);
    cursor: no-drop;
    opacity: 0.75;
}

.slick-controls .slick-arrow:after {
    content: "\e60a";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    text-indent: 0;
    font-family: var(--ff-icon) !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slick-controls .slick-dots {
    display: flex !important;
    justify-content: center;
    list-style-type: none;
    position: absolute;
    height: 2.5rem;
    width: 100%;
    bottom: 0;
    top: auto;
}

.slick-controls .slick-dots > li button {
    width: 2em;
    height: 2em;
    visibility: hidden;
}

.slick-controls .slick-dots li {
    position: relative;
    font-size: 12px;
    color: var(--colour-high);
    /* text-shadow: 0 0 1em var(--colour-back); */
    line-height: 2.5rem;
}

.slick-controls .slick-dots li::before {
    content: '\e900';
    font-family: var(--ff-icon);
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    line-height: 2.5rem;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
}

.slick-controls .slick-dots li.slick-active {
    color: var(--colour-high);
}

.slick-controls .slick-dots li.slick-active::before {
    content: '\e901';
    font-family: var(--ff-icon);
    color: var(--colour-high);
}

.hero-gallery .slick-controls,
.gallery .slick-controls {
    position: absolute;
    right: 2.5rem;
    left: 2.5rem;
    z-index: 1;
    filter: drop-shadow(0 0 5px var(--colour-back));
    bottom: 2.5rem;
    min-height: 2.5rem;
    color: var(--colour-fore);
}

.gallery .slick-controls {
    top: calc(50% - 1.25rem)
}

.top-gallery .slick-controls {
    display: none;
}

/**************************************
 * Slick defaults
 **************************************/
.slick-slider {
    position: relative;

    display: block;
    box-sizing: border-box;
    user-select: none;

    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    
}

.slick-list {
    position: relative;
    display: block;
    overflow: visible !important;
    margin: 0;
    padding: 0;
    height: 100%;
}

.slick-list:focus {
    outline: none;
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    transform: translate3d(0, 0, 0);
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
}

.slick-track:before,
.slick-track:after {
    display: table;

    content: '';
}

.slick-track:after {
    clear: both;
}

.slick-loading .slick-track {
    visibility: hidden;
}

.slick-slide {
    display: none;
    float: left;
    height: 100%;
}

[dir='rtl'] .slick-slide {
    float: right;
}

.slick-slide img {
}

@supports (object-fit: cover) {
    .slick-slide img {
        /* display: block; */
        /* width: 100%; */
        /* max-height: 50vh; */
        /* height: 100%; */
    }
}

.slick-slide.slick-loading img {
    display: none;
}

.slick-slide.dragging img {
    pointer-events: none;
}

.slick-initialized .slick-slide {
    display: block;
    /* opacity: 0.4; */
    transition: opacity 1s;
}

.slick-initialized .slick-slide.slick-current {
    opacity: 1;
    height: 100%;
}

.slick-loading .slick-slide {
    visibility: hidden;
}

.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent;
}

.slick-arrow.slick-hidden {
    display: none;
}

/**************************************
 * Lightbox
 **************************************/
.nivo-lightbox-theme-default.nivo-lightbox-overlay {
    background-color: var(--colour-black) !important;
    z-index: 100000;
}

.nivo-lightbox-theme-default .nivo-lightbox-close {
    background: none !important;
}

.nivo-lightbox-theme-default .nivo-lightbox-close:after {
    content: "\e91a";
    font-family: var(--ff-icon) !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    text-indent: 0;

    width: 40px;
    height: 40px;
    color: var(--colour-white);
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1;
}

.nivo-lightbox-theme-default .nivo-lightbox-nav:hover {
    background-color: transparent !important;
}

/**************************************
 * Lightbox indicator overlay
 **************************************/
div.media > a[data-lightbox-gallery^="lightbox-gallery-"],
p > a[data-lightbox-gallery^="lightbox-gallery-"],
.figure-with-caption a[data-lightbox-gallery^="lightbox-gallery-"],
.wp-caption a[data-lightbox-gallery^="lightbox-gallery-"],
.gallery figure {
    /* position: relative; */
    /* display: inline-block; */
    /* width: 100%; */
}

div.media > a[data-lightbox-gallery^="lightbox-gallery-"]:hover:before,
p > a[data-lightbox-gallery^="lightbox-gallery-"]:hover:before,
.figure-with-caption a[data-lightbox-gallery^="lightbox-gallery-"]:hover:before,
.wp-caption a[data-lightbox-gallery^="lightbox-gallery-"]:hover:before,
.gallery figure:hover a:before {
    content: "\e902";
    font-family: var(--ff-icon) !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    border: 0 none;
    display: inline-block;
    color: var(--colour-white);
    line-height: 50px;
    position: absolute;
    text-align: center;
    top: 0;
    left: auto;
    bottom: auto;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 2;
}

.gallery-icon img {
    display: block;
    height: 100%;
}


.thumb-gallery {
    margin-top: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    height: 70px;
}

.thumb-gallery figure {
    cursor: pointer;
}

.thumb-gallery button.slick-prev.slick-arrow {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 999;
    bottom: 0px;
    height: 100%;
    line-height: 70px;
    border: none;
    background-color: var(--colour-back);
}

.thumb-gallery button.slick-next.slick-arrow {
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 999;
    bottom: 0px;
    height: 100%;
    line-height: 70px;
    border: none;
    background-color: var(--colour-back);
}

.thumb-gallery .slick-prev.slick-arrow:after {
    content: '\e609';
}

.thumb-gallery .slick-arrow {
    overflow: hidden;
    position: absolute;
    text-indent: 100em;
    white-space: nowrap;
    padding: 0;
    text-align: center;
    min-height: 0;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.4rem;
    border: solid 1px;
    background-color: transparent;
    border-radius: 0;
    color: inherit;
    left: 0;
    z-index: 100;
    top: 0;
}

.thumb-gallery .slick-arrow.slick-next {
    left: auto;
    right: 0;
}

.thumb-gallery .slick-arrow:focus,
.thumb-gallery .slick-arrow:hover {
    outline: 0 none;
    color: var(--colour-fore);
}

.thumb-gallery .slick-arrow.slick-disabled {
    color: var(--colour-grey2);
    cursor: no-drop;
    opacity: 0.75;
}

.thumb-gallery .slick-arrow:after {
    content: "\e60a";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    text-indent: 0;
    font-family: var(--ff-icon) !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}