html, body{
  overflow-x:hidden;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.art-item {
  width: 100%;
}

.art-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s;
}

.art-item img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.main {
  overflow-y: scroll;
  max-height: 80vh;
  padding-right: 10px;
}

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

.popup-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* optional scrollbar styling */
.main::-webkit-scrollbar {
  width: 6px;
}

.main::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.main::-webkit-scrollbar-thumb:hover {
  background: #555;
}