
#overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 100;
    top: 0px;
    left: 0px;
    visibility: hidden;
    background-color: white;
}

#imageLoader {
    background: url('../../Images/Background/loading2.gif') center no-repeat;
    opacity: 0.5;
    filter: alpha(opacity=50);
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 3;
}

#imageContainer {
    position: relative;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 5px;
    width: 100%;
    height: 100%;
    height: calc(100% - 100px);
}

#projectThumbContainer {
    display: block;
    width: 100%;
    height: 100px;
    border: 1px solid black;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
/*    padding: 0px 10px 0px 0px;*/
}

#thumbListContainer {
    display: flex;
    flex-wrap: nowrap;
/*    gap: 20px;*/
}

.projectThumb {
    margin: 5px 20px 0px 20px;
    flex: 0 0 auto;
    transform: scale(1); /* for unselect */
}

.projectThumb.selected {
    transform: scale(1.2); /* make it 5% bigger */
    border: 1px solid orange;
}

.projectThumb:hover {
    transform: scale(1.2); /* make it 5% bigger */
    border: 1px solid yellow;
    cursor: pointer;
}

.slideNav {
    position: absolute;
    cursor: pointer;
    top: 50%;
    object-fit: cover;
    width: 50px;
    height: 50px;
    z-index: 2;
}

.slideNav.next {
    object-position: center bottom;
    right: 50px;
}

.slideNav.prev {
    object-position: center top;
    left: 50px;
}

#closeOverlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#currentImage {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

@media only screen 
  and (max-width: 1000px) 
  and (orientation: landscape) {

      #imageContainer {
          height: 100%;
      }
      #projectThumbContainer {
          display: none;
      }
}


/* tablets */
@media (max-width: 1024px) {
}

/* large phones */
@media (max-width: 768px) {
    #overlay {
    }
    .slideNav.next {
        right: 5px;
    }
    .slideNav.prev {
        left: 5px;
    }
    #closeOverlay {
        top: 0.6rem;
        right: 0.6rem;
    }
    .projectThumb {
        margin: 3px 5px 0px 5px;
        flex: 0 0 auto;
        transform: scale(1); /* for unselect */
    }
}

/* small phones */
@media (max-width: 480px) {
}
