main{
    margin-bottom: 2%;
    font-size: large;
}
.block {
  position: relative;
  width: 75%;
  height: 300px;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 10px;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 30px;
  transition: transform 300ms ease;
}
.block:hover{
    background-color: #afaeae;
    transform: scale(1.02);
}
.block-content img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.block-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.block-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: 1.5rem;
  color: white;
  background: linear-gradient(transparent, rgb(0 0 0 / 65%));
}