.image-grid {
  column-count: 4; /* Default: Three columns */
  column-gap: 10px; /* Spacing between columns */
  padding: 10px;
}

.imager {
  break-inside: avoid; /* Prevent breaking within images */
  margin-bottom: 10px; /* Space below images */
}

.imager img {
  width: 100%;
  height: auto;
  display: block;
   cursor: pointer;
}
.captionr {
  padding: 5px;

}

/* Media query for mobile devices */
@media screen and (max-width: 600px) {
  .image-grid {
    column-count: 1; /* Two columns for screens up to 600px wide */
  }
}

.linkster{
	
	text-decoration: underline;
}

.caption-text {
	font-weight:500;
	margin:0;
	font-size: 14px;
}


/* Your existing styles for the website content */

/* Overlay styles */
.overlay {
  display: none;
  position: fixed;
  z-index: -9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  background: none;
  justify-content: center;
  align-items: center;
    backdrop-filter: blur(4vmax);
  -webkit-backdrop-filter: blur(4vmax);
}

.overlay-only {
  display: none;
}

.overlay .overlay-only {
  display: block; /* Show the span in the overlay */
  font-style: italic; /* Apply specific styles for the overlay */
  font-weight: 300;
  font-size: 14px;
}

.regular-only {
  display: inline-block;
  font-size: 10px; font-weight: 300;
}

.overlay .regular-only {
  display: none; /* Hide the span in the overlay */
}

.caption-from-image {
  font-size: 16px; /* Adjust the font size of the caption */
  margin-top: 10px; /* Provide spacing between image and caption */
  background: beige;
  padding: 10px;
}

#overlayImage {
  max-width: 80vw;
  max-height: 80vh;
	height:auto;
  display: block; /* Ensures proper centering */
  margin: auto; /* Center the image horizontally */
}

.overlay-content {
  max-width: 80vw;
  height: auto;
  display: block;
  margin: auto; /* Center the image */
  text-align: left;

}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: rgba(30, 30, 60, 1);
}

.stretch-over-columns {
  grid-column: span 2; /* Spans over two columns */
}


.no-scroll {
  overflow: hidden;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px; /* Adjust padding to reduce button size */
  border: none;
  background-color: rgba(30, 30, 60, 1);
  color: beige;
  cursor: pointer;
  z-index: 100;
  font-size: 20px; /* Adjust font size for arrow buttons */
  line-height: 1; /* Ensure button size matches the arrow size */
  width: 40px; /* Set fixed width to prevent stretching */
  height: 40px;
}

#prevButton {
  left: 10px; /* Position "Previous" button on the left */
}

#nextButton {
  right: 10px; /* Position "Next" button on the right */
}