/* ============================================================
   Art By Michelle — Single Artwork Page CSS
   ============================================================ */

.abm-single-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 40px 0;
}

.abm-back-link, .abm-back-bottom {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin: 0 0 1.5rem;
}
.abm-back-link a, .abm-back-bottom a {
    color: #6b5f53;
    text-decoration: none;
    transition: color 0.2s;
}
.abm-back-link a:hover, .abm-back-bottom a:hover { color: #8b5e3c; }

/* 2-col layout */
.abm-single-layout {
    display: grid !important;
    grid-template-columns: 55% 42% !important;
    gap: 3% !important;
    align-items: start !important;
    padding-bottom: 5rem;
}

/* Image column */
.abm-single-img-col {
    position: sticky !important;
    top: 100px !important;
    align-self: start !important;
}

.abm-img-protect {
    position: relative;
    display: block;
    line-height: 0;
}

.abm-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.abm-single-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    object-position: top center;
    /* Prevents iOS Safari long-press save callout */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.abm-img-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f2ede6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b5f53;
    font-family: 'Jost', sans-serif;
}

/* Remove overflow hidden from WP parents */
.entry-content,
.wp-block-post-content,
.wp-block-post-content.has-global-padding,
.is-layout-constrained,
.wp-block-group,
.wp-block-group.is-layout-constrained,
main,
main.wp-block-group {
    overflow: visible !important;
}

/* Info column */
.abm-single-cat {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8b5e3c;
    margin: 0 0 0.6rem;
}
.abm-single-cat a { color: #8b5e3c; text-decoration: none; }

.abm-single-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.1;
    color: #1a1612;
    margin: 0 0 0.25rem;
}

.abm-single-byline {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    color: #6b5f53;
    margin: 0 0 1.5rem;
}

/* Details table */
.abm-details-table { border-top: 1px solid #ddd5c8; margin-bottom: 0; }

.abm-detail-row {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid #ddd5c8;
    padding: 9px 0;
}

.abm-detail-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b5f53;
    min-width: 105px;
    flex-shrink: 0;
}

.abm-detail-value {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    flex: 1;
}

.abm-empty { color: #bbb; font-style: italic; }

.abm-price {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #8b5e3c !important;
}

.abm-divider {
    border: none;
    border-top: 1px solid #ddd5c8;
    margin: 1.5rem 0;
}

.abm-about-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    color: #1a1612;
    margin: 0 0 0.7rem;
}

.abm-excerpt,
.abm-excerpt p {
    font-family: 'Jost', sans-serif;
    font-size: 0.93rem;
    line-height: 1.85;
    color: #4a3f35;
    margin: 0 0 1.5rem;
}

.abm-cta-note {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-style: italic;
    color: #6b5f53;
    margin: 0 0 1.3rem;
}

.abm-enquire-btn {
    display: inline-block;
    padding: 13px 28px;
    background: #8b5e3c;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    margin-bottom: 1.2rem;
}
.abm-enquire-btn:hover {
    background: #1a1612;
    color: #fff;
    transform: translateY(-2px);
}

/* Related works */
.abm-more-works {
    background: #f2ede6;
    padding: 3rem 40px 4rem;
    margin: 0 -40px;
}

.abm-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.abm-more-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: #1a1612;
    margin: 0;
}

.abm-more-link {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8b5e3c;
    text-decoration: none;
}
.abm-more-link:hover { color: #1a1612; }

.abm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.abm-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.abm-related-img {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.abm-related-card:hover .abm-related-img { transform: scale(1.04); }

.abm-related-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: #ddd5c8;
}

.abm-related-info {
    padding: 0.75rem 0;
    background: #f2ede6;
}

.abm-related-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1a1612;
    margin: 0 0 0.2rem;
    transition: color 0.2s;
}
.abm-related-card:hover .abm-related-title { color: #8b5e3c; }

.abm-related-cat {
    font-family: 'Jost', sans-serif;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b5e3c;
    margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
    .abm-single-wrap { padding: 1rem 20px 0; }
    .abm-single-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .abm-single-img-col {
        position: static !important;
        max-height: none !important;
    }
    .abm-related-grid { grid-template-columns: 1fr; gap: 16px; }
    .abm-more-works { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
}
