* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

input {
  display: none;
}

.container {
  width: 100%;
  text-align: center;
}

h1 {
  font-weight: normal;
  font-size: 35px;
  position: relative;
  margin: 40px 0;
}
h1::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 3px;
  background-color: crimson;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation: animate 4s linear infinite;
}

@keyframes animate {
  0% {
    width: 100px;
  }
  50% {
    width: 200px;
  }
  100% {
    width: 100px;
  }
}
.top-content {
  background-color: rgb(243, 243, 243);
  width: 90%;
  margin: 0 auto 20px auto;
  height: 60px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  box-shadow: 3px 3px 5px lightgray;
}
h3 {
  height: 100%;
  background-color: rgb(221, 221, 221);
  line-height: 60px;
  padding: 0 50px;
  color: white;
}
label {
  display: inline-block;
  height: 100%;
  margin: 0 20px;
  line-height: 60px;
  font-size: 1.5vh;
  color: gray;
  cursor: pointer;
  transition: color 0.5s;
}
label:hover {
  color: black;
}
.photo-gallery {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}
.pic {
  position: relative;
  height: fit-content;
  border-radius: 10px;
  box-shadow: 3px 3px 3px lightgrey;
  cursor: pointer;
  transition: 0.5s;
}

.pic img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: 0.5s;
}
.pic::before {
  content: "Desni klik - odpri v novem zavihku";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 22px;
  /* font-weight: 100;*/
  width: 100%;
  margin-top: -100px;
  opacity: 0;
  transition: 0.4s;
  transition-delay: 0.2s;
  z-index: 1;
}
.pic::after {
  content: "";
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  border-radius: 10px;
  height: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}
.pic:hover::after {
  height: 100%;
}
.pic:hover::before {
  margin-top: 0;
  opacity: 1;
}

#check1:checked ~ .container .photo-gallery .pic {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check2:checked ~ .container .photo-gallery .astro {
  transform: scale(1);
  opacity: 1;
  position: relative;
}

