/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f6f1e8;
    color: #2e2a26;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p {
    text-wrap: pretty;
}

/* Universal Heading Colors */
h1, h2, h3, h4 {
    color: #c45a2d;
}

header {
    padding: 40px 20px 10px 20px;
    text-align: center;
}

header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
}

/* ===== Shared Navigation ===== */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px auto 10px auto;
    padding: 0 15px;
}

.nav-btn {
    background: #1f2a44;
    border: 2px solid transparent;
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background: #c45a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(196, 90, 45, 0.25);
}

.nav-btn.active {
    background: #c45a2d;
}

/* ===== Shared Action Buttons ===== */
.action-btn {
    display: inline-block;
    background: #1f2a44;
    border: none;
    padding: 8px 18px;
    font-size: 0.86rem;
    border-radius: 30px;
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.action-btn:hover {
    background: #c45a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(196, 90, 45, 0.25);
}

.secondary-inline {
    background: transparent;
    color: #1f2a44;
    border: 1.5px solid #1f2a44;
}

.secondary-inline:hover {
    background: #1f2a44;
    color: #ffffff;
}

/* =========================================================
   HOMEPAGE SPECIFIC STYLES
   ========================================================= */

.top-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 20px 35px 0 35px;
}

.top-contact-link {
    font-size: 0.95rem;
    color: #c45a2d;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.top-contact-link:hover {
    opacity: 0.8;
}

.main-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 30px;
    flex: 1;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 10px;
    margin-bottom: 40px;
    padding-bottom: 25px;
}

.hero-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-intro h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #5a544e;
    margin-bottom: 18px;
    font-weight: 500;
}

.hero-feature-box {
    width: 320px;
    height: 190px;
    background-color: #e9e3d8;
    border: 2px dashed #b5ada2;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-feature-box .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-feature-box .placeholder-img[src]:not([src=""]) {
    display: block;
}

.hero-feature-box .placeholder-img[src]:not([src=""]) + .placeholder-text {
    display: none;
}

.placeholder-text {
    font-size: 0.85rem;
    color: #837a6f;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

/* ===== 2x2 Featured Grid ===== */
.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.featured-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.featured-card .card-media {
    width: 100%;
    height: 175px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #eee9e0;
    position: relative;
}

.featured-card .art-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: default;
}

/* Zero-Latency GIF Overlay */
.featured-card .gif-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.featured-card:hover .gif-overlay {
    opacity: 1;
}

.art-embed-compact {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.featured-card .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.project-spec-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 12px 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.project-spec-list li {
    padding: 3px 0;
    color: #3b3632;
    position: relative;
    padding-left: 14px;
}

.project-spec-list li::before {
    content: "•";
    color: #c45a2d;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-spec-list strong {
    color: #1f2a44;
}

.featured-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #554f49;
    margin-bottom: 14px;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* ===== 4-Column Lower Info Row ===== */
.info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-radius: 12px;
    padding: 26px 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
    align-items: start;
}

.info-column {
    padding: 0 16px;
}

.info-column:not(:last-child) {
    border-right: 1.5px solid #eae2d6;
}

.info-column h2 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-column p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4f4a45;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    font-size: 0.88rem;
    color: #3b3632;
    padding: 3px 0;
    position: relative;
    padding-left: 14px;
}

.skills-list li::before {
    content: "•";
    color: #c45a2d;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Exhibitions Column Styling */
.exhibition-item {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #eae2d6;
}

.exhibition-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.exhibit-date {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8b6f47;
    margin-bottom: 2px;
}

.exhibit-title {
    font-size: 0.95rem;
    color: #1f2a44;
    font-weight: 700;
    margin-bottom: 2px;
}

.exhibit-venue {
    font-size: 0.82rem;
    color: #6d665f;
    margin-bottom: 4px;
}

.exhibit-work {
    font-size: 0.84rem;
    color: #3b3632;
    margin-bottom: 6px;
}

.exhibit-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exhibit-link {
    font-size: 0.82rem;
    color: #c45a2d;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.exhibit-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* =========================================================
   GALLERY PAGES SPECIFIC STYLES (digital.html & physical.html)
   ========================================================= */

.gallery-container {
    max-width: 1150px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: start;
}

.art-piece {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.art-piece:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.art-piece .art-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    cursor: pointer;
    display: block;
    background-color: #eee9e0;
    transition: opacity 0.2s ease;
}

.art-piece .art-image:hover {
    opacity: 0.92;
}

.art-embed {
    width: 100%;
    height: 260px;
    border: none;
    border-radius: 8px;
    display: block;
    margin-bottom: 14px;
    background: #f0f0f0;
}

.art-piece h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.art-description {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4f4a45;
    flex-grow: 1;
}

.back-button {
    margin-top: 50px;
    text-align: center;
}

/* =========================================================
   LIGHTBOX & FOOTER
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox iframe {
    width: 90vw;
    height: 85vh;
    border: none;
    border-radius: 8px;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #c45a2d;
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.88rem;
    color: #7d7065;
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 950px) {
    .info-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .info-column:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 850px) {
    .hero-header {
        flex-direction: column;
        align-items: center;
    }

    .hero-feature-box {
        width: 100%;
        height: 200px;
    }

    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-column {
        padding: 0;
        border-right: none !important;
        border-bottom: 1.5px solid #eae2d6;
        padding-bottom: 20px;
    }

    .info-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}