/*
Theme Name: Evenden Art
Theme URI: https://vectorfine.art/
Author: G.Evenden
Description: Custom theme for vectorfine.art. Reproduces the previous look (The7 + Elementor) with a small, archive-ready classic theme: Arial only, inline SVG icons, nothing loaded from other websites, and a tiny script for the menus and back-to-top. The portfolio, details pages and viewer come from the Vector Fine Art Viewer plugin.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: evenden-art
*/

/* ==========================================================================
   Values measured on vectorfine.art (November 2026)
   ========================================================================== */
:root {
    --ea-font: Arial, Helvetica, sans-serif;
    --ea-text: #8b8d94;
    --ea-heading: #e8e8e8;
    --ea-page-bg: #000000;
    --ea-body-bg: #1a1a1a;
    --ea-panel-bg: #363636;          /* desktop menu button and panel */
    --ea-menu-line: #efefef;         /* hamburger lines */
    --ea-menu-line-hover: #cecece;
    --ea-bar-bg: #111111;            /* top bar */
    --ea-bar-line: #555555;
    --ea-mob-panel-bg: #1c1c1c;
    --ea-mob-item: #bfbfbf;
    --ea-divider: #6b6b6b;
    --ea-close: #d1d1d1;
    --ea-admin-bar: 0px;
}

.admin-bar { --ea-admin-bar: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar { --ea-admin-bar: 46px; }
}
@media screen and (max-width: 600px) {
    .admin-bar { --ea-admin-bar: 0px; }   /* the admin bar scrolls away on small phones */
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Border-box only for the theme's own parts: plugin and page content keep the browser default,
   as they did under The7 (the details page layout depends on it). */
#main > .wf-wrap,
.ea-burger, .ea-burger *, .ea-close, .ea-close *, .ea-panel, .ea-panel *,
.ea-topbar, .ea-topbar *, .ea-overlay, .ea-footer, .ea-footer *, .ea-to-top, .ea-to-top *,
.ea-searchform, .ea-searchform *, .ea-skip-link {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ea-body-bg);
    color: var(--ea-text);
    font-family: var(--ea-font);
    font-size: 16px;
    line-height: 1.2em;
    word-wrap: break-word;
}

a {
    color: #ffffff;
    text-decoration: none;
}

p {
    margin: 0 0 10px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px;
    color: var(--ea-heading);
    font-family: var(--ea-font);
    font-weight: 700;
}
h1 { font-size: 52px; line-height: 1.5em; }
h2 { font-size: 34px; line-height: 1.5em; }

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ea-skip-link:focus {
    position: fixed !important;
    top: 6px;
    left: 60px;
    z-index: 100000;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    background: #ffffff;
    color: #000000;
}

:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Touch and mouse use: no focus outline on the theme's own buttons (keyboard users still get it) */
.ea-pointer .ea-burger:focus,
.ea-pointer .ea-close:focus,
.ea-pointer .ea-to-top:focus,
.ea-pointer .ea-panel a:focus {
    outline: none;
}

/* ==========================================================================
   Page wrapper
   ========================================================================== */
#page {
    position: relative;
    background: var(--ea-page-bg);
}

#main {
    padding: 10px 0;
}

#main > .wf-wrap {
    position: relative;
    width: 1300px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

/* Portfolio pages: 2% above and below, as on live */
.ea-gallery-page #main {
    padding-top: 2%;
    padding-bottom: 2%;
}

@media screen and (max-width: 778px) {
    #main > .wf-wrap {
        padding: 0 10px;
    }
}

/* Portfolio pages: the gallery is at most 1140 px wide and centred. On screens 1025 px and
   wider it is pulled up 45 px, as on live (this used to come from the Elementor page box). */
.ea-gallery-page .ea-entry {
    max-width: 1140px;
    margin: 0 auto;
}
@media screen and (min-width: 1025px) {
    .ea-gallery-page .ea-entry {
        margin-top: -45px;
    }
}

/* Small desktops and tablets in landscape (993 to 1299 px): wider side margins on portfolio pages
   so the search box keeps a 20 px gap from the fixed menu button (52 px wide). From 1300 px the
   gallery is already clear of the button. A change from live, at the owner's request. */
@media screen and (min-width: 993px) and (max-width: 1299px) {
    .ea-gallery-page #main > .wf-wrap {
        padding-left: 72px;
        padding-right: 72px;
    }
}

/* Tablets in landscape and small desktops: the search box (40 px tall) sits beside the fixed menu
   button (50 px tall), starting 8 px from the top of the screen, as the owner chose (no space above
   the page, and the gallery's own 20 px top padding pulled up by 12 px). Applies from 993 to 1299 px, and on
   touch screens (tablets) up to 1400 px, such as the 12.9-inch iPad Pro. A change from live, at the
   owner's request. */
@media screen and (min-width: 993px) and (max-width: 1299px) {
    .ea-gallery-page #main {
        padding-top: 0;
    }
    .ea-gallery-page .ea-entry {
        margin-top: -12px;
    }
}
@media screen and (min-width: 993px) and (max-width: 1400px) and (hover: none) and (pointer: coarse) {
    .ea-gallery-page #main {
        padding-top: 0;
    }
    .ea-gallery-page .ea-entry {
        margin-top: -12px;
    }
}

