@font-face {
  font-family: "Hollywood";
  src: url("./SF\ Hollywood\ Hills.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.hollywood {
  font-family: "Hollywood", sans-serif;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
}

.gallery-container {
  box-sizing: border-box;
  font-size: x-large;
  border: solid black;
  border-width: 10px 20px;  /* top/bottom left/right */
  border-radius: 5px;
  border-image-source: url("../images/film.png");
  max-width: 860px;
  margin: 0 auto;
  background-color: black;
}

/* to create spacing between sections */
.m-p-g__thumbs h2:not(:first-of-type) {
  padding-top: 25px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  clear: both;
}

.m-p-g__thumbs {
  width: 100%;
}

.m-p-g__thumbs-img {
  margin: 0;
  float: left;
  vertical-align: bottom;
  cursor: pointer;
  position: relative;
  z-index: 1;
  opacity: 0;
  filter: brightness(100%);
  -webkit-tap-highlight-color: transparent;
  will-change: opacity, transform;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.m-p-g__thumbs-img.active {
  z-index: 50;
}
.m-p-g__thumbs-img.layout-completed {
  opacity: 1;
}
.m-p-g__thumbs-img.hide {
  opacity: 0;
}
.m-p-g__thumbs-img:hover {
  filter: brightness(110%);
}
.m-p-g__fullscreen {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: 0 0;
  visibility: hidden;
  transition: background 0.25s ease-out, visibility 10ms 0.5s linear;
  will-change: background, visibility;
  backface-visibility: hidden;
}
.m-p-g__fullscreen.active {
  transition: background 0.25s ease-out, visibility 10ms 0s linear;
  visibility: visible;
  background: rgba(0, 0, 0, 0.95);
}
.m-p-g__fullscreen-img {
  pointer-events: none;
  position: absolute;
  transform-origin: left top;
  top: 50%;
  left: 50%;
  max-height: 100vh;
  max-width: 100%;
  visibility: hidden;
  will-change: visibility;
  transition: opacity 0.5s ease-out;
}
.m-p-g__fullscreen-img.active {
  visibility: visible;
  opacity: 1 !important;
  transition: opacity 0.5s ease-out;
    
  /* Enable pointer events when the image is active */
  pointer-events: auto; 
  z-index: 100; 
  -webkit-touch-callout: default
}
.m-p-g__fullscreen-img.almost-active {
  opacity: 0;
  transform: translate3d(0, 0, 0) !important;
}
.m-p-g__controls {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  height: 20vh;
  background: linear-gradient(to top, transparent 0, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.m-p-g__controls-arrow,
.m-p-g__controls-close {
  position: absolute;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background: 0 0;
}
.m-p-g__controls.active {
  opacity: 1;
  visibility: visible;
}
.m-p-g__controls-arrow:focus,
.m-p-g__controls-close:focus {
  outline: 0;
}
.m-p-g__controls-arrow {
  z-index: 1;
  top: 0;
  width: 20%;
  height: 100vh;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  opacity: 0;
}
.m-p-g__controls-arrow:hover {
  opacity: 1;
}
.m-p-g__controls-arrow--prev {
  left: 0;
  padding-left: 3vw;
  -ms-flex-pack: start;
  justify-content: flex-start;
}
.m-p-g__controls-arrow--next {
  right: 0;
  padding-right: 3vw;
  -ms-flex-pack: end;
  justify-content: flex-end;
}
.m-p-g__controls-close {
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.m-p-g__btn {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease-out;
}
.m-p-g__btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.m-p-g__alertBox {
  position: fixed;
  z-index: 999;
  max-width: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 25px;
  border-radius: 3px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.23), 0 10px 40px rgba(0, 0, 0, 0.19);
  color: grey;
}
.m-p-g__alertBox h2 {
  color: red;
}

@media (max-width: 768px) {
  .gallery-container{
     max-width: 95vw;
  }
}

@media (max-width: 480px) {
  .gallery-container{
     max-width: 98vw;
  }
}
