/**
 * Veganzones - Custom Styles
 * Selectores con body prefix para ganar especificidad sobre GP
 */

:root {
    --vz-black: #1a1a1a;
    --vz-white: #ffffff;
    --vz-gray: #999999;
    --vz-gray-dark: #555555;
    --vz-transition: 0.3s ease;
}

/* ==========================================================================
   GRID
   ========================================================================== */

blockquote {
    border-left: 2px solid rgba(0, 0, 0, .05);
    padding: 20px;
    font-size: 14px;
    font-style: italic;
    margin: 0 0 1.5em;
    position: relative;
}

body .artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
    padding: 0;
}

/* ITEMS */

body .artwork-item {
    position: relative;
    overflow: hidden;
}

/* MASONRY GRID (Work on paper) */

body .artwork-grid--masonry {
    display: block;
    column-count: 3;
    column-gap: 6rem;
}

body .artwork-grid--masonry .artwork-item {
    break-inside: avoid;
    margin-bottom: 6rem;
}

body .artwork-item a,
body .artwork-item a:visited {
    display: block;
    text-decoration: none;
    color: inherit;
}

body .artwork-item img {
    width: 100%;
    height: auto;
    display: block;
}

body .artwork-item__info {
    display: none;
}

body .artwork-item__title {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin: 0;
    font-weight: 300;
    color: var(--vz-black);
}

body .artwork-item__meta {
    font-size: 0.75rem;
    color: var(--vz-gray);
    margin: 0.2rem 0 0;
}

/* ==========================================================================
   CATEGORY PAGE LAYOUT
   ========================================================================== */

/* With sidebar: flex row */
body .cat-page--with-sidebar {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

/* Without sidebar: normal flow */
body .cat-page {
    margin: 0 auto;
}

body .cat-page__sidebar {
    flex: 0 0 220px;
    min-width: 180px;
    position: sticky;
    top: 6rem;
}

body .cat-page__main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

body .cat-page__title {
    font-weight: inherit;
    margin: 0 0 1.2rem;
    color: var(--global-color-7, var(--contrast-2, var(--vz-black)));
}

body .cat-page__title--reset {
    cursor: pointer;
    transition: opacity var(--vz-transition);
}

body .cat-page__title--reset:hover {
    opacity: 0.7;
}

body .cat-page > .cat-page__title {
    margin-bottom: 2rem;
}

body .cat-page__filters {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

body .cat-page__filters .cat-filter,
body .cat-page__filters .cat-filter:visited {
    font-family: inherit;
    font-size: 14px;
    font-weight: 300;
    color: var(--vz-gray);
    text-decoration: none;
    transition: color var(--vz-transition);
    cursor: pointer;
    padding: 0.15rem 0;
    line-height: 1.4;
}

body .cat-page__filters .cat-filter:hover {
    color: var(--global-color-7, var(--vz-black));
}

body .cat-page__filters .cat-filter.active {
    color: var(--global-color-7, var(--vz-black));
}

body .cat-page__filters .cat-filter.active::before {
    content: '\2014\00a0';
}

/* DESCRIPTIONS */

body .cat-page__desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--vz-gray-dark);
    transition: opacity 0.4s ease;
    margin-bottom: 6rem;
    max-width: 680px;
}

body .cat-page__desc p {
    margin: 0 0 0.8rem;
}

body .cat-page__desc p:last-child {
    margin-bottom: 0;
}

body .cat-page__excerpt {
    margin: 0 0 0.8rem;
}

body .cat-page__readmore,
body .cat-page__readmore:visited {
    font-size: 0.8rem;
    color: var(--vz-gray-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--vz-gray);
    transition: var(--vz-transition);
    letter-spacing: 0.02em;
}

body .cat-page__readmore:hover {
    color: var(--vz-black);
    border-bottom-color: var(--vz-black);
}

/* ==========================================================================
   PAGE TITLE
   ========================================================================== */

body .page .entry-title {
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SINGLE ARTWORK
   ========================================================================== */

body .artwork-single {
    max-width: 900px;
    margin: 0 auto;
}

body .artwork-single__image {
    text-align: center;
    margin-bottom: 2rem;
}

body .artwork-single__image img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    display: inline-block;
}

body .artwork-single__details {
    text-align: center;
    padding: 1rem 0;
}

body .artwork-single__title {
    font-weight: inherit;
    margin: 0 0 0.5rem;
    color: var(--contrast-2, var(--vz-black));
}

