th {
  padding: 0px 2px 0px 2px;
}

/*Lightbox CSS created by Dan Q [https://danq.me/2025/12/11/css-lightbox-with-alt-text-viewer/]*/

body:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox {
  display: inline-block;
  width: fit-content;
  margin: 0 auto;

summary {
  list-style: none;
  cursor: pointer;
}
  
  summary:hover{
   opacity: 0.5;
  }

&[open] {
  summary {
    cursor: zoom-out;
    opacity: 1;
    
    &::after {
      content: "";
      position: fixed;
      z-index: 1;
      background-color: rgba(0,0,0,0.6);
      backdrop-filter: brightness(20%);
      inset: 0;
    }
  }
  
  .lightbox-full-image {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5ch;
    
    img {
      object-fit: contain;
      z-index: 3;
      max-height: 85vh;
      max-width: 100%;
      padding: 30px 30px 0px 30px;
      }
    
    figure {
      display: flex;
      flex-direction: column;
      align-items: end;
      padding: 5px;
    }
    
  figcaption {
    display: flex;
    max-width: 400px;
    font-weight: normal;
    font-size: 14px;
    color: white;
    padding: 10px 10px 10px 10px;
    text-align: justify;
      }
    }
  }
}
