/* ===============================
   Hobby Section – Masonry Grid + Lightbox
   =============================== */

.hobby-section {
  background-color: none;
  color: white;
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.resume-title {
  margin-bottom: 20px;
  text-align: center;
}

.hobby-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* Masonry Layout */
.hobby-grid {
  column-count: 3;
  column-gap: 20px;
}

.exhibition {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  background: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 0.6s forwards;
}

.exhibition:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.exhibition h5 {
  font-size: 1.2rem;
  margin: 15px;
  text-align: center;
}

/* Image Wrapper and Overlay */
.exhibition .img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.exhibition img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.exhibition:hover img {
  transform: scale(1.05);
}

.exhibition .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-align: center;
  transition: opacity 0.4s ease;
  padding: 15px;
}

.exhibition:hover .overlay {
  opacity: 1;
}

.overlay p {
  margin: 6px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.overlay ion-icon {
  font-size: 1.1rem;
  color:  var(--primary);
}

.overlay .credit {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 10px;
  font-style: italic;
}

/* Buttons inside overlay */
.overlay a.btn {
  display: inline-block;
  padding: 6px 12px;
  background-color:  var(--primary);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.overlay a.btn:hover {
  background-color:  var(--primary);
}

/* Fade-in Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox Styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 80%;
  max-height: 75vh;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: white;
}

.lightbox-caption h4 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.lightbox-caption p {
  font-size: 1rem;
  color: #ddd;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color:  var(--primary);
}

/* Responsive Masonry */
@media (max-width: 992px) {
  .hobby-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .hobby-grid {
    column-count: 1;
  }

  .lightbox-img {
    max-width: 95%;
  }
}