body .artwork-single__series {
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

body .artwork-single__technique {
    font-size: 0.85rem;
    color: var(--vz-gray-dark);
    margin: 0 0 0.25rem;
}

body .artwork-single__dimensions {
    font-size: 0.85rem;
    color: var(--vz-gray);
    margin: 0 0 0.25rem;
}

body .artwork-single__series a,
body .artwork-single__series a:visited {
    color: var(--vz-gray-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--vz-gray);
    transition: var(--vz-transition);
}

body .artwork-single__series a:hover {
    color: var(--vz-black);
    border-bottom-color: var(--vz-black);
}

body .artwork-single__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

body .artwork-single__nav a,
body .artwork-single__nav a:visited {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--vz-gray);
    text-decoration: none;
    transition: var(--vz-transition);
}

body .artwork-single__nav a:hover {
    color: var(--vz-black);
}

/* ==========================================================================
   CV CATALOGUES
   ========================================================================== */

body .cv-catalogue-link,
body .cv-catalogue-link:visited {
    font-size: 0.85em;
    color: var(--vz-gray-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--vz-gray);
    transition: var(--vz-transition);
}

body .cv-catalogue-link:hover {
    color: var(--vz-black);
    border-bottom-color: var(--vz-black);
}

/* ==========================================================================
   ARTWORK LIGHTBOX
   ========================================================================== */

body .artwork-lb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .artwork-lb__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    cursor: pointer;
}

body .artwork-lb__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 90%;
    max-height: 85vh;
    padding: 2rem;
}

body .artwork-lb__info {
    flex: 0 0 280px;
    min-width: 200px;
}

body .artwork-lb__title {
    font-size: 1rem;
    font-weight: 300;
    margin: 0 0 0.5rem;
    color: var(--vz-black);
    letter-spacing: 0.02em;
}

body .artwork-lb__subseries-info {
    font-size: 0.85rem;
    color: var(--vz-gray-dark);
    margin: 0 0 0.5rem;
}

body .artwork-lb__technique {
    font-size: 0.85rem;
    color: var(--vz-gray);
    margin: 0 0 0.3rem;
    line-height: 1.5;
}

body .artwork-lb__dimensions {
    font-size: 0.85rem;
    color: var(--vz-gray);
    margin: 0 0 0.3rem;
}

body .artwork-lb__image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
}

body .artwork-lb__image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

body .artwork-lb__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--vz-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color var(--vz-transition);
}

body .artwork-lb__close:hover {
    color: var(--vz-black);
}

body .artwork-lb__prev,
body .artwork-lb__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 200;
    color: var(--vz-gray);
    cursor: pointer;
    padding: 1rem;
    transition: color var(--vz-transition);
}

body .artwork-lb__prev:hover,
body .artwork-lb__next:hover {
    color: var(--vz-black);
}

body .artwork-lb__prev {
    left: 1rem;
}

body .artwork-lb__next {
    right: 1rem;
}

/* ==========================================================================
   RESPONSIVE

/* ==========================================================================
   TEXT MODAL (Read more popup)
   ========================================================================== */

body .text-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .text-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

body .text-modal__container {
    position: relative;
    z-index: 1;
    background: var(--vz-white);
    max-width: 860px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

body .text-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--vz-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    z-index: 2;
    transition: color var(--vz-transition);
}

body .text-modal__close:hover {
    color: var(--vz-black);
}

body .text-modal__title {
    font-weight: 300;
    font-size: 1.4rem;
    margin: 0 0 1.5rem;
    color: var(--contrast-2, var(--vz-black));
}

body .text-modal__body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--vz-gray-dark);
}

body .text-modal__body p {
    margin: 0 0 1rem;
}

body .text-modal__body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

body .text-modal__body blockquote {
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--vz-gray);
}

body .text-modal__loading {
    text-align: center;
    color: var(--vz-gray);
    padding: 2rem;
    font-size: 0.9rem;
}

body .text-modal__pdf {
    width: 100%;
    height: 75vh;
    border: none;
}

/* ==========================================================================
   SERIES / SUBSERIES CARDS
   ========================================================================== */

body .cat-page__cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
}

body .cat-page__cards-grid--sub {
    margin-top: 3rem;
}

body .cat-page__card {
    cursor: pointer;
}

body .cat-page__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

body .cat-page__card-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--vz-transition);
}

body .cat-page__card-link:hover img {
    opacity: 0.85;
}

body .cat-page__card-name {
    display: block;
    margin-top: 0.75rem;
    font-size: 14px;
    font-weight: 300;
    color: var(--vz-gray-dark);
}

/* SERIES DETAIL */

body .cat-page__detail-title {
    font-weight: inherit;
    margin: 0 0 1.2rem;
    color: var(--vz-black);
}

body .cat-page__intro-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--vz-gray-dark);
    margin: 0 0 0.8rem;
    max-width: 680px;
}

body .cat-page__intro-text p {
    margin: 0 0 0.8rem;
}

