
/* Page styling */
body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* Header */
header {
  padding: 40px 20px;
  text-align: center;
  background-color: #75ace2;
  color: #fff;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 2px;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 30px auto 0px auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #222;
}


/* Image gallery */
.gallery {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  
  max-width: 1200px;   /* 👈 constrains width */
  margin: 0 auto; 
  
}

.gallery-item {
  position: relative;
  width: 100%;
  /*max-width: 250px;*/
}

/* Images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Hover effect */
.gallery img:hover {
  transform: scale(1.05);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;

  font-size: 14px;
  letter-spacing: 0.4px;

  opacity: 0;
  transform: translateY(100%);  /* 👈 start below the image */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
  transform: translateY(0);   /* 👈 slide up to original position */
}


/*
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;

  font-size: 14px;
  letter-spacing: 0.4px;

  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}
*/

