.gallery {
  min-height: 100vh;
  padding-bottom: 100px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: capitalize;
  transition: all 0.1s cubic-bezier(0.34, 1.12, 0.68, 1.31);
}
.gallery .controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 0;
}
.gallery .controls ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
}
.gallery .controls .buttons {
  height: 40px;
  width: 140px;
  background: #fff;
  color: #033b4a;
  font-size: 20px;
  line-height: 24px;
  cursor: pointer;
  margin: 20px;
  padding: 1%;
  box-shadow: 0 3px 5px rgb(0 0 0 / 0.3);
  text-align: center;
  border-radius: 8px;
}
.gallery .controls .buttons.active {
  background: #941c34;
  color: #fff;
}
.gallery .controls .buttons:hover {
  background: #941c34;
  color: #fff;
}
.gallery .image-container {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}
.gallery .image-container .image {
  position: relative;
  height: 250px;
  width: 90%;
  overflow: hidden;
  border: 1px solid gray;
  box-shadow: 5.4px 10.7px 10.7px hsl(0deg 0% 0% / 0.33);
  margin: 20px;
  border-radius: 5px;
}
.gallery .image-container .tooltip-new {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.gallery .image-container .image:hover .tooltip-new {
  opacity: 1;
  visibility: visible;
}

.gallery .image-container .image img {
  height: 100%;
  width: 100%;
  object-fit: fit;
  border-radius: 5px;
  display: block;
}
.gallery .image-container .image:hover img {
  transform: scale(1.1);
  transition: transform 0.6s ease;
}
@media only screen and (max-width: 1314px) {
  ul {
    margin-top: 0;
    margin-bottom: 10px;
  }
}
@media only screen and (max-width: 768px) {
  .gallery .controls .buttons {
    width: 120px;
    font-size: 16px;
    line-height: 30px;
  }
}
@media only screen and (max-width: 410px) {
  .gallery .controls .buttons {
    width: 100px;
    font-size: 14px;
  }
}
@media only screen and (max-width: 300px) {
  .gallery .controls .buttons {
    width: 100px;
    font-size: 14px;
  }
}
