.gallery-panel {
  min-height: calc(100vh - 48px);
  padding: 24px 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.gallery-title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

#gallery-back-button {
  justify-self: start;
}

.gallery-item {
  background: #f4f2ef;
  padding: 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-self: start;
}

.gallery-item-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-item:not(.gallery-item--locked) .gallery-item-frame {
  cursor: pointer;
}

.gallery-item-label {
  font-size: 0.85rem;
  font-weight: bold;
}

.gallery-item--locked .gallery-item-label {
  color: #a39a8f;
}

.gallery-preview-image {
  width: 100%;
  max-width: 500px;
  padding: 16px;
}
