
/* The Modal (background) */
.modal {
  background-color: rgba(0,0,0,0.92);
  display: none;
  font-family: Helvetica, Arial, sans-serif;
  z-index: 2000;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
}

#modal_content {
    position: absolute;
    left:0;
    right:0;
    height: 100%;
    width: 100%;
    /*border: 3px solid red;*/
}

#modal_left {
  /*border: 3px solid green;*/
  text-align: center;
}

#modal_fullscrn_pag_left {
float: left;
position: absolute;
height: 100%;
left: 0px;
top: 0px;
z-index: 3000;
cursor: pointer;
text-align: left;
}

#modal_fullscrn_pag_left img {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}

#modal_fullscrn_pag_right {
position: absolute;
height: 100%;
top: 0px;
z-index: 3000;
cursor: pointer;
}

#modal_fullscrn_pag_right img {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.fullscrn_helper {
  display: none;
}

#modal_right {
  float: right;
  width: 300px;
  height: 100%;
  border-left: 2px solid #998f74;
}

#modal_logo {
  width: 300px;
  height: 40px;
  text-align: center;
  margin-top: 10px;
}

#modal_small_logo {
  display: none;
}

#modal_art_title {
  text-align: center;
  margin: 0 15px 0 15px;
  padding-bottom: 10px; 
  border-bottom: 2px solid #998f74;
}

#modal_small_art_title {
  display: none;
}

#modal_art_title p {
  margin-bottom: 5px;
  font-size: 1em;
  color: #ffffff;
}

#modal_art_title h1 {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1em;
}

#modal_close_button {
  cursor: pointer;
  display: block;
  height: 1.4em;
  background: #ada69c;
  padding: 1px;
  text-align: center;
  border-radius: 5px;
  color: #242321;
  font-weight: bold;
  line-height: 1.3em;
  text-decoration: none;
}

#modal_close_button:hover {
  background: #ff4128;
  color: #ffffff;
}

#modal_img_title {
  text-align: center;
  margin: 0 15px 0 15px;
  padding-top: 15px;
  font-size: 1em;
  color: #dedede;
}

#modal_img_title p {
  margin-bottom: 5px;
  font-size: 1em;
  color: #dedede;
}

#modal_small_close_button {
  display: none;
}

#modal_further_images {
  position: fixed;
  width: 270px;
  height: 350px;
  text-align: center;
  margin: 0 15px 0 15px;
  bottom: 0;
  border-top: 2px solid #998f74;
}

#modal_further_title {
  width: 270px;
  height: 30px;
  margin-top: 5px;
  font-size: 0.9em;
  color: #9e9e9e;
}

#modal_further_pagination {
  position: fixed;
  width: 270px;
  height: 35px;
  bottom: 0;
}

#modal_further_pagination_left {
  display: block;
  float: left;
  width: 50%;
  height: 25px;
  background: url("/wp-content/plugins/mbi-galeria/images/pagi_small_left.png") no-repeat center;
}

#modal_further_pagination_left:hover {
  background: url("/wp-content/plugins/mbi-galeria/images/pagi_small_left_hover.png") no-repeat center;
}

#modal_further_pagination_right {
  display: block;
  float: right;
  width: 50%;
  height: 25px;
  background: url("/wp-content/plugins/mbi-galeria/images/pagi_small_right.png") no-repeat center;
}

#modal_further_pagination_right:hover {
  background: url("/wp-content/plugins/mbi-galeria/images/pagi_small_right_hover.png") no-repeat center;
}

#modal_further_gallery {
    display: grid;
    position: fixed;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    grid-gap: 15px;
    bottom: 35px;
}

