/* ==========================================================================
   Edith — theme styles
   A warm, light portfolio-and-shop look: cream header, condensed type, purple
   text, generous image grids. Every font and colour comes from a CSS variable
   set in Customize → Edith Theme (inc/appearance.php prints them on :root);
   the values below are only fallbacks.
   ========================================================================== */

:root {
    --edith-bg: #fdfcff;
    --edith-text: #3d1354;
    --edith-heading: #3d1354;
    --edith-link: #5f7491;
    --edith-link-hover: #3f3f3f;
    --edith-accent: #3d1354;
    --edith-price: #b5a44c;
    --edith-font: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --edith-heading-font: var(--edith-font);
    --edith-weight: 200;

    --edith-header-bg: #fffbed;
    --edith-header-text: #0a0a0a;
    --edith-header-hover: #303030;
    --edith-header-font: var(--edith-font);
    --edith-header-size: 19px;
    --edith-header-weight: 200;
    --edith-header-case: none;
    --edith-header-tracking: 0px;
    --edith-header-pad: 50px;
    --edith-logo-h: 120px;
    --edith-title-size: 34px;

    --edith-footer-bg: #fdfcff;
    --edith-footer-text: #6d4c80;
    --edith-footer-link: #5f7491;
    --edith-footer-hover: #3f3f3f;
    --edith-footer-rule: #3d1354;
    --edith-footer-rule-w: 2px;
    --edith-footer-font: var(--edith-font);
    --edith-footer-size: 15px;
    --edith-footer-weight: 200;
    --edith-footer-case: none;

    --edith-gutter: 32px;
    --edith-max: 1340px;

    --bs-body-font-family: var(--edith-font);
    --bs-body-color: var(--edith-text);
    --bs-body-bg: var(--edith-bg);
}

@media (max-width: 767.98px) {
    :root { --edith-gutter: 18px; }
}

/* ---------- Base ---------- */

html { scrollbar-gutter: stable; }

body.modal-open { padding-right: 0 !important; }

body {
    background: var(--edith-bg);
    color: var(--edith-text);
    font-family: var(--edith-font);
    font-weight: var(--edith-weight);
    font-size: 17px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--edith-link); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--edith-link-hover); }

.edith-content p a,
.edith-content li a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--edith-heading-font);
    color: var(--edith-heading);
    font-weight: var(--edith-weight);
    line-height: 1.15;
    margin: 1.6em 0 .6em;
}

h1 { font-size: 46px; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }
h4 { font-size: 21px; }
h5, h6 { font-size: 17px; font-weight: 700; }

strong, b { font-weight: 700; }

p { margin: 0 0 1.1em; }

img { max-width: 100%; height: auto; }

hr, .wp-block-separator {
    width: 100%;
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: .25;
}

blockquote, .wp-block-quote {
    margin: 2rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--edith-accent);
    font-size: 1.15em;
}

.edith-skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    padding: .5rem 1rem;
    background: #000;
    color: #fff;
}

.fran-icon { width: 1em; height: 1em; vertical-align: -.125em; }

/* Buttons */
.btn.edith-btn,
.btn-primary {
    --bs-btn-bg: var(--edith-accent);
    --bs-btn-border-color: var(--edith-accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--edith-link-hover);
    --bs-btn-hover-border-color: var(--edith-link-hover);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--edith-link-hover);
    border-radius: 2px;
    padding: .5rem 1.25rem;
    font-family: var(--edith-font);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .02em;
    text-decoration: none !important;
}

.btn.edith-btn.btn-sm { padding: .35rem 1rem; font-size: 15px; font-weight: 400; }

.btn.edith-btn--outline {
    --bs-btn-bg: transparent;
    --bs-btn-color: var(--edith-accent);
    --bs-btn-hover-bg: var(--edith-accent);
    --bs-btn-hover-color: #fff;
}

.btn.edith-btn--pill { border-radius: 99px; padding: .55rem 1.6rem; font-weight: 400; }

.edith-sold {
    display: inline-block;
    padding: .3rem .9rem;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: 15px;
    opacity: .7;
}

.edith-more { font-size: 17px; }
.edith-kicker { margin: 0 0 1rem; font-size: 16px; opacity: .85; }

/* ---------- Header ---------- */

