/*FEED*/
#lbdf {
  overflow: hidden;
  font-size: 0;
  padding: 0; /*10px*/
  width: 100%;
}

#lbdf > div {
  display: inline-block;
  vertical-align: top;
  position: relative;
}
#lbdf[data-w="0"] > div { width: 25%; }
#lbdf[data-w="1"] > div { width: 33.333%; }
#lbdf[data-w="2"] > div { width: 33.333%; }
#lbdf[data-w="3"] > div { width: 50%; }
#lbdf[data-w="4"] > div { width: 50%; }
#lbdf[data-w="5"] > div { width: 100%; }

#lbdf > pre {
  font-family: sans-serif;
  font-size: 15px;
  line-height: 1.3;
}
	
#lbdf > div > div {
  margin: 10px;
  position: relative;
  overflow: hidden;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
}
	
#lbdf > div > div > div {
  cursor: pointer;
}

#lbdf > div > div > div:nth-child(1) {
  position: relative;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
}
#lbdf > div > div > div:nth-child(1) > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
}

#lbdf > div > div > div:nth-child(1) > div:nth-of-type(1),
#lbdf > div > div > div:nth-child(1) > div:nth-of-type(2) {
  position: absolute;
  left:0;
  top:0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
}
#lbdf > div > div > div:nth-child(1) > div:nth-of-type(1) { /*gallery*/
  justify-content: left;
  z-index: 1;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
#lbdf > div > div > div:nth-child(1) > div:nth-of-type(2) { /*caption*/
  justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity:0;
  z-index: 2;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
#lbdf > div > div > div:nth-child(1) > div:nth-of-type(1) > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

#lbdf > div > div > div:nth-child(1) > div:nth-of-type(2) > div {
  max-width: 75%;
  text-align: center;
  color: white;
  font-family: sans-serif;
  line-height: 1.3;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
  -webkit-transition: font-size 0.3s ease;
  -moz-transition: font-size 0.3s ease;
  -o-transition: font-size 0.3s ease;
  transition: font-size 0.3s ease;
}	
/*#lbdf[data-w="0"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 20px; }
#lbdf[data-w="1"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 18px; }
#lbdf[data-w="2"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 16px; }
#lbdf[data-w="3"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 14px; }
#lbdf[data-w="4"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 12px; }
#lbdf[data-w="5"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 12px; }*/
#lbdf[data-w="0"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 18px; }
#lbdf[data-w="1"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 16px; }
#lbdf[data-w="2"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 14px; }
#lbdf[data-w="3"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 12px; }
#lbdf[data-w="4"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 12px; }
#lbdf[data-w="5"] > div > div > div:nth-child(1) > div:nth-of-type(2) > div { font-size: 12px; }

@media (hover: hover){
  #lbdf > div > div > div:nth-child(1) > div:nth-of-type(2):hover {
    opacity:1;
  }
}
/*ICON*/
#lbdf > div > div > div:nth-child(2) {
  position: absolute;
  font-family: sans-serif;
  font-size: 15px;
  line-height: 1.3;
  background: url("img/gallery.png");
  background-repeat: none; 
  background-size: cover;
  z-index: 2;
  pointer-events: none;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
#lbdf[data-w="0"] > div > div > div:nth-child(2) { top:20px; right:20px; height: 30px; width: 30px; }
#lbdf[data-w="1"] > div > div > div:nth-child(2) { top:18px; right:18px; height: 27px; width: 27px; } 
#lbdf[data-w="2"] > div > div > div:nth-child(2) { top:16px; right:16px; height: 24px; width: 24px; }
#lbdf[data-w="3"] > div > div > div:nth-child(2) { top:14px; right:14px; height: 21px; width: 21px; }
#lbdf[data-w="4"] > div > div > div:nth-child(2) { top:12px; right:12px; height: 18px; width: 18px; }
#lbdf[data-w="5"] > div > div > div:nth-child(2) { top:12px; right:12px; height: 18px; width: 18px; }

/*INFO*/
.info {
  font-family: sans-serif;
  width:100%;
  height:15px;
  background:green;
  line-height:15px;
  text-align:center;
  font-size:15px;
  color:white;
  padding: 10px 0;
}

