/* pust stuff here */

.wp-header {
    height: 181px;
    background: url('../images/homepage-title.jpg');
    margin-top: 234px;
    background-position: center;
    background-size: cover;
}

.wp-header .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 170px;
    position: relative;
}

.wp-header #search {
    width: 400px;
}

.wp-header #search input {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    padding: 27px 56px 27px 5px;
    border-radius: 0;
    border: none;
    background-image: url('../images/search-icon.png');
    background-position: calc(100% - 13px) 9px;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.88);
}

.wp-header-title {
    color: #fff;
    font-size: 37px;
    text-transform: uppercase;
    top: 67px;
    font-weight: 400;
    position: absolute;
    left: 0;
}

.wp-menu {
    background: #034b8d;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
}

.wp-menu-item {
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    padding: 15px 18px;
}

.wp-menu-item:hover {
    color: #fff;
    background: #05437d;
}

.wp-menu-item:visited {
    color: #fff;
}


/* Homepage */

.wp-homepage-category h3 {
    text-transform: uppercase;
    font-size: 22px;
    margin-top: 29px;
}

.wp-homepage-category {
    padding-bottom: 47px;
    margin-bottom: 47px;
    border-bottom: 2px solid #e0e0e0;
}

.wp-homepage-category-desc {
    margin-top: 24px;
    font-size: 14px;
}

.wp-homepage-category-posts {
    /*display: flex;*/
    width: 100%;
    margin-top: 42px;
}

.wp-homepage-category-post {
    /*width: calc(25% - 15px);*/
    /*margin-right: 15px;*/
}

.wp-homepage-category-post:hover,
.wp-homepage-category-post:visited {
    color: #000;
}

.wp-homepage-category-post:last-child {
    /*margin-right: 0;*/
}

.wp-homepage-category-post-image {
    width: 100%;
    background-position: center center;
    background-size: cover;
}

.wp-homepage-category-post-date {
    margin-top: 18px;
    font-size: 15px;
    color: gray;
}

.wp-homepage-category-post-title {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
}

.wp-homepage-category-viewall-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.wp-homepage-category-viewall,
.wp-homepage-category-viewall:visited {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid black;
    padding: 7px 118px;
    display: inline-block;
    transition: .5s;
    color: #000;
}

.wp-homepage-category-viewall:hover {
    color: #fff;
    background-color: #333;
    border: 1px solid #333;
}


/* Category page */

.page {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
}

.pagetitle {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 22px;
}

.page .wp-maincontent {
    width: 75%;
}

.page .wp-sidebar {
    width: calc(25% - 20px);
    position: relative;
}

.wp-pagination {
    position: absolute;
    margin-top: -78px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    text-transform: uppercase;
    right: 0;
}

.wp-pagination .back-to-list {
    text-transform: none;
}

.wp-pagination ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    list-style: none;
}

.wp-pagination ul li {
    padding: 0 3px;
}

.wp-pagination ul li.active a {
    color: #11468c;
    font-weight: 700;
}

.wp-pagination span {
    padding-right: 10px;
}

.page + .wp-pagination {
    position: static;
    margin-top: 0;
    justify-content: flex-end;
}

.page + .wp-pagination ul {
    padding-left: 0;
}

.wp-category-post {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}

.wp-category-post-video * {
    cursor: pointer;
}

.wp-category-post-link-wrapper {
    display: block;
}

.wp-category-post-left {
    width: 300px;
}

.wp-category-post-right {
    width: calc(100% - 320px);
}

.wp-category-post-right .small {
    font-size: 15px;
    font-weight: 500;
    color: grey;
}

.wp-category-post-right .entry {
    font-size: 15px;
    color: #000;
}

.wp-category-post-right .entry a:visited {
    color: #000;
}

.wp-category-post-link,
.wp-category-post-link:visited {
    text-transform: uppercase;
    color: #000;
    border: 1px solid #000;
    padding: 7px 56px;
    font-size: 16px;
    margin-top: 4px;
    display: inline-block;
    transition: .5s;
}

.wp-category-post-link:hover {
    color: #fff;
    background-color: #333;
}

.wp-category-post-right h2 {
    margin: 0 0 10px;
}

