:root {
  --ratio-2-3: 150px;
  --ratio-3-4: 133.33333333333px;
  --ratio-4-5: 125px;
  --ratio-9-16: 177.77777777778px;

}

#gallery {
  height: 70vmax;
  width: 95vmax;
  position: relative;
  display: none;
  transition: ease 0.5s;
  z-index: 1;
  will-change: transform;
}

#gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 140vw;
  height: 150vh;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.gallery-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

body {
  padding: 0;
  overflow: hidden;
}


.block {
  position: absolute;
  display: block;
  z-index: 2;
  width: 100px;
  height: 100px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: subpixel-antialiased;
  will-change: transform;
}

.block:hover {
  filter: none !important;
  outline: 1px solid transparent;
  backface-visibility: hidden;
  z-index: 10 !important;
}

.block h6,
.block p {
  font-size: 4pt;
  margin: 3px 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  will-change: contents;
}

.text-top {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
}

.block a {
  width: 100%;
  height: 100%;
  display: flex;
  background: rgb(255, 255, 255);
  opacity: 0;
  transition: ease, 1s;
  z-index: 1;
  scale: 1.015;
}

.block:hover {
  filter: blur(0px);
}



/* PROJETS */

.block:nth-child(1) {
  top: 39%;
  left: 58%;
  height: var(--ratio-9-16);
  background: url("/web-content/uploads/assets/1.jpg") no-repeat 50% 50%;
  background-size: cover;
}


.block:nth-child(2) {
  top: 25%;
  left: 15%;
  height: var(--ratio-2-3);
  background: url("/web-content/uploads/assets/2.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(3) {
  top: 50%;
  left: 8%;
  background: url("/web-content/uploads/assets/3.jpg") no-repeat 50% 50%;
  background-size: cover;
}


.block:nth-child(4) {
  bottom: 28%;
  right: 10%;
  height: var(--ratio-2-3);
  background: url("/web-content/uploads/assets/4.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(5) {
  top: 7%;
  left: 30%;
  height: var(--ratio-4-5);
  background: url("/web-content/uploads/assets/5.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(6) {
  top: 20%;
  right: 11%;
  width: var(--ratio-2-3);
  background: url("/web-content/uploads/assets/6.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(7) {
  top: 35%;
  right: -5%;
  height: var(--ratio-2-3);
  background: url("/web-content/uploads/assets/7.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(8) {
  top: 57%;
  left: 40%;
  height: var(--ratio-4-5);
  background: url("/web-content/uploads/assets/8.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(9) {
  top: 36%;
  left: 31%;
  width: var(--ratio-3-4);
  background: url("/web-content/uploads/assets/9.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(10) {
  bottom: 17%;
  right: 27%;
  background: url("/web-content/uploads/assets/10.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(11) {
  bottom: 12%;
  left: 22%;
  width: var(--ratio-3-4);
  background: url("/web-content/uploads/assets/11.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(12) {
  top: 21%;
  left: 45%;
  height: var(--ratio-4-5);
  background: url("/web-content/uploads/assets/12.jpg") no-repeat 50% 50%;
  background-size: cover;
}

.block:nth-child(13) {
  top: 63%;
  left: 18%;
  width: var(--ratio-9-16);
  background: url("/web-content/uploads/assets/13.jpg") no-repeat 50% 50%;
  background-size: cover;
}

@media (max-width: 768px) {

  html,
  body {
    overflow: auto !important;
    width: 100%;
    height: 100%;
  }

  #gallery {
    min-width: 300vw !important;
    min-height: 300vh !important;
    padding: 400px !important;
    box-sizing: border-box;
    display: block !important;
    position: relative !important;
  }


  .block {
    position: absolute !important;
    will-change: transform;
  }

  .block h6,
  .block p {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    will-change: contents;
  }

}