body {
  font-family: sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #333;
}

header {
  background: #111;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 0.5rem 0 1rem;
  font-size: 1.2rem;
}

nav a {
  margin: 0 1rem;
  color: #ddd;
  text-decoration: none;
}

nav a:hover {
  color: white;
}

section {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.item {
  background: white;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: #ccc;
}

.portfolio-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.overlay .text {
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 0 10px;
}

.carousel-item img {
  height: auto;
  width: 100%;
  display: block;
}

.square-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* makes it a square */
  overflow: hidden;
  background-color: #000; /* optional placeholder bg */
}

.square-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}




