/* this file for single news page style wiht multiple pictures or videos "gallery" */

.gallery-img {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 20px;
  grid-column-start: 1;
  grid-row-start: 1;
  grid-row-end: 3;
  align-content: start;
  max-width: 750px;
  margin: 0 auto;
  transition: all 150ms linear;
}

.gallery-img input[type="radio"] {
  display: none;
}

.gallery-img label {
  position: relative;
  display: block;
  padding-bottom: 60%;
  margin: 5px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

.gallery-img label:before {
  border: 1px solid #e3e3e3;
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: -5px;
  top: -5px;
}

.gallery-img img,
.gallery-img iframe {
  display: none;
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 2;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease-in-out !important;
}

.gallery-img input[name="select"]:checked + label + img,
.gallery-img input[name="select"]:checked + label + iframe {
  display: block;
  margin: 0 auto;
  transition: all 0.4s ease-in-out;
}

.gallery-img input[name="select"]:checked + label:before {
  border: 1px solid #000;
}
@media only screen and (max-width: 600px) {
  .gallery-img {
    grid-template-columns: auto auto;
  }
  .gallery-img img,
  .gallery-img iframe {
    grid-column-end: 3;
  }

  .gallery-img input[name="select"]:checked + label + img,
  .gallery-img input[name="select"]:checked + label + iframe {
    height: 350px;
  }
}

@media only screen and (max-width: 456px) {
  .gallery-img {
    display: block;
  }
  .gallery-img img,
  .gallery-img iframe {
    display: block;
    margin-bottom: 1rem;
  }
  .gallery-img label {
    display: none;
    visibility: hidden;
  }
}
