/* Sheila Sullins' ART — rebuild styling, matched to the original Wix site */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* ---------------- Header ---------------- */

.site-header {
    /* Soft top-lit gradient instead of a flat fill gives the band a subtle
       sense of surface/depth. */
    background: linear-gradient(180deg, #fbfbfa 0%, #eeece9 100%);
    height: 195px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 0;
    overflow: hidden;
    /* Faint inner shadow along the bottom edge so the header reads as a
       raised layer the content tucks beneath. */
    box-shadow: inset 0 -16px 20px -18px rgba(0, 0, 0, 0.22);
}

.header-decor {
    width: 146px;
    height: 195px;
    overflow: hidden;
    flex: 0 0 auto;
    margin-right: 24px;
    position: relative;
    z-index: 1;
    /* Soft shadow on the image's right edge — layers it above the band. */
    box-shadow: 6px 0 10px -6px rgba(0, 0, 0, 0.35);
}

.header-decor img {
    width: 146px;
    height: 195px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.site-title-block {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    padding-top: 30px;
}

.site-title-block .site-subtitle {
    text-align: center;
}

.site-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: normal;
    color: #000;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.site-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    color: #3c3a3a;
    margin: 0;
}

/* ---------------- Nav ---------------- */

.site-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    /* Drop the links to the bottom of the header band, resting just above
       the black strip. */
    align-self: flex-end;
    padding-bottom: 14px;
    /* Breathing room so the last link never touches the page edge. */
    padding-right: 24px;
}

.site-nav a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.4px;
    font-family: Arial, Helvetica, sans-serif;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
    color: #000;
    border-bottom-color: #bbb;
}

.site-nav a.current {
    color: #000;
    font-weight: bold;
    border-bottom-color: #000;
}

.nav-strip {
    height: 4px;
    background: #000;
    position: relative;
    z-index: 2;
    /* Cast a soft shadow onto the content below so the whole header reads
       as a raised panel floating over the page. */
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.28);
}

/* ---------------- Content ---------------- */

.site-content {
    padding: 20px;
    min-height: 300px;
}

/* ---------------- Slideshow ---------------- */

.slideshow {
    max-width: 1000px;
    margin: 0 auto 20px auto;
}

.slideshow-frame {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 560px;
    background: #eee;
    overflow: hidden;
    border: 1px solid #ddd;
    /* A deeper shadow anchors the large slideshow as the page's focal panel. */
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.20);
}

.slideshow-frame .slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slideshow-frame .slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slideshow-frame .slide img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    border: none;
    width: 36px;
    height: 48px;
    font-size: 22px;
    line-height: 48px;
    text-align: center;
    color: #333;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 5;
}

.slide-arrow:hover { background: rgba(255,255,255,0.9); }
.slide-arrow.prev { left: 0; }
.slide-arrow.next { right: 0; }

.slideshow-caption {
    max-width: 900px;
    margin: 10px auto 0 auto;
    text-align: center;
}

.slideshow-caption .cap-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 0 0 2px 0;
}

.slideshow-caption .cap-dims,
.slideshow-caption .cap-desc {
    font-size: 11px;
    color: #67696c;
    margin: 0;
}

/* ---------------- Home 3-column layout ---------------- */

.home-columns {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-top: 20px;
}

.home-col {
    flex: 1 1 0;
    min-width: 0;
}

.home-col-history {
    flex: 0 0 285px;
}

.home-item {
    margin-bottom: 30px;
}

.home-item img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    /* Soft shadow lifts each framed piece off the page; the piece rises
       slightly on hover to signal it enlarges when clicked. */
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.16);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.home-item img:hover {
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}

.home-item .heading-above {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    margin: 0 0 8px 0;
}

.home-item .cap-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 8px 0 2px 0;
}

.home-item .cap-dims {
    font-size: 11px;
    color: #67696c;
    margin: 0 0 2px 0;
}

.home-item .cap-desc {
    font-size: 11px;
    color: #67696c;
    margin: 0;
}

.history-block h2 {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    margin: 0 0 10px 0;
}

.history-block p {
    font-size: 12px;
    line-height: 1.5;
    color: #3c3a3a;
    text-align: justify;
    margin: 0 0 12px 0;
}

/* ---------------- Gallery page ---------------- */

.gallery-intro {
    text-align: center;
    margin: 10px 0 30px 0;
}

.gallery-intro .g-title {
    font-size: 20px;
    color: #222;
    margin: 0 0 10px 0;
}

