/* --- Modal Popup (รูปภาพ Cover) --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}
.modal-overlay.active {
  display: flex;
}
.modal-overlay img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  animation: zoomIn 0.4s ease-out;
}

/* --- ปุ่มปิด --- */
.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 42px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s;
  z-index: 10000;
  opacity: 0.8;
}
.modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* --- Animations --- */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(20px); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .intro-container { padding: 1.5rem; }
  .intro-image { max-width: 300px; margin-bottom: 1.5rem; border-radius: 15px; }
  .intro-text h1 { margin-bottom: 0.8rem; }
  .intro-text p { margin-bottom: 2rem; }
}
@media (max-width: 480px) {
  .intro-container { padding: 1rem; }
  .intro-image { max-width: 280px; margin-bottom: 1.2rem; border-radius: 12px; }
  .intro-text h1 { margin-bottom: 0.6rem; }
  .intro-text p { margin-bottom: 1.5rem; font-size: 0.95rem; }
}