.image-link {
  display: inline-block; /* Allows padding and other box model properties */
  line-height: 0; /* Remove any extra vertical space */
  border: none; /* Remove default link/anchor border */
}

/* Optional: Add a style for the hover effect */
.image-link:hover img {
  opacity: 0.8; /* Reduce the image opacity on hover */
}
.comein-button {
  background-color: #f1f1f1;
  color: rgb(0, 0, 0);
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  border: yes;
  border-width: 1px;
  border-style: solid;
  border-color: black;
  border-radius: 8px;
  cursor: pointer;
  transition-duration: 0.4s; /* Smooth transition for hover effect */
}

.comein-button:hover {
  background-color: #dedede;
}

.comein-button:active {
  background-color: #bababa;
  transform: translateY(1px);
}

.image-gallery {
  display: grid; /* Make the container a grid */
  /* Create three columns, each taking up an equal fraction of the space */
  grid-template-columns: repeat(3, 1fr);
  gap: 15px; /* Add space between grid items */
}

/* Ensure images fill their link container and maintain aspect ratio */
.image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  /* Ensure images with different aspect ratios fit neatly */
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.center-grid-container {
  display: grid;
  /* Change this line: Define a single column with a max width and let the grid-container fill the page */
  grid-template-columns: minmax(0, 600px); /* Creates a single column with a max width of 600px */
  /* Remove `justify-content: center;` from here */
}

/* Updated positioning for slideshow and text */
.slideshow-container,
.thumbnail-container,
.text-content {
  grid-column: 1 / 2; /* Places these elements in the single column */
  /* Remove justify-self: start from here, or apply `justify-self: start` to align the content to the left within the single column */
}

.slideshow-container {
  position: relative;
}

/* Main images */
.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: auto;
}

/* Navigation arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Thumbnails */
.thumbnail-container {
  margin-top: 15px;
  text-align: left; /* Change alignment of thumbnail images to left */
}

.thumbnail {
  width: 20%;
  cursor: pointer;
  opacity: 0.6;
  margin: 0 5px 0 0; /* Adjust margin to remove right spacing */
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
  border: 2px solid #3498db;
}

/* Text content */
.text-content {
  margin-top: 20px;
  padding: 0; /* Remove horizontal padding if you want it to align flush */
  text-align: left; /* Align the text itself to the left */
}
