/* Style for the image thumbnail */
.thumbnail {
    width: 700px;
    height: auto;
    cursor: zoom-in;
    margin: 10px;
    border-radius: 8px;
    transition: transform 0.2s ease;
  }

  .thumbnail:hover {
    transform: scale(1.05);
  }

  /* The Modal (background) */
  .imgmodal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrolling */
    cursor: zoom-out;
  }

  /* Modal content (the image) */
  .imgmodal-content {
    max-width: 90%; /* Adjust the max width of the image */
    max-height: 90%; /* Adjust the max height of the image */
    object-fit: contain; /* Ensure image fits within the container without distortion */
  }

  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: zoom-out;
  }

  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: zoom-out;
  }