/**
 * Work Page Styles
 * Shared styles for all artwork detail pages (works/*.html)
 * Extracted to reduce duplication across 14 work pages
 *bg color - ffdbcf
 * button color 
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffdbcf;
    overflow: hidden;
}

.nav-logo {
    position: fixed;
    top: 1%;
    left: 1%;
    width: 7vh;
    height: 7vh;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
    touch-action: manipulation;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.piece-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    padding: 0 10vw 6vh 10vw; /* Bottom padding for footer */
    position: relative;
}

.piece-picture {
    display: contents;
}

.piece-image {
    flex: 0 0 auto;
    height: 65vh;
    width: auto;
    max-width: 45vw;
    object-fit: cover;
    outline: 1px solid black;
    background: linear-gradient(110deg, #dfd4bc 8%, #eee4ce 18%, #dfd4bc 33%);
    background-size: 240% 100%;
}

.piece-image:not(.image-ready) {
    animation: work-image-skeleton-shimmer 1.1s ease-in-out infinite;
}

@keyframes work-image-skeleton-shimmer {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -140% 0;
    }
}

.piece-image:hover {
    transform: scale(1.01);
}

.piece-image:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 5px;
}

.piece-info {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.piece-title {
    font-size: 3.5vw;
    font-weight: 300;
    margin-bottom: 2vh;
    letter-spacing: -0.05em;
    line-height: 1.1;
    text-transform: uppercase;
}

.piece-details {
    font-size: 0.9vw;
    line-height: 1.6;
    color: #444;
    margin-bottom: 4vh;
    border-left: 1px solid #000;
    padding-left: 1vw;
}

.piece-details p {
    margin-bottom: 0.5vh;
}

.piece-description {
    font-size: 1vw;
    line-height: 1.6;
    font-weight: 300;
    color: #222;
    text-align: left;
    overflow-wrap: break-word;
    hyphens: auto;
}

.artwork-inquiry {
    margin-top: 3vh;
    padding-top: 2vh;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
}

.artwork-availability {
    margin-bottom: 1vh;
    font-size: 0.8vw;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.artwork-inquiry-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 0.9vw;
    text-decoration: none;
    padding: 1vh 1.5vw;
    border: 1px solid #000000;
    border-radius: 0.3vh;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.artwork-inquiry-link:hover {
    color: #fff3cf;
    background-color: #000000;
}

.artwork-inquiry-link:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 4px;
}

.piece-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12vh;
    background-color: #ffdbcf;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    padding: 0 3vw;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(130px, 12vw, 190px);
    font-size: 0.9vw;
    color: #000000;
    text-decoration: none;
    padding: 1vh 2vw;
    border: 1px solid #000000;
    border-radius: 0.3vh;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    letter-spacing: 0.1vw;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #000000;
    color: #fff3cf;
}

.nav-button.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.footer-center {
    width: clamp(52px, 5vw, 80px);
    font-size: 0.8vw;
    color: #666;
    letter-spacing: 0.1vw;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .piece-image:not(.image-ready) {
        animation: none;
    }
}
/* Single-column styles are driven by the shared responsive layout state. */
html[data-layout='single-column'],
html[data-layout='single-column'] body {
    overflow-y: auto;
    overflow-x: hidden;
}

html[data-layout='single-column'] .nav-logo {
    top: max(var(--mobile-edge-inset), env(safe-area-inset-top));
    left: max(var(--mobile-edge-inset), env(safe-area-inset-left));
    width: var(--mobile-utility-size);
    height: var(--mobile-utility-size);
    min-width: 0;
    min-height: 0;
}

html[data-layout='single-column'] .piece-container {
    flex-direction: column;
    padding: 15vh 5vw 18vh 5vw;
    gap: 4vh;
    height: auto;
    min-height: 100vh;
}

html[data-layout='single-column'] .piece-image {
    height: auto;
    width: 90vw;
    max-width: none;
    max-height: 50vh;
}

html[data-layout='single-column'] .piece-info {
    flex: none;
    width: 100%;
    text-align: center;
}

html[data-layout='single-column'] .piece-title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.05;
    margin-bottom: 3vh;
}

html[data-layout='single-column'] .piece-details {
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    line-height: 1.55;
    border-left: none;
    border-top: 1px solid #000;
    padding-left: 0;
    padding-top: 2vh;
    text-align: center;
}

html[data-layout='single-column'] .piece-description {
    font-size: clamp(1rem, 4vw, 1.125rem);
    line-height: 1.55;
    text-align: left;
}

html[data-layout='single-column'] .artwork-availability,
html[data-layout='single-column'] .artwork-inquiry-link {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
}

html[data-layout='single-column'] .piece-footer {
    height: auto;
    padding: 2vh 3vw;
    gap: 2vw;
    flex-wrap: wrap;
    justify-content: space-between;
}

html[data-layout='single-column'] .nav-button {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    width: auto;
    min-width: 0;
    padding: 1.5vh 2vw;
    flex: 1 1 0;
}

html[data-layout='single-column'] .footer-center {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 1vh;
}
