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

.overlay-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 85%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;  /* This is fine - it centers content horizontally */
  position: relative;
}

#content-container {
  width: 100%;
  display: flex;
  justify-content: center;
  /* align-items: center;  This centers the image within its container */
  position: relative;
  margin: 20px 0 30px 0;
  padding: 0;
  min-height: 200px;
}

#content-container img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
  display: block;
}

#content-container video {
  max-width: 80%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

#content-container iframe {
  width: 80%;
  height: 70vh;
  border: none;
}

.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 105, 180, 0.9);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 1001;
  font-size: 24px;
  border-radius: 5px;
  transition: background 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.arrow:hover {
  background: rgba(255, 20, 147, 1);
}

#left-arrow {
  left: 20px;
}

#right-arrow {
  right: 20px;
}

#project-title {
  font-size: 24px;
  margin: 0 0 15px 0;
  text-align: center;
  color: #333;
  font-weight: bold;
}

#project-medium,
#project-description,
#project-artist,
#project-site {
  margin: 10px 0;
  text-align: center;
  color: #666;
  max-width: 800px;
  line-height: 1.6;
}

#close-button {
  margin-top: 25px;
  margin-bottom: 10px;
  padding: 12px 30px;
  background-color: #ff69b4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#close-button:hover {
  background-color: #ff1493;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .overlay-content {
    width: 95%;
    padding: 15px;
  }
  
  #content-container {
    margin: 15px 0 20px 0;
  }
  
  #content-container img {
    max-width: 90%;
  }
  
  #content-container video {
    max-height: 50vh;
  }
  
  .arrow {
    padding: 10px 15px;
    font-size: 20px;
  }
  
  #left-arrow {
    left: 10px;
  }
  
  #right-arrow {
    right: 10px;
  }
  
  #project-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  #project-medium,
  #project-description,
  #project-artist,
  #project-site {
    margin: 8px 0;
    font-size: 14px;
  }
}