/* ==========================================================
   RICHARDPARRY.BLOG
   Indie-sleaze / image-blog interface
   Deliberately separate from richardparry.art
   ========================================================== */



/* ----------------------------------------------------------
   REMOVE .ART SITE FURNITURE
   ---------------------------------------------------------- */

.ds_site-header,
.ds_site-footer,
.ds_page__bottom,
footer {
    display: none !important;
}

.fragments-page
> .ds_wrapper
> nav[aria-label="Breadcrumb"] {
    display: none !important;
}


/* ----------------------------------------------------------
   GLOBAL
   ---------------------------------------------------------- */

html,
body,
.ds_page,
.ds_page-container,
.ds_page__middle,
.fragments-page,
.fragments-background {
    background: #000 !important;
    color: #fff !important;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}


/* ----------------------------------------------------------
   BLOG MASTHEAD
   small / scruffy / early-photo-blog
   ---------------------------------------------------------- */

.fragments-page {
    padding: 0 !important;
}

.fragments-page > .ds_wrapper {
    max-width: none !important;
    padding: 12px 12px 14px !important;
}

.fragments-page .ds_feature-header {
    margin: 0 !important;
    padding: 0 !important;
}

.fragments-page .ds_feature-header__primary,
.fragments-intro {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 7px;

    max-width: none !important;
}

.fragments-page .ds_feature-header__title {
    margin: 0 !important;
    max-width: none !important;

    color: #fff !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    letter-spacing: -1px !important;

    text-transform: lowercase;
}

#fragments-page-intro {
    margin: 0 !important;
    max-width: none !important;

    color: #ff3eb5 !important;

    font-family: "Courier New", Courier, monospace !important;
    font-size: 11px !important;
    line-height: 1 !important;

    text-transform: lowercase;
}


/* ----------------------------------------------------------
   ARCHIVE NAVIGATION
   ---------------------------------------------------------- */

.fragments-type-nav {
    display: flex !important;
    flex-wrap: wrap;

    gap: 3px 10px !important;

    margin: 13px 0 11px !important;
}

.fragments-type-button {
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: #fff !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-transform: uppercase !important;
    letter-spacing: 0 !important;

    text-decoration: underline;

    cursor: pointer;
}

.fragments-type-button:hover,
.fragments-type-button:focus-visible {
    background: transparent !important;
    color: #ff3eb5 !important;
}

.fragments-type-button.is-active {
    background: transparent !important;
    color: #ff3eb5 !important;

    text-decoration: none;
}

.fragments-type-button span {
    color: #aaa !important;

    font-family: "Courier New", Courier, monospace;
    font-size: 9px;
    font-weight: 400;
}


/* ----------------------------------------------------------
   RELATED TO
   ---------------------------------------------------------- */

.fragments-toolbar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;

    gap: 8px !important;

    margin: 0 0 12px !important;
}

.fragments-source-group {
    display: flex;
    align-items: center;

    gap: 6px;

    width: auto !important;
    max-width: 100%;
}

.fragments-source-group label {
    margin: 0 !important;

    color: #fff !important;

    font-family: "Courier New", Courier, monospace !important;
    font-size: 9px !important;
    font-weight: 400 !important;

    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}

.fragments-source-filter {
    width: auto !important;
    max-width: min(70vw, 420px);

    min-height: 24px !important;

    padding: 2px 24px 2px 4px !important;

    border: 1px solid #555 !important;
    border-radius: 0 !important;

    background: #fff !important;
    color: #000 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
}

.fragments-source-filter option {
    background: #fff !important;
    color: #000 !important;
}

.fragments-count {
    padding: 0 !important;

    color: #bbb !important;

    font-family: "Courier New", Courier, monospace !important;
    font-size: 9px !important;

    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}


/* ----------------------------------------------------------
   IMAGE ARCHIVE
   ---------------------------------------------------------- */

.fragments-background {
    margin: 0 !important;
    padding: 0 !important;
}

/* !important is deliberate because base Fragments CSS
   is emitted after blog.css. */

.fragments-grid {
    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 2px !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #000 !important;

    list-style: none !important;
}

.fragment-item {
    margin: 0 !important;
    min-width: 0;
}

.fragment-trigger {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: #111;

    cursor: zoom-in;
}