#check2:checked ~ .container .photo-gallery .astrohub,
#check2:checked ~ .container .photo-gallery .astrojw,
#check2:checked ~ .container .photo-gallery .astrotl,
#check2:checked ~ .container .photo-gallery .makro,
#check2:checked ~ .container .photo-gallery .zivali,
#check2:checked ~ .container .photo-gallery .cvetje,
#check2:checked ~ .container .photo-gallery .retusa,
#check2:checked ~ .container .photo-gallery .mikro,
#check2:checked ~ .container .photo-gallery .srecanje_2009,
#check2:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check3:checked ~ .container .photo-gallery .astrohub {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check3:checked ~ .container .photo-gallery .astro,
#check3:checked ~ .container .photo-gallery .astrojw,
#check3:checked ~ .container .photo-gallery .astrotl,
#check3:checked ~ .container .photo-gallery .makro,
#check3:checked ~ .container .photo-gallery .zivali,
#check3:checked ~ .container .photo-gallery .cvetje,
#check3:checked ~ .container .photo-gallery .retusa,
#check3:checked ~ .container .photo-gallery .mikro,
#check3:checked ~ .container .photo-gallery .srecanje_2009,
#check3:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check4:checked ~ .container .photo-gallery .astrojw {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check4:checked ~ .container .photo-gallery .astro,
#check4:checked ~ .container .photo-gallery .astrohub,
#check4:checked ~ .container .photo-gallery .astrotl,
#check4:checked ~ .container .photo-gallery .makro,
#check4:checked ~ .container .photo-gallery .zivali,
#check4:checked ~ .container .photo-gallery .cvetje,
#check4:checked ~ .container .photo-gallery .retusa,
#check4:checked ~ .container .photo-gallery .mikro,
#check4:checked ~ .container .photo-gallery .srecanje_2009,
#check4:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check5:checked ~ .container .photo-gallery .astrotl {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check5:checked ~ .container .photo-gallery .astro,
#check5:checked ~ .container .photo-gallery .astrohub,
#check5:checked ~ .container .photo-gallery .astrojw,
#check5:checked ~ .container .photo-gallery .makro,
#check5:checked ~ .container .photo-gallery .zivali,
#check5:checked ~ .container .photo-gallery .cvetje,
#check5:checked ~ .container .photo-gallery .retusa,
#check5:checked ~ .container .photo-gallery .mikro,
#check5:checked ~ .container .photo-gallery .srecanje_2009,
#check5:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check6:checked ~ .container .photo-gallery .makro {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check6:checked ~ .container .photo-gallery .astro,
#check6:checked ~ .container .photo-gallery .astrohub,
#check6:checked ~ .container .photo-gallery .astrojw,
#check6:checked ~ .container .photo-gallery .astrotl,
#check6:checked ~ .container .photo-gallery .zivali,
#check6:checked ~ .container .photo-gallery .cvetje,
#check6:checked ~ .container .photo-gallery .retusa,
#check6:checked ~ .container .photo-gallery .mikro,
#check6:checked ~ .container .photo-gallery .srecanje_2009,
#check6:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check7:checked ~ .container .photo-gallery .zivali {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check7:checked ~ .container .photo-gallery .astro,
#check7:checked ~ .container .photo-gallery .astrohub,
#check7:checked ~ .container .photo-gallery .astrojw,
#check7:checked ~ .container .photo-gallery .astrotl,
#check7:checked ~ .container .photo-gallery .makro,
#check7:checked ~ .container .photo-gallery .cvetje,
#check7:checked ~ .container .photo-gallery .retusa,
#check7:checked ~ .container .photo-gallery .mikro,
#check7:checked ~ .container .photo-gallery .srecanje_2009,
#check7:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check8:checked ~ .container .photo-gallery .cvetje {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check8:checked ~ .container .photo-gallery .astro,
#check8:checked ~ .container .photo-gallery .astrohub,
#check8:checked ~ .container .photo-gallery .astrojw,
#check8:checked ~ .container .photo-gallery .astrotl,
#check8:checked ~ .container .photo-gallery .makro,
#check8:checked ~ .container .photo-gallery .zivali,
#check8:checked ~ .container .photo-gallery .retusa,
#check8:checked ~ .container .photo-gallery .mikro,
#check8:checked ~ .container .photo-gallery .srecanje_2009,
#check8:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check9:checked ~ .container .photo-gallery .retusa {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check9:checked ~ .container .photo-gallery .astro,
#check9:checked ~ .container .photo-gallery .astrohub,
#check9:checked ~ .container .photo-gallery .astrojw,
#check9:checked ~ .container .photo-gallery .astrotl,
#check9:checked ~ .container .photo-gallery .makro,
#check9:checked ~ .container .photo-gallery .zivali,
#check9:checked ~ .container .photo-gallery .cvetje,
#check9:checked ~ .container .photo-gallery .mikro,
#check9:checked ~ .container .photo-gallery .srecanje_2009,
#check9:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check10:checked ~ .container .photo-gallery .mikro {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check10:checked ~ .container .photo-gallery .astro,
#check10:checked ~ .container .photo-gallery .astrohub,
#check10:checked ~ .container .photo-gallery .astrojw,
#check10:checked ~ .container .photo-gallery .astrotl,
#check10:checked ~ .container .photo-gallery .makro,
#check10:checked ~ .container .photo-gallery .zivali,
#check10:checked ~ .container .photo-gallery .cvetje,
#check10:checked ~ .container .photo-gallery .retusa,
#check10:checked ~ .container .photo-gallery .srecanje_2009,
#check10:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check11:checked ~ .container .photo-gallery .srecanje_2009 {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check11:checked ~ .container .photo-gallery .astro,
#check11:checked ~ .container .photo-gallery .astrohub,
#check11:checked ~ .container .photo-gallery .astrojw,
#check11:checked ~ .container .photo-gallery .astrotl,
#check11:checked ~ .container .photo-gallery .makro,
#check11:checked ~ .container .photo-gallery .zivali,
#check11:checked ~ .container .photo-gallery .cvetje,
#check11:checked ~ .container .photo-gallery .retusa,
#check11:checked ~ .container .photo-gallery .mikro,
#check11:checked ~ .container .photo-gallery .srecanje_2019 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check12:checked ~ .container .photo-gallery .srecanje_2019 {
  transform: scale(1);
  opacity: 1;
  position: relative;
}
#check12:checked ~ .container .photo-gallery .astro,
#check12:checked ~ .container .photo-gallery .astrohub,
#check12:checked ~ .container .photo-gallery .astrojw,
#check12:checked ~ .container .photo-gallery .astrotl,
#check12:checked ~ .container .photo-gallery .makro,
#check12:checked ~ .container .photo-gallery .zivali,
#check12:checked ~ .container .photo-gallery .cvetje,
#check12:checked ~ .container .photo-gallery .retusa,
#check12:checked ~ .container .photo-gallery .mikro,
#check12:checked ~ .container .photo-gallery .srecanje_2009 {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}
