/*
 Theme Name:   FSI
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      1.0
*/

.nav-links {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    margin: 10px 0;
    flex-wrap: wrap;
}

.paging-navigation .nav-links>* {
    padding: 5px;
    min-width: 50px;
    flex: auto;
    text-align: center;
    color: #fff;
    background: #753e18;
    text-decoration: none;
}

.separate-containers .paging-navigation {
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}

span.page-numbers.dots {
    display: none;
}

a.page-numbers:hover,
.page-numbers:hover {
    color: #fff;
    background: #461f00;
}

span.page-numbers.current {
    background: #461f00;
}

.pld-like-dislike-wrap {
    margin-bottom: 0px;
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 10px;
}

.pld-like-dislike-wrap .pld-common-wrap {
    margin-right: 0;
    flex: auto;
    text-align: center;
}

a.pld-dislike-trigger,
a.pld-like-trigger {
    display: block;
    position: relative;
    padding: 5px;
}

.pld-count-wrap {
    margin: 0;
    width: 100%;
    display: block;
}

.pld-common-wrap {
    background: #e1dbc2;
}

.pld-common-wrap:hover {
    background: #ffffff;
}


/* Loop post-format badges centered on thumbnail only */

.blog .format-video .post-image,
.archive .format-video .post-image,
.search .format-video .post-image,
.blog .format-image .post-image,
.archive .format-image .post-image,
.search .format-image .post-image,
.blog .format-gallery .post-image,
.archive .format-gallery .post-image,
.search .format-gallery .post-image {
    position: relative;
}

.blog .format-video .post-image::before,
.archive .format-video .post-image::before,
.search .format-video .post-image::before,
.blog .format-image .post-image::before,
.archive .format-image .post-image::before,
.search .format-image .post-image::before,
.blog .format-gallery .post-image::before,
.archive .format-gallery .post-image::before,
.search .format-gallery .post-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    backdrop-filter: blur(10px);
    padding: 7px;
    border-radius: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 35px 35px;
    pointer-events: none;
    z-index: 2;
    background-color: #00000063;
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.22s ease, backdrop-filter 0.22s ease;
}

.blog .inside-article:hover .post-image::before,
.archive .inside-article:hover .post-image::before,
.search .inside-article:hover .post-image::before,
.blog .post-image:hover::before,
.archive .post-image:hover::before,
.search .post-image:hover::before {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    backdrop-filter: blur(0);
}

.blog .format-video .post-image::before,
.archive .format-video .post-image::before,
.search .format-video .post-image::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10m-1.306-6.154l4.72-2.787c.781-.462.781-1.656 0-2.118l-4.72-2.787C9.934 7.706 9 8.29 9 9.214v5.573c0 .923.934 1.507 1.694 1.059' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.blog .format-image .post-image::before,
.archive .format-image .post-image::before,
.search .format-image .post-image::before,
.blog .format-gallery .post-image::before,
.archive .format-gallery .post-image::before,
.search .format-gallery .post-image::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M9.778 21h4.444c3.121 0 4.682 0 5.803-.735a4.4 4.4 0 0 0 1.226-1.204c.749-1.1.749-2.633.749-5.697s0-4.597-.749-5.697a4.4 4.4 0 0 0-1.226-1.204c-.72-.473-1.622-.642-3.003-.702c-.659 0-1.226-.49-1.355-1.125A2.064 2.064 0 0 0 13.634 3h-3.268c-.988 0-1.839.685-2.033 1.636c-.129.635-.696 1.125-1.355 1.125c-1.38.06-2.282.23-3.003.702A4.4 4.4 0 0 0 2.75 7.667C2 8.767 2 10.299 2 13.364s0 4.596.749 5.697c.324.476.74.885 1.226 1.204C5.096 21 6.657 21 9.778 21M12 9.273c-2.301 0-4.167 1.831-4.167 4.09S9.7 17.456 12 17.456s4.167-1.832 4.167-4.091S14.3 9.273 12 9.273m0 1.636c-1.38 0-2.5 1.099-2.5 2.455c0 1.355 1.12 2.454 2.5 2.454s2.5-1.099 2.5-2.454s-1.12-2.455-2.5-2.455m4.722-.818c0-.452.373-.818.834-.818h1.11c.46 0 .834.366.834.818a.826.826 0 0 1-.833.818h-1.111a.826.826 0 0 1-.834-.818' clip-rule='evenodd'/%3E%3C/svg%3E");
}

:root {
    --btn: #753e18;
    --border: #753e18;
}

.upload-drop:hover {
    color: #000!important;
    border-color: #000!important;
}

.upload-chip {
    background: #753e18!important;
}

.upload-title-case-btn {
    background: #753e18!important;
}

.upload-meta-inline strong {
    color: #753e18;
    font-weight: 600;
}

video {
    margin-bottom: 1rem;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    background: #753e18;
    outline: 0;
}

