* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: repeating-linear-gradient(
    60deg,       
    #111,     
    #222 20px,
    #000 20px,
    #111 40px   
  ); 
  color: #fff;
}

.gallery-container{
  min-width: 350px;
  max-width: 500px;
  mask-image: linear-gradient(90deg, black 80%, transparent);
  margin: 0 auto;
}

.gallery {
  overflow: hidden;
  display: flex;
  overflow-x: auto;
  overflow-y: auto;
  align-items: center;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  gap: 20px;
}

.gallery ul {
  list-style: none;
}

.gallery ul li {
  display: inline-block;
}

.art {
  flex: 0 0 auto;
  overflow-y: auto;
  scroll-snap-align: start;
  width: 80vw;
  max-width: 400px;
  padding: 8px;
  border: 2px solid #f70;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  text-align:  center;
  font-size: 12px;
}

.art label {
	margin: 10px auto 0;
}

.art img {
  width: 100%;
  max-height: 60vh;
  display: block;
}

.art:hover {
  transform: scale(1.05);
}

.art a {
  text-decoration: none;
  color: #f07;
}

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

.overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
