.entry-content img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.entry-content img:hover {opacity: 0.7;}
/* Modal container */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* prevent scroll */
  background-color: rgba(0, 0, 0, 0.8); /* dark overlay */
}

/* Close button */
.modal .close {
  position: absolute;
  top: 35px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.modal .close:hover {
  color: #ccc;
}

/* Image inside modal */
.modal img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Caption text below the image */
.modal #caption {
  position: absolute;
  top: calc(50% + 45vh);
  left: 50%;
  transform: translateX(-50%);
  color: #f1f1f1;
  font-size: 18px;
  text-align: center;
  width: 90%;
  max-width: 800px;
  line-height: 1.4;
}
/* FADE IN */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.fade {
  animation: fadeIn 0.4s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.5) translate(-50%, -50%); opacity: 0; }
  to { transform: scale(1) translate(-50%, -50%); opacity: 1; }
}

.modal.zoom img {
  animation: zoomIn 0.3s ease;
}
/* SLIDE UP */
@keyframes slideUp {
  from { transform: translate(-50%, 20%) scale(0.95); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.modal.slide img {
  animation: slideUp 0.4s ease-out;
}

/* FLIP IN */
@keyframes flipIn {
  from { transform: rotateY(90deg) translate(-50%, -50%); opacity: 0; }
  to { transform: rotateY(0deg) translate(-50%, -50%); opacity: 1; }
}

.modal.flip img {
  animation: flipIn 0.6s ease;
  transform-origin: center;
}

/* BLUR IN */
@keyframes blurIn {
  from { filter: blur(10px); opacity: 0; }
  to { filter: blur(0); opacity: 1; }
}

.modal.blur img {
  animation: blurIn 0.5s ease;
}

