.photo-and-cards{
   padding: 1rem;
}

.button-on-photo {
   margin: 2rem 0;
   padding: 1rem;
   position: relative;
   overflow: hidden;
   border-radius: 0.75rem;
   border: 1px solid #999;
}

.button-on-photo .photo {
   padding: 1rem;
   border-radius: 0.5rem;
}

.button-on-photo .photo img{
   width: 100%;
   display: block;
   height: auto;
   object-fit: cover;
}

.button-on-photo .button {
   padding: 3rem;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.25rem;
   font-weight: bold;
   font-family: zen-maru-gothic, sans-serif;
   line-height: 1.5;
   background: rgba(0, 0, 0, 0.4);
   color: #fff;
   z-index: 2;
   transition: 0.2s;
}

.button-on-photo .button:hover {
   background: rgba(0, 0, 0, 0.5);
}

/*------------------ large TABLET ------------------*/
@media (min-width: 768px) {
   .photo-and-cards{
      margin: 5rem 0;
      padding: 3rem 2rem 5rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      justify-content: space-evenly;
      align-items: start;
      gap: 5rem;
      border-radius: 0.5rem;
      background: #fff;
   }
   .button-on-photo {
      margin: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      border: none;
   }
   .button-on-photo .photo {
      box-shadow: 1px 1px 5px lightgray;
      background: #fff;
   }
   .button-on-photo .photo img{
      max-width: 400px;
   }
   .button-on-photo .button {
      position: relative;
      top: auto;
      left: auto;
      margin-top: 2.5rem;
      padding: 1rem 2rem;
      width: calc(150px + 10vw);
      height: auto;
      text-align: center;
      border: 1px solid;
      border-radius: 0.25rem;
      background: #fff;
      color: #7bb2e9;
      box-shadow: 0 0.25rem 5px;
      z-index: 0;
   }
   .button-on-photo .button:hover {
      background: #7bb2e9;
      color: #fff;
      transform: translateY(0.25rem);
   }
}

/*------------------ PC ------------------*/
@media (min-width: 1200px) {
   .button-on-photo .button {
      width: 330px;
   }
}