.gallery-intro .g-line {
    font-size: 13px;
    color: #3c3a3a;
    margin: 2px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 30px;
    align-items: start;
}

.gallery-row.gallery-row-wide {
    grid-column: 1 / -1;
}

.gallery-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.gallery-row .gallery-image {
    flex: 0 0 auto;
    max-width: 300px;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.16);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-row .gallery-image:hover {
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}

.gallery-row .gallery-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gallery-row .gallery-caption {
    flex: 1 1 auto;
    /* Start the label a little below the top edge of the piece. */
    padding-top: 26px;
}

.gallery-row .gallery-caption .cap-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}
/* Decorative rule beneath the title (only when more text follows). */
.gallery-row .gallery-caption .cap-title:not(:last-child) {
    padding-bottom: 7px;
    border-bottom: 1px solid #d6d2ca;
}

.gallery-row .gallery-caption .cap-dims,
.gallery-row .gallery-caption .cap-desc {
    font-size: 11px;
    color: #67696c;
    margin: 0 0 4px 0;
}

.gallery-row.gallery-row-wide {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gallery-row.gallery-row-wide .gallery-image {
    max-width: 470px;
}

.gallery-row.gallery-row-wide .gallery-caption {
    margin-top: 10px;
}

/* ---------------- About page ---------------- */

.about-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.about-portrait {
    flex: 0 0 auto;
    width: 340px;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.about-portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.about-statement {
    flex: 1 1 auto;
}

.about-statement h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #222;
}

.about-statement p {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

.about-bio p {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 12px 0;
}

/* ---------------- Contact page ---------------- */

.contact-heading {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0 8px 0;
}

.contact-intro {
    /* Handwriting faces have a small x-height, so they read noticeably
       smaller than the nominal size — hence 18px rather than 14px. */
    font-family: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: #333;
    max-width: 760px;
    margin: 0 auto 30px auto;
}

.contact-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-col {
    flex: 1 1 0;
}

.contact-info-col {
    flex: 0 0 260px;
}

.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin: 14px 0 4px 0;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    padding: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #fff;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    margin-top: 18px;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.contact-form button:hover {
    background: #222;
}

.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.contact-info-col h2 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 12px 0;
}

.contact-org {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 6px 0;
}

.contact-email {
    font-size: 12px;
    margin: 0 0 4px 0;
}

.contact-phone {
    font-size: 12px;
    margin: 0 0 16px 0;
}

.contact-email a,
.contact-phone a {
    color: inherit;
    text-decoration: none;
}

.contact-email a:hover,
.contact-phone a:hover {
    text-decoration: underline;
}

.contact-hours-heading {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 4px 0;
}

.contact-hours p {
    font-size: 12px;
    color: #67696c;
    margin: 0 0 2px 0;
}

.contact-notice {
    max-width: 500px;
    margin: 0 auto 20px auto;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
}

.contact-notice.success {
    background: #eef8ee;
    border: 1px solid #b6ddb6;
    color: #2a5c2a;
}

.contact-notice.error {
    background: #fbeaea;
    border: 1px solid #e3b6b6;
    color: #7a2626;
}

/* ---------------- Footer strip ---------------- */

.site-footer {
    border-top: 4px solid #000;
    padding: 20px;
    background: #fff;
}

.footer-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.footer-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-thumb {
    flex: 0 0 auto;
    width: 280px;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.16);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.footer-thumb:hover {
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.footer-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-caption {
    flex: 1 1 auto;
    min-width: 0;
    /* Sit a little below the top edge of the piece, matching the gallery. */
    padding-top: 20px;
}

.footer-caption .cap-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}
.footer-caption .cap-title:not(:last-child) {
    padding-bottom: 6px;
    border-bottom: 1px solid #d6d2ca;
}

.footer-caption .cap-dims,
.footer-caption .cap-desc {
    font-size: 11px;
    color: #67696c;
    margin: 0 0 4px 0;
}

.footer-item-imageonly {
    grid-column: 1 / -1;
    justify-content: center;
}

.footer-item-imageonly .footer-thumb {
    width: 400px;
}

.footer-contact {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin: 20px 0 0 0;
}

.footer-contact a {
    color: #999;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-sep {
    margin: 0 6px;
}

.copyright {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin: 6px 0 0 0;
}

/* ---------------- Responsive ---------------- */

/* The desktop layout is built on a fixed 1000px canvas (3-col home, 2-col
   gallery/footer with fixed-width thumbnails). Below ~900px those columns get
   cramped, so switch to the single-column stacked layout there rather than
   letting the desktop design squeeze and overflow. */
