How to make a picture appear at the center of the player camera when an object is clicked?

So I’m building a virtual gallery where the user is able to walk around and see pictures.
Now when he clicks on a picture, I want that picture to pop up take up the screen and also display some metadata about the picture, maybe read a text file related to the picture? How do I do this? I’m very new to Unity so any help will be greatly appreciated.
I’m using the below code to detect the gameobjects.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

public class ObjectClicker : MonoBehaviour
{
    public LayerMask interactableLayermask = 6;
    UnityEvent onInteract;
    void Start()
    {

    }
   

     void Update()
    {
        RaycastHit hit;
        if(Physics.Raycast(Camera.main.transform.position, Camera.main.transform.forward, out hit, 2, interactableLayermask))
        {
            Debug.Log(hit.collider.name);
        }
    }
}

Hello!

You need to use a Canvas, and place the image in the canvas. Go find some youtube totorial about canvas, there are too much things to explain here!