.edith-header {
    position: relative;
    z-index: 1030;
    background: var(--edith-header-bg);
}

.edith-sticky-header .edith-header { position: sticky; top: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.admin-bar.edith-sticky-header .edith-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.edith-sticky-header .edith-header { top: 46px; } }

.edith-navbar { padding: var(--edith-header-pad) 0; }

.edith-header__inner {
    max-width: var(--edith-max);
    padding: 0 var(--edith-gutter);
}

.edith-brand {
    margin: 0;
    font-family: var(--edith-header-font);
    font-size: var(--edith-title-size);
    font-weight: var(--edith-header-weight);
    letter-spacing: var(--edith-header-tracking);
    line-height: 1.1;
}

.edith-brand a { color: var(--edith-header-text); }
.edith-brand a:hover { color: var(--edith-header-hover); }

.edith-brand--logo img,
.edith-brand--logo .custom-logo {
    display: block;
    width: auto;
    max-height: var(--edith-logo-h);
}

.edith-nav { gap: .25rem 1.75rem; }

.edith-nav .nav-link,
.edith-nav .dropdown-item {
    padding: .25rem 0;
    font-family: var(--edith-header-font);
    font-size: var(--edith-header-size);
    font-weight: var(--edith-header-weight);
    letter-spacing: var(--edith-header-tracking);
    text-transform: var(--edith-header-case);
    color: var(--edith-header-text);
}

.edith-nav .nav-link:hover,
.edith-nav .nav-link:focus {
    color: var(--edith-header-hover);
}

/* Current page: the normal link colour, underlined. */
.edith-nav .nav-link.active,
.edith-nav .current-menu-item > .nav-link { color: var(--edith-header-text); box-shadow: inset 0 -1px 0 currentColor; }

.edith-nav .dropdown-menu {
    border: 0;
    border-radius: 0;
    background: var(--edith-header-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.edith-nav .dropdown-item { padding: .35rem 1.1rem; font-size: calc(var(--edith-header-size) - 2px); }
.edith-nav .dropdown-item:hover { background: transparent; color: var(--edith-header-hover); }

@media (min-width: 768px) {
    .edith-nav .dropdown:hover > .dropdown-menu { display: block; }
}

.edith-toggler {
    border: 0;
    padding: .25rem;
    font-size: 1.8rem;
    color: var(--edith-header-text);
    box-shadow: none !important;
}

@media (max-width: 767.98px) {
    .edith-navbar { padding: calc(var(--edith-header-pad) / 2) 0; }
    .edith-brand--logo img, .edith-brand--logo .custom-logo { max-height: calc(var(--edith-logo-h) * .6); }
    .edith-brand { font-size: calc(var(--edith-title-size) * .75); }
    .edith-nav { padding: 1rem 0 .5rem; gap: .25rem; }
    .edith-nav .nav-link { display: inline-block; font-size: calc(var(--edith-header-size) + 4px); }
}

/* ---------- Content ---------- */

.edith-main { min-height: 50vh; }

.edith-content {
    max-width: var(--edith-max);
    padding: 2.25rem var(--edith-gutter) 0;
}

.edith-content > :first-child { margin-top: 0; }

/* Full-width blocks stay inside the page margins in this design. */
.edith-content .alignfull,
.edith-content .alignwide { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }

.edith-content .is-style-narrow { max-width: 720px; }
.edith-content .alignleft { float: left; margin: .3rem 1.75rem 1rem 0; }
.edith-content .alignright { float: right; margin: .3rem 0 1rem 1.75rem; }
.edith-content .aligncenter { margin-left: auto; margin-right: auto; }

.edith-content .wp-block-image figcaption,
.edith-content .wp-element-caption { margin-top: .5rem; font-size: 15px; opacity: .8; }

.edith-content .wp-block-columns { gap: 2rem; }

.edith-page__title {
    margin: 0 0 1.5rem;
    font-size: 30px;
    font-weight: var(--edith-weight);
}

.edith-section-title {
    margin: 3.25rem 0 1.25rem;
    font-size: 26px;
    color: var(--edith-heading);
}

/* Two columns: image left, text right (posts, products). */
.edith-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
}

.edith-split__media { margin: 0; }
.edith-split__img { width: 100%; height: auto; display: block; }
.edith-split__body > :first-child { margin-top: 0; }

@media (max-width: 991.98px) {
    .edith-split { grid-template-columns: minmax(0, 1fr); }
}

.edith-post__title { margin: 0 0 1.25rem; font-size: 40px; }
.edith-post__body { max-width: 760px; }

.edith-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    font-size: 16px;
}

