@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500&family=Quicksand:wght@300;400;500;600&display=swap");

.gallery-hub-body {
  --gallery-font: "Quicksand", "Helvetica Neue", Arial, sans-serif;
  --gallery-album-font: "Comfortaa", "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--gallery-font);
  --font-heading: var(--gallery-font);
  --font-family: var(--gallery-font);
  --gallery-bg: #f8faf7;
  --gallery-surface: #ffffff;
  --gallery-text: #18211f;
  --gallery-muted: rgba(24, 33, 31, 0.62);
  --gallery-line: rgba(24, 33, 31, 0.12);
  --gallery-accent: #2f6f62;
  --gallery-accent-soft: #dfeee9;

  margin: 0;
  background: var(--gallery-bg);
  color: var(--gallery-text);
  font-family: var(--gallery-font);
  font-weight: 400;
}

.gallery-hub-body :where(button, input, textarea, select) {
  font-family: var(--gallery-font);
}

.gallery-hub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--gallery-line);
  background: rgba(248, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

.gallery-hub-brand,
.gallery-hub-nav a,
.gallery-link-button {
  color: inherit;
  text-decoration: none;
}

.gallery-hub-brand {
  display: grid;
  line-height: 1.05;
}

.gallery-hub-brand span {
  font-weight: 600;
}

.gallery-hub-brand small,
.gallery-hub-nav span {
  color: var(--gallery-muted);
  font-size: 0.85rem;
}

.gallery-hub-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gallery-muted);
  cursor: pointer;
  font: inherit;
}

.gallery-hub-main {
  --gallery-main-pad: clamp(1.25rem, 4vw, 3rem);

  min-height: calc(100vh - 4rem);
  padding: var(--gallery-main-pad);
}

.gallery-flash {
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gallery-line);
  border-radius: 0.45rem;
  background: var(--gallery-surface);
}

.gallery-login-shell,
.gallery-empty-state {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.gallery-login-panel,
.gallery-empty-panel {
  width: min(100%, 32rem);
}

.gallery-login-panel h1,
.gallery-page-title h1,
.gallery-empty-panel h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.gallery-album-header h2 {
  font-family: var(--gallery-album-font);
}

.gallery-login-panel p,
.gallery-page-title p,
.gallery-empty-panel p {
  color: var(--gallery-muted);
  line-height: 1.7;
}

.gallery-login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 1.1rem 1rem;
  border: 1px solid var(--gallery-line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--gallery-text);
  font: inherit;
}

.gallery-login-form button,
.gallery-download-link,
.gallery-approval-button,
.gallery-group-card {
  border-radius: 0.45rem;
}

.gallery-login-form button,
.gallery-approval-button {
  border: 0;
  padding: 1rem 1.15rem;
  background: var(--gallery-accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.gallery-page-title {
  max-width: 92rem;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--gallery-muted);
}

.gallery-filter-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.22rem;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.gallery-filter-control button {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gallery-muted);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-filter-control button.is-active {
  background: var(--gallery-accent);
  color: #fff;
}

.gallery-group-grid {
  max-width: 92rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.gallery-group-card {
  display: grid;
  min-height: 12rem;
  padding: 1.25rem;
  align-content: end;
  border: 1px solid var(--gallery-line);
  background: var(--gallery-surface);
  color: inherit;
  text-decoration: none;
}

.gallery-album {
  width: calc(100% + (var(--gallery-main-pad) * 2));
  margin-inline: calc(var(--gallery-main-pad) * -1);
  padding: clamp(4.5rem, 8vw, 7rem) var(--gallery-main-pad);
}

.gallery-album.is-base {
  background: #dde6df;
}

.gallery-album.is-alt {
  background: #c8d6ce;
}

.gallery-album-inner {
  max-width: 92rem;
  margin: 0 auto;
}

.gallery-album-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.gallery-album-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
}

.gallery-album-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  color: var(--gallery-muted);
}

.gallery-bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.gallery-bundle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 3.15rem;
  padding: 0.75rem 1.45rem;
  border: 1px solid rgba(24, 33, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gallery-text);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.gallery-bundle-link i {
  font-size: 1.05rem;
}

.gallery-bundle-link:hover {
  background: #fff;
  border-color: rgba(24, 33, 31, 0.28);
}

.gallery-bundle-link.is-disabled {
  background: rgba(255, 255, 255, 0.38);
  color: rgba(24, 33, 31, 0.42);
  cursor: not-allowed;
  pointer-events: none;
}

.gallery-bundle-link.is-disabled:hover {
  border-color: rgba(24, 33, 31, 0.16);
  background: rgba(255, 255, 255, 0.38);
}

.gallery-publish-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.gallery-publish-actions[hidden] {
  display: none;
}

.gallery-publish-feedback {
  width: fit-content;
  max-width: min(100%, 72rem);
  margin: 0.85rem auto 0;
  padding: 0.78rem 1.1rem;
  border: 1px solid rgba(47, 111, 98, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gallery-accent);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.3;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-publish-feedback[hidden] {
  display: none;
}

.gallery-publish-form {
  margin: 0;
}

.gallery-publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 3.25rem;
  padding: 0.78rem 1.65rem;
  border: 1px solid rgba(24, 33, 31, 0.18);
  border-radius: 999px;
  background: var(--gallery-accent);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.gallery-publish-button:hover {
  background: #25594f;
}

.gallery-masonry {
  --gallery-photo-gap: 1rem;

  column-count: 4;
  column-gap: var(--gallery-photo-gap);
  line-height: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-album.is-filtering .gallery-masonry {
  opacity: 0.58;
  transform: translateY(0.25rem);
}

.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 var(--gallery-photo-gap);
  break-inside: avoid;
  line-height: normal;
  animation: gallery-filter-in 180ms ease both;
}

.gallery-photo.is-filtered-out {
  display: none;
}

@keyframes gallery-filter-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--gallery-accent-soft);
}

.gallery-photo-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  border-radius: 0 0 var(--radius) var(--radius);
}

.gallery-photo-status {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
}

.gallery-photo-actions {
  display: flex;
  flex: 1 1 10rem;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.gallery-download-link {
  flex: 0 0 auto;
  padding: 0.38rem 0.6rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--gallery-text);
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.gallery-approval-button {
  flex: 0 0 auto;
  padding: 0.42rem 0.62rem;
  background: #1f8f5f;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.gallery-approval-button.is-approved {
  background: #f4c58b;
  color: #4d2f12;
}

.gallery-approval-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.gallery-approval-button.is-error {
  background: #9f1d18;
}

@media (max-width: 1100px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (max-width: 760px) {
  .gallery-hub-header,
  .gallery-album-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .gallery-masonry {
    column-count: 1;
  }
}
