/* ===== SINGLE ARTIST ===== */

.ag-artist-page{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start; /* ВАЖНО для sticky в grid */
  margin-top: 34px;
}

.ag-artist-side{
  background:#fff;
  padding: 26px;
  height: auto;          /* убираем фикс 500px */
  position: sticky;      /* ✅ липкий блок */
  top: 20px;  
}

.ag-artwork-card__size{
  font-size: 16px;
  margin-top: 15px;
}

.ag-artist-photo{
  display:flex;
  justify-content:center;
  align-items:center;
  height: 420px;
  overflow:hidden;
}
.ag-artist-photo img{
  width:75%;
}

.ag-artist-name{
  margin-top: 16px;
  font-family:"Inria Serif", serif;
  font-size: 22px;
  letter-spacing:.02em;
  text-transform: uppercase;
  color:#2b2b2b;
  max-width: 220px;
}

.ag-artist-tabs{
  display:flex;
  align-items:flex-end;
  gap: 36px;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 10px;
}

.ag-artist-tab{
  border:0;
  background:transparent;
  cursor:pointer;
  padding: 0 0 12px;
  font-family:"Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  letter-spacing:.02em;
  text-transform: uppercase;
  color:#2b2b2b;
  position:relative;
}
.ag-artist-tab sup{
  font-size: 11px;
  top: -6px;
  margin-left: 4px;
  position: relative;
}
.ag-artist-tab.is-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:3px;
  background:#2b2b2b;
}

.ag-artist-panel{
  padding-top: 18px;
}

/* BIO */
.ag-artist-years{
  font-family:"Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  color:#2b2b2b;
  margin-bottom: 10px;
}
.ag-artist-bio__text{
  font-family:"Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#6f6f6f;
  font-size: 15px;
  line-height: 1.8;
}

/* ARTWORKS */
.ag-artworks-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ag-artwork-card{
  background: #fff;
  border: 1px solid #efefef;
  padding: 18px 18px 20px;
}

.ag-artwork-card__top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #7b7b7b;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ag-artwork-card__img{
  background: #fff;
  height: 360px;                 /* можешь 340–420 подобрать под дизайн */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ag-artwork-card__img img{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.ag-artwork-card__title{
    margin-top: 16px;
  font-family: "Inria Serif", serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #2b2b2b;
}

/* REVIEWS */
.ag-review-card{
  background:#f6f6f6;
  padding: 22px;
  margin-bottom: 18px;
}

.ag-review-card__head{
  display:flex;
  gap: 10px;
  align-items:center;
  font-family:"Inria Serif", serif;
  text-transform: uppercase;
  color:#2b2b2b;
  margin-bottom: 8px;
}
.ag-review-card__date{
  font-family:"Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform:none;
  color:#7b7b7b;
  font-size: 13px;
}

.ag-review-card__text{
  font-family:"Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#6f6f6f;
  font-size: 14px;
  line-height: 1.75;
}

/* responsive */
@media (max-width: 1100px){
  .ag-artist-page{ grid-template-columns: 1fr; }
  .ag-artist-side{ padding: 18px; }
  .ag-artworks-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ag-artwork-card__img{ height: 340px; }
}

@media (max-width: 560px){
  .ag-artist-tabs{ gap: 18px; }
  .ag-artworks-grid{ grid-template-columns: 1fr; }
  .ag-artworks-grid{ grid-template-columns: 1fr; }
  .ag-artwork-card__img{ height: 320px; padding: 18px; }
}

.ag-artwork-card__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  font-size:12px;
  color:#999;
}

.ag-artwork-card__category{
  text-transform: uppercase;
  letter-spacing: .04em;
}