body {
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: smaller;
}

#deprecation {
    background-color: #f0b885;
    color: black;
    text-align: center;
    padding: 10px 0;
}

#header {
    position: relative;
    padding: 0;
    background: #555;
    color: #f1f1f1;
    height: 45vh;
    text-align: center;
    vertical-align: middle;
    background-size: cover;   
}

.carouselItem {
    display: none;
    height:100%;
    background-size: cover;   
    background: no-repeat center center scroll;
    background-size: cover;
    animation: fading 1s;
}

.carouselItem .carouselText {
  position:absolute;
  right:0;
  left:0;
  bottom: 3rem;
  text-shadow: 0 0 3px black, 0 0 3px black, 0 0 3px black, 0 0 3px black;
}

.carouselIndicators {
  position:absolute;
  bottom: 1em;
  right: 0;
  left: 0;
  text-align:center;  
}

.carouselIndicator {
  cursor: pointer;
  height: 5px;
  width: 25px;
  margin: 0 2px;
  background-color: #bbb;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .carouselIndicator:hover {
  background-color: #717171;
}








div.galleryContainer {
  column-count: 5;
  column-gap: 1rem;
}

@media (max-width: 1200px) {
  div.galleryContainer {
    column-count: 4;
  }
}

@media (max-width: 1000px) {
  div.galleryContainer {
    column-count: 3;
  }
}

@media (max-width: 800px) {
  div.galleryContainer {
    column-count: 2;
  }
}

@media (max-width: 400px) {
  div.galleryContainer {
    column-count: 1;
  }
}


div.galleryWrapper {
  padding-bottom: 1rem;
  break-inside: avoid;
}







@keyframes fading {
  0% {
      opacity:0
  }

  50% {
      opacity:1
  }

  100% {
      opacity: 0
  }
}





.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  user-select: none;
  -webkit-user-select: none;
}

.next {
  right: 0;
}

.prev {
  left: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal .prev:hover,
.modal .next:hover {
  background-color: rgba(107, 107, 107, 0.8);
}


  
  /* Fading animation */
  /*
  .fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
  
  @keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
*/
 
  #navbar {
    background-color: #000;
    padding: 10px 0px; 
    transition: all 0.4s ease;
    width: 100%;
    z-index: 500;
    text-align:right;
    /*
    height: 2.6rem;
    line-height: 2.6;
    */
  }

  #navbar-right {
    display: inline-block;
  }

  
  #navbar:after {
    content: "";
    display: inline-block;
    width: 100%;
  }


  .sticky {
    position: fixed;
    top: 0;
    width: 100%;
  }



  #slogan {
    display: inline-block;
    vertical-align: middle;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: whitesmoke;
    visibility: visible;
}

@media screen and (max-width: 850px) {
    #navbar.shrink #slogan {
        display:none !important;
      }
}

  #content {
    padding-top:2rem;
    background-color:#fcfcfc;
    /*padding-left:.5rem;
    padding-right: .5rem;*/
  }

div.gallery {
  /* margin: 5px;
margin-bottom: 1.5rem; */
  border: 1px solid rgb(39, 39, 39);
  /*float: left;*/
  /*width: 180px;*/
  /* margin: 1rem 0.4rem;    */
  width: 100% !important;
  height: auto !important;
  /* margin-bottom:5px; */
  background-color: #eee;



}

a.galleryAnchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

div.gallery img {
  width: 100%;
}

div.gallery:hover {
  border: 1px solid #777;
}

li.activeAnchor {
    border: 2px solid #7CFC00;
}

div.desc {
  /*padding: 15px;*/
  text-align: left;

}

/* Style the Image Used to Trigger the Modal */
.galleryImage {
  cursor: pointer;
  transition: 0.3s;
}

/*
.galleryImage:hover {
  opacity: 0.7;
}
*/

.imageCreditLine {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}



