/*
 Theme Name:   OFXPorn
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       RPN
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      1.1
*/

.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: var(--contrast-2);
    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: #000;
}

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

.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: var(--contrast-2)!important;
}

.upload-title-case-btn {
    background: var(--contrast-2)!important;
}

.upload-meta-inline strong {
    color: var(--contrast-2);
    font-weight: 600;
}

video {
    margin-bottom: 1rem;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    background: var(--contrast-2);
    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='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23595959' d='M6.94 2c.416 0 .753.324.753.724v1.46c.668-.012 1.417-.012 2.26-.012h4.015c.842 0 1.591 0 2.259.013v-1.46c0-.4.337-.725.753-.725s.753.324.753.724V4.25c1.445.111 2.394.384 3.09 1.055c.698.67.982 1.582 1.097 2.972L22 9H2v-.724c.116-1.39.4-2.302 1.097-2.972s1.645-.944 3.09-1.055V2.724c0-.4.337-.724.753-.724'/%3E%3Cpath fill='%23595959' d='M22 14v-2c0-.839-.004-2.335-.017-3H2.01c-.013.665-.01 2.161-.01 3v2c0 3.771 0 5.657 1.172 6.828S6.228 22 10 22h4c3.77 0 5.656 0 6.828-1.172S22 17.772 22 14' opacity='0.5'/%3E%3Cpath fill='%23595959' d='M18 17a1 1 0 1 1-2 0a1 1 0 0 1 2 0m0-4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-5 4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m0-4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-5 4a1 1 0 1 1-2 0a1 1 0 0 1 2 0m0-4a1 1 0 1 1-2 0a1 1 0 0 1 2 0'/%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='%23595959' 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='%23595959' 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='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23595959' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10' opacity='0.5'/%3E%3Cpath fill='%23595959' fill-rule='evenodd' d='M12 7.25a.75.75 0 0 1 .75.75v3.69l2.28 2.28a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1-.22-.53V8a.75.75 0 0 1 .75-.75' clip-rule='evenodd'/%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='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23595959' d='M2 6.5c0-2.121 0-3.182.659-3.841S4.379 2 6.5 2s3.182 0 3.841.659S11 4.379 11 6.5s0 3.182-.659 3.841S8.621 11 6.5 11s-3.182 0-3.841-.659S2 8.621 2 6.5m11 11c0-2.121 0-3.182.659-3.841S15.379 13 17.5 13s3.182 0 3.841.659S22 15.379 22 17.5s0 3.182-.659 3.841S19.621 22 17.5 22s-3.182 0-3.841-.659S13 19.621 13 17.5' opacity='0.5'/%3E%3Cpath fill='%23595959' d='M2 17.5c0-2.121 0-3.182.659-3.841S4.379 13 6.5 13s3.182 0 3.841.659S11 15.379 11 17.5s0 3.182-.659 3.841S8.621 22 6.5 22s-3.182 0-3.841-.659S2 19.621 2 17.5m11-11c0-2.121 0-3.182.659-3.841S15.379 2 17.5 2s3.182 0 3.841.659S22 4.379 22 6.5s0 3.182-.659 3.841S19.621 11 17.5 11s-3.182 0-3.841-.659S13 8.621 13 6.5'/%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: var(--base-2);
    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;
    }
}