/**
 * This file creates a dialog box/popup that is
 * displayed when the user opens some image.
 * */

.container .img-pop-up-button {
  border-bottom: 0;
  background-color: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8em;
  display: inline-block;
  padding: 12px 16px 100% 100%;
  border: none;
  min-width: 100%;
  color: transparent;
  cursor: default;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  right: 0;
  font-weight: 700;
}

.container .img-pop-up-button-close-icon {
  border: none;
  border-bottom: 0;
  position: absolute;
  /**
   * Here, negative values were used for the top and
   * left, as they were the most suitable values found
   * to position the close button.
   * */
  right: -35px;
  top: -30px;
  width: 30px;
  height: 30px;
  background-color: #222;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
}

.popup-image {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.706);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.popup-inner-frame {
  z-index: 1;
  display: block;
  max-width: 87vh;
  max-height: 87%;
  position: fixed;
  background-color: #fff;
  padding: 10px 16px;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.227);
  border-radius: 10px;
}

.popup-inner-frame h3 {
  color: #666;
  font-size: 24px;
  margin-bottom: 16px;
}

.popup-inner-frame p img {
  color: #888;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 100%;
  max-height: 100%;
}

.popup-image:target {
  opacity: 1;
  pointer-events: all;
}

@media screen and (max-width : 760px) {
    .container {
      display: block;
      width: 100%;
      padding: 10;
    }

    .popup-inner-frame {
      display: block;
      max-width: 75%;
      max-height: 65%;
      position: fixed;
      background-color: #fff;
      padding: 10px 16px;
      box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.227);
      border-radius: 10px;
    }
  
    .popup-inner-frame p img {
      color: #888;
      font-size: 18px;
      line-height: 1.5;
      margin-bottom: 16px;
      max-width: 100%;
      max-height: 100%;
    }
  
    .container .img-pop-up-button {
      z-index: -1;
      border-bottom: 0;
      top: 0;
      right: 0;
      background-color: transparent;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.8em;
      display: inline-block;
      padding: 12px 16px 100vh 100%;
      border: none;
      min-width: 100%;
      color: transparent;
      cursor: default;
      text-transform: uppercase;
      position: fixed;
      font-weight: 700;
    }
    
    .container .img-pop-up-button-close-icon {      
      border: none;
      border-bottom: 0;
      position: absolute;
      right: -25px;
      top: -27px;
      width: 30px;
      height: 30px;
      background-color: #222;
      color: #fff;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.8em;
      font-weight: 600;
      line-height: 30px;
      text-align: center;
      border-radius: 50%;
    }
}
  