body {
    background-color: #fff;
}

.wp-site-blocks {
    background-color: #f0f0f0;
    overflow: hidden;
}

.wp-block-group {
    background-color: #fff;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
}

.wp-block-latest-posts {
    padding: 1rem;
}

.wp-block-latest-posts.wp-block-latest-posts__list {
    padding-left: 1rem !important;
}

.jep-main-wrap {
    padding-top: 1rem;
}

body.search.search-results {
#search-page--search-form .search-box {
    position: relative;
    top: 0;
    margin: 0 auto;
}
}

#search-page--search-form {
    background: #f9f9f9;
    padding: 30px;
    margin-bottom: 1.3rem;

form.search-form {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #b0b0b0;

input[type="search"] {
    padding: 0.625rem 1rem;
    background: #fff;
    font-size: 13px;
    width: 100%;
    outline: 0;
    background-color: #fff;
    font-size: 14px;
}

button.search-submit {
    display: flex;
    align-items: center;
    background-color: $accent-color;
    color: #fff;
    padding: 0.5rem 1.25rem;
    text-transform: uppercase !important;
    line-height: 1.3rem;
    transition: all 0.3s ease;

&:hover {
     background-color: #000000;
 }
}
}

.search-page--search-results {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    padding: 0.8rem;
    background-color: #fff;
    box-shadow: 1px 2px 1px #ddd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;

&__list {
     padding: 0;
 }

&__more-posts {
a {
    font-weight: 600;
    color: $primary;
}
}
}
}

.search-results .ps-post-category article > a:before {
    background-image: url("https://placehold.jp/12/a1a1a1/ffffff/150x150.png?text=Jersey%20Evening%20Post");
}

.jep-pagination {
    margin: 1rem 0;

a {
    padding: 5px 11px;
    border: 1px solid #e3e3e3;
    display: inline-block;
    margin: 0 8px 8px 0;
    min-width: 33px;
    text-align: center;
    color: #666;
    line-height: 21px;
}

span.current {
    border-color: $accent-color;
    background-color: $accent-color;
    color: #fff;
    padding: 5px 11px;
    border: 1px solid #e3e3e3;
    display: inline-block;
    margin: 0 8px 8px 0;
    min-width: 33px;
    text-align: center;
    line-height: 21px;
}

a.page-numbers:hover {
    color: #fff;
    background-color: #444;
    border-color: #444;
}
}

body.home {
.most-read-posts {
article:hover .ps-post-category__post-content a {
    color: $accent-color;
}

.ps-post-category {
    padding: 0 0 1rem 0 !important;

.ps-post-category__post-content {
    display: flex;
    flex-direction: column;
    margin-left: 10px;

span {
    font-size: 13px;
}
}
}

.most-read-posts {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 1rem;
}
}
}

body.single {
main {
    padding: 0 1rem;

.wp-container-5 {
    gap: 1em !important;
}
}

h1.jep_title {
    font-weight: 700;
}

.jep_post__info {
    margin-bottom: 1rem;

span {
    font-size: 0.9rem;
    color: #969696;
}
}

figure.wp-block-ps-post-featured-image,
figure.wp-block-image {
img {
    width: 100%;
}

figcaption {
    margin-top: 0.5rem;
    color: #555;
    font-size: 12px;
    text-align: center;
    font-style: italic;
}
}

figure.wp-block-ps-post-featured-image {
figcaption {
    text-align: left;
}
}

.wp-block-jep-social-sharing {
a {
    display: inline-block;
    margin: 0 3px 10px;
    min-width: 40px;
    font-size: 11px;
    text-align: center;
    vertical-align: middle;
    transition: opacity 0.2s ease 0s;

.social-icon {
    line-height: 38px;
    border-width: 1px;
    border-style: solid;
    border-radius: 2px;
    border-color: #e9e9e9;
    padding-left: 13px;
    padding-right: 13px;

i {
    font-size: 18px;
}
}
}
}
}

@media print {
    .print_hide {
        display: none;
    }

    #tbl-next-up {
        display: none;
    }
}

nav#jep-primary ul li:hover > ul {
    display: inherit;
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.15);
}

