* {
  margin: 0;
  padding: 0px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

.container {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 50vh;
  grid-gap: 2%;
}

.gallery-item {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-item .image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
/*.gallery-item::after {
  content: text;
}*/
.gallery-item:hover .image img {
  transform: scale(1.02);
}

.gallery-item .text {
  opacity: 1;
  position: absolute;
  top: 80%;
  left: 72%;
  transform: translate(-80%, -72%);
  color: white;
  font-size: 30px;
  text-align: center;
  pointer-events: none;
  z-index: 0;
  bottom: 0;
  background: rgb(0, 0, 0); /* Fallback color */
  background: rgba(0, 0, 0, 0.3); /* Black background with 0.5 opacity */
  color: #f1f1f1;
  width: 75%;
  height: 10%;
  padding: 0px;
}

.w-1 {
  grid-column: span 1;
}
.w-2 {
  grid-column: span 2;
}
.w-3 {
  grid-column: span 3;
}
.w-4 {
  grid-column: span 4;
}
.w-5 {
  grid-column: span 5;
}
.w-6 {
  grid-column: span 6;
}
.w-7 {
  grid-column: span 7;
}
.w-8 {
  grid-column: span 8;
}
.w-12 {
  grid-column: span 12;
}

.h-1 {
  grid-row: span 1;
}
.h-2 {
  grid-row: span 2;
}
.h-3 {
  grid-row: span 3;
}
.h-4 {
  grid-row: span 4;
}
.h-5 {
  grid-row: span 5;
}
.h-6 {
  grid-row: span 6;
}

@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1%;
  }
  .w-1,
  .w-2,
  .w-3,
  .w-4,
  .w-5,
  .w-6,
  .w-7,
  .w-8,
  .w-9,
  .w-10,
  .w-11,
  .w-12 {
    grid-column: span 1;
  }
}

@keyframes move-down {
  0% {
    top: 10%;
  }
  50% {
    top: 35%;
  }
  100% {
    top: 50%;
  }
}