@media (max-width: 900px) {
    .site-header {
        height: auto;
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }
    .header-decor { width: 90px; height: 120px; margin: 0 auto 10px auto; }
    .header-decor img { width: 90px; height: 120px; }
    .site-title-block { padding-top: 0; }
    .site-title { font-size: 26px; }
    .site-subtitle { font-size: 15px; }
    .site-nav {
        padding-top: 12px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
        align-self: center;
    }
    .home-columns { flex-direction: column; }
    .home-col-history { flex: 1 1 auto; }
    .about-top { flex-direction: column; }
    .about-portrait { width: 100%; max-width: 340px; }
    .contact-columns { flex-direction: column; }
    /* One full-width piece per row on phones — two columns made her
       artwork too small to see. */
    .gallery-grid { grid-template-columns: 1fr; row-gap: 26px; }
    .gallery-row { flex-direction: column; }
    .gallery-row .gallery-image,
    .gallery-row.gallery-row-wide .gallery-image { max-width: 100%; }
    .gallery-row .gallery-image img { width: 100%; height: auto; }
    /* (Placard already stacks below the piece; nothing extra needed here.) */
    .footer-strip { grid-template-columns: 1fr; }
    /* Stack thumbnail above caption on phones — side-by-side crushed the
       caption to a sliver and pushed the page into horizontal scroll. */
    .footer-item { flex-direction: column; align-items: center; text-align: center; }
    .footer-caption { width: 100%; max-width: 320px; }
    .footer-thumb, .footer-item-imageonly .footer-thumb { width: 100%; max-width: 320px; }
    .slideshow-frame { height: 320px; }
}

/* ---------------- Admin ---------------- */

body.admin-body {
    background: #f1f0ed;
    font-family: Arial, Helvetica, sans-serif;
    color: #2a2a2a;
    font-size: 16px;
    margin: 0;
}

