body {
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  background: #fff;
  color: #323232;
  text-align: center;
}

header {
  padding: 1rem;
}

.logo {
  height: 180px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #323232;
  font-size: 1rem;
}

nav a.active {
  color: #27aae1;
}

nav a:hover  {
  color: #27aae1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 8rem;
}

@media (max-width: 768px) {
  .grid {
    padding: 1rem 2rem;
  }
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.disabled {
  display: none;
}

#filters {
  margin: 1rem 0;
}

#filters button {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #27aae1;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

#filters button:hover {
  background: #1e81b0;
}

footer {
  margin: 2rem 0;
}

footer a {
  margin: 0 0.5rem;
  color: #323232;
  text-decoration: none;
}

footer a:hover {
  color: #27aae1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-inner {
  background: transparent;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  position: relative;
}

.modal-content {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border-radius: 50%;
  padding: 6px 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #323232;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#caption {
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 0.8rem;
}

.modal-description {
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 16px;
  display: none;
  margin-top: 15px;
}

.item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #fff;
}

.item .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #27aae1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
