.photos-page .photos-main {
  padding-top: calc(var(--topbar-height) + 28px);
}

.photos-stack {
  display: grid;
  gap: 22px;
}

.photos-intro-inner {
  text-align: center;
  padding: 28px 22px 8px;
}

.photos-logo {
  width: 88px;
  height: auto;
  margin: 0 auto 8px;
}

.photos-heading {
  font-family: "TheSeasonsItalicLocal", "Parisienne", serif;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  color: var(--accent-dark);
  margin: 4px 0 10px;
}

.photos-lead {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
}

.photos-gate,
.photos-upload-card,
.photos-gallery-card {
  padding: 22px;
}

.photos-gate-form,
.photos-upload-form {
  display: grid;
  gap: 14px;
}

.photos-dropzone {
  border: 1.5px dashed #d4c4a6;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.7);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.photos-dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(169, 137, 69, 0.08);
}

.photos-dropzone strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.photos-file-input {
  display: none;
}

.photos-queue {
  display: grid;
  gap: 10px;
}

.photos-queue-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  font-size: 0.95rem;
}

.photos-progress {
  grid-column: 1 / -1;
  height: 7px;
  background: #ebe4d5;
  border-radius: 999px;
  overflow: hidden;
}

.photos-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.photos-queue-item.is-done .photos-progress > span {
  background: #7d9a62;
}

.photos-queue-item.is-error .photos-progress > span {
  background: #b15b4a;
  width: 100%;
}

.photos-status {
  min-height: 1.3em;
  color: var(--muted);
  text-align: center;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.photos-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #efe8d8;
  border: none;
  padding: 0;
  cursor: pointer;
}

.photos-tile img,
.photos-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photos-tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgba(40, 32, 22, 0.72));
  color: #fff;
  font-size: 0.78rem;
  text-align: start;
}

.photos-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(28, 23, 17, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
}

.photos-lightbox[hidden] {
  display: none;
}

.photos-lightbox-inner {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.photos-lightbox-inner img,
.photos-lightbox-inner video {
  max-width: 96vw;
  max-height: 78vh;
  border-radius: 10px;
}

.photos-lightbox-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.photos-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
