@import url("https://fonts.googleapis.com/css?family=Oswald:500|Playfair+Display&subset=cyrillic");

.container-grid {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: auto;
}

/*
Styling a card
*/
.card {
  max-width: 300px;
  
  flex: 1;
  overflow: hidden;
  border-radius: 0.25em;
  margin: 1em 0.5em;
  background-color: white;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 400ms ease-in-out;
  /* width: 300px; */
}
.card .image {
  transition: 300ms transform ease-out;
}
.card:hover {
  box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.25);
}
.card:hover .image {
  transform: scale(1.05);
}

/*
Responsive images
*/
.image-container {
  overflow: hidden;
}

.image {
  height: 300px;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.image img{
  /* background-size: cover; */
  width: 100%;
}


/* 
Arranging the text content of the card 
*/
.content {
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
}

.content{
  text-align: center;
}

/*
Creating a dotted horizontal line
*/
hr {
  border: none;
  border-top: 2px dotted #333;
  margin-top: 1em;
  margin-bottom: 0.6em;
  width: 70%;
}