.wp-category-post-right h2 a,
.wp-category-post-right h2 span {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.wp-category-post-right h2 a:visited,
.wp-category-post-right h2 a:hover {
    color: #000;
}

.wp-category-post-thumbnail {
    width: 100%;
    background-position: center;
    background-size: cover;
    display: block;
}

.wp-category-desc {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 50px;
}

.wp-sidebar {
    padding-top: 45px;
}

.wp-sidebar .sidebar-title {
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #000;
    padding-bottom: 13px;
    margin-bottom: 13px;
    display: block;
}

.wp-sidebar ul {
    list-style: none;
    padding: 0;
}

.wp-sidebar a,
.wp-sidebar a:visited {
    color: #000;
}

.wp-sidebar a:hover {
    color: #11468c;
}

/* Post page */

.post {
    margin-bottom: 150px;
}

.post h1, .post h2 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 20px 0 10px;
}

.post .small {
    font-size: 15px;
    font-weight: 500;
    color: grey;
}

.post .entry {
    font-size: 15px;
}

.post ul {
    list-style-type: square;
}

.post ul li {
    margin: 0;
}

/* Video widget */

.widget-video {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.widget-video iframe {
    display: none;
    min-height: 360px;
}

.widget-video-thumbnail {
    width: 100%;
    max-height: none;
}

.widget-video-wrapper {
    margin-bottom: 20px;
}

/* Lightbox */

.lightbox {
    background: #fff;
    width: 100%;
    max-width: 1130px;
    height: 640px;
    max-height: 100vh;
}

.lightbox-wrapper {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox iframe {
    width: 100%;
    height: 100%;
}

/* Gallery Widget */

.widget-gallery-item {
    height: 150px;
    cursor: pointer;
    width: auto !important;
    display: block;
}

.widget-gallery-lightbox {
    display: none;
}

.widget-gallery-wrapper {
    margin: 20px 0;
}

.widget-gallery .owl-carousel .owl-nav .owl-prev:before,
.widget-gallery .owl-carousel .owl-nav .owl-next:before {
    width: 25px;
}

.lg-backdrop.in {
    opacity: .5;
}

.lg-outer .lg-thumb-outer {
    background-color: #fff;
}

.lg-toogle-thumb {
    display: none;
}

.lg-outer .lg-img-wrap {
    padding: 55px 80px;
}

.lg-outer .lg {
    width: 70% !important;
    height: 90% !important;
    background: #fff;
}

.lg-outer.lg-visible {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-toolbar.lg-group {
    transform: none;
    opacity: 1;
    background: none;
}

.lg-outer .lg-thumb {
    padding: 10px;
    width: 100% !important;
}

/* Hide lightgallery controls */

#lg-actual-size, #lg-counter, .lg-download {
    display: none;
}

/* Events page */

.events-page .wp-sidebar {
    display: none;
}

.events-page.page .wp-maincontent {
    width: 100%;
}

.events-page .wp-category-posts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
}

.events-page .wp-category-posts:before,
.events-page .wp-category-posts:after{
    display:none;
}

.events-page .wp-category-posts::after {
    content: "";
    flex: auto;
}

.events-page .wp-category-post {
    width: calc(25% - 10px);
    -webkit-box-orient: vertical;
    flex-direction: column;
    margin-right: 10px;
    justify-content: flex-start;
    padding-bottom: 40px;
}

.events-page .wp-category-post-right h2 {
    margin: 15px 0 10px;
}

.events-page .wp-category-post:nth-child(4n) {
    margin-right: 0;
}

.events-page .wp-category-post .wp-category-post-right,
.events-page .wp-category-post .wp-category-post-left {
    width: 100%;
}

.events-page .wp-category-post .small {
    display: none;
}

.events-page .wp-category-post .wp-category-post-right {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: auto;
}

.events-page .wp-category-post .wp-category-post-right a:nth-child(2) {
    margin-bottom: auto;
}

.events-page .wp-category-post .wp-category-post-right .wp-category-post-link {
    max-width: max-content;
}

.wp-post-image {
    height: auto;
}

@media screen and (max-width: 1250px) {
    .page {
        padding: 0 20px;
    }

    .wp-header-title {
        font-size: 34px;
        left: 20px;
    }
}

.wp-menu-mobile {
    display: none;
}

.hidden-desktop {
    display: none;
}

.lg-actions .lg-next, .lg-actions .lg-prev {
    background: url('../images/wp-lightbox-arrow.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    box-shadow: none;
    padding: 20px;
}

.lg-actions .lg-prev {
    transform: rotate(180deg);
    transform-origin: center;
}

.lg-actions .lg-next:before, .lg-actions .lg-prev:after {
    content: none;
}

#lg-zoom-in {
    background: url('../images/wp-lightbox-zoom-in.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 25px;
    position: absolute;
    left: 20px;
    top: 8px;
}

#lg-zoom-in:after {
    content: none;
}

#lg-zoom-out {
    background: url('../images/wp-lightbox-zoom-out.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 25px;
    position: absolute;
    left: 20px;
    top: 58px;
}

#lg-zoom-out:after {
    content: none;
}

