/* ====== portfolio.css ====== */

.title {
  position: relative;
  height: 200px;
  overflow: hidden;
  width: 100%;

  border-bottom-left-radius: 50% 50px;
  border-bottom-right-radius: 50% 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2em;
}

.title-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.overlay {
  position: absolute; /* ← this is key */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.2); /* Dark overlay */

  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-text {
  color: white;
  font-size: 2.5em;
  font-family: 'Unica One', cursive;
  text-align: center;
  padding: 0 1rem;
  z-index: 3; /* Optional: ensure above overlay if needed */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;  /* limit max width for neatness */
  margin: 0 auto;    /* center horizontally */
  padding: 1em;
  margin-top: 2em
}

.image-card {
  
  border-radius: 0px;
  padding: 0px;
  width: 350px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  
}

.image-card img {
  max-height: 450px;     /* max height you want */
  width: auto;
  height: auto;
  object-fit: contain;   /* preserves ratio without cropping */
  display: block;
  margin: 0 auto 5px;  /* Add space below image */
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}


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

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  color: black;
  font-size: 2em;
  border: none;
  padding: 0.2em 0.6em;
  cursor: pointer;
  z-index: 10000;
  border-radius: 50%;
}

.lightbox-arrow.left {
  left: 20px;
}

.lightbox-arrow.right {
  right: 20px;
}