/* ===== MYWORK GRID ===== */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 18px;
  text-align: center;
}

.card-link {
  text-decoration: none;
  display: block;
  min-width: 0;
  position: relative;
  z-index: 0;
}

.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card.landscape {
  justify-content: center;
}

/* ===== PAINTING CARD ===== */
/* Portrait (défaut) */
.img-wrap {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 6px;
}

/* Paysage */
.img-wrap.landscape {
  height: 320px;
}

.img-wrap.landscape .card-img {
  object-fit: contain;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  display: block;
}

.row { margin-top: auto; }

.card-link:hover .card-img {
  opacity: 0.85;
  transition: opacity 0.2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