input#search {
    /*display: block;*/
    margin-right: 1rem;
    width: 15rem;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0;
    top: 1rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(142, 187, 255);
    }

    .pill {
      background-color: rgb(83, 148, 245);
      border: none;
      color: black;
      padding: 0.1rem 0.2rem;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      margin: 2px 0px;
      border-radius: 4px;
      font-size: smaller;
      cursor:pointer; 
    }

    .pill-tag {
      background-color: rgb(189, 213, 247);
    }
    .pill-punchline {
      background-color: rgb(179, 245, 180);
    }    

    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      padding-top: 1rem;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: black;
    }
    
    /*
    .modal-content {
      position: relative;
      margin: auto;
      padding: 0;
      width: 90%;
      max-width: 1200px;
      text-align: center;
    }*/

    .modal-content {
      height: calc(100vh - 2rem);
      width:90%;
      margin-left:auto;
      margin-right: auto;
      padding: 0;
      text-align: center;
      display: flex;
      flex-flow: column;  
    }
    
    
    .close {
      color: white;
      position: absolute;
      top: 10px;
      right: 25px;
      font-size: 35px;
      font-weight: bold;
    }
    
    .close:hover,
    .close:focus {
      color: #999;
      text-decoration: none;
      cursor: pointer;
    }

    .caption-container {
      text-align: center;
      background-color: black;
      padding: 2px 16px;
      color: white;
    }

   /* 
    .modalImage {
      background-color: transparent;
      height:70vh;
    }
    */
    .modalImage {      
        display:flex;
        flex: 1 1 auto;
        overflow:hidden;
        margin-left:auto;
        margin-right:auto;
      }


  #modalCaption {
    margin-top:1rem;
    margin-bottom:1rem;
    flex: 0 1 auto;  
  }

    .modalImage img {
        flex-shrink: 0;
        max-width: 100%;
        max-height: 100%;
    min-height:100%;
      min-width: 100%;
      object-fit: contain;  
      
    }

    #modalCaption img {
      filter: invert(100%);
    }


    .dropdown-check-list.expanded {
      border-radius: 0;
      border-bottom:0;
    }

    .dropdown-check-list {
      display: inline-block;
      margin-right: 1rem;
      width: 20rem;
      /*padding: .375rem .75rem; */
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.5;
      color: #212529;
      background-color: #fff;
      background-clip: padding-box;
      border: 1px solid #ced4da;
      appearance: none;
      border-radius: 0;
      transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
      position:relative;
      outline:none;
      text-align: left;
      
    }
    .dropdown-check-list .anchor {
      position: relative;
      cursor: pointer;
      display: inline-block;
      padding: 5px 50px 5px 10px;
      width: calc(100% - 60px);
      /*border: 1px solid #ccc;*/
    }
    .dropdown-check-list .anchor:after {
      position: absolute;
      content: "";
      border-left: 2px solid black;
      border-top: 2px solid black;
      padding: 5px;
      right: 10px;
      top: 20%;
      -moz-transform: rotate(-135deg);
      -ms-transform: rotate(-135deg);
      -o-transform: rotate(-135deg);
      -webkit-transform: rotate(-135deg);
      transform: rotate(-135deg);
    }
    .dropdown-check-list .anchor:active:after {
      right: 8px;
      top: 21%;
    }

    .dropdown-check-list.expanded ul.items {
      border-top: none !important;
    }

    .dropdown-check-list ul.items {
      padding: 0px;
      display: none;
      margin: 0;
      border: 1px solid #ccc;
      border-top: none;
      position: absolute;
      z-index: 600;

      /*display: inline-block;*/
      margin-right: 2rem;
      width: 20rem;
      /*padding: .375rem .75rem; */
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.5;
      color: #212529;
      background-color: #fff;
      background-clip: padding-box;
      border: 1px solid #ced4da;
      appearance: none;
      border-radius: 0;
      text-align: left;
      outline:none;
      left:-1px;
      font-size: smaller;

    }
    .dropdown-check-list ul.items li {
      list-style: none;
    }

    .currentlyHidingA .hideA {
      display:none;
    }
 
    .currentlyHidingB .hideB {
      display:none;
    }

    li.licenseSelection {
      text-align: end;
    }
    span.licenseSelection {
      padding-right: 0.5rem;
      color:blue; 
      text-decoration:underline; 
      cursor:pointer; 
    }

    #formats {
        display: inline-block;
        padding-top: 0rem;
        margin-right: 1rem;
    }
    .format {
        display: inline-block;
        background-color: slategrey;   
        position: relative;
        top:0.9rem;    
        border:3px solid slategrey; 
    }

    .format.portrait {
        width:1.33rem;
        height:2rem;
    }
    .format.square {
        width:1.6rem;
        height:1.6rem;
        top: .8rem;
    }
    .format.landscape {
        width:2rem;
        height:1.33rem;
        top: 0.65rem;
    }
    .format.panorama {
        width:3rem;
        height:1rem;
        top: 0.6rem;
    }

    .format.active {
        border:3px solid #7CFC00;
    }

    .format:hover {
        background-color: silver !important;   
        color: black !important;     
    }

    #sizes {
        display:inline-block;
        position: relative;  
        margin-right: 1rem;      
    }

    #sizes ul {
        list-style-type: none;
        padding-inline-start: 0;
        margin: 0;
    }

    #sizes li {
        display:inline-block;
        width:2rem;
        height: 1.5rem;
        background-color: slategrey;
        text-align: center;
        margin:0;
        cursor: pointer;
        padding-top: 0.5rem;
        color:snow;
        /*border: 3px solid gray;*/
    }

    .size.active {
        border: 3px solid #7CFC00 !important;
    }