.fragment-image {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    /* harder / phone-camera / flash-photo treatment */
    filter:
        contrast(1.27)
        saturate(1.30)
        brightness(1.04);

    transition:
        filter 80ms linear,
        opacity 80ms linear;
}

.fragment-trigger:hover .fragment-image {
    opacity: .86;

    filter:
        contrast(1.38)
        saturate(1.42)
        brightness(1.08);
}


/* ----------------------------------------------------------
   LIGHTBOX
   Uses same image treatment as Blog grid.
   Width is controlled in index.php with:
   --fragments-lightbox-image-width: 300px;
   ---------------------------------------------------------- */

#fragments-lightbox {
    background: rgba(255,255,255,.98) !important;
}

#fragments-lightbox-image {
    filter:
        contrast(1.27)
        saturate(1.30)
        brightness(1.04);
}

#fragments-lightbox-close {
    color: #000 !important;
}


/* Lightbox typography matches Blog */

.fragments-lightbox__meta {
    color: #000 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

#fragments-lightbox-source {
    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1.1 !important;
    letter-spacing: -.3px;

    text-transform: lowercase;
}

#fragments-lightbox-context,
#fragments-lightbox-caption {
    font-family: "Courier New", Courier, monospace !important;
    font-size: 10px !important;
}

.fragments-lightbox__meta a {
    color: #ff3eb5 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;

    text-transform: lowercase;
}


/* ----------------------------------------------------------
   SOFT ACCESS WALL
   ---------------------------------------------------------- */

/* --------------------------------------------------------------------------
   BLOG SUBSCRIPTION WALL
   -------------------------------------------------------------------------- */

.blog-access-wall {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 20px;

    background: rgba(0, 0, 0, .45);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    align-items: center;
    justify-content: center;

    touch-action: pan-y;
}

.blog-access-wall.is-open {
    display: flex;
}

body.blog-access-wall-open {
    overflow-y: auto !important;
}


/* PANEL */

.blog-access-wall__box {
    position: relative;

    width: min(100%, 390px);

    padding: 0;

    background: #111;
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;

    box-shadow:
        0 20px 70px rgba(0,0,0,.5),
        0 0 0 1px rgba(255,255,255,.12);

    overflow: hidden;
}


/* TOP STRIP */

.blog-access-wall__strip {
    padding: 10px 42px 10px 16px;

    background: #ff3eb5;
    color: #000;

    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: .06em;
}


/* INNER CONTENT */

.blog-access-wall__inner {
    display: flex;
    flex-direction: column;

    min-height: 390px;

    padding: 28px 28px 24px;
}


/* LOGO */

.blog-access-wall__logo {
    display: block;

    width: 170px;
    max-width: 70%;

    height: auto;

    margin: 0 0 28px;

    object-fit: contain;
    object-position: left center;
}


/* TITLE */

.blog-access-wall__title {
    margin: 0 0 8px;

    color: #fff;

    font-size: 28px;
    line-height: 1;

    font-weight: 700;
}


/* PRICE / MAIN MESSAGE */

.blog-access-wall__price {
    margin-bottom: 26px;

    color: #fff;

    font-size: 25px;
    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -.02em;
}


/* BENEFITS */

.blog-access-wall__benefits {
    display: grid;
    gap: 9px;

    margin-bottom: 30px;

    font-family: "Courier New", Courier, monospace;

    font-size: 12px;
    line-height: 1.35;
}

.blog-access-wall__benefits > div {
    position: relative;

    padding-left: 17px;
}

.blog-access-wall__benefits > div::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    color: #ff3eb5;
}


/* CTA */

.blog-access-wall__buy {
    display: block;

    margin-top: auto;

    padding: 14px 18px;

    background: #ff3eb5 !important;
    color: #000 !important;

    border: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;
    font-weight: 700;

    text-align: center;
    text-decoration: none !important;
}

.blog-access-wall__buy:hover,
.blog-access-wall__buy:focus-visible {
    background: #fff !important;
    color: #000 !important;
}


/* SMALL PRINT */

.blog-access-wall__cancel {
    margin-top: 11px;

    color: #aaa;

    font-family: "Courier New", Courier, monospace;

    font-size: 10px;
    line-height: 1.3;

    text-align: center;
}


/* CLOSE */

