body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
}

main {
  padding-top: 30px;
  padding-bottom: 30px;
}

header {
  background: #ebb503;
  color: white;
  padding: 20px;
  text-align: center;
}

header a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

footer {
  background: #ebb503;
  color: white;
  padding: 20px;
  text-align: center;
}

footer a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

/* CARD */

.card {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.prev, .next {
  display: none;
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

#cards {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
}

.card div {
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.card h3 {
  margin: 0;
  font-size: 16px;
}

.card p {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: gray;
}

.thumbs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

#counter {
  max-width: 600px;
  margin: 20px auto 10px auto;
  font-size: 18px;
  font-weight: bold;
}