.wp-block-ps-most-read-posts.mostread_post .post-content a > h3 {
    font-size: 13px;
    line-height: 1.2;
}
.wp-block-ps-most-read-posts.mostread_post {
    padding-left: 0;
    padding-top: 0;
}
.wp-block-ps-most-read-posts.mostread_post article > a:before {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
    max-width: 108px;
    max-height: 68px;
}
.wp-block-ps-most-read-posts.mostread_post article > a {
    display: block;
    padding-bottom: 24%;
    position: relative;
    float: left;
    width: 40%;
}
.wp-block-ps-most-read-posts.mostread_post article > a > img {
    background-position: 50%;
    background-size: cover;
    height: 100%;
    opacity: 1;
    position: absolute;
    transition: opacity 0.3s;
    transition-timing-function: cubic-bezier(0.39, 0.76, 0.51, 0.56);
    width: 100%;
    max-width: 108px;
    max-height: 68px;
}
.wp-block-ps-most-read-posts.mostread_post .post-content {
    margin: 0rem;
    float: right;
    width: 60%;
}
/*Weather and Fireplace Adverts*/
#__fireplace-top {
    width: 1120px;
    background-size: cover;
    display: block;
}

#__fireplace-left,
#__fireplace-right {
    height: 100%;
    width: 330px;
    display: block;
    top: 0;
    bottom: 0;
    left: 50%;
    position: fixed;
}

#__fireplace-right {
    transform: translateX(535px);
    background-position: left top;
}

#__fireplace-left {
    transform: translateX(-865px);
    background-position: right top;
}

._weather-row {
    box-sizing: border-box;
    display: flex;
    padding-top: 10px;
    justify-content: center;
    width: 100%;
}

._weather-row._weather-row-week {
    box-sizing: border-box;
    padding: 20px 0px;
    flex-wrap: wrap;
}

._weather-box {
    box-sizing: border-box;
    height: 140px;
    width: calc(100% / 6);
    flex: 0 0 auto;
    background: #ececec;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    user-select: none;
    padding: 10px;
}
._weather-row-info ._weather-box h2{
    font-size: 35px;
}
._weather-row-week > ._weather-box {
    cursor: pointer;
    align-items: center;
}

._weather-box.active {
    background: white;
}

._weather-box.active ._weather-box-day,
._weather-box.active ._weather-box-temp {
    font-weight: bold;
}

._weather-box-day,
._weather-box-temp {
    font-size: 16px;
    margin: 0;
}

._weather-row-info {
    flex-wrap: wrap;
}

._weather-box-wide {
    width: 100%;
    display: flex;
}

._weather-row-info ._weather-box {
    background: white;
    height: 100px;
}

._weather-row-info ._weather-box h2,
._weather-row-info ._weather-box h1 {
    margin: 0;
}

.padding-24 {
    padding: 0 !important;
}

._weather-box-wide h1 {
    font-size: 1.66rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 0.5rem;
}

._weather-box-wide h2 {
    font-size: 1.125rem;
    margin: 0;
    font-weight: 700;
}

._weather-box-wide p {
    margin: 0;
    margin-bottom: 1rem;
}

._weather-box-hightemp {
    color: #b36363;
}

._weather-box-lowtemp {
    color: #6c6cbb;
}

._weather-row-info ._weather-box-day {
    text-transform: uppercase;
    color: #666;
    font-size: 0.875rem;
}

._weather-box ._weather-box-temp {
    margin: 0;
}

._weather-box img {
    height: 60px;
    margin: 0;
}

._weather-box-forecast {
    flex: 0 0 70%;
    padding-right: 20px;
}

._weather-box-forecast.hidden {
    visibility: hidden;
}

._weather-data {
    display: flex;
    width: 100%;
}

._weather-box-tides table,
._weather-box-tides table td {
    border: none;
}

._weather-box-tides table td:first-of-type {
    font-weight: bold;
}

._weather-box-tides {
    min-width: 250px;
}

._shipping-info-parent {
    padding: 20px 40px;
}

._shipping-info-parent > * {
    margin: 0;
    margin-bottom: 0.75rem;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
}

._shipping-info-parent h2 {
    font-weight: bold;
    font-size: 1.125rem;
}

