body {
  margin: 0;
  font-family: Arial;
  background: #111;
  color: #fff; /* ✅ Default text color fixed */
}

/* MOSAIC BACKGROUND EFFECT */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);

  background-size: 40px 40px;

  pointer-events: none;
  z-index: 0;
}

.gallery-section {
  padding: 60px 8%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.gallery-subtext {
  font-size: 16px;
  color: #bbb;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* TITLE */
.gallery-title {
  font-size: 40px;
  margin-bottom: 40px;
  font-weight: 700;
  color: #fff; /* RJ + Gallery stays white */
}

/* STUDIO GRADIENT */
.studio-text {
  background: linear-gradient(135deg, #9B2FFF, #FF4FD8, #F4B400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* GRID */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* IMAGES */
.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* POPUP */
.popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.9);
  height: 100%;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.popup-image img {
  max-width: 70%;
  max-height: 85%;
  border-radius: 10px;
}

/* CLOSE BUTTON */
.popup-image span {
  position: fixed;
  top: 100px;
  right: 40px;
  font-size: 45px;
  color: white;
  cursor: pointer;
  z-index: 9999;

  background: rgba(0,0,0,0.6);
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

/* ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.arrow.left {
  left: 40px;
}

.arrow.right {
  right: 40px;
}

.arrow:hover {
  color: #ff4bd1;
}