/* Top bar */
.admin-topbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-brand { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand-title { font-size: 18px; font-weight: bold; color: #1a1a1a; }
.admin-brand-sub { font-size: 12px; color: #8a8681; letter-spacing: 0.5px; text-transform: uppercase; }
.admin-topbar-actions { display: flex; gap: 8px; }

.admin-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px 60px 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: #2f2f2f; color: #fff; }
.btn-primary:hover { background: #111; }
.btn-lg { font-size: 16px; padding: 13px 28px; }
.btn-outline { background: #fff; color: #333; border-color: #cfccc7; }
.btn-outline:hover { background: #f4f2ee; border-color: #b3afa8; }
.btn-ghost { background: transparent; color: #555; border-color: transparent; padding: 8px 12px; }
.btn-ghost:hover { background: #f0eee9; color: #1a1a1a; }
.btn-link-danger { background: transparent; color: #b23b32; border-color: transparent; }
.btn-link-danger:hover { color: #fff; background: #b23b32; }
.btn:disabled, .btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Add / edit panel */
.admin-panel {
    background: #fff;
    border: 1px solid #e6e3de;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 34px;
}
.admin-panel.is-editing { border-color: #2f2f2f; box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12); }
.panel-title { font-size: 20px; margin: 0 0 18px 0; color: #1a1a1a; }

.form-grid { display: flex; gap: 26px; align-items: flex-start; }
.form-photo { flex: 0 0 220px; }
.form-fields { flex: 1 1 auto; min-width: 0; }
.current-photo {
    display: block; width: 100%; max-width: 200px; height: auto;
    border: 1px solid #ddd; padding: 4px; background: #fff; border-radius: 4px;
    margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.admin-form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    margin: 14px 0 5px 0;
}
.form-photo > label:first-child, .form-fields > label:first-child { margin-top: 0; }
.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    font-size: 15px;
    padding: 10px;
    border: 1px solid #cfccc7;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #2a2a2a;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none; border-color: #2f2f2f; box-shadow: 0 0 0 3px rgba(47,47,47,0.10);
}
.admin-form textarea { min-height: 96px; resize: vertical; }
.field-hint { font-size: 13px; color: #8a8681; margin: 6px 0 0 0; }
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 12px; }

/* Sections */
.admin-section { margin-bottom: 34px; }
.admin-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #d9d5cf;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-count {
    font-size: 12px; font-weight: normal; color: #7a756e;
    background: #e6e3dd; border-radius: 20px; padding: 2px 9px; text-transform: none;
}
.section-empty { color: #9a958e; font-style: italic; margin: 0 0 8px 0; }

/* Artwork cards */
.art-cards { display: flex; flex-direction: column; gap: 12px; }
.art-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e6e3de;
    border-radius: 10px;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
}
.art-card.card-hidden { background: #faf9f7; opacity: 0.85; }
.art-card-thumb { flex: 0 0 auto; }
.art-card-thumb img {
    display: block; width: 84px; height: 84px; object-fit: cover;
    border: 1px solid #ddd; padding: 3px; background: #fff; border-radius: 4px;
}
.art-card-info { flex: 1 1 auto; min-width: 0; }
.art-card-title { font-size: 16px; font-weight: bold; margin: 0 0 3px 0; color: #1a1a1a; }
.art-card-dims { font-size: 13px; color: #6a655e; margin: 0 0 3px 0; }
.art-card-desc { font-size: 13px; color: #8a857e; margin: 0 0 6px 0; }
.status-badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.status-shown { background: #e7f3e7; color: #2a5c2a; }
.status-hidden { background: #fbe9e7; color: #b23b32; font-weight: bold; }

.art-card-controls { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.reorder { display: grid; grid-template-columns: 30px; grid-auto-rows: 28px; gap: 3px; }
.reorder form { margin: 0; }
.icon-btn {
    width: 30px; height: 30px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; line-height: 1;
    background: #f4f2ee; color: #444;
    border: 1px solid #d9d5cf; border-radius: 6px; cursor: pointer;
    transition: background 0.15s ease;
}
.icon-btn:hover:not(:disabled) { background: #e6e2db; }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.card-buttons { display: flex; flex-direction: column; gap: 6px; min-width: 82px; }
.card-buttons form { margin: 0; }
.card-buttons .btn { width: 100%; }

/* Flash messages */
.flash { padding: 13px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; }
.flash.success { background: #eef8ee; border: 1px solid #b6ddb6; color: #2a5c2a; }
.flash.error { background: #fbeaea; border: 1px solid #e3b6b6; color: #7a2626; }

/* Login page */
.login-box {
    max-width: 380px;
    margin: 90px auto;
    background: #fff;
    border: 1px solid #e6e3de;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    padding: 34px;
}
.login-box h1 { font-size: 22px; margin: 0 0 22px 0; text-align: center; color: #1a1a1a; }
.login-box .btn-primary, .login-box button { width: 100%; }
.login-site-link { text-align: center; margin: 18px 0 0 0; }

/* Admin responsive */
@media (max-width: 680px) {
    .form-grid { flex-direction: column; }
    .form-photo { flex-basis: auto; width: 100%; }
    .art-card { flex-wrap: wrap; }
    .art-card-controls { width: 100%; justify-content: space-between; }
    .card-buttons { flex-direction: row; min-width: 0; }
    .card-buttons .btn { width: auto; }
}

/* ---------------- Lightbox ---------------- */

.lightbox-img { cursor: zoom-in; }

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.lightbox-overlay[hidden] { display: none; }

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
}

.lightbox-image {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* Lightbox placard — the same printed-label card, floating on the dark view. */
.lightbox-caption {
    margin: 16px auto 0 auto;
    background: #fbfaf7;
    border-radius: 2px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
    padding: 13px 20px;
    max-width: 520px;
    text-align: left;
}

.lightbox-caption[hidden] { display: none; }

.lightbox-caption .lb-title {
    font-size: 15px;
    font-weight: bold;
    color: #1e1e1e;
    letter-spacing: 0.3px;
    margin: 0 0 7px 0;
}
.lightbox-caption .lb-title:not(:last-child) {
    padding-bottom: 7px;
    border-bottom: 1px solid #e6e0d7;
}
.lightbox-caption .lb-dims {
    font-size: 12.5px;
    font-style: italic;
    color: #8a857e;
    margin: 0 0 7px 0;
}
.lightbox-caption .lb-desc {
    font-size: 12.5px;
    color: #4a4744;
    line-height: 1.55;
    margin: 0;
}

.lightbox-close {
    position: fixed;
    top: 14px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 1001;
}

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

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    border: none;
    width: 56px;
    height: 64px;
    font-size: 34px;
    line-height: 64px;
    text-align: center;
    color: #333;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 1001;
}

.lightbox-arrow:hover { background: rgba(255,255,255,0.9); }
.lightbox-arrow[hidden] { display: none; }
.lightbox-arrow-prev { left: 0; }
.lightbox-arrow-next { right: 0; }

@media (max-width: 700px) {
    .lightbox-arrow { width: 48px; height: 56px; font-size: 28px; line-height: 56px; }
}