/* Plain pages (About and any other page without the gallery): a centred box with 1140 px of
   content width, 10 px padding and at least one screen tall, as the Elementor box was on live. */
.page:not(.ea-gallery-page) .ea-entry {
    box-sizing: border-box;
    max-width: 1160px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 10px;
}
.page:not(.ea-gallery-page) .ea-entry > h1,
.page:not(.ea-gallery-page) .ea-entry > h2 {
    margin: 0 0 20px;
}
.page:not(.ea-gallery-page) .ea-entry p {
    font-size: 1.2em;
    line-height: 1.2em;
}
/* A blank line between paragraphs and after the last one, as on live */
.page:not(.ea-gallery-page) .ea-entry p + p {
    margin-top: calc(1.2em + 20px);
}
.page:not(.ea-gallery-page) .ea-entry p:last-child {
    margin-bottom: calc(1.2em + 10px);
}
.has-text-align-center {
    text-align: center;
}

/* Page titles shown by the theme (page not found, search results) */
.entry-title {
    font-size: 34px;
    line-height: 51px;
    text-align: center;
}

.error404 .ea-entry,
.not-found {
    text-align: center;
}

/* Page not found keeps some height above the footer, as on live */
.error404 #content {
    min-height: 500px;
}

/* Search box (404 page) */
.ea-searchform {
    position: relative;
    max-width: 100%;
}

.ea-searchform .searchform-s {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 5px 40px 5px 15px;
    border: 1px solid rgba(51, 51, 51, 0.11);
    border-radius: 2px;
    background: #fdfdfd;
    color: #333333;
    font-family: var(--ea-font);
    font-size: 15px;
    line-height: 18px;
    -webkit-appearance: none;
    appearance: none;
}

.ea-searchform .searchform-s::placeholder {
    color: #aaaaaa;
}

.ea-search-submit {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aaaaaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ea-list-title { font-size: 22px; line-height: 1.4em; }

/* ==========================================================================
   Hamburger (shared)
   ========================================================================== */
.ea-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ea-burger-lines {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}

.ea-burger-lines span {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--ea-menu-line);
    transition: background-color 0.2s;
}
.ea-burger-lines span:nth-child(1) { top: 0; }
.ea-burger-lines span:nth-child(2) { top: 7px; }
.ea-burger-lines span:nth-child(3) { top: 14px; }

.ea-burger:hover .ea-burger-lines span {
    background: var(--ea-menu-line-hover);
}

/* X icon (shared) */
.ea-x {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}
.ea-x::before,
.ea-x::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--ea-close);
    transition: background-color 0.2s;
}
.ea-x::before { transform: rotate(45deg); }
.ea-x::after  { transform: rotate(-45deg); }

.ea-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}
.ea-close:hover .ea-x::before,
.ea-close:hover .ea-x::after {
    background: #ffffff;
}

/* Social icons (shared) */
.ea-social {
    display: flex;
    align-items: center;
}

.ea-social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 100px;
    color: #cccccc;
    background: rgba(0, 0, 0, 0.14);
    transition: background-color 0.2s, color 0.2s;
}
.ea-social-link + .ea-social-link {
    margin-left: 20px;
}
.ea-social-link:hover {
    background: #606060;
    color: #ffffff;
}
.ea-social-link .ea-icon {
    display: block;
    width: 16px;
    height: 16px;
}

/* Overlays behind open panels */
.ea-overlay {
    position: fixed;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
}
.ea-overlay.is-open {
    opacity: 1;
}
.ea-overlay[hidden] {
    display: none !important;
}
.ea-desk-overlay { z-index: 9401; background: rgba(17, 17, 17, 0.4); }
.ea-mob-overlay  { z-index: 9601; background: rgba(17, 17, 17, 0.5); }

/* Panels are out of reach (and out of the tab order) while closed */
.ea-panel {
    visibility: hidden;
}
.ea-panel.is-open {
    visibility: visible;
}

/* ==========================================================================
   Desktop menu: 993 px and wider
   ========================================================================== */
.ea-desk-toggle {
    position: fixed;
    top: var(--ea-admin-bar);
    left: 0;
    z-index: 500;
    width: 52px;
    height: 50px;
    padding: 17px 15px;
    background: var(--ea-panel-bg);
}

.ea-desk-panel {
    position: fixed;
    top: var(--ea-admin-bar);
    bottom: 0;
    left: 0;
    z-index: 9402;
    display: flex;
    flex-direction: column;
    width: 15%;
    background: var(--ea-panel-bg);
    transform: translateX(-100%);
    transition: transform 0.5s, visibility 0s linear 0.5s;
}
.ea-desk-panel.is-open {
    transform: translateX(0);
    transition: transform 0.5s, visibility 0s;
}

.ea-desk-close {
    top: 0;
    right: 0;
    width: 50px;
    height: 54px;
    background: var(--ea-panel-bg);
}

.ea-desk-nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding-top: 54px;     /* keeps the items clear of the close button on short screens */
    overflow-y: auto;
}

