body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
}

a {
  text-decoration: none;
  color: #006699;
}

a:hover {
  color: #004466;
}

/* Header Styling */
#templatemo_site_title_bar_wrapper {
  background-color: #40a80c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#templatemo_site_title_bar {
  width: 960px;
  margin: auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#site_title h2 {
  color: white;
  font-size: 28px;
  margin: 0;
}

#site_title .style5 {
  color: #eee;
  font-size: 14px;
}

#top_menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

#top_menu li a {
  color: white;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 5px;
}

#top_menu li a:hover {
  background-color: white;
  color: #2f4f4f;
}

/* Black Navbar */
#black_nav_bar_wrapper {
  background-color: #000;
  padding: 10px 0;
}

#black_nav_bar {
  width: 960px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#black_nav_bar h2 {
  color: white;
  font-size: 22px;
}

#black_menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

#black_menu li a {
  color: white;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 5px;
}

#black_menu li a:hover {
  background-color: white;
  color: black;
}

/* Published Section */
.container {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.section-title h2 {
  font-size: 26px;
  color: #2f4f4f;
  text-align: center;
  margin-bottom: 20px;
}

.published-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.published-card {
  flex: 1 1 200px;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.published-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.published-card:hover img {
  transform: scale(1.05);
}


/* Footer */
.footer {
  background-color: #40a80c;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
}


/* === PREVIOUS CSS CODE GOES HERE === */
/* (Your existing styles for body, header, footer, etc.) */

.published-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer; /* Add pointer to show it's clickable */
}

.published-card:hover img {
  transform: scale(1.05);
}


/* === NEW CSS FOR THE MODAL/POPUP === */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top of everything else */
  padding-top: 60px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
}

/* Modal Content (The Image) */
.modal-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 80%;
  max-height: 80vh;
  /* Animation */
  animation-name: zoom;
  animation-duration: 0.5s;
}

/* Add Zoom Animation */
@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

/* The Close Button (X) */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: #40a80c;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
}