.tabordion {
  color: #333;
  display: block;
  display: flex;
  flex-direction: column;
  margin: auto;
  min-height: 500px;
  position: relative;
  width: 90%;
}

.tabordion input[name="sections"] {
  display: none;
  position: absolute;
}

.tabordion section label {
  display: inline-block;
  filter: grayscale(1);
  height: 90px;
  margin: 5px;
  position: relative;
  width: 95px;
  z-index: 100;
}

.tabordion section label div {
  background: transparent;
  height: 3px;
  margin-top: 3px;
  -webkit-transition: background 0.8s ease; /* Safari */
  transition: background 0.8s ease;
  width: 100%;
}

.tabordion section article {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.focused_image{
  animation: fadein 0.5s;
  -moz-animation: fadein 0.5s; /* Firefox */
  -webkit-animation: fadein 0.5s; /* Safari and Chrome */
  -o-animation: fadein 0.5s; /* Opera */
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@-moz-keyframes fadein { /* Firefox */
  from { opacity: 0; }
  to { opacity: 1; }
}
@-webkit-keyframes fadein { /* Safari and Chrome */
  from { opacity: 0; }
  to { opacity: 1; }
}
@-o-keyframes fadein { /* Opera */
  from { opacity: 0; }
  to { opacity: 1; }
}

.tabordion section article:after {
  bottom: 0;
  content: "";
  display: block;
  left:-229px;
  position: absolute;
  top: 0;
  width: 220px;
  z-index:1;
}

.tabordion input[name="sections"]:checked + label {
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
  filter: grayscale(0);
  transition : filter 1s ease-out;
}

.tabordion input[name="sections"]:checked + label div { background: #444; }

.gallery_Option {
  cursor: pointer;
  max-height: 90vw;
  max-width: 100%;
}

.tabordion input[name="sections"]:checked ~ article { display: block; }

@media only screen and (max-width: 768px) {
  .focused_image { max-width: 62vw; }
}

@media only screen and (max-width: 425px) {
  .tabordion section article { top: 40%; }
  .focused_image { max-width: 90vw; }
}


