.photo-wall-wrapper {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.photo-wall-overlay {
  position: absolute;
  inset: 0; 
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  pointer-events: none; 
  padding: 1rem;
}

html.has-modal-open .photo-wall-overlay {
  pointer-events: auto; 
  display: none;
}

.photo-wall-overlay .wp-block-site-title,
.photo-wall-overlay .wp-block-site-tagline {
  margin: 0;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.photo-wall-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.photo-wall-grid {
  display: grid;
  flex-grow: 1;
  grid-template-columns: repeat(auto-fill, minmax(var(--photo-tile-size), 1fr));
  width: 100%;
  padding: 0;
  margin: 0;
}

.tile {
  overflow: hidden;
  margin: 0;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

