/* Masonry Layout */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}
.masonry-item {
  position: relative;
}
.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 5px;
}

.image-info {
  text-align: center;
  margin-top: 10px;
}

.image-info p {
    word-wrap: break-word;  /* Allows long words to break and wrap onto the next line */
    white-space: normal;    /* Ensures text wraps within the container */
    overflow: hidden;       /* Prevents overflowing of content */
    text-overflow: ellipsis; /* Optionally, adds "..." to truncated text */
    max-width: 100%;        /* Ensures the text stays within the container width */
}

.img_title {
	font-size: 17px;
    font-weight: 600;
	margin-bottom: 2px;
}

.img_size {
	font-size: 16px;
    font-weight: 600;
	margin-bottom: 7px;
}

.popupButton {
	width: 98%;
    background-color: #444444;
    border: none;
    color: #ffffff;
}


/* Lightbox */
.lightbox img {
  cursor: pointer;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  text-align: center;
}

.popup-overlay img {
  max-width: 90%;
  max-height: 80%;
  margin-top: 5%;
}


/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

/* Popup Content */
.popup-content {
  background-color: #fff;
  padding: 20px;
  width: 300px;
  margin: 100px auto;
  border-radius: 10px;
  position: relative;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
}