.lg-toolbar .lg-close {
    background: url('../images/wp-lightbox-close.png');
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: center center;
    width: 55px;
    height: 55px;
    border: 1px solid lightgray;
    border-radius: 0;
    border-top: none;
    border-right: none;
    margin-left: 17px;
}

.lg-toolbar .lg-close:after {
    content: none;
}

.wp-homepage-category-post-read-more {
    position: absolute;
    left: calc(50% - 75px);
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 29px;
    text-align: center;
    text-transform: uppercase;
    font-size: 18px;
    color: #000;
    top: calc(50% - 17px);
    display: none;
}

.wp-homepage-category-post:hover .wp-homepage-category-post-read-more {
    display: block;
}

.wp-homepage-category-post-image-wrapper {
    position: relative;
}

.post-video iframe {
    width: 100%;
    height: 522px;
    max-height: calc(100vh - 56px);
}

.page .owl-carousel .owl-item img {
    width: auto !important;
    display: inline !important;
}

.wp-block-button__link:active, .wp-block-button__link:focus, .wp-block-button__link:hover, .wp-block-button__link:visited {
    color: #fff;
}

@media screen and (max-width: 1240px) {
    .wp-homepage-category {
        padding: 0 20px 47px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .wp-header {
        margin-top: 59px;
    }
}

@media screen and (max-width: 877px) {
    .wp-header-title {
        font-size: 24px;
    }

    .lightbox {
        max-width: 80vw;
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .lightbox {
        max-width: 80vw;
        height: 350px;
    }

    .events-page .wp-category-post .wp-category-post-right .wp-category-post-link {
        max-width: 100%;
    }

    .wp-homepage-category-post-read-more {
        display: none !important;
    }

    .lg-outer .lg {
        width: 100% !important;
        height: 100% !important;
    }

    .lg-outer .lg-img-wrap {
        padding: 55px 30px;
    }

    .lg-actions .lg-next, .lg-actions .lg-prev {
        padding: 15px;
    }

    .lg-outer.lg-thumb-open .lg-thumb-outer {
        display: none;
    }

    .lg-actions .lg-next {
        right: 0;
    }

    .lg-actions .lg-prev {
        left: 0;
    }

    .wp-category-post-right {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

    .wp-category-post-right h2 {
        margin: 15px 0 10px;
    }

    .wp-category-post-link {
        margin-top: auto;
    }

    .widget-gallery-item {
        width: 260px;
    }

    .hidden-mobile {
        display: none;
    }

    .hidden-desktop {
        display: block;
    }

    .wp-header #search {
        width: 100%;
    }

    .wp-header-title {
        top: 15px;
        font-size: 24px;
    }

    .wp-header .container {
        align-items: flex-end;
        height: 100%;
    }

    .wp-header #search input {
        padding: 20px 37px 20px 19px;
        background-size: 20px;
        font-size: 15px;
    }

    .page .wp-maincontent {
        width: 100%;
    }

    .page .wp-sidebar {
        width: 100%;
        margin-top: 0;
        padding-top: 30px;
    }

    .page .wp-sidebar:before {
        content: '';
        background: lightgray;
        display: block;
        height: 5px;
        top: -7px;
        position: absolute;
        left: 0;
        width: 100%;
    }

    .page {
        display: block;
    }

    .widget-video {
        width: 100%;
        margin-bottom: 20px;
    }

    .widget-video iframe {
        width: 100%;
    }

    .back-to-list {
        text-transform: uppercase;
        color: #000;
        border: 1px solid #000;
        padding: 7px 56px;
        font-size: 16px;
        margin-top: 4px;
        display: inline-block;
        transition: .5s;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .post {
        margin-bottom: 50px;
    }

    .wp-homepage-category-post * {
        width: 209px !important;
    }

    .wp-homepage-category {
        padding: 0 20px 47px;
        margin-bottom: 20px;
    }

    .wp-category-posts {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .wp-category-posts:before,
    .wp-category-posts:after{
        display:none;
    }

    .wp-menu-desktop {
        display: none;
    }

    .wp-menu-mobile {
        display: block;
    }

    .wp-menu-mobile .wp-menu-dropwdown span {
        text-align: center;
        display: block;
        color: #fff;
        padding: 10px;
        box-sizing: border-box;
        text-transform: uppercase;
        width: calc(100% - 20px);
        font-size: 15px;
        font-weight: 600;
    }

    .wp-menu-mobile .wp-menu-dropwdown span:after {
        content: '';
        width: 29px;
        height: 12px;
        background-image: url(../images/wp-menu-arrow.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        filter: invert(1);
    }

    .wp-menu-dropwdown .wp-menu-items {
        display: none;
        text-align: center;
        background: #2b62a5;
    }

    .wp-menu-dropwdown .wp-menu-item {
        width: 100%;
        font-size: 15px;
        font-weight: 500;
        padding: 10px;
        box-sizing: border-box;
        display: block;
    }

    .wp-homepage-category-viewall {
        width: 100%;
        padding: 7px 0;
    }

    .wp-homepage-category-viewall-wrapper {
        margin-top: 16px;
    }

    .wp-homepage-category-desc {
        margin-top: 16px;
    }

    .wp-homepage-category-posts {
        margin-top: 21px;
    }

    .wp-category-post, .events-page .wp-category-post {
        -webkit-box-orient: vertical;
        flex-direction: column;
        width: calc(50% - 10px);
        position: relative;
        padding-bottom: 40px;
    }

    .wp-category-post-left {
        width: 100%;
    }

    .wp-category-post-right {
        width: 100%;
    }

    .wp-category-post-link {
        width: 100%;
        text-align: center;
        padding: 7px 0;
    }

    .wp-category-post:after {
        content: '';
        width: calc(100% + 41px);
        height: 1px;
        display: block;
        position: absolute;
        background-color: lightgray;
        left: -21px;
        top: -21px;
    }

    .wp-pagination {
        margin-top: 0;
        position: static;
    }

    .wp-pagination ul,
    .wp-pagination ul li {
        margin-bottom: 0;
    }

    .wp-pagination > span {
        display: none;
    }

    .wp-pagination ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .wp-pagination ul li {
        border: 1px solid #000;
        margin: 0 3px;
        padding: 5px 13px;
    }

    .wp-pagination ul li.active {
        background: #11468c;
        border: 1px solid #11468c;
    }

    .wp-pagination ul li.active a {
        color: #fff;
    }

    .page + .wp-pagination {
        display: none;
    }

    .widget-gallery-wrapper .owl-carousel .owl-nav .owl-prev:before, .widget-gallery-wrapper .owl-carousel .owl-nav .owl-next:before {
        content: '';
        background-image: url('../images/slider-arrow.png');
        background-size: contain;
        background-position: center;
        line-height: 26px;
        vertical-align: middle;
        height: 70px;
        width: 18px;
        background-repeat: no-repeat;
        display: inline-block;
        font-size: 50px;
        position: absolute;
        top: 42px;
    }

    .widget-gallery-wrapper .owl-carousel .owl-nav .owl-next:before {
        right: -25px;
        transform: rotate(180deg);
    }

    .widget-gallery-wrapper .owl-carousel .owl-nav .owl-prev:before {
        left: -25px;
    }

    .widget-gallery-wrapper {
        margin: 30px;
        width: calc(100% - 60px);
    }

    .wp-header {
        height: 168px;
    }

    .owl-carousel .owl-nav {
        display: block !important;
    }

    .wp-block-image img {
        height: auto;
    }
}


@media screen and (max-width: 665px) {
    .events-page .wp-category-post {
        width: 100%;
    }

    .events-page .wp-category-posts {
        display: block;
    }
}

@media screen and (max-width: 425px) {
    .wp-category-post {
        width: 100%;
    }

    .lightbox {
        max-width: 80vw;
        height: 180px;
    }

    .post-video iframe {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 414px) {
    .post-video iframe {
        width: 100%;
        height: 214px;
    }
}


@media screen and (max-width: 375px) {
    .post-video iframe {
        width: 100%;
        height: 193px;
    }
}
