/* Gallery for Product/Projects display */
.gallery {
    line-height:0;
    -webkit-column-count:5; /* split it into 5 columns */
    -webkit-column-gap:5px; /* give it a 5px gap between columns */
    -moz-column-count:5;
    -moz-column-gap:5px;
    column-count:5;
    column-gap:5px;
    margin-top: 35px;
 }

 .gallery img {
    width: 100% !important;
    height: auto !important;
    margin-bottom:5px; /* to match column gap */
 }

 #darkbox { 
    display: none; /* hidden by default */
    position: fixed; /* stick to the screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.769);
    justify-content: center; /* centers horizontally */
    align-items: center;     /* centers vertically */
    z-index: 9999;
    padding: 20px; /* optional spacing around image */
    box-sizing: border-box;
}

#darkbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: gray;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

#darkbox-close:hover {
    color: white;
}

.darkboximg { 
    max-width: 100%;
    max-height: 100%;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  background-color: rgba(0,0,0,0.3);
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: opacity 0.3s ease;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
}
  
.arrow:hover {
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.71);
}

@media (max-width: 1200px) {
    .gallery {
        -moz-column-count:    4;
        -webkit-column-count: 4;
        column-count:         4;
    }
}

@media (max-width: 1000px) {
    .gallery {
        -moz-column-count:    3;
        -webkit-column-count: 3;
        column-count:         3;
    }
}