/* Scope all styles to the popup container */
#latest-content-popup h2 {
  font-family: "Selfie_Regular", sans-serif; /* Replace with your specified font family */
  font-size: 40px; /* Adjust size as needed */
  color: #cc9713 !important; /* Replace with your specified color */
  text-transform: none;
  font-weight: 400;
}

#latest-content-popup h3 {
  font-family: "brandon-grotesque", sans-serif; /* Replace with your specified font family */
  font-size: 20px; /* Adjust size as needed */
  color: #666; /* Replace with your specified color */
}

#latest-content-popup .custom-title {
  font-family: "brandon-grotesque", sans-serif;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0;
  margin-bottom: 10px; /* Space below the title */
}

#latest-content-popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

#latest-content-popup .popup-content {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #888;
  width: 70%; /* Reduce width */
  max-width: 750px; /* Limit maximum width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  position: relative; /* Ensure proper positioning */
}

#latest-content-popup .close {
  color: #aaa;
  position: absolute; /* Position relative to the popup content */
  top: -20px;
  right: 10px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#latest-content-popup .close:hover,
#latest-content-popup .close:focus {
  color: black; /* Change color on hover */
  text-decoration: none; /* No underline */
}

#latest-content-popup img {
  max-width: 500px; /* Ensure images are responsive */
  height: auto;
  display: block;
  margin: 0 auto 20px; /* Center the image and add spacing below */
    border-radius: 8px; /* Optional: add rounded corners to images */
}

#latest-content-popup p {
  font-family: "brandon-grotesque", sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 20px;
}

#latest-content-popup .read-more {
  display: flex;
  font-family: "brandon-grotesque", sans-serif;
  font-size: 16px;
  color: #fff;
  background-color: #cc9713;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: fit-content;
}

#latest-content-popup .read-more:hover {
  background-color: #b58410;
}


@media (max-width: 768px) {
 #latest-content-popup img {
    display: none;
  }
}


@media (max-width: 1024px) {
  #latest-content-popup .popup-content {
    width: 90%; /* Increase width for smaller screens */
    max-width: none; /* Remove max-width restriction */
  }

  #latest-content-popup .read-more {
    font-size: 14px; /* Adjust button font size */
    padding: 8px 16px; /* Adjust button padding */
  }
}

@media (max-width: 480px) {
  #latest-content-popup .popup-content {
    padding: 15px; /* Reduce padding for very small screens */
    width: 95%; /* Further increase width */
  }

  #latest-content-popup p {
    font-size: 14px; /* Adjust text size */
  }

  #latest-content-popup .read-more {
    font-size: 12px; /* Further adjust button font size */
    padding: 6px 12px; /* Further adjust button padding */
  }
}