.ea-desk-nav .ea-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ea-desk-nav .menu-item {
    position: relative;
    display: flex;
    justify-content: center;
    height: 64px;
}

/* short grey line between items */
.ea-desk-nav .menu-item + .menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    margin-left: -12px;
    border-top: 1px solid var(--ea-divider);
}

.ea-desk-nav .menu-item > a {
    display: flex;
    align-items: center;
    margin: 18px 14px;
    padding: 4px;
    color: #efefef;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    text-align: center;
}

.ea-desk-nav .current-menu-item > a,
.ea-desk-nav .menu-item > a:hover {
    color: #ffffff;
}

/* hover underline that grows from left to right */
.ea-desk-nav .ea-menu-text {
    position: relative;
    display: inline-block;
}
.ea-desk-nav .ea-menu-text::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #ffffff;
    opacity: 0.85;
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ea-desk-nav .menu-item > a:hover .ea-menu-text::after,
.ea-desk-nav .menu-item > a:focus-visible .ea-menu-text::after {
    width: calc(100% - 2px);
}

.ea-desk-bottom {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    padding: 5px 10px 55px;
}

/* ==========================================================================
   Top bar and mobile menu: 992 px and narrower
   ========================================================================== */
.ea-topbar,
.ea-mob-panel,
.ea-mob-overlay {
    display: none;
}

@media screen and (max-width: 992px) {
    .ea-desk-toggle,
    .ea-desk-panel,
    .ea-desk-overlay {
        display: none !important;
    }

    .ea-topbar {
        position: -webkit-sticky;
        position: sticky;
        top: var(--ea-admin-bar);
        z-index: 102;
        display: block;
        background: var(--ea-bar-bg);
        border-bottom: 1px solid var(--ea-bar-line);
    }

    .ea-topbar-inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 40px;
        padding: 0 50px;
    }

    .ea-mob-toggle {
        width: 40px;
        height: 40px;
        padding: 12px 9px;
        background: transparent;
    }

    .ea-mob-overlay {
        display: block;
    }

    .ea-mob-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 9602;
        display: block;
        width: 330px;
        max-width: calc(100vw - 45px);
        background: var(--ea-mob-panel-bg);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.5s, visibility 0s linear 0.5s;
    }
    .ea-mob-panel.is-open {
        transform: translateX(0);
        transition: transform 0.5s, visibility 0s;
    }

    .admin-bar .ea-mob-panel {
        top: var(--ea-admin-bar);
    }

    .ea-mob-close {
        top: 20px;
        right: 13px;
        width: 30px;
        height: 30px;
        padding: 5px;
    }
    .ea-mob-close .ea-x::before,
    .ea-mob-close .ea-x::after {
        background: #d6d6d6;
    }

    .ea-mob-inner {
        padding: 70px 15px 30px 30px;
    }

    .ea-mob-nav .ea-menu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ea-mob-nav .menu-item {
        position: relative;
    }

    .ea-mob-nav .menu-item + .menu-item::before {
        content: "";
        position: absolute;
        top: -0.5px;
        left: 0;
        right: 0;
        border-top: 1px solid var(--ea-divider);
    }

    .ea-mob-nav .menu-item > a {
        display: block;
        padding: 15.2px 25px 15.2px 0;
        color: var(--ea-mob-item);
        font-size: 16px;
        font-weight: 400;
        line-height: 19.2px;
    }

    .ea-mob-nav .current-menu-item > a,
    .ea-mob-nav .menu-item > a:hover {
        color: #ffffff;
    }

    .ea-mob-bottom {
        padding: 30px 0;
    }

    .ea-mob-bottom .ea-social {
        margin: 5px 20px 5px 0;
    }
}

@media screen and (max-width: 778px) {
    .ea-topbar-inner {
        height: 50px;
        padding: 0 20px;
    }
}

/* ==========================================================================
   Footer and back-to-top
   ========================================================================== */
.ea-footer {
    background: transparent;
}

/* Details pages and plain pages such as About: an extra dark line above the footer line, as on
   live (not on the portfolio, page not found or search pages) */
.single-vfav_artwork .ea-footer,
.page:not(.ea-gallery-page) .ea-footer {
    border-top: 1px solid #444444;
}

.ea-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;           /* 40 px bar plus its 1 px line */
    padding: 10px 50px;
    border-top: 1px solid #666666;
    color: #eeeeee;
    font-size: 13px;
    line-height: 15.6px;
    text-align: center;
}

.ea-copyright {
    margin: 0;
}

@media screen and (max-width: 778px) {
    .ea-bottom-bar {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.ea-to-top {
    position: fixed;
    right: -45px;
    bottom: 10px;
    z-index: 109;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    opacity: 0;
    transition: right 0.4s, opacity 0.4s, background-color 0.2s;
}
.ea-to-top.is-on {
    right: 10px;
    opacity: 1;
}
.ea-to-top:hover {
    background: rgba(0, 0, 0, 0.4);
}
.ea-to-top .ea-icon {
    display: block;
    width: 24px;
    height: 24px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ea-desk-panel, .ea-mob-panel, .ea-overlay, .ea-to-top { transition: none !important; }
}
