.page-header {
  text-align: center;
}
.profile-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 40px;

  @media (max-width: 768px) {
    gap: 40px 20px;
  }

  a {
    width: calc(calc(100% - 80px) / 3);
    position: relative;

    @media (max-width: 768px) {
      width: 100%;
    }

    .profile-info {
      position: relative;
      padding: 20px 20px;
      font-size: 14px;
      font-weight: 600;
      opacity: 1;
      transition: all 0.3s ease-in-out;
      background-color: #f5f3f4;
      border-radius: 0 0 12px 12px;

      .profile-name {
        font-size: 16px !important;

        @media (max-width: 768px) {
          font-size: 12px !important;
          margin-bottom: 8px;
        }
      }

      .profile-birth,
      .profile-country {
        display: block;
        font-weight: 400;
      }

      @media (max-width: 768px) {
        padding: 8px;
        font-size: 11px;
        bottom: 0;
        right: 0;
      }
    }

    .img-frame {
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 12px 12px 0 0;
    }

    img {
      width: 100%;
      object-fit: cover;
      transition: transform 0.3s ease-in-out;
    }
  }

  a:hover img {
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
  }

  /* a:hover .profile-info {
    opacity: 0;
    right: -30px;
    transition: all 0.3s ease-in-out;
  } */
}

.gallery {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-item {
  width: calc(calc(100% - 60px) / 4);
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #fef7fa;
  background-color: #fef7fa;
  padding: 20px;

  @media (max-width: 768px) {
    /* width: calc(calc(100% - 12px) / 2); */
    width: 100%;
  }
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 8px;
}

.gallery-item .profile-info > * {
  display: block;
}
