.proj-gallery .proj-thumb {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.proj-gallery .proj-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;

  background: var(--bg-elev-0);
}

.card__slider--ghost {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.proj-gallery.card {
  display: flex;
  margin: 30px auto 40px;
  --card-pad: 0;
  --card-radius: 0;
  --card-shadow: none;
  background: none;
  box-shadow: none;
  border: none;

  padding: 0;
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
}

.proj-gallery .card__content {
  padding: 0;
  padding-inline: var(--side-pad);
  background: none;
}

.proj-gallery .proj-grid {
  display: grid;
  gap: 16px;

  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

  grid-auto-flow: dense;
  width: 100%;
}

.proj-gallery .proj-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-elev-0);
}

.proj-gallery .proj-thumb {
  display: block;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.proj-thumb.ratio-square {
  grid-column: span 1;
  aspect-ratio: 1 / 1;
}

.proj-thumb.ratio-landscape {
  grid-column: span 1;
  aspect-ratio: 4 / 3;
}

.proj-thumb.ratio-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.proj-thumb.ratio-portrait {
  grid-row: span 1;
  aspect-ratio: 3 / 4;
}

.proj-thumb.ratio-tall {
  grid-row: span 2;
  aspect-ratio: 9 / 16;
}

@media (max-width: 768px) {
  .proj-thumb.ratio-wide {
    grid-column: span 1;
  }
  .proj-thumb.ratio-tall {
    grid-row: span 1;
  }
}

@media (min-width: 1500px) {
  .proj-gallery.card,
  .proj-gallery .card__content {
    max-width: calc(
      4 * var(--max-card-width) + 3 * var(--gap, 24px) + 0 *
        var(--side-pad, 10px)
    );
    padding-inline: 0;
  }
}

@media (max-width: 915px) {
  .proj-gallery.card,
  .proj-gallery .card__content {
    padding-inline: 0px;
  }
}

.tool-row--left {
  display: flex;
  flex-wrap: nowrap;
}

.tool-text-btn {
  margin: 0px 5px;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: none;
  color: var(--color-primary, #ddd);
  font: 600 14px / 1.2 var(--font-ui);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.tool-text-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.tool-text-btn.is-active {
  border-color: var(--color-primary, #4ea8de);
  background: color-mix(in srgb, var(--color-primary, #fff) 10%, transparent);
}

.dash__toolbar.dash__toolbar--guest {
  display: flex !important;
  justify-content: center;
  gap: 0px;
}

.tool-text-btn--muted {
  color: var(--color-text-muted, #777);
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

.tool-text-btn--muted:hover {
  opacity: 0.5;
}

.guest-floating-ui {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--glass-bg, rgba(30, 30, 30, 0.55));
  border: 1px solid var(--glass-bd, rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guest-floating-ui .icon-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 999px;

  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.guest-floating-ui #dbLangAbbr.abbr {
  font-size: 11px;
  line-height: 1;
  margin-left: 6px;
  opacity: 0.9;
}

.guest-floating-ui {
  gap: 0;
}

.guest-floating-ui #dbThemeBtn {
  position: relative;
}

.guest-floating-ui #dbLangBtn {
  gap: 4px;
  padding: 0 8px;
}

.guest-floating-ui #dbLangAbbr.abbr {
  margin-left: 2px;
}

.guest-floating-ui .ico {
  width: 18px;
  height: 18px;
}

.guest-floating-ui #dbThemeBtn .ico {
  width: 18px;
  height: 18px;
}

.guest-link-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding-bottom: 2px;
  font: 600 10px / 1.2 var(--font-ui-menu);
  color: var(--color-primary, #ddd);
  opacity: 20%;
  text-align: center;
}

.pk-footer__inner {
  gap: 4px;
  flex-direction: column;
  margin: 2px auto 0px;
  padding-bottom: 4px;
}

#pkCabinetFooter {
  padding-bottom: 0px !important;
}

.dash__divider--horizontal {
  margin: 2px !important;
}

@media (max-width: 600px) {
  .guest-floating-ui {
    gap: 10px;
  }

  .proj-gallery .proj-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
