input[type="radio"] {
  display: none;
}

h1 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw + 1px, 2.5rem);
  color: maroon;
  padding: .5rem;
}

.picCategory {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.picCategoryContainer {
  width: 80%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: maroon;
  box-shadow: 3px 3px 5px lightgray;
  border-radius: 1rem;
  gap: 1rem;
}

.labelsContainer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: .5rem;
  column-gap: 2rem;
  
}

.labelsContainer label {
  background: lightcoral;
  padding: .2rem;
  border-radius: .2rem;
  cursor: pointer;
  font-size: clamp(.9rem, 3vw + 1px, 1.4rem);
  font-weight: 500;
  color: maroon;
  margin: 0;
  transition: all 0.5s ease-in-out;
  white-space: nowrap;

}

.picCategoryContainer label:hover {
  color: #fff;
}

.galleryLabel.active {
  color: #fff;
}

.galleryHeader {
  padding: 1.5rem 2rem;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  border-right: 2px solid #fff;


}

.galleryHeader h2 {
  color: lightgrey;
  font-size: clamp(1.4rem, 3vw + 1px, 2.5rem);
  text-align: center;

}

.photosWrapper {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.photosContainer {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.picDiv {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  cursor: pointer;
}

.photosContainer img,
.photosContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: all 0.5s ease-in-out;
}

#check1:checked~.photosWrapper .photosContainer .picDiv {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

#check2:checked~.photosWrapper .photosContainer .staff {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

#check2:checked~.photosWrapper .photosContainer .event,
#check2:checked~.photosWrapper .photosContainer .customer,
#check2:checked~.photosWrapper .photosContainer .video {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}

#check3:checked~.photosWrapper .photosContainer .event {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

#check3:checked~.photosWrapper .photosContainer .staff,
#check3:checked~.photosWrapper .photosContainer .customer,
#check3:checked~.photosWrapper .photosContainer .video {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}

#check4:checked~.photosWrapper .photosContainer .customer {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

#check4:checked~.photosWrapper .photosContainer .event,
#check4:checked~.photosWrapper .photosContainer .staff,
#check4:checked~.photosWrapper .photosContainer .video {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}

#check5:checked~.photosWrapper .photosContainer .video {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

#check5:checked~.photosWrapper .photosContainer .event,
#check5:checked~.photosWrapper .photosContainer .customer,
#check5:checked~.photosWrapper .photosContainer .staff {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}


.modal {
  display: none;
  position: fixed;
  z-index: 100000000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 80vw;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

.hidden {
  display: none;
}


@media (max-width: 1308px) {
  .photosContainer {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1208px) {
  .labelsContainer {
    gap: 1rem;
  }
}

@media (max-width: 1080px) {
  .labelsContainer {
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    row-gap: .5rem;
  }
}


@media (max-width: 1026px) {
  .modal-content {
    width: 90vw;
    height: auto;
  }
}

@media (max-width: 768px) {
  .labelsContainer {
    grid-template-columns: repeat(4, 1fr);

  }

  .picCategoryContainer {
    width: 90%;
  }

  .photosContainer {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }

  .picDiv {
    border-radius: .5rem;

  }

  .photosContainer img {
    border-radius: .5rem;

  }

  .photosContainer video {
    border-radius: .5rem;

  }

  .modal-content {
    width: 95vw;
    height: auto;
  }
}

@media (max-width: 540px) {
  .picCategoryContainer {
    gap: .5rem;
  }

  .labelsContainer {
    grid-template-columns: repeat(3, 1fr);

  }

  .galleryHeader {
    padding: 1.5rem .5rem;
  }

}

@media (max-width: 360px) {
  .labelsContainer {
    grid-template-columns: repeat(2, 1fr);

  }
}