.blog-access-wall__close {
    position: absolute;

    top: 6px;
    right: 9px;

    z-index: 5;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent !important;
    color: #000 !important;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 27px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}


/* MOBILE */

@media (max-width: 600px) {

    .blog-access-wall {
        padding: 12px;
    }

    .blog-access-wall__box {
        width: 100%;
        max-width: 360px;
    }

    .blog-access-wall__inner {
        min-height: 360px;

        padding:
            24px
            22px
            20px;
    }

    .blog-access-wall__logo {
        width: 145px;
        margin-bottom: 24px;
    }

    .blog-access-wall__title {
        font-size: 25px;
    }

    .blog-access-wall__price {
        font-size: 22px;
    }

}


/* Access box */

.blog-access-wall__box {
    position: relative;

    width: min(100%, 340px);

    padding: 22px;

    background: #fff;
    color: #000;

    font-family: Arial, Helvetica, sans-serif;

    box-shadow:
        0 0 0 1px rgba(0,0,0,.15);
}

.blog-access-wall__box h2 {
    margin: 0 28px 7px 0;

    font-size: 28px;
    font-weight: 700;
    line-height: .95;

    letter-spacing: -1px;
}

.blog-access-wall__box p {
    margin: 0 0 18px;

    font-size: 13px;
    line-height: 1.3;
}


/* X = return visitor to top */

.blog-access-wall__close {
    position: absolute;

    top: 8px;
    right: 10px;

    z-index: 2;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent !important;
    color: #000 !important;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}

.blog-access-wall__close:hover,
.blog-access-wall__close:focus-visible {
    color: #ff3eb5 !important;
}


/* Buy access */

.blog-access-wall__buy {
    display: block;

    padding: 9px 10px;

    background: #000;
    color: #fff !important;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;
}

.blog-access-wall__buy:hover,
.blog-access-wall__buy:focus-visible {
    background: #ff3eb5;
    color: #000 !important;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 1000px) {

    .fragments-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .fragments-page > .ds_wrapper {
        padding:
            10px
            8px
            12px !important;
    }

    .fragments-page .ds_feature-header__title {
        font-size: 21px !important;
    }

    .fragments-page .ds_feature-header__primary,
    .fragments-intro {
        gap: 5px;
    }

    .fragments-type-nav {
        gap: 3px 8px !important;
    }

    .fragments-source-group {
        width: 100% !important;
    }

    .fragments-source-filter {
        max-width: 75vw;
    }

    .fragments-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 1px !important;
    }

    .blog-access-wall {
        padding: 14px;
    }

    .blog-access-wall__box {
        width: min(100%, 300px);

        padding: 18px;
    }

    .blog-access-wall__box h2 {
        font-size: 25px;
    }

}.fragments-type-nav,
.fragments-source-group {
    display: none !important;
}
.fragments-toolbar {
    display: block !important;
    margin: 4px 0 10px !important;
}
.fragments-count {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #bbb !important;

    font-family: "Courier New", Courier, monospace !important;
    font-size: 9px !important;
    line-height: 1 !important;

    text-transform: lowercase !important;
}

.blog-access-wall {
    touch-action: pan-y;
}

a#fragments-page-intro {
    text-decoration: none;
    cursor: pointer;
}

a#fragments-page-intro:hover,
a#fragments-page-intro:focus-visible {
    text-decoration: underline;
}
/* --------------------------------------------------------------------------
   SUBSCRIPTION WALL — FINAL COLOUR OVERRIDES
   Keep at very end of blog.css
   -------------------------------------------------------------------------- */

.blog-access-wall__box {
    background: #111 !important;
    color: #fff !important;
}

.blog-access-wall__inner {
    background: #111 !important;
    color: #fff !important;
}

.blog-access-wall__title,
.blog-access-wall__price,
.blog-access-wall__benefits,
.blog-access-wall__benefits div {
    color: #fff !important;
}

.blog-access-wall__strip {
    background: #ff3eb5 !important;
    color: #000 !important;
}

.blog-access-wall__benefits > div::before {
    color: #ff3eb5 !important;
}

.blog-access-wall__buy,
.blog-access-wall__buy:link,
.blog-access-wall__buy:visited {
    background: #ff3eb5 !important;
    color: #000 !important;
}

.blog-access-wall__buy:hover,
.blog-access-wall__buy:focus {
    background: #fff !important;
    color: #000 !important;
}

.blog-access-wall__cancel {
    color: #aaa !important;
}

.blog-access-wall__close {
    color: white !important;
}

