#gallery {
  display: grid;
  gap: 20px;
}

.gallery {
  position: relative;
  padding: 5%;
  display: grid;
  gap: 20px;
  background-color: #F8F8F8;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.gallery--large {
  grid-template-columns: 1fr;
}

.gallery--medium {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--small {
  grid-template-columns: repeat(3, 1fr);
}

.gallery img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
}

.comparison {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.comparison .after {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  pointer-events: none;
}

.handle::after {
  content: "< >";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  color: #222;
  font-size: 18px;
}

.title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
}

.h1 {
  font-size: 30px;
}

@media (max-width: 900px) {
  #gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 600px) {
  #gallery {
    grid-template-columns: 1fr;
  }
}

.gallery .title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
}

.folder {
  position: relative;
  cursor: pointer;
}

.folder-preview {
  position: relative;
  overflow: hidden;
}

.folder-preview > img:first-child {
  display: block;
  width: 100%;
  height: auto;
}

.folder-overlay {
  position: absolute;
  inset: 0;
  margin-left: 70%;
  margin-top: 70%;

  width: 30% !important;
  height: 30% !important;

  pointer-events: none;
}

.folder .title {
  position: absolute;
  text-align: center;
  padding: 8px;
}