.gallery {
  display: grid;
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  grid-template-rows: 70% 1fr;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 250px;
}

.gallery .visor {
  background-color: gray;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-position: center;
  background-size: cover;
  position: relative;
}

.gallery .visor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all var(--velocity) ease;
  z-index: 0;
}

.gallery .visor img {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .visor:hover .btn-2 {
  opacity: 1;
}

.gallery .visor:hover::before {
  opacity: 1;
  backdrop-filter: blur(5px);
}


.gallery .visor .btn-2 {
  opacity: 0;
  cursor: pointer;
  padding-top: 10px;
  padding-bottom: 10px;
  z-index: 2;
}

.gallery .thumbs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 5px;
  width: 100%;
  padding: 5px;
  padding-right: 60px;
  -webkit-overflow-scrolling: touch;
}

.gallery .thumbs .btn-2 {
  margin-right: 10px;
  text-align: center;
  padding: 0px 30px;
}


.gallery .thumbs .image {
  height: 100%;
  border-radius: var(--radius);
  border: 0px;
  box-shadow: none;
  cursor: pointer;
  background: #dddcdc !important;
  position: initial;
  background-size: cover !important;
  /* object-fit: inherit; */
  background-position: center !important;
  display: block;
  flex-shrink: 0;
  flex-basis: 90px;
  transition: filter var(--velocity);
}

.image {}

.gallery .thumbs .image:hover {
  filter: brightness(1.2);
}
