/* ==========================================================
   ARTIST PORTFOLIO — v3.5 refined (Artdealio)
   Premium dark theme with smooth gallery fade-in & mobile polish
   ========================================================== */

:root {
  --accent-color: rgba(188,164,111,0.9);
  --accent-light: rgba(188,164,111,0.3);
}

/* === Layout base === */
.ap-plugin-wrap {
  padding-top: 90px;
  background: radial-gradient(circle at top center, rgba(255,255,255,0.02), transparent 80%);
}

/* === Breadcrumbs === */
.ap-breadcrumbs-inline {
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  display: block;
  text-align: center;
  width: 100%;
  letter-spacing: 0.3px;
}
.ap-breadcrumbs-inline a {
  color: #f5f5f5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.ap-breadcrumbs-inline a:hover { opacity: 0.7; }

/* === Main container === */
.ap-artist-single {
  max-width: 1100px;
  margin: 30px auto 60px;
  color: #fff;
  padding: 0 20px 40px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
  font-size: 16px;
}

/* === Hero section === */
.ap-artist-hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* === Left column === */
.ap-hero-left {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile photo */
.ap-profile-image {
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}

/* === Mini thumbnails === */
.ap-mini-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  width: 100%;
  max-width: 360px;
  justify-items: center;
}
.ap-mini-row img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.ap-mini-row img:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}
.ap-mini-row img:nth-child(n+5){display:none!important;}

/* === Right side info === */
.ap-hero-right {
  flex: 1;
  min-width: 300px;
  max-width: 640px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid var(--accent-light);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.008));
}
.ap-artist-name {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #fff;
  position: relative;
  margin-bottom: 12px;
}
.ap-artist-name::after {
  content:"";
  display:block;
  width:54px;
  height:3px;
  background:var(--accent-color);
  margin-top:10px;
  border-radius:2px;
}
.ap-details {
  color: rgba(255,255,255,0.92);
  margin-bottom: 14px;
  border-left: 3px solid var(--accent-light);
  padding-left: 14px;
}
.ap-label {
  display: inline-block;
  min-width: 130px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  margin-right: 6px;
}
.ap-short-desc {
  color: #f2f2f2;
  margin: 14px 0 18px;
  font-size: 16px;
}

/* === Links === */
.ap-links-row {
  margin-top: 12px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.ap-link-btn {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.ap-link-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}
.ap-link-btn:active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.12);
}
.ap-links-sep { display: none; }

/* === Bio === */
.ap-bio {
  margin-top: 40px;
  padding: 22px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  line-height: 1.85;
  box-shadow: inset 0 0 25px rgba(255,255,255,0.015);
}

/* === Gallery === */
.ap-gallery-title {
  color: #fff;
  margin-top: 40px;
  margin-bottom: 8px;
  font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 4px;
  letter-spacing: 0.4px;
  position: relative;
}
.ap-gallery-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--accent-color);
  margin-top: 6px;
}
.ap-gallery-html {
  margin-top: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 12px;
}
.ap-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: galleryFadeIn 1s ease forwards;
}
@keyframes galleryFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.ap-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.ap-gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.ap-gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}
.ap-gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
}
.ap-gallery-item:hover::before {
  background: rgba(0,0,0,0.15);
}

/* === Additional Info === */
.ap-additional-info {
  margin-top: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 22px;
  font-size: 17px;
  line-height: 1.9;
  color: #f0f6fb;
  box-shadow: inset 0 0 25px rgba(255,255,255,0.03);
  font-weight: 300;
}

/* === Bibliography === */
.ap-bibliography {
  margin-top: 40px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent-light);
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}
.ap-bibliography h4 {
  font-size: 16px;
  color: var(--accent-color);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  position: relative;
}
.ap-bibliography h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  margin-top: 4px;
}

/* === Lightbox === */
#ap-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  display: none;
}
#ap-lightbox-inner img {
  max-width: 95%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}
#ap-lightbox-close {
  position: fixed;
  right: 20px;
  top: 20px;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  z-index: 1000000;
}

/* === Responsive === */
@media(max-width:900px){
  .ap-artist-hero{ flex-direction:column; align-items:center; }
  .ap-hero-left{ width:100%; max-width:420px; }
  .ap-profile-image{ width:100%; height:auto; max-height:420px; }
  .ap-mini-row{ grid-template-columns: repeat(4, 1fr); max-width:100%; }
  .ap-gallery{ grid-template-columns: repeat(2, 1fr); }
  .ap-breadcrumbs-inline{ font-size:14px; }
}

@media(max-width:480px){
  .ap-mini-row{ grid-template-columns: repeat(2, 1fr); }
  .ap-gallery{ grid-template-columns: 1fr; }
  .ap-gallery-item img{ height:auto; }
  .ap-links-row{ justify-content:center; }
  .ap-link-btn{ padding:6px 10px; margin:4px 2px; font-size:14px; min-width:140px; text-align:center; }
  .ap-artist-name{ font-size:27px; }
  .ap-bio{ font-size:15px; line-height:1.8; }
  .ap-additional-info{ font-size:15px; padding:16px; }
}

/* Smooth scrolling for better UX */
html { scroll-behavior: smooth; }