/*
    #sizes li:not(:last-child) {
        border-right: none !important; 
      }
      */





      .size:hover {
        background-color: silver !important;
        color:black !important;
      }

      .size,
      .format {
          position: relative;
      }


      .size .tooltiptext,
      .format .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: slategrey;
        color: #fff;
        text-align: center;
        padding: 5px 0;
        border-radius: 6px;
        position: absolute;
        z-index: 1;

        top: 100%;
        left: 50%; 
        margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */        
      }  

      .size .tooltiptext {
        top: 120%;
      }

      .format.portrait .tooltiptext {
        top: 130%;
      }
      .format.square .tooltiptext {
        top: 135%;
      }
      .format.landscape .tooltiptext {
        top: 140%;
      }
      .format.panorama .tooltiptext {
        top: 150%;
      }


      .size .tooltiptext::after,
      .format .tooltiptext::after {
        content: " ";
        position: absolute;
        bottom: 100%;  /* At the top of the tooltip */
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent slategrey transparent;
      }      
    


      .size:hover .tooltiptext,
      .format:hover .tooltiptext {
        visibility: visible;
      }


      .tick-mark {
        position: absolute;
        display: inline-block;
        width: 12px;
        height: 12px;
        left:calc(50% - 12px);
        top:calc(50% - 7px);
    }
    
    .tick-mark::before {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 50%;
        width: 2px;
        background-color: white;
        content: "";
        transform: translateX(10px) rotate(-45deg);
        transform-origin: left bottom;
    }

    .format:hover .tick-mark::before,
    .format:hover .tick-mark::after {
        background-color: black !important;
    }
    
    .tick-mark::after {
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 100%;
        background-color: white;
        content: "";
        transform: translateX(10px) rotate(-45deg);
        transform-origin: left bottom;
    }


    ul.xxx_galleryContainer {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        margin:0;
        padding:0;
    }

    ul.xxx_galleryContainer li {
        height: 35vh;
        flex-grow: 1;
        margin: 0.2rem;
        position:relative; 
    }
    ul.xxx_galleryContainer li:last-child {
        /* There's no science in using "10" here. In all my testing, this delivered the best results. */
        flex-grow: 10;
    }

    ul.xxx_galleryContainer li img.galleryImage {
        max-height: 100%;
        min-width: 100%;
        object-fit: cover;
        vertical-align: bottom;
        height:100%;
                     
    }

    ul.xxx_galleryContainer li:hover .galleryImageOverlay {
        opacity: 0.92;
    }

.galleryImageOverlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    opacity: 0;
    transition: .25s ease;
    background-color: lightgray;
    color: black;
    text-align: center;
    font-size: smaller;
}
.magnifier {
    cursor:pointer; 
}


/*Portrait*/
@media (max-aspect-ratio: 1/1) {
    ul.xxx_galleryContainer li {
    height: 30vh;
  }
}

/*Short Screens*/
@media (max-height: 480px) {
    ul.xxx_galleryContainer li {
      height: 80vh;
    }
  }

/* Smaller Screens & Portrait*/
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
    ul.xxx_galleryContainer {
      flex-direction: row;
    }
  
    ul.xxx_galleryContainer li {
      height: auto;
      width: 100%;
    }
  
    ul.xxx_galleryContainer li img.galleryImage {
      width: 100%;
      max-height: 75vh;
      min-width: 0;
    }
  }

  .w3-animate-opacity  { 
    animation:opac 0.8s;
   }
   @keyframes opac{
       from{opacity:0} 
       to{opacity:1}
    }

    .w3-animate-opacity-out  { 
        animation:opac-out 0.8s;
        animation-fill-mode: forwards;
       }
       @keyframes opac-out{
           from{opacity:1} 
           to{opacity:0}
        }
    