/* ═══════════════════════════════════════════════
   art.css — anthology gallery
   A scrollable list of paintings. No grids.
   No motion. Just art and dotted borders.
   ═══════════════════════════════════════════════ */

body {
    padding-top: 25px;
    display: block;
    margin: auto;
    width: 620px;
}

div {
    box-sizing: border-box;
}

/* ─── navigation bar ─── */
.art-nav-bar {
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px dotted var(--darkbrown);
    font-size: 12px;
    letter-spacing: 1px;
}

.art-nav-bar a {
    color: var(--darkbrown);
    text-decoration: none;
    -webkit-transition: 0.25s;
}

.art-nav-bar a:hover {
    letter-spacing: 2px;
    -webkit-transition: 0.25s;
}

.art-nav-sep {
    color: #999;
    margin: 0 4px;
}

.art-nav-current {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* ─── epigraph ─── */
.art-epigraph {
    text-align: center;
    font-style: italic;
    padding: 10px 30px;
    font-size: 12px;
    color: #666;
    border-bottom: 1px dotted var(--darkbrown);
    margin-bottom: 15px;
}

/* ─── intro ─── */
.art-intro {
    text-align: justify;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    padding: 0 10px 15px 10px;
    border-bottom: 1px dotted var(--darkbrown);
    margin-bottom: 15px;
}

/* ─── ornament SVG ─── */
.art-ornament {
    display: block;
    margin: 15px auto;
    width: 300px;
    opacity: 0.6;
}


/* ─── individual artwork ─── */
.artwork-entry {
    padding: 20px 0;
    border-bottom: 1px dotted var(--darkbrown);
}

.artwork-entry:last-child {
    border-bottom: none;
}

/* Override global mix-blend-mode for art images */
.artwork-image-container img,
.lightbox-content img {
    mix-blend-mode: normal;
}

.artwork-image-container {
    width: 100%;
    overflow: hidden;
    border: 1px dotted var(--darkbrown);
    cursor: pointer;
}

.artwork-image-container img {
    width: 100%;
    display: block;
}

/* ─── title block: title — artist on one line ─── */
.artwork-title-block {
    padding: 10px 0 4px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.artwork-title {
    font-style: italic;
    font-size: 18px;
    color: var(--darkbrown);
}

.artwork-title-sep {
    color: #999;
    margin: 0 6px;
    font-size: 16px;
}

.artwork-artist {
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-variant: small-caps;
}

.artwork-tags {
    text-align: center;
    padding-top: 3px;
}

.artwork-tag {
    font-size: 10px;
    color: #999;
    font-style: italic;
}

.artwork-tag::before {
    content: "#";
}

.artwork-tag+.artwork-tag {
    margin-left: 4px;
}

.artwork-notes {
    font-size: 12px;
    color: #666;
    padding: 6px 20px;
    text-align: center;
    line-height: 1.6;
    font-style: italic;
    margin-top: 4px;
}

/* ─── stats ─── */
.art-stats {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding: 10px 0;
    border-top: 1px dotted var(--darkbrown);
    letter-spacing: 1px;
}

/* ─── lightbox ─── */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 5, 3, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--white);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px dotted var(--white);
    color: var(--white);
    font-size: 20px;
    padding: 12px 16px;
    cursor: pointer;
    -webkit-transition: 0.25s;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--white);
    color: var(--darkbrown);
}

.lightbox-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 13px;
    text-align: center;
    background: rgba(25, 5, 3, 0.8);
    padding: 8px 20px;
    border: 1px dotted var(--white);
    max-width: 80%;
}

.lightbox-info-title {
    font-style: italic;
}

.lightbox-info-artist {
    font-size: 11px;
    color: #ccc;
}

/* ─── scroll to top ─── */
.scroll-top {
    text-align: center;
    padding: 15px 0;
}

.scroll-top a {
    color: var(--darkbrown);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-top a:hover {
    letter-spacing: 3px;
    -webkit-transition: 0.25s;
}

/* ─── footer ─── */
.art-footer {
    text-align: center;
    padding: 10px 0;
    font-size: 11px;
    color: #999;
    border-top: 1px dotted var(--darkbrown);
}

/* ─── responsive ─── */
@media (max-width: 700px) {
    body {
        width: 100%;
        padding: 15px;
    }

    .art-epigraph {
        padding: 10px 15px;
    }

    .artwork-title {
        font-size: 15px;
    }

    .artwork-artist {
        font-size: 12px;
    }

    .artwork-title-block {
        text-align: left;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 8px 12px;
        font-size: 16px;
        top: auto;
        bottom: 25px;
        transform: none;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-info {
        bottom: 75px;
        /* move info up so buttons don't overlap it */
        max-width: 90%;
    }
}
