.project h2 {
  position: absolute;
  text-align: center;
  font-family: "Aether";
  text-rendering: auto;
  font-size: 13px;
  transition: transform 0.1s ease;
  /* transition: opacity 0.3s ease;  */
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}

.project h2:hover {
  cursor: none;
}

.banner,
.banner img {
  width: 100%;
  height: auto;
  line-height: 0;
}

.banner:hover {
  cursor: none;
}

.banner {
  position: relative; /* Ensure button positions relative to banner */
}

.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 90%;
}

.lightbox-content img {
  width: 100%;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
/* --- lightbox costum controls --- */
.custom-controls {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

#progress-bar {
  flex: 1;
}

/* slider track */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  border-radius: 0;
}

/* Track: webkit browsers */
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: #b2b2b2;
  border-radius: 0;
}

/* Track: Mozilla Firefox */
input[type="range"]::-moz-range-track {
  height: 2px;
  background: #b2b2b2;
  border-radius: 0;
}

/* Thumb: webkit */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  width: 0px;
  background-color: transparent;
  border-radius: 0;
  box-shadow: -407px 0 0 400px #fff;
}

/* Thumb: Firefox */
input[type="range"]::-moz-range-thumb {
  height: 15px;
  width: 15px;
  background-color: transparent;
  border-radius: 0;
  box-shadow: -407px 0 0 400px #fff;
}

#current-time {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  width: 67px;
}

#pause-indicator {
  position: absolute;
  pointer-events: none;
  color: white;
  font-size: 12px;
  font-family: "Aether";
  text-rendering: auto;
  display: none;
  z-index: 20;
  transition: opacity 0.3s;
  text-transform: uppercase;
}

.gallery,
.info {
  padding: var(--margin);
}

.gallery ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.5em;
}

.gallery li {
  line-height: 0;
}

/* .gallery li:first-child {
  grid-column-start: 1;
  grid-column-end: -1;
} */

/* .gallery li:nth-of-type(3n) {
  grid-column: 2/-1;
}

.gallery li:nth-of-type(3n + 2) {
  grid-column: 1/2;
}

.gallery li:nth-of-type(3n + 1) {
  grid-column: 1 /-1;
} */

.gallery li:nth-of-type(2n) {
  grid-column: 2/-1;
}

.gallery li:nth-of-type(2n+1) {
  grid-column: 1/2;
}

.gallery li a {
  position: relative;
  display: block;
  line-height: 0;
}
.gallery li img {
  width: 100%;
}

/* .info {
  display: grid;
  grid-template-columns: var(--mobile-grid);
  column-gap: var(--margin);
} */

.descricao {
  grid-column: 1 / 5;
}

.ficha {
  grid-column: 3/-1;
  padding-top: var(--margin);
}

.ficha p {
  font-family: "Aether";
  text-rendering: auto;
}

.ficha strong {
  opacity: 0.5;
  font-weight: normal;
}

/* --- 3D Related Projects Carousel --- */
/* .carousel-3d {
  top: calc(50% - 100px);
  left: calc(50% - 150px);
  transform-style: preserve-3d;
  transform: perspective(240px) rotateY(156.7deg);
  height: 400px;
}
.carousel-item {
  position: absolute;
  inset: 0 0 0 0;
  transform: rotateY(calc(((var(--i) - 1) * (360 / 12)) * 1deg))
    translateZ(1900px);
} */

.carousel-wrapper {
  perspective: 1000px;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-3d {
  position: relative;
  width: 300px;
  height: 200px;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  animation: spin 20s linear infinite;
}

.carousel-item {
  position: absolute;
  width: 200px;
  height: 120px;
  line-height: 120px;
  text-align: center;
  background: #444;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  left: 50%;
  top: 50%;
  transform-origin: center center 400px; /* Pushed back along Z-axis */
  /* transform: rotateY(calc(((var(--i) - 1) * (360 / 12)) * 1deg)); */
  
}

.carousel-item img{ 
  width: 100%;
  height: auto;
}
/*========================= DESKTOP ======================*/
@media screen and (min-width: 768px) {

  .descricao {
    grid-column: 1 / 4;
  }

  .ficha {
    grid-column: 6 / -1;
    padding-top: var(--gap);
  }
}
