
/*
* {
  margin: 0;
  padding: 0;
  font-family: 'Syne';
  font-weight: 500;
  word-wrap: break-word;
  font-size: 1rem;
  box-sizing: border-box;
  color: var(--color);
}
*/

.gallery,
.overlay img {
  user-select: none;
}
.gallery {
  opacity: 0;
  transition: opacity 0.25s linear 0.25s;
}
.gallery.uploaded {
  opacity: 1;
}
.gallery:hover .gallery__figure:not(:hover) {
  opacity: 0.3;
}
.gallery__figure {
  display: flex;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fade-in 1s;
  transition: opacity 0.3s;
  margin-bottom: 0;
  
}
.gallery__figure,
.gallery__open img {
  border-radius: 0;
}
.gallery__img {
  transition: all 0.3s;
  width: 100%;
  /*aspect-ratio: 1;*/
  object-fit: cover;
  height: auto;
  max-width: 100%;
}
.gallery__img:hover {
  transform: scale(1.2);
}
.gallery.flex {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.gallery.grid {
  display: grid;
  gap: 1.5rem;
}
#categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#categories label {
  cursor: pointer;
}
.overlay {
  display: grid;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100vh;
  grid-template-columns: 100%;
  grid-template-rows: auto 1fr auto;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s;
  backdrop-filter: blur(3px);
}
.overlay.hidden {
  opacity: 0;
  visibility: hidden;
}
.overlay__btns {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  flex-wrap: wrap;
}
.overlay button {
  background: transparent;
  border: none;
  color: #fff;
  width: 3em;
  height: 3em;
}
.overlay button i {
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}
.overlay :is(#next, #prev) {
  position: absolute;
  bottom: calc(50vh - 24px);
}
#next {
  right: 0;
}
#gallery__exitfullscreen {
  display: none;
}
.overlay .leyend {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  text-align: center;
  color: #fff;
}
.gallery__open {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery__open img {
  max-height: calc(100vh - 96px);
  max-width: 100%;
}
.gallery__open img:hover ~ figcaption {
  display: flex;
}
.overlay figcaption {
  display: none;
  position: absolute;
  top: 0;
  background-color: #ffffffd0;
  color: #333;
  padding: 8px;
  border-radius: 5px;
  font-size: 0.8rem;
}
input[name="categories"] {
  display: none;
}
[value="all"]:checked ~ #gallery .gallery__figure[data-category] {
  display: block;
}
[value="Apartments"]:checked
  ~ #gallery
  .gallery__figure:not([data-category~="Apartments"]),
[value="Annuex"]:checked
  ~ #gallery
  .gallery__figure:not([data-category~="Annuex"])
 {
  display: none;
}
[value="Apartments"]:checked ~ .categories [for="Apartments"],
[value="Annuex"]:checked ~ .categories [for="Annuex"] {
    color: #fff;
    border: 0 solid #d3a05e;
    background-color: #d3a05e;
    padding: 8px 15px;
    width: 210px;
    margin: 24px 12px;
    text-align: center;
}
.categories label{
    width: 210px; 
    text-align: center;
    color: #d3a05e;
    background-color: #fff;
    border: 2px solid #d3a05e;
    padding: 6px 15px;
    margin: 24px 12px;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