.edith-pager a { text-decoration: underline; text-underline-offset: 3px; }

.edith-album__header { max-width: 880px; margin-bottom: 2rem; }

/* ---------- Home sections ---------- */

.edith-home__section { margin-top: 1rem; }

.edith-album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.edith-album-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f3f0f4;
}

.edith-album-tile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, opacity .3s ease;
}

.edith-album-tile__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem .9rem .7rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 17px;
    opacity: 0;
    transition: opacity .3s ease;
}

.edith-album-tile:hover .edith-album-tile__img { transform: scale(1.04); }
.edith-album-tile:hover .edith-album-tile__title,
.edith-album-tile:focus-visible .edith-album-tile__title { opacity: 1; }

@media (hover: none) { .edith-album-tile__title { opacity: 1; } }
@media (max-width: 991.98px) { .edith-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Shop ---------- */

.edith-shop__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 15px;
}

.edith-shop__count { margin: 0; }

.edith-shop__sort .form-select {
    min-width: 180px;
    border-radius: 0;
    border-color: transparent;
    background-color: rgba(0, 0, 0, .04);
    color: var(--edith-text);
    font-family: var(--edith-font);
}

/* Shop grid and cards: see blocks.css (shared with the editor). */

.edith-shop-grid__more { margin: 1.75rem 0 0; }

.edith-product__price { margin: 0 0 1rem; color: var(--edith-price); font-size: 22px; }
.edith-product__title { margin: 0 0 1rem; font-size: 24px; font-weight: 700; }
.edith-product__buy { margin: 1.5rem 0 .5rem; }
.edith-product__note { font-size: 14px; opacity: .75; }
.edith-product__meta { margin-top: 1.5rem; font-size: 15px; }
.edith-product__description { max-width: 880px; }
.edith-product .fran-gallery { margin-bottom: 0; }

.navigation.pagination { margin-top: 2.5rem; }
.navigation.pagination .nav-links { display: flex; gap: .75rem; }
.navigation.pagination .page-numbers.current { font-weight: 700; color: var(--edith-text); }

/* ---------- News ---------- */

.edith-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.75rem 2.25rem;
}

@media (max-width: 991.98px) { .edith-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .edith-news-grid { grid-template-columns: minmax(0, 1fr); } }

.edith-news-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--edith-header-bg);
}

.edith-news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.edith-news-card__media:hover .edith-news-card__img { transform: scale(1.03); }

.edith-news-card__date { margin: .9rem 0 .2rem; font-size: 14px; opacity: .75; }
.edith-news-card__title { margin: 0 0 .5rem; font-size: 22px; }
.edith-news-card__title a { color: var(--edith-heading); }
.edith-news-card__title a:hover { color: var(--edith-link-hover); }
.edith-news-card__excerpt { font-size: 16px; }

.edith-news-card.is-new { animation: edith-fade .5s ease both; }
@keyframes edith-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.edith-news__more { margin: 3rem 0 0; text-align: center; }

/* ---------- Footer ---------- */

.edith-footer {
    margin-top: 5rem;
    background: var(--edith-footer-bg);
    color: var(--edith-footer-text);
    font-family: var(--edith-footer-font);
    font-size: var(--edith-footer-size);
    font-weight: var(--edith-footer-weight);
    text-transform: var(--edith-footer-case);
}

.edith-footer__inner {
    max-width: var(--edith-max);
    padding: 0 var(--edith-gutter) 2.5rem;
}

.edith-footer__contact {
    padding-top: 2rem;
    border-top: var(--edith-footer-rule-w) solid var(--edith-footer-rule);
    text-align: right;
}

.edith-footer__contact p { margin: 0 0 1rem; }

.edith-footer a { color: var(--edith-footer-link); }
.edith-footer a:hover, .edith-footer a:focus { color: var(--edith-footer-hover); }
.edith-footer__contact a { text-decoration: underline; text-underline-offset: 3px; }

