html, body {
  margin: 0;
  height: 100%;
  background: #FFE974;
}

.frame {
  position: relative;
  height: 100dvh;
  width: 100vw;
  background: #FFE974;
  box-sizing: border-box;

  border-left: 20px solid #FFE974;
  border-right: 20px solid #FFE974;
  border-top: 20px solid #FFE974;
  border-bottom: 40px solid #FFE974;
}

.photo {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 40px;
  background: url("photos/350A0402.jpeg") no-repeat;
  background-size: cover;
  background-position: 70% center;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 5px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 1;

  color: black;
  background: #FFE974;
  box-sizing: border-box;
}

.left-text {
  font-weight: normal;
}

.caption a {
  position: relative;
  color: black;
  text-decoration: none;
  padding-bottom: 4px;
  border: none;
  display: inline-block;
}

.caption a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.5s ease;
}

.caption a:hover::after {
  background: black;
}

@media (max-width: 400px) {
  .caption {
    flex-direction: column !important;
    justify-content: flex-end;
    text-align: center;
    height: auto;
    padding-bottom: 10px;
  }

  .left-text {
    margin-top: 30px;
    margin-bottom: -10px;
    width: 100%;
  }

  .right-text {
    margin-top: 20px;
    margin-bottom: -20px;
    width: 100%;
  }

  .photo {
    bottom: 80px;
  }
}
