/* ====== character.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: 1em;
}

.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 */
}
  
.character-section {
  display: flex;
  align-items: center;        /* Vertically center image and text */
  gap: 2em;                   /* Space between image and text */
  padding: 1em;
  flex-wrap: wrap;            /* Allows wrapping on smaller screens */
}

.character-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  margin-left: 2em;
}

.character-details {
  color: #000;         /* Set text color to black */
  font-size: 16px;     /* Set font size */
  max-width: 950px;
}

.character-details p {
  text-align: justify;
  line-height: 1.6;
  font-size: 16px;
  color: #000;
  margin-bottom: 1em;
}

.character-gallery {
  padding: 0 1em;
  text-align: center;
  margin-bottom: 2em;
}

.character-gallery h3 {
  margin-bottom: 1em;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.gallery-row img {
  width: 180px;
  height: 180px;             /* Set fixed height to crop evenly */
  object-fit: cover;         /* Prevent stretching, crop instead */
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.gallery-row img:hover {
  transform: scale(1.05);
}


.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: 10px;
  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;
}