.edith-footer__note { margin-top: 1rem; }

.edith-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.edith-footer__copyright, .edith-footer__year { margin: 0; }
.edith-footer__year { text-align: right; }

.edith-social {
    display: flex;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.edith-social a { display: inline-flex; padding: .15rem; font-size: 17px; color: var(--edith-footer-text); }
.edith-social a:hover { color: var(--edith-footer-hover); }

@media (max-width: 575.98px) {
    .edith-footer__bottom { grid-template-columns: 1fr; text-align: center; }
    .edith-footer__year { text-align: center; }
    .edith-social { justify-content: center; }
    .edith-footer__contact { text-align: center; }
}

/* ---------- Blocks in this design ---------- */

/* Hero: contained, a little shorter, light type. */
.edith-content .fran-hero { margin-bottom: 1.5rem; border-radius: 0; }
.edith-content .fran-hero .carousel,
.edith-content .fran-hero .carousel-inner,
.edith-content .fran-hero .carousel-item { height: min(var(--fran-hero-h, 100vh), 62vh); min-height: 320px; }
.fran-hero__title { font-family: var(--edith-font); font-weight: 300; letter-spacing: 0; }

/* Artwork captions, series grid and feature card in the site's type. */
.fran-artwork__caption { color: var(--edith-text); font-size: 15px; }
.fran-artwork__title { font-style: normal; }
.fran-series__title { font-size: 17px; }
.fran-series__link { color: var(--edith-link); }
.fran-feature__heading { color: var(--edith-heading); }
.fran-banner__heading { font-family: var(--edith-heading-font); }

.fran-contact .form-label { color: var(--edith-text); font-size: 15px; }
.fran-contact .form-control { border-color: color-mix(in srgb, var(--edith-text) 35%, transparent); border-radius: 0; background: transparent; color: var(--edith-text); }
.fran-contact .form-control:focus { border-color: var(--edith-text); box-shadow: none; }

/* ---------- Lightbox (light) ---------- */

.fran-lightbox .modal-content { display: flex; flex-direction: column; background: rgba(255, 255, 255, .98); color: var(--edith-text); border: 0; border-radius: 0; }
.fran-lightbox__top { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; padding: 1rem var(--edith-gutter); }
.fran-lightbox__counter { font-size: 15px; opacity: .7; }
.fran-lightbox__close { padding: .25rem; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--edith-text); }
.fran-lightbox__stage { position: relative; flex: 1 1 auto; min-height: 0; }
.fran-lightbox__stage .carousel-inner, .fran-lightbox__stage .carousel-item { height: 100%; }
.fran-lightbox__stage .carousel-item { padding: 0 4.5rem; text-align: center; }
.fran-lightbox__img { width: auto; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.fran-lightbox__control { width: 4.5rem; font-size: 1.75rem; color: var(--edith-text); opacity: .55; }
.fran-lightbox__control:hover { color: var(--edith-text); opacity: 1; }
.fran-lightbox__caption { flex: 0 0 auto; min-height: 3.5rem; padding: .75rem var(--edith-gutter) .25rem; text-align: center; }
.fran-lightbox__title { display: block; font-size: 18px; }
.fran-lightbox__meta { display: block; font-size: 15px; opacity: .8; }
.fran-lightbox__thumbs { display: flex; flex: 0 0 auto; gap: 6px; padding: .5rem var(--edith-gutter) 1rem; overflow-x: auto; justify-content: safe center; }
.fran-lightbox__thumbs button { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 1px solid transparent; background: #f3f0f4; opacity: .5; }
.fran-lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.fran-lightbox__thumbs button.active { opacity: 1; border-color: var(--edith-text); }
.fran-lightbox--single .fran-lightbox__control, .fran-lightbox--single .fran-lightbox__thumbs { display: none; }

@media (max-width: 767.98px) {
    .fran-lightbox__stage .carousel-item { padding: 0 .5rem; }
    .fran-lightbox__control { width: 2.5rem; }
}

.edith-404 { padding-bottom: 3rem; }

.edith-content .fran-contact { max-width: 760px; margin-left: 0; }

/* Short pages: the footer stays at the bottom of the window, not halfway up. */
body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
body > .edith-main { flex: 1 0 auto; }
body > .edith-footer { flex-shrink: 0; }
