/** LIGHTBOXES **/

.lightbox, .lightbox-gallery {
  /* Default to hidden */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: center;
  opacity: 0;
  position: fixed;
  top:0px;
  left: 0px;
  z-index: 3000;
  overflow: hidden;
  height:0px;
  width: 0px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8);
  color: #FFF;
  transition: opacity .7s ease-in-out;
}
.lightbox-gallery {
  transition:none;
}

/* Unhide the lightbox when it's the target */
.lightbox:target, .lightbox-gallery:target {
  opacity: 1;
  pointer-events: auto;
  height:100vh;
  width: 100vw;
}

.lightboxcontent {
  width: 80%;
  height: 80%;
  overflow: hidden;
  overflow-y: auto;
  color: #eaeaea;
}

.lightbox-gallery .lightboxcontent {
  opacity: 0;
  transition: opacity .7s ease-in-out;
}

.lightbox-gallery:target .lightboxcontent {
  opacity: 1;
}

/* close buttons */
.lightboxclosebtn, .lbgclosebtn {
  display:block;
  padding:.2em;
  text-decoration: none;
  border:1px solid;
  font-weight:bold;
  font-size: 3em;
  text-align:center;
  text-decoration: none;
  aspect-ratio: 1/1;
  color:var(--armygold);
  position:absolute;
  top:.3em;
  right:.5em;
  line-height: 100%;
  transition: color .5s ease-in-out;
}
.lightboxclosebtn:before, .lbgclosebtn:before  {
  font-family: 'armyicons';
  content: "\e96f";
}
.lightboxclosebtn:hover, .lbgclosebtn:hover {
  color:#fff;
  background-color: #000;
  text-decoration: none;
}

/* maintains page scroll position for user */

#lbclosed {
  width:1px;
  height:1px;
  display:block;
  position: fixed;
  top: 50vh;
  left:0px;
  z-index: 100;
}

/** SUBPAGE **/

.subpage {
  /* Default to hidden */
  display: block;
  position: fixed;
  top: var(--globalnavheight);
  left: 100%;
  z-index: 3000;
  overflow: hidden;
  overflow-y: auto;
  height:100vh;
  width: 100vw;
  background: var(--armyblack);
  color: #eaeaea;
  transition: left .7s ease-in-out;
}
  /* slide the subpage in when its the target */
  .subpage:target {
      left:0%;
}
.subpage a.returnbtn {
  display:block;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;
  height: var(--submenu-height);
  background-color: #000;
  color: var(--armygold);
  line-height: 100%;
  padding:1em;
  box-sizing: border-box;
}

.subpage a.returnbtn:before {
  display: inline-block;
  margin-right: .5em;
  font-family: 'armyicons';
  content: "\e909";
}

/* lightbox gallery buttons */

.lbgprev, .lbgnext {
  font-size:xx-large;
  line-height: 100%;
  font-weight: 100;
  display:inline-block;
  padding: 30px;
  color: var(--armygold);
  border: 1px solid;
  text-decoration: none;
  position: absolute;
  transition: color .5s ease-in-out;
}
.lbgprev:hover, .lbgnext:hover {
  color: #FFF;
}
.lbgprev {
  left: 0px;
}
.lbgnext {
  right: 0px
}
.lbgprev:before {
  font-family: 'armyicons';
  content: "\e908";
}

.lbgnext:before {
  font-family: 'armyicons';
  content: "\e907";
}

/* making content fullscreen */
.fullscreen {
transition: background-color 0s linear
}

.fullscreen:target {
    /* when target, element becomes fullscreen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    position: fixed;
    top:0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    overflow: hidden;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
    transition: background-color .7s ease-in-out;
}

.fullscreen .lightboxclosebtn {
display:none;
}

.fullscreen:target .lightboxclosebtn {
display:block;
}

/* prevent body from scrolling while lightbox is active */

body:has(.lightbox:target), body:has(.fullscreen:target), body:has(.lightbox-gallery:target) {
height: 100vh;
overflow-y: hidden;
}


/* feature images and videos */

.featurevideo {
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-items: center;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
text-align: center;
color: #FFF;
align-content: center;
justify-content: center;
position: relative;
text-shadow: 1px 2px 13px #000000;
}

.featurevideo::after {
content: "";
position: absolute;
top: 0px;
left: 0px;
z-index: -1;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}

/* icon button */

.iconbtn {
color: var(--armygold);
transition: all .5s ease-in-out;
text-shadow: 2px 2px 11px #000000;
}
.iconbtn:hover i {
transform: scale(1.1);
}
.iconbtn i {
font-size: 4em;
display: inline-block;
padding: .3em;
border: .125em solid currentColor;
border-radius: 50%;
margin: 20px auto;
transition: all .5s ease-in-out;
box-shadow: -1px 2px 30px 12px rgba(0,0,0,0.5);
background-color: rgba(0,0,0,0.3);
}
.iconbtn i:before {
margin-left: 5px;
}