    * {
  box-sizing: border-box; 
}



/*everything below is for the gallery itself*/

    .gallerycontainer{
      display: flex;
      flex-wrap: wrap;
      width: 100%;
      height: auto;
      background-color: red;
      gap: 30px;
      overflow-y: visible;
      padding: 50px;
      justify-content: center;
      }
    
    .galleryitem{
      display: flex;
      flex: 0 0 auto;
      height: 350px;
      padding: 10px;
      border-radius: 10px;
      transition: transform 1s;
      position: relative;
      background-image: url("/my_work/assets/workframedefault.webp");
      background-size: cover;
      background-position: center;
      background-blend-mode: multiply;
      }
      
    .galleryimage{
      height: 100%;
      width: auto;
      object-fit: contain;
      display: block;
      flex-shrink: 0;
      background-color: black;
      clip-path: inset(0 round 10px);
      }
      
    .galleryiconcontainer{
      position:absolute;
      bottom: 12px;
      right: 12px;
      z-index: 3;
      pointer-events: auto;
      display: flex;
      flex-direction: row-reverse;
      flex-wrap: wrap-reverse;
      max-width: 100%;
      gap: 3px;
      }
    
    .iconmaster{
      position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
      }
      
      .iconmaster:hover .icontooltip {
  opacity: 1;
  visibility: visible;
  
}

    
    .icontooltip {
   position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%); 
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap; 
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 4;
  pointer-events: none;
}

.galleryiconcontainer:hover .tooltip {
  opacity: 1;
  visibility: visible;
}
    
    .imgwrap{
       width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px; 
  background-color: black; 
      }
    
    .galleryicon{
      width: 30px;
      height: 30px;
      object-fit: contain;
      filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.7));
      border-radius: 10px;
      }
      
  .galleryitem[data-tags~="ratingq"]{
    background-color: #5e5e5e;
    }
    .galleryitem[data-tags~="ratingu"]{
    background-color: #69ccff;
    }
    .galleryitem[data-tags~="rating13"]{
    background-color: #96ff69;
    }
    .galleryitem[data-tags~="rating16"]{
    background-color: #ffe269;
    }
    .galleryitem[data-tags~="rating18"]{
    background-color: #c70000;
    }
    
    .galleryitem:hover{
     transform: scale(1.1);
     z-index: 99;    
    }
    
    body[data-filtersetting="on"] .galleryitem[data-tags~="rating16"] .galleryimage,
    body[data-filtersetting="on"] .galleryitem[data-tags~="rating18"] .galleryimage,
    body[data-filtersetting="on"] .galleryitem[data-tags~="ratingq"] .galleryimage {
        filter: blur(50px);
    }
    
    /*Tag Filter Elements*/
    
    .tagheader{
      display: flex;
      flex-direction: row;
      background-color: green;
      width: 100%;
      height: 250px;
      gap: 5px;
      margin: 10px;
      padding: 10px;
      }
    .tagconbutton{
      position: relative;
      width: auto;
      height: 50px;
      background-color: white;
      cursor: pointer;
      user-select: none;
      -ms-user-select: none;
      -moz-user-select: none;
      -webkit-user-select: none;
      }
    .filtertoggle{
      width: auto;
      height: 50px;
      background-color: white;
      user-select: none;
      -ms-user-select: none;
      -moz-user-select: none;
      -webkit-user-select: none;
      }
    .tagcontainer{
      position: absolute;
      display: flex;
      flex-direction: column; 
      background-color: blue;
      gap: 5px;
      top: 60px;
      padding: 5px;
      width: 150px;
      height: 350px;
      overflow: scroll;
      z-index: 100;
      }

    .tagelement{
      background-color: white;
      width: auto;
      height: auto;
      padding: 5px;
      text-align: center;
      }
      
        .tagelement[data-state="merge"]::after {
      content: " (•)";
      color: gray;
    }
    
    .tagelement[data-state="show"]::after {
      content: " (+)";
      color: green;
    }
    
    .tagelement[data-state="hide"]::after {
      content: " (-)";
      color: red;
    }
