/* =========================
   CLASSICAL ART (same UI as Gallery)
   ========================= */

.ag-classical{
  padding: 32px 0 70px;
}

/* HEAD */
.ag-classical__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom: 22px;
}

.ag-classical__sort{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:#6f6f6f;
  margin-top: 6px;
}

.ag-classical__sort-label{ white-space: nowrap; }

.ag-classical__sort-select{
  border:0;
  background: transparent;
  outline:none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor:pointer;
  color:#2a2a2a;
}

/* GRID */
.ag-classical__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 26px;
}

@media (max-width: 1200px){ .ag-classical__grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px){
  .ag-classical__grid{ grid-template-columns: repeat(2, 1fr); }
  .ag-classical__head{ flex-direction:column; }
}
@media (max-width: 520px){ .ag-classical__grid{ grid-template-columns: 1fr; } }

/* =========================================
   CARD (IMPORTANT FIX)
   Карточка должна быть как в Gallery:
   .ag-gallery-card + __head + __img + __artist
   ========================================= */

.ag-classical__grid .ag-gallery-card{
  background:#fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border:1px solid #ededed;
}

.ag-classical__grid .ag-gallery-card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 14px 16px 10px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:#8a8a8a;
}

/* блок картинки — фикс высоты как у Gallery */
.ag-classical__grid .ag-gallery-card__img{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px 16px;
  min-height: 310px;
  text-decoration:none;
}

/* ключевое: НЕ растягиваем на весь экран */
.ag-classical__grid .ag-gallery-card__img img{
  display:block;
  max-width: 100%;
  max-height: 320px;
  width:auto;
  height:auto;
  object-fit: contain;
}

/* ARTIST */
.ag-classical__grid .ag-gallery-card__artist{
  padding: 14px 16px 18px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:#2a2a2a;
}

.ag-classical__grid .ag-gallery-card__artist-link{
  color:inherit;
  text-decoration:none;
  font-weight: bold;
}

.ag-classical__grid .ag-gallery-card__artist-link:hover{
  text-decoration:underline;
}

/* VIEW MORE */
.ag-classical__more{
  display:flex;
  justify-content:center;
  margin-top: 36px;
}

.ag-classical__btn{
  border:0;
  background:#2b2b2b;
  color:#fff;
  padding: 12px 26px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor:pointer;
  transition: opacity .15s ease;
}

.ag-classical__btn:hover{ opacity:.9; }
.ag-classical__btn:disabled{ opacity:.5; cursor:not-allowed; }

.ag-classical__btn-ico{
  margin-left: 8px;
  display:inline-block;
  transform: translateY(1px);
}