body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
}
header, footer {
  background: #333;
  color: white;
  padding: 1em;
  text-align: center;
}
img.logo {
  /* horizontal vertical blur color */
  filter: brightness(8) drop-shadow(0 0 22px rgba(255, 255, 255, 0.6));
}
.titlebar {
  display: flex;
  justify-content: space-between; /* Pushes the first item left and the last item right */
  align-items: center;           /* Optional: vertically centers them on the same line */
}
.main_title {
  display: flex;
  justify-content: left;
  gap: 1em;
  font-size: 1.5em;
}
.menu {
  display: flex;
  justify-content: right;
  gap: 1em;
}
.menu a {
  color: white;
  text-decoration: none;
}
.tile-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1em;
  padding: 1em;
}
.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #ccc;
  border-radius: 8px;
  padding: 0;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s;
}
.tile:hover {
  transform: scale(1.05);
}
.tile-preview {
  padding: 0.5em;
  display: block;
  margin: auto 0;
}
.tile-text {
  background: rgba(50, 50, 50, 0.8);
  color: white;
  padding: 0.5em;
  text-align: center;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.overlay.active {
  visibility: visible;
  opacity: 1;
}
.expanded-tile {
  background: white;
  border-radius: 8px;
  padding: 2em;
  max-width: 600px;
  width: 80%;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}
.overlay.active .expanded-tile {
  transform: scale(1);
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: #333;
}
.tile-details {
}
noscript .tile-details {
  display: block;
}
.nojs-preview {
  padding: 0.5em;
  display: block;
  margin: auto 0;
  width: 200px;
}

.narrow {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* properties table in gallery */
.properties {
  border-collapse: separate;
  border-spacing: 10px 5px;
}
.properties th {
  background-color: #eeeeee;
  text-align: left;
  padding: 8px 12px;
  width: 30%;
}
.properties td {
  padding: 8px 12px;
}

