/*
Theme Name: Ginny Art Theme
Theme URI: https://webguys911.com/
Author: WebGuys911
Author URI: https://webguys911.com/
Description: Complete Ginny art gallery theme with Ginny Art Suite 1.9.38 built in. Displays art images, captions, descriptions, dimensions, weight, price, and sale status.
Version: 1.2.6
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ginny-art-theme
*/

:root {
    --bg: #faf7f2;
    --paper: #fff;
    --ink: #25211d;
    --muted: #756b62;
    --line: #e7ded3;
    --accent: #8c4a2f;
    --accent2: #d8a15f;
    --sold: #7d2626;
    --available: #21653f;
    --header-bg: #fff;
    --footer-bg: #faf7f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: clamp(30px, 5vw, 54px);
}

.site-title a {
    color: var(--ink);
    text-decoration: none;
}

.site-description {
    margin: 4px 0 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
}

.main-nav {
    margin-top: 16px;
    font-family: Arial, sans-serif;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--accent);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px;
}

.page-title {
    text-align: center;
    font-size: clamp(30px, 4vw, 46px);
    margin: 0 0 22px;
}

.art-view-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
    font-family: Arial, sans-serif;
}

.art-view-switcher a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    padding: 7px 13px;
    text-decoration: none;
    font-weight: 700;
}

.art-view-switcher a:hover,
.art-view-switcher .is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
}

.art-collection {
    display: grid;
    gap: 26px;
}

.art-view-gallery {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.art-view-masonry {
    display: block;
    columns: 3 250px;
    column-gap: 24px;
}

.art-view-masonry .art-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
}

.art-view-masonry .art-card:nth-child(3n+1) .art-thumb {
    aspect-ratio: 3 / 4;
}

.art-view-masonry .art-card:nth-child(3n+2) .art-thumb {
    aspect-ratio: 1 / 1;
}

.art-view-list {
    grid-template-columns: 1fr;
}

.art-view-list .art-card a {
    display: grid;
    grid-template-columns: minmax(220px, 36%) 1fr;
    min-height: 250px;
}

.art-view-list .art-thumb {
    aspect-ratio: auto;
    height: 100%;
}

.art-view-spotlight {
    grid-template-columns: repeat(6, 1fr);
}

.art-view-spotlight .art-card {
    grid-column: span 2;
}

.art-view-spotlight .art-card:first-child {
    grid-column: span 6;
}

.art-view-spotlight .art-card:first-child a {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
}

.art-view-spotlight .art-card:first-child .art-thumb {
    aspect-ratio: 16 / 9;
}

.art-view-spotlight .art-card:first-child .art-title {
    font-size: clamp(30px, 4vw, 48px);
}

.art-view-compact {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.art-view-compact .art-card-body {
    padding: 12px;
}

.art-view-compact .art-title {
    font-size: 18px;
}

.art-view-compact .art-caption,
.art-view-compact .art-meta {
    display: none;
}

.art-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(50, 35, 22, .08);
}

.art-card a {
    color: inherit;
    text-decoration: none;
}

.art-thumb {
    aspect-ratio: 4 / 3;
    background: var(--line);
    overflow: hidden;
}

.art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.art-card:hover .art-thumb img {
    transform: scale(1.035);
}

.art-card-body {
    padding: 18px;
}

.art-title {
    font-size: 24px;
    margin: 0 0 6px;
}

.art-caption {
    font-style: italic;
    color: var(--accent);
    margin: 0 0 10px;
}

.art-meta {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--muted);
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.status {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    margin: 8px 0 0;
}

.status.available {
    background: color-mix(in srgb, var(--available) 13%, var(--paper));
    color: var(--available);
}

.status.sold {
    background: color-mix(in srgb, var(--sold) 13%, var(--paper));
    color: var(--sold);
}

.single-art {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 34px;
    align-items: start;
}

.art-gallery {
    display: grid;
    gap: 14px;
}

.art-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: var(--line);
    box-shadow: 0 10px 28px rgba(50, 35, 22, .09);
}

.art-info {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    position: sticky;
    top: 20px;
}

.art-info h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin: 0 0 10px;
}

.detail-list {
    margin: 22px 0 0;
    border-top: 1px solid var(--line);
    font-family: Arial, sans-serif;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
}

.detail-row strong {
    color: var(--ink);
}

.detail-row span {
    text-align: right;
    color: var(--muted);
}

.price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    font-family: Arial, sans-serif;
    margin: 14px 0;
}

.entry-content {
    font-size: 18px;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    background: var(--footer-bg);
    font-family: Arial, sans-serif;
    padding: 32px 20px;
    border-top: 1px solid var(--line);
}

.empty {
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
}

@media (max-width: 900px) {
    .art-view-spotlight,
    .art-view-spotlight .art-card:first-child a {
        display: grid;
        grid-template-columns: 1fr;
    }

    .art-view-spotlight .art-card,
    .art-view-spotlight .art-card:first-child {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .single-art,
    .art-view-list .art-card a {
        grid-template-columns: 1fr;
    }

    .art-view-list .art-thumb {
        aspect-ratio: 4 / 3;
    }

    .art-info {
        position: static;
    }

    .detail-row {
        display: block;
    }

    .detail-row span {
        text-align: left;
        display: block;
        margin-top: 3px;
    }

    .wrap {
        padding: 24px 14px;
    }
}
