/* ========================= */
/*   ARTIST NAVIGATION BAR   */
/* ========================= */

.artist-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0 30px;
    font-family: 'Inter', Verdana, Arial, Helvetica, sans-serif;
}

.artist-nav a {
    text-decoration: none;
    color: #666;
}

.artist-nav .separator {
    color: #999;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .artist-nav {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin: 25px 0 20px;
        gap: 8px;
    }
}


/* ========================= */
/*   ARTIST PAGE TITLE (H1)  */
/* ========================= */

.artist-page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 10px 0 40px;
    font-family: 'Inter', Verdana, Arial, Helvetica, sans-serif;
    padding-bottom: 20px;
    border-bottom: 1px solid #B5622E;
}
.artist-page-title:has(+ .price-range) {
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: none;
}
.artist-page-title + .price-range {
    margin-top: 0;
    padding-bottom: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #B5622E;
}

.title-prefix {
    font-size: 0.5em;
    letter-spacing: 2px;
    color: #777;
}

/* Override template defaults */
.content h1.artist-page-title {
    font-size: 2rem !important;
    letter-spacing: 3px !important;
    font-weight: 300 !important;
    text-align: center !important;
}

/* Mobile scaling */
@media (max-width: 768px) {
    .content h1.artist-page-title {
        font-size: 1.5rem !important;
        letter-spacing: 2px !important;
    }
}


/* ========================= */
/*   BIO + EXHIBITION TEXT   */
/* ========================= */

