/* ================= BASE ================= */
body {
  background: #f2f2f2;
  color: #000;
  font-family: 'Poppins', sans-serif;
}

/* ================= NAV ================= */
.nav {
  left: 40px;
}

.nav a {
  color: black !important;
}

.nav a::after {
  background: black !important;
}

/* ================= MAIN ================= */
.projects {
  padding-top: 120px;
}

/* ================= GRID ================= */
.project-row {
  display: grid;
  grid-template-columns: 30% 40% 30%;
  align-items: center;
  margin-bottom: 30px;
}

/* ================= TEXT ================= */
.project-info {
  margin-left: auto;
  margin-right: -80px;
  max-width: 260px;
  text-align: right;
  align-self: start;

  transition: transform 0.4s ease;
}

.project-info img {
  width: 50px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
}

.project-info h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.project-info p {
  font-size: 10px;
  color: #777;
  margin-top: 5px;
}

/* ================= IMAGE ================= */
.project-image {
  display: flex;
  justify-content: center;
}

.project-image img {
  width: 60%;
  display: block;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.project-row:hover .project-image img {
  transform: scale(1.05);
}

.project-row:hover .project-info {
  transform: translateX(-10px);
}

/* ================= OVERLAY ================= */
#projectOpen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: #f2f2f2;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 999;
}

#projectOpen.active {
  opacity: 1;
  pointer-events: auto;
}

/* ================= GALLERY ================= */
#gallery {
  position: absolute;
  top: 50%;
  left: 0;

  transform: translateY(-50%);

  display: flex;
  align-items: center;

  gap: 40px;
  padding: 0 80px;

  height: 100vh;
  width: 100vw;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  overscroll-behavior: none;

  cursor: grab;
}

/* images */
#gallery img {
  height: 80vh;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ================= SCROLLBAR ================= */
#gallery::-webkit-scrollbar {
  height: 6px;
}

#gallery::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
  position: fixed;
  top: 40px;
  left: 40px;
  font-size: 14px;
  cursor: pointer;
  z-index: 1000;
}

#gallery {
  user-select: none;
}

#gallery img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

#gallery {
  cursor: grab;
}

#gallery:active {
  cursor: grabbing;
}

#gallery img {
  will-change: transform;
}

#gallery {
  contain: layout paint size;
}