html,
body,
body.custom-background {
    background-color: #fff;
}

.widget.widget_custom_html .textwidget.custom-html-widget {
    padding: 0 18px 18px;
    border: 1px solid #ccc;
}

#wpfront-scroll-top-container {
    border: 0;
    background: transparent;
    cursor: pointer;
}

#wpfront-scroll-top-container img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content .media-block-image,
.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content a.site-lightbox {
    display: inline-block;
}

.entry-content .page-block {
    margin-bottom: 1.5rem;
}

.entry-content .page-block:last-child {
    margin-bottom: 0;
}

.entry-content .page-block-columns {
    display: grid;
    gap: 1.5rem;
}

.entry-content.elementor-content,
.elementor-content .elementor {
    max-width: none;
}

.elementor-page .post-single.elementor-content {
    padding: 0;
}

.elementor-page .post-single.elementor-content:after {
    display: none;
}

.wrapper-full .site-content-wrapper {
    padding-left: 0;
    padding-right: 0;
}

.site-admin-edit {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(56, 80, 99, 0.72);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-admin-edit:hover {
    background: rgba(56, 80, 99, 0.92);
    color: #fff;
    transform: translateY(-1px);
}

.site-admin-edit__icon {
    display: block;
    flex-shrink: 0;
}

.elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* Theme resets for WP block gallery (see wp-block-gallery.css) */
.post-single .blocks-gallery-grid,
.post-single .wp-block-gallery .blocks-gallery-grid,
.post-single .wp-block-gallery {
    margin: 0;
    padding: 0;
}

.post-single .blocks-gallery-grid li,
.post-single .blocks-gallery-item {
    list-style: none;
    list-style-type: none;
}

.post-single .elementor-image-gallery .gallery {
    margin: 1em auto 1.5em;
    text-align: center;
    clear: both;
}

.post-single .elementor-image-gallery .gallery-item {
    display: inline-block;
    margin: 1em 1.5% 1.5em;
    vertical-align: top;
}

.post-single .elementor-image-gallery .gallery-icon {
    background-color: #fff;
    border: solid 1px #eee;
    margin-bottom: 10px;
    padding: 4px;
}

.post-single .elementor-image-gallery .gallery img {
    width: 100%;
    height: auto;
    margin: 0;
}

.post-single .elementor-image-gallery .gallery-columns-1 .gallery-item {
    margin: 1em auto;
    width: 100%;
}

.post-single .elementor-image-gallery .gallery-columns-2 .gallery-item {
    margin: 1em 2.5%;
    width: 45%;
}

.post-single .elementor-image-gallery .gallery-columns-3 .gallery-item {
    width: 30%;
}

.post-single .elementor-image-gallery .gallery-columns-4 .gallery-item {
    margin: 1em 1.5%;
    width: 22%;
}

.post-single .elementor-image-gallery .gallery-columns-5 .gallery-item {
    margin: 1em 1%;
    width: 18%;
}

.post-single .elementor-image-gallery .gallery-columns-6 .gallery-item {
    margin: 1em 1%;
    width: 15%;
}

@media (min-width: 768px) {
    .entry-content .page-block-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.elementor-widget-icon-list .elementor-icon-list-icon {
    color: var(--e-icon-list-icon-color, inherit);
}

/* Home slider (replaces flexslider) */
.site-slider {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.site-slider__viewport {
    position: relative;
    width: 100%;
}

.site-slider__slides {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-slider__slide {
    display: none;
}

.site-slider__slide.is-active {
    display: block;
}

.site-slider__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.site-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.site-slider__arrow--prev {
    left: 12px;
    padding-right: 2px;
}

.site-slider__arrow--next {
    right: 12px;
    padding-left: 2px;
}

/* Lightbox */
.site-lightbox-overlay[hidden] {
    display: none;
}

.site-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.site-lightbox-dialog {
    position: relative;
    max-width: min(960px, 100%);
    max-height: 100%;
}

.site-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    margin: 0 auto;
}

.site-lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 12px;
}

.site-lightbox-close,
.site-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.site-lightbox-close {
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
}

.site-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

.site-lightbox-nav--prev { left: -56px; }
.site-lightbox-nav--next { right: -56px; }

body.site-lightbox-open {
    overflow: hidden;
}

.search-results-section {
    margin-bottom: 2rem;
}

.search-results-section h2 {
    font-family: Oswald, Lato, Arial, sans-serif;
    font-size: 22px;
    margin-bottom: 1rem;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .site-lightbox-nav--prev { left: 8px; }
    .site-lightbox-nav--next { right: 8px; }
}

.tablepress-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tablepress {
    --text-color: #111111;
    --head-text-color: var(--text-color);
    --head-bg-color: #d9edf7;
    --odd-text-color: var(--text-color);
    --odd-bg-color: #ffffff;
    --even-text-color: var(--text-color);
    --even-bg-color: #f9f9f9;
    --hover-text-color: var(--text-color);
    --hover-bg-color: #f3f3f3;
    --border-color: #dddddd;
    --padding: 0.5rem;
    table-layout: auto;
    width: 100%;
    margin: 0 auto 1rem;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
}

.tablepress > :not(caption) > * > * {
    padding: var(--padding);
    border: none;
    background: none;
    text-align: left;
    vertical-align: top;
    box-sizing: border-box;
}

.tablepress > :where(thead) + tbody > :where(:not(.child)) > *,
.tablepress > tbody > * ~ :where(:not(.child)) > *,
.tablepress > tfoot > :where(:first-child) > * {
    border-top: 1px solid var(--border-color);
}

.tablepress > :where(thead, tfoot) > tr > * {
    background-color: var(--head-bg-color);
    color: var(--head-text-color);
    font-weight: bold;
    vertical-align: middle;
}

.tablepress > :where(tbody) > tr > * {
    color: var(--text-color);
}

.tablepress > :where(tbody.row-striping) > :nth-child(odd) > * {
    background-color: var(--odd-bg-color);
}

.tablepress > :where(tbody.row-striping) > :nth-child(even) > * {
    background-color: var(--even-bg-color);
}

.tablepress > :where(tbody.row-hover) > tr:hover > * {
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
}

.tablepress-table-name {
    margin: 0 0 0.5rem;
}

.tablepress-table-description {
    display: block;
    margin: 0.5rem 0 1rem;
}