.artist-content p {
    font-family: 'Inter', Verdana, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.artist-content a,
.artist-gallery-intro a {
    color: #B5622E;
    text-decoration: underline;
}

.artist-content a:hover,
.artist-gallery-intro a:hover {
    color: #8A4A22;
}

/* Mobile readability */
@media (max-width: 768px) {
    .artist-content p {
        text-align: left;
    }
}

/* Section headings (Exhibitions page) */
.section-heading {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .container h3.section-heading {
        text-align: center !important;
    }
}


/* ========================= */
/*   GALLERY PAGE STYLES     */
/* ========================= */

.gallery-section {
    max-width: 1000px;
    margin: 0 auto 50px;
    font-family: 'Inter', Verdana, Arial, Helvetica, sans-serif;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.artwork-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}
.gallery-grid .artwork-item p.artwork-title {
    margin: 8px 0 0;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333;
    text-align: center !important;
    width: 100%;
}
.gallery-grid .artwork-item p.artwork-title a {
    color: inherit;
    text-decoration: none;
}
.gallery-grid .artwork-item p.artwork-title a:hover {
    color: #B5622E;
    text-decoration: underline;
}
.gallery-grid .artwork-item p.artwork-price {
    margin: 3px 0 0;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #888;
    text-align: center !important;
    width: 100%;
}
.artwork-price a {
    color: #B5622E;
    text-decoration: underline;
    font-weight: 400 !important;
}
.artwork-price a:hover {
    color: #8A4A22;
}

.gallery-grid img {
    width: 200px !important;
    height: auto;
    display: block;
}

/* Landscape orientation (iPad and iPhone): force exactly 2 thumbnails
   per row, regardless of exact device width. Portrait and desktop
   are untouched (portrait keeps the default 200px thumbnails). */
@media (orientation: landscape) and (max-width: 1024px) {
    .artwork-item {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    .gallery-grid img {
        width: 100% !important;
        height: auto;
    }
}

/* iPad in portrait specifically (not iPhone): force 2 per row. */
@media (orientation: portrait) and (min-width: 600px) and (max-width: 1024px) {
    .artwork-item {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    .gallery-grid img {
        width: 100% !important;
        height: auto;
    }
}

/* iPhone in portrait specifically: keep 1 per row (natural wrap),
   just make each thumbnail somewhat larger. */
@media (orientation: portrait) and (max-width: 480px) {
    .artwork-item {
        max-width: 280px;
    }
    .gallery-grid img {
        width: 280px !important;
    }
}

/* Desktop and other large screens: force 2 per row with larger
   thumbnails, mirroring the tablet layout above instead of letting
   flex-wrap fit as many 200px thumbnails as the row allows. */
@media (min-width: 1025px) {
    .artwork-item {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    .gallery-grid img {
        width: 100% !important;
        height: auto;
    }
}

/* ========================= */
/*   RELATED ARTISTS STYLES  */
/* ========================= */

.related-artists {
    margin-top: 50px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #ddd;
}

.related-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 300;
    color: #777;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 1px solid #B5622E;
}

.related-links,
.related-list-links {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 30px;
}

.related-links a,
.related-list-links a {
    color: #B5622E;
    text-decoration: underline;
    font-size: 16px;
}

.related-links a:hover,
.related-list-links a:hover {
    color: #8A4A22;
}

.related-artists-list {
    text-align: center;
    margin-top: 40px;
}

.related-main-link {
    display: inline-block;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
}

.related-main-link:hover {
    color: #B5622E;
    border-bottom-color: #B5622E;
}

.related-subtitle {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    color: #777;
    margin: 25px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 1px solid #B5622E;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.related-links a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.related-links a:hover {
    background: #f0f0f0;
    opacity: 0.8;
}

/* ========================= */
/*   RELATED ARTISTS LIST    */
/* ========================= */

.related-artists-list {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.related-main-link {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 15px;
}

.related-main-link:hover {
    opacity: 0.7;
}

.related-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.related-list-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-list-links a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.related-list-links a:hover {
    opacity: 0.7;
}

/* Global link styling for content areas */
.content a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.content a:hover {
    opacity: 0.7;
}

/* ========================= */
/*   INDIVIDUAL ARTWORK PAGE  */
/* ========================= */
.breadcrumb-nav {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin: 20px 0 10px;
}
.breadcrumb-nav a {
    color: #999;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    color: #B5622E;
}
.artwork-page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 10px auto 4px;
    max-width: 700px;
}
.artwork-page-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #777;
    font-weight: 400;
    margin: 0 0 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #B5622E;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.artwork-display {
    text-align: center;
    margin-bottom: 30px;
}
.artwork-display img {
    max-width: 100%;
    max-height: 640px;
    height: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.artwork-details {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}
.artwork-cta {
    text-align: center;
    margin-bottom: 40px;
}
.artwork-cta a {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #B5622E;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}
.artwork-cta a:hover {
    background: #8A4A22;
    transform: translateY(-2px);
}
.artwork-cta.sold span {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #C1683A;
    border: 1px solid #C1683A;
    border-radius: 6px;
}
.artwork-links {
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
}
.artwork-links a {
    color: #B5622E;
    text-decoration: underline;
    margin: 0 10px;
}
.artwork-links a:hover {
    color: #8A4A22;
}
.artwork-nav {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}
.artwork-nav a {
    color: #B5622E;
    text-decoration: none;
    font-weight: 600;
}
.artwork-nav a:hover {
    color: #8A4A22;
}
@media (max-width: 600px) {
    .artwork-page-title {
        font-size: 1.4rem;
    }
}

/* ========================= */
/*   SITE-WIDE NAV / FOOTER   */
/* ========================= */
nav {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 0 0 10px;
}
footer {
    padding: 30px 10px;
    text-align: center;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}
footer a {
    color: #333;
    text-decoration: none;
    padding: 0 6px;
    font-weight: 500;
}
footer a:hover {
    color: #B5622E;
}
footer p {
    max-width: 90%;
    margin: 0 auto;
    word-wrap: break-word;
}
@media (orientation: landscape) and (max-height: 500px) {
    footer {
        font-size: 11px !important;
        padding: 10px 10px !important;
        line-height: 1.3 !important;
        margin-top: 12px !important;
    }
}
@media (max-width: 768px) {
    footer {
        font-size: 13px;
        padding: 20px 10px;
    }
}
@media (max-width: 480px) {
    footer {
        font-size: 12px;
    }
}

/* ========================= */
/*   SITE-WIDE PAGE CHROME    */
/* ========================= */
body {
    margin: 0;
    font-family: 'Inter', Verdana, Arial, Helvetica, sans-serif;
    background: #FAF7F2;
    color: #000;
}
.container {
    max-width: 1028px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
}
.logo-section {
    text-align: center;
    padding: 30px 0 10px;
}
nav a {
    font-size: 28px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
}
.nav-home-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

/* ========================= */
/*   MUSEUMS & COLLECTIONS    */
/* ========================= */
.museums-collections {
    max-width: 600px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.museums-collections h4 {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #B5622E;
    margin: 0 0 12px;
}
.museums-collections ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}
.museums-collections li {
    display: inline;
}
.museums-collections li:not(:last-child)::after {
    content: " · ";
    color: #B5622E;
}

/* ========================= */
/*   PRICE RANGE              */
/* ========================= */
.price-range {
    text-align: center;
    font-size: 0.95rem;
    color: #B5622E;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 6px 0 0;
}
@media (max-width: 768px) {
    .container p.price-range {
        text-align: center !important;
    }
}
.price-range.sold-out {
    color: #999;
    font-weight: 500;
    font-style: italic;
}

/* ========================= */
/*   COMING SOON BLOCK        */
/* ========================= */
.coming-soon-block {
    text-align: center;
    padding: 60px 20px 80px;
    max-width: 600px;
    margin: 0 auto;
}
.coming-soon-block p {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
}
.coming-soon-block a {
    color: #B5622E;
    text-decoration: underline;
    font-weight: 600;
}
.coming-soon-block a:hover {
    color: #8A4A22;
}


/* African Contemporary — artist search widget styles */

.ac-instagram-link {
  position: absolute;
  top: 30px;
  left: 20px;
  z-index: 50;
  display: inline-block;
  line-height: 0;
}
.ac-instagram-link svg {
  width: 24px;
  height: 24px;
  fill: #000;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.ac-instagram-link:hover svg {
  opacity: 1;
}
@media (max-width: 480px) {
  .ac-instagram-link {
    top: 19px;
    left: 12px;
  }
  .ac-instagram-link svg {
    width: 20px;
    height: 20px;
  }
}

.ac-search-wrap {
  max-width: 220px;
  margin: 0;
  position: absolute;
  top: 24px;
  right: 20px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  z-index: 50;
}
#ac-artist-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 32px 8px 12px;
  font-size: 16px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
}
@media (min-width: 701px) {
  #ac-artist-search {
    font-size: 13px;
  }
}
#ac-artist-search:focus {
  border-color: #999;
}
.ac-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.4;
  pointer-events: none;
}
#ac-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: left;
}
#ac-search-results.open {
  display: block;
}
.ac-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.ac-result-item:last-child {
  border-bottom: none;
}
.ac-result-item:hover,
.ac-result-item.active {
  background: #f5f5f3;
}
.ac-result-name strong {
  font-weight: bold;
}
.ac-result-nationality {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  margin-left: 12px;
}
.ac-no-results {
  padding: 12px 14px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

/* Keep the top-right placement at every screen size, including iPhone
   portrait — consistent with how it already behaves on iPad and in
   landscape. On very narrow phones, just shrink the box and tuck it in
   a little closer to the edge so it's less likely to overlap the logo,
   which spans close to full width on small screens. */
@media (max-width: 480px) {
  .ac-search-wrap {
    max-width: 150px;
    top: 14px;
    right: 12px;
  }
  .logo-section {
    padding-top: 70px !important;
  }
  #ac-artist-search {
    padding: 6px 26px 6px 10px;
  }
  .ac-search-icon {
    right: 8px;
    width: 12px;
    height: 12px;
  }
}

