/* 
    Created on : Feb 28, 2025, 9:22:34 AM
    Author     : mglie
*/
/*==========================================================*/
/* Css for gallery and lazy loading functionality                            */
/*==========================================================*/
* {
    box-sizing: border-box;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    /*Total Gap Width=(number of images−1)×gap size*/
    gap: 5px;               /**** if you change this you need to change a line in gallery.js that has /*** comment too */
    align-items: flex-start; /* Ensures rows line up neatly without stretching */
}

.gallery-container img,
.gallery-container video {
    object-fit: contain;
    max-width: none;
    height: auto;
    flex-grow: 0;
}
/* for lazy loading */
.gallery-container img {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.gallery-container img.loaded {
  opacity: 1;
}
/* for lazy loading */

/* for adding VIDEO to videos in lazy load */
.video-wrapper {
    position: relative;
    display: inline-block;
}

.video-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 2;
    pointer-events: none;
}
/* END for adding Play ICON to videos in lazy load */

/*==========================================================*/
/* END for gallery and lazy loading functionality                            */
/*==========================================================*/
        
/*==========================================================*/
/* Css for lightbox functionality                            */
/*==========================================================*/
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox.hidden {
  display: none;
}
#lightbox-content img {
  max-width: 80vw;
  max-height: 70vh;
  display: block;
  z-index: 10001;
  position: relative;
  opacity: 1; 
  border: 2px solid white;
}
#lightbox-content video {
  max-width: 80vw;
  max-height: 70vh;
  box-shadow: 0 0 20px #000;
  border: 2px solid white;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}

#lightbox-caption {
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5em 1em;
  text-align: center;
  max-width: 90%;
  border: 2px solid white;
}


/*==========================================================*/
/* END Css for lightbox functionality                            */
/*==========================================================*/