.modal_further_gallery_item {
  display: none;
  cursor: pointer;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal_clr {
  clear: both;
}

/* Képek a cikkben */
.mbigal_imginarticle {
  text-align: center;
}

.for_mbigal {
  cursor: pointer;
  margin: auto;
}

.for_mbigal_imgquantity {
  float: left;
  margin: 10px 0 0 15px;
  position: absolute;
  z-index: 2001.5;
  background-color: rgba(0,0,0,0.92);
  padding: 5px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: bold;
}

.for_mbigal_imgquantity img{
  float: left;
  width: 25px;
  margin-right: 5px;
}


/* KISEBB KÉPERNYŐK */

@media (max-width: 580px) {
  
  .modal {
    overflow-y:scroll;
    overflow-x:hidden;
  }
  
  #modal_left {
    width: 100%;
  }
  
  #modal_mobile_header {
    width: 100%;
    padding: 15px 0 5px 0;
    background: black;
  }
  
  #modal_mobile_title h1 {
    font-size: 17px;
    font-weight: bold;
    color: #ffffff;
  }
  
  #modal_mobile_title p {
    font-size: 16px;
    color: #ffffff;
  }
  
  .modal_mobile_image_container {
    width: calc(100% - 20px);
    padding: 5px;
    background: #262626;
    margin: 0 auto 15px auto;
  }
  
  .placer {
    width: 100%;
    height: 55px;
  }
  
  .modal_mobile_image_num {
    float: left;
    position: absolute;
    z-index: 2003;
    background-color: rgba(0,0,0,0.92);
    padding: 5px;
    color: #FFFFFF;
    font-weight: bold;
  }
  
  .modal_fullscrn_image {
    display: initial;
    width: 100%;
  }
  
  .modal_mobile_image_caption {
    width: calc(100% - 20px);
    background: #262626;
    color: #ffffff;
  }
  
  #modal_mobile_close_button {
    position: fixed;
    bottom: 0;
    display: block;
    width: 100%;
    height: 45px;
    z-index: 2004;
    background: #ffa528;
    padding: 1px;
    text-align: center;
    color: #242321;
    font-weight: bold;
    line-height: 43px;
    text-decoration: none;
  }
  
  
  #modal_right {
    display: none;
  }
  
  .d769 {
    display: none;
  }
}

@media (min-width: 581px) and (max-width: 1023px) {
  
  #modal_left {
    width: 100%;
    height: calc(100% - 60px);
  }
  
  #modal_fullscrn_pag_left {
    width: 50%;
    height: calc(100% - 60px);
  }
  
  #modal_fullscrn_pag_right {
    float: right;
    width: 50%;
    height: calc(100% - 60px);
  }
  
  #modal_right {
    display: block;
    position: relative;
    height: 50px;
    width: 100%;
    padding: 5px;
    z-index: 2010;
    background: black;
  }
  
  
  .modal_fullscrn_image {
    display: none;
    /*max-width: calc(100% - 100px);
    height: 100%;*/
    height: inherit;
    object-fit: contain;
  }
  
  .modal_mobile_image_caption {
    display: none;
  }
  
  #modal_small_logo {
    display: initial;
    float: left;
    width: 65px;
    height: 50px;
    margin-left: 10px;
  }
  
  #modal_small_art_title {
    display: initial;
    float: left;
    min-width: 130px;
    width: calc(30% - 85px);
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    margin-left: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
  }
  
  #modal_img_title {
    float: left;
    min-width: 150px;
    width: calc(60% - 85px);
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 8px;
    text-align: center;
    font-size: 12px;
    color: #ffffff;
  }
  
  #modal_small_close_button {
    display: block;
    float: right;
    margin: 7.5px 10px 7.5px 10px;
    cursor: pointer;
  }
  

  
  .m480 {
    display: none;
  }
  
  .widescreen {
    display: none;
  }
  

}

@media (min-width: 1024px) {
  
  #modal_left {
    float: left;
    width: calc(100% - 315px);
    height: 100%;
  }
  
  #modal_fullscrn_pag_left {
    width: calc(50% - 157px);
  }
  
  #modal_fullscrn_pag_right {
    float: left;
    width: calc(50% - 157px);
    left: calc(50% - 157px);
  }
  
  .modal_fullscrn_image_container {
    white-space: nowrap;
  }
  

  .modal_fullscrn_image {
    display: none;
    /*max-width: calc(100% - 100px);
    height: 100%;*/
    width: auto;
    height: inherit;
  }
  
  .modal_mobile_image_caption {
    display: none;
  }
  
  .m480 {
    display: none;
  }

}

@media screen and (max-height: 649px) {
  
  .h700 {
    display: none;
  }
  
}

