@import url("/assets/css/style.css");
@import url("/assets/css/modules/theme.css");
@import url("/assets/css/modules/nav.css");
@import url("/assets/css/modules/gallery.css");
@import url("/assets/css/modules/lightbox.css");
@import url("/assets/css/modules/icons.css");

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-width: 280px;
}

.page-content {
  min-height: calc(100dvh - 80px);
  padding: 0.9rem 0;
}

.gallery-site-header > .wrapper {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

.gallery-site-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}

.gallery-site-title .site-title-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.protected-gallery-login {
  width: 100%;
  margin: 0;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.protected-gallery-login h1,
.protected-gallery-title {
  margin: 0;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.protected-gallery-login h1 {
  font-size: 2rem;
}

.protected-gallery-login > p {
  max-width: 620px;
  color: var(--muted);
}

.protected-gallery-form {
  max-width: 620px;
  margin-top: 1.5rem;
}

.protected-gallery-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 650;
}

.protected-gallery-form__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.protected-gallery-form input,
.protected-gallery-form button,
.protected-gallery-logout {
  min-height: var(--tap-target-min, 44px);
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  box-sizing: border-box;
}

.protected-gallery-form input {
  width: 100%;
  padding: 0.55rem 0.7rem;
}

.protected-gallery-form button,
.protected-gallery-logout {
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-weight: 650;
}

.protected-gallery-form button:hover,
.protected-gallery-form button:focus-visible,
.protected-gallery-logout:hover,
.protected-gallery-logout:focus-visible {
  background: color-mix(in srgb, var(--card) 72%, var(--fg) 8%);
}

.protected-gallery-form input:focus-visible,
.protected-gallery-form button:focus-visible,
.protected-gallery-logout:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 2px;
}

.protected-gallery-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.protected-gallery-status {
  min-height: 1.5rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.protected-gallery-title {
  font-size: 1.65rem;
  line-height: 1.3;
}

.gallery-node-header .protected-gallery-title {
  margin: 0;
}

.protected-gallery-event-date {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.protected-gallery-description,
.protected-gallery-usage,
.protected-gallery-contact,
.protected-gallery-empty {
  max-width: 760px;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.protected-gallery-contact a,
.protected-gallery-contact a:visited {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.protected-gallery-logout {
  height: 40px;
  min-height: 40px;
  padding: 0.15rem 0.65rem;
  border-radius: 4px;
  background: var(--card);
  color: var(--fg);
  font-weight: 400;
  white-space: nowrap;
}

.protected-gallery-actions-bar {
  height: 0;
  min-height: 0;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.protected-gallery-actions-bar .gallery-sticky-actions {
  pointer-events: auto;
}

.gallery-sticky-actions .protected-gallery-top-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--fg) !important;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-sticky-actions .protected-gallery-top-button:hover,
.gallery-sticky-actions .protected-gallery-top-button:focus-visible {
  background: color-mix(in srgb, var(--card) 72%, var(--fg) 8%);
  color: var(--fg) !important;
  text-decoration: none;
}

.gallery-sticky-actions .protected-gallery-top-button:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 2px;
}

.gallery-node-header {
  max-width: 100%;
  min-height: 40px;
  margin-bottom: 0;
  padding-right: 9rem;
}

.photo-gallery {
  margin-top: 0.75rem;
}

.protected-gallery-downloads {
  margin: 0.75rem 0 0;
}

.protected-gallery-download-all {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-sizing: border-box;
  background: var(--card);
  color: var(--fg);
  font-size: 0.95rem;
  text-decoration: none;
}

.protected-gallery-download-all:hover,
.protected-gallery-download-all:focus-visible {
  background: color-mix(in srgb, var(--card) 72%, var(--fg) 8%);
  color: var(--fg);
  text-decoration: none;
}

.photo-technical-details h3.photo-technical-details__heading {
  margin: 0;
  padding: 0.35rem 0.65rem 0;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 650;
}

.protected-gallery-with-details .gallery-node-header {
  padding-right: 0;
}

.protected-gallery-with-details .gallery-node-header h1.protected-gallery-title {
  padding-right: 9rem;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 1.65rem;
}

@media (max-width: 600px) {
  .protected-gallery-with-details .gallery-node-header {
    padding-top: 2.75rem;
  }

  .protected-gallery-with-details .gallery-node-header h1.protected-gallery-title {
    padding-right: 0;
    font-size: 1.35rem;
  }

  .protected-gallery-with-details .protected-gallery-login h1 {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 1.35rem;
  }

  .protected-gallery-login h1,
  .protected-gallery-title {
    font-size: 1.05rem;
  }

  .gallery-node-header {
    padding-right: 7.75rem;
  }

  .protected-gallery-form__controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .protected-gallery-form button {
    width: 100%;
  }

  .gallery-sticky-actions {
    gap: 0.35rem;
  }

  .protected-gallery-logout,
  .gallery-sticky-actions .protected-gallery-top-button {
    height: 38px;
    min-height: 38px;
    min-width: 0;
    padding-inline: 0.5rem;
    font-size: 0.82rem;
  }

  .gallery-sticky-actions .protected-gallery-top-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 1.15rem;
  }
}