body .cat-page__full-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--vz-gray-dark);
    margin: 1.5rem 0;
    max-width: 680px;
}

body .cat-page__full-text p {
    margin: 0 0 1rem;
}

/* ORDER INFO in single */

body .artwork-single__order {
    font-size: 0.85rem;
    color: var(--vz-gray);
    margin: 0 0 0.25rem;
    font-style: italic;
}

body .artwork-single__subseries {
    font-size: 0.85rem;
    color: var(--vz-gray);
    margin: 0 0 0.25rem;
}

/* ==========================================================================
   TAXONOMY ARCHIVE (editor helper pages)
   ========================================================================== */

body.tax-artwork_cat .site-main,
body.tax-artwork_series .site-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

body.tax-artwork_cat .site-main > *:first-child,
body.tax-artwork_series .site-main > *:first-child {
    grid-column: 1 / -1;
}

body.tax-artwork_cat .site-main article,
body.tax-artwork_series .site-main article {
    margin: 0;
}

body.tax-artwork_cat .site-main article img,
body.tax-artwork_series .site-main article img {
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    body.tax-artwork_cat .site-main,
    body.tax-artwork_series .site-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body.tax-artwork_cat .site-main,
    body.tax-artwork_series .site-main {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    border-bottom: 1px solid #eee;
}

.site-branding-container {
    display: inline-flex;
    align-items: flex-end;
    text-align: left;
    flex-shrink: 0;
    align-content: flex-end;
}

/* ==========================================================================
   HOME
   ========================================================================== */

body.home .inside-article {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.home .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.home .n2-ss-slider {
    height: 80vh !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    border-top: 1px solid #eee;
}

.site-footer .inside-site-info {
    display: none;
}

.site-footer .inside-footer-widgets {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-footer .footer-widget-1 {
    flex: none;
    width: auto !important;
}

.site-footer .footer-widget-2 {
    flex: none;
    width: auto !important;
    font-size: 12px;
    font-weight: 300;
    color: var(--vz-gray);
}

.site-footer .widget_nav_menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.site-footer .widget_nav_menu ul li a {
    font-size: 12px;
    font-weight: 300;
    color: var(--vz-gray);
    text-decoration: none;
}

.site-footer .widget_nav_menu ul li a:hover {
    color: var(--vz-black);
}

/* ==========================================================================
   SOCIAL ICONS
   ========================================================================== */

:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram {
    background-color: #c7c7c7;
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    body .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem;
    }

    body .artwork-grid--masonry {
        column-count: 2;
        column-gap: 6rem;
    }

    body .artwork-grid--masonry .artwork-item {
        margin-bottom: 6rem;
    }

    body .cat-page--with-sidebar {
        gap: 0.5rem;
    }

    body .cat-page__sidebar {
        flex: 0 0 180px;
    }

    body .cat-page__cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    body .cat-page__desc {
        margin-bottom: 6rem;
    }

    body .artwork-lb__content {
        flex-direction: column-reverse;
        gap: 1.5rem;
        padding: 1rem;
    }

    body .artwork-lb__info {
        flex: none;
        width: 100%;
        text-align: center;
    }

    body .artwork-lb__image {
        max-height: 50vh;
    }

    body .artwork-lb__image img {
        max-height: 50vh;
    }

    body .artwork-lb__prev {
        left: 0.25rem;
    }

    body .artwork-lb__next {
        right: 0.25rem;
    }

    body .text-modal__container {
        padding: 2rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    body .artwork-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    body .artwork-item img {
        max-height: 50vh !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    body .artwork-item a {
        display: flex !important;
        justify-content: center !important;
    }

    body .artwork-grid--masonry {
        column-count: 1;
    }

    body .artwork-grid--masonry .artwork-item {
        margin-bottom: 6rem;
    }

    body .cat-page--with-sidebar {
        flex-direction: column;
        gap: 2rem;
    }

    body .cat-page__sidebar {
        flex: none !important;
        position: static;
    }

    body .cat-page__cards-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    body .cat-page__card-link img {
        max-height: 50vh;
        width: auto;
        margin: 0 auto;
    }

    body .cat-page__filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem 1rem;
        margin-bottom: 2rem;
    }

    /* Lightbox arrows below image on mobile */
    body .artwork-lb__prev,
    body .artwork-lb__next {
        top: auto;
        bottom: 1.5rem;
        transform: none;
        font-size: 2rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.8);
    }

    body .artwork-lb__prev {
        left: 30%;
    }

    body .artwork-lb__next {
        right: 30%;
    }
}

@media (max-width: 768px) {
    .site-footer .inside-footer-widgets {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .site-footer .footer-widget-1 .inner-padding,
    .site-footer .footer-widget-2 .inner-padding {
        padding: 0 !important;
    }
}