/*ANIMATION*/
@-webkit-keyframes show {
  from {
	opacity: 0;
  }
  to {
	opacity: 1;
  }
}
@keyframes show {
  from {
	opacity: 0;
  }
  to {
	opacity: 1;
  }
}
@-webkit-keyframes hide {
  from {
	opacity: 1;
  }
  to {
	opacity: 0;
  }
}
@keyframes hide {
  from {
	opacity: 1;
  }
  to {
	opacity: 0;
  }
}

/*MODALE*/
#lbdfm {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  background: rgba(0,0,0,0.75);
  cursor: pointer;
}
#lbdfm > div {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 4 / 3;
  cursor: default;
  position: relative;
}
#lbdfm > div > div {
  height: 100%;
  font-size: 0;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
}
#lbdfm > div > div:nth-child(1) {
  width: 100%;
  background: rgba(0,0,0,0.5);
  position: relative;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
}
#lbdfm > div > div:nth-child(1) > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top:0;
  left:0;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
#lbdfm > div > div:nth-child(1) > img[data-i="0"] { opacity: 0; }
#lbdfm > div > div:nth-child(1) > img[data-i="1"] { opacity: 1; }

/*ARROWS*/
#lbdfm > div > div:nth-child(1) > div:nth-of-type(1),
#lbdfm > div > div:nth-child(1) > div:nth-of-type(2) {
  width: 48px;
  height: 48px;
  position: absolute;
  top:50%;
  -webkit-transform: translate(0%, -50%); 
  -ms-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
  background-repeat: no-repeat;
  z-index: 100001;
  cursor: pointer;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#lbdfm > div > div:nth-child(1) > div:nth-of-type(1) {
  background: url('img/arl.png'), rgba(0,0,0,0);
  background-size: contain;
  left:0;
  -webkit-border-radius: 0px 6px 6px 0px;
  -moz-border-radius: 0px 6px 6px 0px;
  -ms-border-radius: 0px 6px 6px 0px;
  border-radius: 0px 6px 6px 0px;
}
#lbdfm > div > div:nth-child(1) > div:nth-of-type(2) {
  background: url('img/arr.png'), rgba(0,0,0,0);
  background-size: contain;
  right:0;
  -webkit-border-radius: 6px 0px 0px 6px;
  -moz-border-radius: 6px 0px 0px 6px;
  -ms-border-radius: 6px 0px 0px 6px;
  border-radius: 6px 0px 0px 6px;
}
@media (hover: hover){
  #lbdfm > div > div:nth-child(1) > div:nth-of-type(1):hover {
    background: url('img/arl.png'), rgba(0,0,0,1);
    background-size: contain;
    left:0;
    -webkit-border-radius: 0px 6px 6px 0px;
    -moz-border-radius: 0px 6px 6px 0px;
    -ms-border-radius: 0px 6px 6px 0px;
    border-radius: 0px 6px 6px 0px;
  }
  #lbdfm > div > div:nth-child(1) > div:nth-of-type(2):hover {
    background: url('img/arr.png'), rgba(0,0,0,1);
    background-size: contain;
    right:0;
    -webkit-border-radius: 6px 0px 0px 6px;
    -moz-border-radius: 6px 0px 0px 6px;
    -ms-border-radius: 6px 0px 0px 6px;
    border-radius: 6px 0px 0px 6px;
  }
}

/*PAGINATION*/
#lbdfm > div > div:nth-child(1) > div:nth-of-type(3) {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  text-align: center;
}
#lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div {
  margin: 8px;
  height: 14px;
  width: 14px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%; 
  display: inline-block;
  vertical-align: top;
  -webkit-transition: background 0.15s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease;
  -moz-transition: background 0.15s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease;
  -o-transition: background 0.15s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease;
  transition: background 0.15s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease;
  cursor: pointer;
  border: 2px solid white;
  pointer-events: auto;
}
#lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div[data-p="0"] {
  background: rgba(255,255,255,1);
}
@media (hover: hover){
  #lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div[data-p="0"]:hover {
    background: rgba(0,0,0,1);
  }
}
#lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div[data-p="1"] {
  background: rgba(0,0,0,1);
}