@supports (position:sticky) {
    .wp-block-video [poster] {
        object-fit: contain;
    }
}

.single-format-video figure.wp-block-gallery {
    display: flex;
    overflow-x: scroll;
    scrollbar-width: thin;
    padding-bottom: 10px;
    align-items: normal;
    flex-wrap: nowrap;
}

.single-format-video figure.wp-block-image {
    min-width: 170px;
}

.home .entry-meta,
.search .entry-meta,
.archive .entry-meta {
    color: #595959;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    justify-content: space-between;
}

.wp-singular .entry-meta {
    color: #595959;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wp-singular footer.entry-meta {
    display: inline-block;
}

.wp-singular span.author.vcard {
    padding-left: 5px;
}

.entry-meta .posted-on,
.entry-meta .gp-post-views,
.entry-meta .gp-post-duration,
.entry-meta .gp-post-item-count,
.entry-meta .byline {
    display: inline-flex;
    align-items: center;
}

.entry-meta .posted-on::before,
.entry-meta .gp-post-views::before,
.entry-meta .gp-post-duration::before,
.entry-meta .gp-post-item-count::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    flex: 0 0 18px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.entry-meta .posted-on::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%237a3f0f' d='M12 6a1 1 0 0 1 1 1v4.422l2.098 1.212a1 1 0 0 1-1 1.732l-2.598-1.5A1 1 0 0 1 11 12V7a1 1 0 0 1 1-1'/%3E%3Cpath fill='%237a3f0f' d='M2 12A10 10 0 1 0 12 2A10 10 0 0 0 2 12m9-5a1 1 0 0 1 2 0v4.422l2.098 1.212a1 1 0 0 1-1 1.732l-2.598-1.5A1 1 0 0 1 11 12Z' opacity='0.5'/%3E%3C/svg%3E");
}

.entry-meta .gp-post-views::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%237a3f0f' d='M2 12c0 1.64.425 2.191 1.275 3.296C4.972 17.5 7.818 20 12 20s7.028-2.5 8.725-4.704C21.575 14.192 22 13.639 22 12c0-1.64-.425-2.191-1.275-3.296C19.028 6.5 16.182 4 12 4S4.972 6.5 3.275 8.704C2.425 9.81 2 10.361 2 12' opacity='0.5'/%3E%3Cpath fill='%237a3f0f' fill-rule='evenodd' d='M8.25 12a3.75 3.75 0 1 1 7.5 0a3.75 3.75 0 0 1-7.5 0m1.5 0a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.entry-meta .gp-post-duration::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%237a3f0f' fill-rule='evenodd' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10' clip-rule='evenodd' opacity='0.5'/%3E%3Cpath fill='%237a3f0f' d='m15.414 13.059l-4.72 2.787C9.934 16.294 9 15.71 9 14.786V9.214c0-.924.934-1.507 1.694-1.059l4.72 2.787c.781.462.781 1.656 0 2.118'/%3E%3C/svg%3E");
}

.entry-meta .gp-post-item-count::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%237a3f0f' fill-rule='evenodd' d='M3.464 3.464C2 4.93 2 7.286 2 12s0 7.071 1.464 8.535C4.93 22 7.286 22 12 22s7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536C19.072 2 16.714 2 12 2S4.929 2 3.464 3.464' clip-rule='evenodd' opacity='0.5'/%3E%3Cpath fill='%237a3f0f' d='M8.504 13.177a1.55 1.55 0 0 0-2.183-.073l-.81.753a.75.75 0 0 1-1.021-1.1l.81-.752a3.05 3.05 0 0 1 4.296.143l2.647 2.81a.795.795 0 0 0 1.054.092a3.07 3.07 0 0 1 3.953.241l2.268 2.167a.75.75 0 0 1-1.036 1.084l-2.268-2.166a1.57 1.57 0 0 0-2.02-.123a2.295 2.295 0 0 1-3.043-.266zM18 8a2 2 0 1 1-4 0a2 2 0 0 1 4 0'/%3E%3C/svg%3E");
}


/* Wrapper */

.gp-related-posts {
    margin-top: 10px;
}


/* Masonry Layout */

.gp-related-grid {
    column-count: 3;
    column-gap: 2px;
}


/* Card */

.gp-related-item {
    break-inside: avoid;
    margin-bottom: 3px;
    background: #e2dbc0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.gp-related-item:hover {
    transform: translateY(-4px);
}


/* Image */

.gp-related-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gp-related-item a {
    text-decoration: none;
}


/* Title */

.gp-related-item h4 {
    font-size: 18px;
    padding: 10px;
    margin: 0;
    line-height: 1.2;
    color: var(--contrast);
}

@media (max-width: 768px) {
    .gp-related-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gp-related-grid {
        column-count: 1;
    }
    .gp-related-item {
        margin-bottom: 10px;
    }
}