._shipping-info-parent dt {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

._shipping-info-parent dd {
    margin: 0;
    margin-bottom: 0.8rem;
}

._shipping-link-weather {
    width: 100%;
    background: #ececec;
}

._shipping-link-weather a {
    padding-top: 10px;
    padding-bottom: 10px;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    display: block;
    font-size: 1rem;
    padding-left: 20px;
}

._shipping-link-weather a:hover {
    text-decoration: underline;
}

._sb-active .subscribe-banner {
    display: block !important;
}

._eb-active .emergency-banner {
    display: block !important;
}

@media only screen and (max-width: 1120px) {
    ._weather-box {
        width: calc(100% / 6);
        min-width: 110px;
    }

    ._weather-data ._weather-box {
        min-width: 115px;
    }

    ._weather-box-forecast {
        flex: 1 1 auto;
    }
}

@media only screen and (max-width: 767px) {
    ._weather-row._weather-row-week {
        flex-direction: column;
    }

    ._weather-row._weather-row-week > ._weather-box {
        width: 100%;
        flex-direction: row;
        height: 60px;
        border: 1px solid #ececec;
    }

    ._weather-row._weather-row-week > ._weather-box:not(:first-of-type) {
        border-top: none;
    }

    ._weather-row-info {
        order: 1;
        padding-top: 0;
    }

    ._weather-row._weather-row-week {
        padding: 20px;
        flex-wrap: wrap;
    }

    ._weather-box-forecast.hidden {
        display: none;
    }

    ._weather-box-tides {
        min-width: min(100%, 350px);
    }

    ._weather-box-wide,
    ._weather-data {
        flex-wrap: wrap;
        padding-bottom: 10px;
    }

    ._weather-data {
        background: #ececec;
    }

    ._weather-box-wide {
        border: 1px solid #ececec;
        padding: 10px;
    }

    ._weather-row-week > ._weather-box > ._weather-box-day {
        width: 40%;
        padding-left: 10px;
    }

    ._weather-box img {
        height: 40px;
    }

    ._weather-box ._weather-box-temp {
        margin-left: auto;
        margin-right: 10%;
    }

    ._weather-box-wide > * {
        flex: 0 0 100%;
    }

    ._weather-box[data-day="t1"] {
        order: 1;
    }

    ._weather-box[data-day="t2"] {
        order: 2;
    }

    ._weather-box[data-day="t3"] {
        order: 3;
    }

    ._weather-box[data-day="t4"] {
        order: 4;
    }

    ._weather-box[data-day="t5"] {
        order: 5;
    }

    ._weather-box[data-day="t6"] {
        order: 6;
    }

    ._weather-box {
        background: white;
    }

    ._weather-data ._weather-box {
        min-width: 50%;
        align-items: center;
        background: #ececec;
        text-align: center;
        height: 80px;
    }

    ._weather-box-forecast {
        padding: 0;
    }

    ._weather-row-week > ._weather-box::after {
        content: "";
        background-image: url("./assets/arrow.png");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        height: 15px;
        width: 15px;
        display: inline-block;
        margin-right: 10px;
    }

    ._weather-row-week > ._weather-box > ._weather-box-temp {
        padding: 0 10px;
    }
}

@media only screen and (max-width: 380px) {
    ._weather-box ._weather-box-temp {
        margin-right: 5%;
    }

    ._weather-row:first-of-type {
        padding: 20px 0;
    }
}

.puzzles-text a {
    color: #e80521;
}

body.search {
#search-page--search-form {
button.search-submit {
    display: none;
}
}
}

@include media-breakpoint-up(xl) {
    #search-page--search-form {
    form.search-form {
        width: 50%;
    }

    .search-page--search-results {
        width: 50%;
    }
}
}

#ps-tts-player {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    background-color: #a1a1a1;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    color: #fff;

p {
    margin-bottom: 0;
}

button {
i {
    font-size: 22px;

&:hover {
     color: $primary;
 }
}
}
}

span.td-adspot-title {
    color: #767676;
    display: block;
    font-size: 10px;
    line-height: 21px;
    text-align: center;
}

.JEPPS-premium-box {
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
    font-family: "Roboto", sans-serif;
    border: 2px solid $primary;
    margin-bottom: 2rem;
    border-radius: 30px;

&::before {
     content: "";
     position: absolute;
     background: linear-gradient(
             0deg,
             #fff,
             #fff 25%,
             rgba(255, 255, 255, 0) 100%
     );
     top: -5px;
     left: -3px;
     right: 0;
     height: 120px;
     width: 100%;
     transform: translateY(-100%);
 }

p {
    margin-bottom: 0.5rem;
    line-height: 1.5rem;
    padding: 0 1rem;
}

p > a,
ul li > a {
    color: $primary;

&:hover {
     color: #000;
 }
}

p:nth-of-type(1) {
    font-weight: 600;
    color: $primary;
    padding: 1rem 0;
    font-size: 20px;
    line-height: 1.5rem;
}

ul {
    text-align: left;
    list-style-type: none;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    display: block;
    width: 80%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

ul li {
    display: inline-block;
    margin-bottom: 7px;
    text-indent: -16px;
}

ul li::before {
    content: "\2713";
    font-size: 1rem;
    margin-right: 7px;
    font-weight: 600;
    color: $primary;
}

a:nth-of-type(1):not(p > a):not(ul li > a) {
    background-color: $primary;
    padding: 0.5rem 1rem;
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: opacity 0.2s;
    opacity: 1;

&:hover {
     opacity: 0.8;
 }
}

a:nth-of-type(2):not(p > a):not(ul li > a) {
    display: block;
}

@include media-breakpoint-up(sm) {
    ul li {
        display: flex;
        margin-bottom: 7px;
        text-indent: 0;
    }
}
}