/*CAPTION*/
#lbdfm > div > div:nth-child(2) {
  width: 100%;
  height: auto; /*48px*/
  line-height: 1.3; /*48px*/
  text-align: center;
  color: #fff;
  font-size: 18px;
  padding: 15px 12px;
  -webkit-transition: font-size 0.3s ease;
  -moz-transition: font-size 0.3s ease;
  -o-transition: font-size 0.3s ease;
  transition: font-size 0.3s ease;
}
	
/*INSTAGRAM BUTTON*/
#lbdfm > div > div:nth-child(3) {
  width: 48px;
  height: 48px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100002;
  background: url('img/instagram-k.png'), rgba(255,255,255,1);
  background-size: contain;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  border-radius: 12px;
  -webkit-transition: background 0.15s ease, top 0.3s ease, right 0.3s ease;
  -moz-transition: background 0.15s ease, top 0.3s ease, right 0.3s ease;
  -o-transition: background 0.15s ease, top 0.3s ease, right 0.3s ease;
  transition: background 0.15s ease, top 0.3s ease, right 0.3s ease;
  cursor: pointer;
}
#lbdfm > div > div:nth-child(3) > a {
  width: 100%;
  height: 100%;
  display: block;
}
@media (hover: hover){
  #lbdfm > div > div:nth-child(3):hover {
    background: url('img/instagram-w.png'), rgba(0,0,0,1);
    background-size: contain;
  }
}
#lbdfm[data-t="0"] {
  display: 'block';
  animation-duration: 0.3s;
  animation-name: hide;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: forwards;
  pointer-events: none;
}
#lbdfm[data-t="c"] {
  display: 'block';
  animation-duration: 0.3s;
  animation-name: show;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: forwards;
  pointer-events: auto;
}
#lbdfm[data-t="c"] > div > div:nth-child(1) {
  cursor: grab;
  pointer-events: auto;
}
#lbdfm[data-t="i"] {
  display: 'block';
  animation-duration: 0.3s;
  animation-name: show;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: forwards;
  pointer-events: auto;
}
#lbdfm[data-t="i"] > div > div:nth-child(1) {
  pointer-events: none;
}
#lbdfm > span {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100003;
  background: url('img/x.png');
  background-size: contain;
  pointer-events: none;
  padding: 0;
  margin: 0;
  opacity: 1;
}
@media screen and (min-width: 0px) and (max-width: 960px) {
  #lbdfm > div > div:nth-child(1) {
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    border-radius: 0px;
  }
}
@media screen and (min-width: 641px) and (max-width: 960px) {
  #lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div {
    margin: 7px;
	height: 13px;
    width: 13px;
  }
  #lbdfm > div > div:nth-child(2) {
    font-size: 17px;
  }
  #lbdfm > div > div:nth-child(3) {
    width: 44px;
    height: 44px;
    top: 18px;
    right: 18px;
  }
}
@media screen and (min-width: 481px) and (max-width: 640px) {
  #lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div {
    margin: 6px;
    height: 12px;
    width: 12px;
  }
  #lbdfm > div > div:nth-child(2) {
    font-size: 16px;
  }
  #lbdfm > div > div:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 16px;
    right: 16px;
  }
}
@media screen and (min-width: 321px) and (max-width: 480px) {
  #lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div {
    margin: 5px;
    height: 11px;
    width: 11px;
  }
  #lbdfm > div > div:nth-child(2) {
    font-size: 15px;
  }
  #lbdfm > div > div:nth-child(3) {
    width: 36px;
    height: 36px;
    top: 14px;
    right: 14px;
  }
}
@media screen and (min-width: 0px) and (max-width: 320px) {
  #lbdfm > div > div:nth-child(1) > div:nth-of-type(3) > div {
    margin: 4px;
    height: 10px;
    width: 10px;
  }
  #lbdfm > div > div:nth-child(2) {
    font-size: 14px;
  }
  #lbdfm > div > div:nth-child(3) {
    width: 32px;
    height: 32px;
    top: 12px;
    right: 12px;
  }
}