.photos-main {
  min-width: 0;
}

.photos-hero {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;

  min-height: 235px;
  padding: 34px;

  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.95),
      rgba(8, 8, 8, 0.73),
      rgba(8, 8, 8, 0.36)
    ),
    url("../images/hero.png");

  background-position: center 48%;
  background-size: cover;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-small);
}

.photos-hero::after {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(249, 201, 47, 0.09),
      transparent 42%
    );

  content: "";
  pointer-events: none;
}

.photos-hero-content,
.photos-hero-stats {
  position: relative;
  z-index: 2;
}

.photos-hero-content {
  width: min(680px, 100%);
}

.photos-eyebrow,
.photos-section-kicker {
  color: var(--yellow);

  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photos-hero h1 {
  margin: 8px 0 11px;

  color: var(--white);

  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.photos-hero p {
  max-width: 620px;
  margin: 0;

  color: #d2ccc3;
  font-size: 0.82rem;
  line-height: 1.75;
}

.photos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 22px;
}

.photos-primary-button,
.photos-secondary-button,
.photos-primary-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 45px;
  padding: 0 18px;

  border-radius: 999px;

  font-size: 0.67rem;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.photos-primary-button,
.photos-primary-small-button {
  color: #171207;

  background:
    linear-gradient(
      135deg,
      var(--yellow-light),
      var(--yellow)
    );

  box-shadow:
    0 12px 28px rgba(249, 201, 47, 0.2);
}

.photos-secondary-button {
  color: var(--white);
  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.2);

  backdrop-filter: blur(10px);
}

.photos-primary-button:hover,
.photos-secondary-button:hover,
.photos-primary-small-button:hover {
  transform: translateY(-2px);
}

.photos-primary-small-button {
  min-height: 38px;
  padding: 0 14px;
}

.photos-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 10px;

  min-width: 360px;
}

.photos-hero-stats div {
  display: grid;
  gap: 3px;

  min-height: 88px;
  padding: 16px;

  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;

  backdrop-filter: blur(10px);
}

.photos-hero-stats strong {
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.photos-hero-stats span {
  color: var(--muted);
  font-size: 0.62rem;
}

.photos-navigation {
  position: sticky;
  top: calc(var(--header-height) + var(--livebar-height) + 10px);
  z-index: 60;

  display: flex;
  align-items: center;
  gap: 5px;

  margin-top: 16px;
  padding: 8px;

  overflow-x: auto;

  background: rgba(18, 18, 18, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow-small);
  backdrop-filter: blur(16px);
}

.photos-navigation button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;

  min-height: 40px;
  padding: 0 15px;

  color: var(--muted);
  background: transparent;
  border-radius: 10px;

  font-size: 0.66rem;
  font-weight: 850;

  cursor: pointer;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.photos-navigation button:hover,
.photos-navigation button.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.065);
}

.photos-navigation button.active {
  box-shadow:
    inset 0 -2px 0 var(--yellow);
}

.photos-navigation button span {
  display: grid;
  place-items: center;

  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.52rem;
}

.photos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-top: 16px;
  padding: 15px 17px;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow-small);
}

.photos-toolbar-left,
.photos-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.photos-select-all {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #d1cbc2;
  font-size: 0.64rem;

  cursor: pointer;
}

.photos-select-all input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.photos-select-all > span {
  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.photos-select-all > span::after {
  color: #171207;
  font-size: 0.62rem;
  font-weight: 900;

  content: "✓";
  opacity: 0;
}

.photos-select-all input:checked + span {
  background: var(--yellow);
  border-color: var(--yellow);
}

.photos-select-all input:checked + span::after {
  opacity: 1;
}

.photos-select-all input:focus-visible + span {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

#selectedPhotosCount {
  color: var(--muted);
  font-size: 0.58rem;
}

.photos-toolbar-actions button,
.photos-toolbar-actions select {
  min-height: 36px;

  border-radius: 999px;

  font-size: 0.59rem;
  font-weight: 800;
}

.photos-toolbar-actions button {
  padding: 0 12px;

  color: #d2ccc3;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);

  cursor: pointer;
}

.photos-toolbar-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.photos-toolbar-actions button:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.075);
}

.photos-toolbar-actions .photos-danger-button {
  color: #ffd0d0;
  background: rgba(231, 53, 53, 0.08);
  border-color: rgba(231, 53, 53, 0.18);
}

.photos-toolbar-actions select {
  padding: 0 34px 0 13px;

  color: #ded8cf;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  outline: none;

  color-scheme: dark;

  cursor: pointer;
}

.photos-toolbar-actions select:focus {
  border-color: rgba(249, 201, 47, 0.55);

  box-shadow:
    0 0 0 3px rgba(249, 201, 47, 0.08);
}

.photos-content-section,
.albums-content-section {
  margin-top: 16px;
  padding: 22px;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-small);
}

.photos-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 20px;
}

.photos-section-header h2 {
  margin: 5px 0 0;

  color: var(--white);

  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.photos-section-header p {
  margin: 7px 0 0;

  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.6;
}

.photos-view-switch {
  display: flex;
  gap: 7px;
}

.photos-view-switch button {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 10px;

  font-size: 1rem;

  cursor: pointer;
}

.photos-view-switch button:hover,
.photos-view-switch button.active {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  position: relative;

  min-width: 0;

  background:
    linear-gradient(
      145deg,
      rgba(31, 31, 31, 0.98),
      rgba(14, 14, 14, 0.99)
    );

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.photo-card:hover {
  transform: translateY(-4px);

  border-color: rgba(249, 201, 47, 0.3);

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3);
}

.photo-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;

  display: grid;
  place-items: center;

  cursor: pointer;
}

.photo-select input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.photo-select span {
  display: grid;
  place-items: center;

  width: 24px;
  height: 24px;

  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;

  backdrop-filter: blur(8px);
}

.photo-select span::after {
  color: #171207;
  font-size: 0.62rem;
  font-weight: 900;

  content: "✓";
  opacity: 0;
}

.photo-select input:checked + span {
  background: var(--yellow);
  border-color: var(--yellow);
}

.photo-select input:checked + span::after {
  opacity: 1;
}

.photo-card-preview {
  position: relative;

  display: grid;
  place-items: center;

  width: 100%;
  aspect-ratio: 0.9 / 1;

  overflow: hidden;

  color: var(--white);
  border-radius: 16px 16px 0 0;

  cursor: pointer;
}

.photo-card-preview::after {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.08) 55%,
      rgba(0, 0, 0, 0.65)
    );

  content: "";
}

.photo-card-preview:hover .photo-view-icon {
  opacity: 1;
  transform: scale(1);
}

.photo-view-icon {
  position: relative;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;

  opacity: 0;
  transform: scale(0.85);

  backdrop-filter: blur(8px);

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.photo-main-badge,
.photo-status-badge,
.photo-private-badge {
  position: absolute;
  z-index: 4;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0 8px;

  border-radius: 999px;

  font-size: 0.5rem;
  font-weight: 900;
}

.photo-main-badge {
  top: 10px;
  right: 10px;

  color: #171207;
  background: var(--yellow);
}

.photo-status-badge {
  right: 10px;
  bottom: 10px;
}

.photo-status-badge.is-approved {
  color: #10200e;
  background: var(--green);
}

.photo-status-badge.is-pending {
  color: #171207;
  background: var(--yellow);
}

.photo-private-badge {
  top: 10px;
  right: 10px;

  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(8px);
}

.photo-pending-overlay {
  position: relative;
  z-index: 3;

  display: grid;
  justify-items: center;
  gap: 6px;

  max-width: 180px;
  padding: 18px;

  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;

  text-align: center;

  backdrop-filter: blur(10px);
}

.photo-pending-overlay > span {
  font-size: 1.2rem;
}

.photo-pending-overlay strong {
  font-size: 0.65rem;
}

.photo-pending-overlay small {
  color: #c6c0b7;
  font-size: 0.52rem;
  line-height: 1.5;
}

.photo-card-content {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  min-height: 72px;
  padding: 12px 13px;
}

.photo-card-content > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.photo-card-content strong {
  overflow: hidden;

  color: var(--white);

  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-card-content span {
  overflow: hidden;

  color: var(--muted);

  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-menu-button,
.album-menu-button {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  color: #d5cfc6;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 10px;

  cursor: pointer;
}

.photo-actions-menu,
.album-actions-menu {
  position: absolute;
  right: 10px;
  bottom: 56px;
  z-index: 20;

  width: 190px;
  padding: 7px;

  background: #171717;
  border: 1px solid var(--border-strong);
  border-radius: 13px;

  box-shadow: var(--shadow-large);
}

.photo-actions-menu button,
.album-actions-menu button {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 38px;
  padding: 0 11px;

  color: #d5cfc6;
  background: transparent;
  border-radius: 9px;

  font-size: 0.61rem;
  text-align: left;

  cursor: pointer;
}

.photo-actions-menu button:hover,
.album-actions-menu button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.photo-actions-menu button.is-danger,
.album-actions-menu button.is-danger {
  color: #ffbebe;
}

.photo-background-one {
  background:
    radial-gradient(circle at 42% 25%, #6f6a48, transparent 34%),
    linear-gradient(145deg, #38351f, #111111);
}

.photo-background-two {
  background:
    radial-gradient(circle at 42% 25%, #4d687d, transparent 34%),
    linear-gradient(145deg, #263b4a, #111111);
}

.photo-background-three {
  background:
    radial-gradient(circle at 42% 25%, #6f4d58, transparent 34%),
    linear-gradient(145deg, #3b2730, #111111);
}

.photo-background-four {
  background:
    radial-gradient(circle at 42% 25%, #6a5e39, transparent 34%),
    linear-gradient(145deg, #382f1e, #111111);
}

.photo-background-five {
  background:
    radial-gradient(circle at 42% 25%, #396e71, transparent 34%),
    linear-gradient(145deg, #213b3d, #111111);
}

.photo-background-six {
  background:
    radial-gradient(circle at 42% 25%, #74563c, transparent 34%),
    linear-gradient(145deg, #3d2d20, #111111);
}

.photo-background-seven {
  background:
    radial-gradient(circle at 42% 25%, #4b6c56, transparent 34%),
    linear-gradient(145deg, #28392e, #111111);
}

.photo-background-eight {
  background:
    radial-gradient(circle at 42% 25%, #755b7d, transparent 34%),
    linear-gradient(145deg, #3b3041, #111111);
}

.photo-background-nine {
  background:
    radial-gradient(circle at 42% 25%, #6a4747, transparent 34%),
    linear-gradient(145deg, #392525, #111111);
}

.photo-background-ten {
  background:
    radial-gradient(circle at 42% 25%, #4d556f, transparent 34%),
    linear-gradient(145deg, #282d3b, #111111);
}

.photo-background-eleven {
  background:
    radial-gradient(circle at 42% 25%, #6d5d46, transparent 34%),
    linear-gradient(145deg, #393126, #111111);
}

.photo-background-twelve {
  background:
    radial-gradient(circle at 42% 25%, #5e5e5e, transparent 34%),
    linear-gradient(145deg, #303030, #111111);
}

.photos-grid.is-list-view {
  grid-template-columns: 1fr;
}

.photos-grid.is-list-view .photo-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.photos-grid.is-list-view .photo-card-preview {
  aspect-ratio: auto;
  min-height: 140px;

  border-radius: 16px 0 0 16px;
}

.photos-grid.is-list-view .photo-card-content {
  min-height: 140px;
  padding: 18px;
}

.photos-grid.is-list-view .photo-actions-menu {
  right: 12px;
  bottom: 84px;
}

.photos-empty-state {
  display: grid;
  justify-items: center;

  padding: 70px 20px;

  text-align: center;
}

.photos-empty-state > span {
  display: grid;
  place-items: center;

  width: 78px;
  height: 78px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 50%;

  font-size: 1.8rem;
}

.photos-empty-state h3 {
  margin: 18px 0 7px;

  color: var(--white);
  font-size: 1.05rem;
}

.photos-empty-state p {
  margin: 0;

  color: var(--muted);
  font-size: 0.7rem;
}

.photos-empty-state button {
  margin-top: 18px;
  padding: 10px 17px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.65rem;
  font-weight: 900;

  cursor: pointer;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.album-card {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(31, 31, 31, 0.98),
      rgba(14, 14, 14, 0.99)
    );

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;

  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 201, 47, 0.3);
}

.album-cover {
  position: relative;

  display: grid;
  place-items: center;

  width: 100%;
  min-height: 230px;

  overflow: hidden;

  border-radius: 16px 16px 0 0;

  cursor: pointer;
}

.album-cover-public {
  background:
    radial-gradient(circle at 40% 25%, #4e6f73, transparent 35%),
    linear-gradient(145deg, #263b3e, #111111);
}

.album-cover-private {
  background:
    radial-gradient(circle at 40% 25%, #6e4d63, transparent 35%),
    linear-gradient(145deg, #392835, #111111);
}

.album-cover-travel {
  background:
    radial-gradient(circle at 40% 25%, #71613d, transparent 35%),
    linear-gradient(145deg, #392f20, #111111);
}

.album-cover::after {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(0, 0, 0, 0.5)
    );

  content: "";
}

.album-visibility-badge,
.album-photo-count {
  position: absolute;
  z-index: 4;

  padding: 5px 8px;

  border-radius: 999px;

  font-size: 0.5rem;
  font-weight: 900;
}

.album-visibility-badge {
  top: 10px;
  left: 10px;

  color: #171207;
  background: var(--yellow);
}

.album-visibility-badge.is-private {
  color: var(--white);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.album-photo-count {
  right: 10px;
  bottom: 10px;

  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.album-cover-stack {
  position: relative;
  z-index: 3;

  width: 110px;
  height: 90px;
}

.album-cover-stack span {
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;

  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.28);
}

.album-cover-stack span:nth-child(1) {
  transform: rotate(-9deg) translate(-8px, 4px);
}

.album-cover-stack span:nth-child(2) {
  transform: rotate(8deg) translate(8px, 4px);
}

.album-cover-stack span:nth-child(3) {
  background:
    linear-gradient(
      145deg,
      rgba(249, 201, 47, 0.18),
      rgba(231, 53, 53, 0.12)
    );
}

.album-card-content {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  min-height: 78px;
  padding: 13px;
}

.album-card-content > div:first-child {
  display: grid;
  gap: 3px;
}

.album-card-content strong {
  color: var(--white);
  font-size: 0.69rem;
}

.album-card-content span {
  color: var(--muted);
  font-size: 0.53rem;
}

.album-actions-menu {
  right: 10px;
  bottom: 62px;
}

.album-create-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;

  min-height: 308px;
  padding: 30px;

  color: var(--muted);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 10px,
      rgba(255, 255, 255, 0.025) 10px,
      rgba(255, 255, 255, 0.025) 20px
    );

  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 17px;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.album-create-card:hover {
  border-color: rgba(249, 201, 47, 0.45);
  transform: translateY(-4px);
}

.album-create-card > span {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  color: #171207;
  background: var(--yellow);
  border-radius: 50%;

  font-size: 1.25rem;
  font-weight: 900;
}

.album-create-card strong {
  margin-top: 5px;

  color: var(--white);
  font-size: 0.72rem;
}

.album-create-card small {
  color: var(--muted);
  font-size: 0.54rem;
  text-align: center;
}

.photos-summary-list {
  display: grid;
  gap: 7px;
}

.photos-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  min-height: 42px;
  padding: 0 10px;

  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.photos-summary-list span {
  color: var(--muted);
  font-size: 0.58rem;
}

.photos-summary-list strong {
  color: var(--white);
  font-size: 0.7rem;
}

.photo-moderation-icon {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  background:
    linear-gradient(
      135deg,
      rgba(249, 201, 47, 0.13),
      rgba(231, 53, 53, 0.1)
    );

  border-radius: 13px;
}

.photo-moderation-card h2 {
  margin: 14px 0 8px;

  color: var(--white);
  font-size: 0.82rem;
}

.photo-moderation-card p {
  margin: 0;

  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.65;
}

.photo-moderation-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-top: 12px;

  color: var(--yellow);
  font-size: 0.59rem;
  font-weight: 850;
}

.private-access-count {
  display: grid;
  place-items: center;

  min-width: 25px;
  height: 23px;
  padding: 0 7px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.55rem;
  font-weight: 900;
}

.private-access-list {
  display: grid;
  gap: 6px;
}

.private-access-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  min-height: 54px;
  padding: 7px;

  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
}

.private-access-list article > span:first-child,
.private-access-modal-list label > span:first-child {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  color: var(--white);
  border-radius: 50%;

  font-size: 0.64rem;
  font-weight: 900;
}

.private-access-list article div {
  display: grid;
  gap: 2px;
}

.private-access-list strong {
  color: var(--white);
  font-size: 0.62rem;
}

.private-access-list small {
  color: var(--muted);
  font-size: 0.5rem;
}

.private-access-list button {
  padding: 6px 8px;

  color: #ffd0d0;
  background: rgba(231, 53, 53, 0.08);
  border-radius: 999px;

  font-size: 0.49rem;
  font-weight: 800;

  cursor: pointer;
}

.private-access-manage {
  width: 100%;
  min-height: 35px;
  margin-top: 10px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.56rem;
  font-weight: 850;

  cursor: pointer;
}

.photos-modal,
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 500;

  display: grid;
  place-items: center;

  padding: 20px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 200ms ease;
}

.photos-modal.is-open,
.photo-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.photos-modal-backdrop,
.photo-viewer-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.photos-modal-dialog,
.photo-viewer-dialog {
  position: relative;
  z-index: 2;

  width: min(680px, 100%);
  max-height: calc(100vh - 40px);

  overflow-y: auto;

  background:
    linear-gradient(
      145deg,
      #1a1a1a,
      #0f0f0f
    );

  border: 1px solid var(--border-strong);
  border-radius: 22px;

  box-shadow: var(--shadow-large);

  transform: translateY(20px) scale(0.98);

  transition: transform 200ms ease;
}

.photos-modal.is-open .photos-modal-dialog,
.photo-viewer.is-open .photo-viewer-dialog {
  transform: translateY(0) scale(1);
}

.photos-modal-header,
.photo-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  min-height: 72px;
  padding: 14px 17px;

  border-bottom: 1px solid var(--border);
}

.photos-modal-header > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.photos-modal-header > div > span {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  background: rgba(249, 201, 47, 0.09);
  border-radius: 12px;
}

.photos-modal-header h2,
.photo-viewer-header h2 {
  margin: 0;

  color: var(--white);
  font-size: 0.84rem;
}

.photos-modal-header div div,
.photo-viewer-header > div {
  display: grid;
  gap: 2px;
}

.photos-modal-header div div span,
.photo-viewer-header span {
  color: var(--muted);
  font-size: 0.53rem;
}

.photos-modal-header > button,
.photo-viewer-header > button {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 11px;

  font-size: 1.25rem;

  cursor: pointer;
}

.photo-upload-form,
.album-form,
.photo-edit-form,
.private-access-modal-content {
  display: grid;
  gap: 16px;

  padding: 18px;
}

.photo-upload-dropzone {
  display: grid;
  justify-items: center;

  min-height: 230px;
  padding: 30px 20px;

  color: var(--muted);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 10px,
      rgba(255, 255, 255, 0.025) 10px,
      rgba(255, 255, 255, 0.025) 20px
    );

  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;

  text-align: center;

  cursor: pointer;
}

.photo-upload-dropzone input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.photo-upload-dropzone > span {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  background: rgba(249, 201, 47, 0.1);
  border-radius: 50%;

  font-size: 1.35rem;
}

.photo-upload-dropzone strong {
  margin-top: 13px;

  color: var(--white);
  font-size: 0.72rem;
}

.photo-upload-dropzone small {
  margin-top: 4px;

  color: var(--muted);
  font-size: 0.55rem;
}

.photo-upload-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.photo-upload-preview-item {
  position: relative;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.photo-upload-preview-item img {
  width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: cover;
}

.photo-upload-preview-item div {
  display: grid;
  gap: 2px;

  padding: 8px;
}

.photo-upload-preview-item strong {
  overflow: hidden;

  color: var(--white);

  font-size: 0.54rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-upload-preview-item span {
  color: var(--muted);
  font-size: 0.48rem;
}

.photo-upload-preview-item button {
  position: absolute;
  top: 6px;
  right: 6px;

  display: grid;
  place-items: center;

  width: 27px;
  height: 27px;

  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;

  cursor: pointer;
}

.photo-upload-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.photos-form-group {
  display: grid;
  gap: 8px;
}

.photos-form-group label {
  color: #d8d2ca;
  font-size: 0.63rem;
  font-weight: 800;
}

.photos-form-group input,
.photos-form-group select,
.photos-form-group textarea {
  width: 100%;

  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;

  font-size: 0.68rem;
}

.photos-form-group input,
.photos-form-group select {
  height: 48px;
  padding: 0 13px;
}

.photos-form-group textarea {
  min-height: 110px;
  padding: 13px;

  line-height: 1.6;
  resize: vertical;
}

.photos-form-group select {
  color-scheme: dark;
}

.photos-form-group option {
  color: var(--white);
  background: #171717;
}

.photos-form-group input:focus,
.photos-form-group select:focus,
.photos-form-group textarea:focus {
  border-color: rgba(249, 201, 47, 0.58);

  box-shadow:
    0 0 0 4px rgba(249, 201, 47, 0.08);
}

.photo-upload-confirmation {
  position: relative;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;

  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.55;

  cursor: pointer;
}

.photo-upload-confirmation input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.photo-upload-confirmation > span:first-of-type {
  display: grid;
  place-items: center;

  width: 21px;
  height: 21px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.photo-upload-confirmation > span:first-of-type::after {
  color: #171207;
  font-size: 0.62rem;
  font-weight: 900;

  content: "✓";
  opacity: 0;
}

.photo-upload-confirmation input:checked + span {
  background: var(--yellow);
  border-color: var(--yellow);
}

.photo-upload-confirmation input:checked + span::after {
  opacity: 1;
}

.photos-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;

  padding-top: 4px;
}

.photos-modal-cancel,
.photos-modal-submit {
  min-height: 40px;
  padding: 0 15px;

  border-radius: 999px;

  font-size: 0.6rem;
  font-weight: 850;

  cursor: pointer;
}

.photos-modal-cancel {
  color: #d4cec5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.photos-modal-submit {
  color: #171207;
  background: var(--yellow);
}

.photo-edit-preview {
  display: grid;
  place-items: center;
}

.photo-edit-preview-image {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;

  border: 1px solid var(--border);
  border-radius: 16px;
}

.photo-viewer-dialog {
  width: min(1050px, 100%);
}

.photo-viewer-content {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 570px;
  padding: 20px 74px;

  background: #090909;
}

.photo-viewer-image {
  width: min(760px, 100%);
  aspect-ratio: 1.3 / 1;

  border: 1px solid var(--border);
  border-radius: 16px;
}

.photo-viewer-navigation {
  position: absolute;
  top: 50%;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 50%;

  font-size: 1.6rem;

  cursor: pointer;
  transform: translateY(-50%);
}

.photo-viewer-previous {
  left: 18px;
}

.photo-viewer-next {
  right: 18px;
}

.photo-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 14px 17px;

  border-top: 1px solid var(--border);
}

.photo-viewer-footer > div:first-child {
  display: grid;
  gap: 3px;
}

.photo-viewer-footer strong {
  color: var(--white);
  font-size: 0.68rem;
}

.photo-viewer-footer span {
  color: var(--muted);
  font-size: 0.54rem;
}

.photo-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.photo-viewer-actions button {
  min-height: 36px;
  padding: 0 12px;

  color: #d5cfc6;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.56rem;
  font-weight: 800;

  cursor: pointer;
}

.photo-viewer-actions button.is-danger {
  color: #ffd0d0;
  background: rgba(231, 53, 53, 0.08);
  border-color: rgba(231, 53, 53, 0.18);
}

.private-access-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;

  min-height: 46px;
  padding: 0 13px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.private-access-search span {
  color: var(--muted);
}

.private-access-search input {
  min-width: 0;
  height: 44px;
  padding: 0 11px;

  color: var(--white);
  background: transparent;
  border: 0;
  outline: none;

  font-size: 0.67rem;
}

.private-access-modal-list {
  display: grid;
  gap: 7px;
}

.private-access-modal-list label {
  position: relative;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;

  min-height: 62px;
  padding: 9px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;

  cursor: pointer;
}

.private-access-modal-list label > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.private-access-modal-list strong {
  color: var(--white);
  font-size: 0.63rem;
}

.private-access-modal-list small {
  color: var(--muted);
  font-size: 0.51rem;
}

.private-access-modal-list input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.private-access-switch {
  position: relative;

  width: 39px;
  height: 22px;

  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.private-access-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;

  width: 14px;
  height: 14px;

  background: #89847c;
  border-radius: 50%;

  content: "";

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.private-access-modal-list input:checked + .private-access-switch {
  background: rgba(249, 201, 47, 0.18);
  border-color: rgba(249, 201, 47, 0.48);
}

.private-access-modal-list input:checked + .private-access-switch::after {
  background: var(--yellow);
  transform: translateX(17px);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1580px) {
  .photos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .photos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .photos-hero {
    align-items: flex-start;
    flex-direction: column;

    min-height: 310px;
  }

  .photos-hero-stats {
    width: 100%;
    min-width: 0;
  }

  .photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photos-grid.is-list-view .photo-card {
    grid-template-columns: 125px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .photos-hero {
    min-height: 360px;
    padding: 25px;
  }

  .photos-hero h1 {
    font-size: 2.6rem;
  }

  .photos-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photos-hero-stats div {
    min-height: 75px;
    padding: 12px;
  }

  .photos-navigation {
    top: calc(var(--header-height) + var(--livebar-height) + 5px);
  }

  .photos-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .photos-toolbar-actions {
    width: 100%;
  }

  .photos-toolbar-actions button,
  .photos-toolbar-actions select {
    flex: 1 1 auto;
  }

  .photos-content-section,
  .albums-content-section {
    padding: 17px;
  }

  .photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .albums-grid {
    grid-template-columns: 1fr;
  }

  .photo-upload-options {
    grid-template-columns: 1fr;
  }

  .photo-viewer-content {
    min-height: 430px;
    padding: 18px 54px;
  }
}

@media (max-width: 560px) {
  .photos-hero {
    min-height: 420px;
    padding: 21px;
  }

  .photos-hero h1 {
    font-size: 2.3rem;
  }

  .photos-hero-actions {
    display: grid;
    width: 100%;
  }

  .photos-primary-button,
  .photos-secondary-button {
    width: 100%;
  }

  .photos-hero-stats {
    gap: 7px;
  }

  .photos-hero-stats div {
    padding: 10px;
  }

  .photos-hero-stats strong {
    font-size: 1rem;
  }

  .photos-hero-stats span {
    font-size: 0.53rem;
  }

  .photos-section-header {
    align-items: flex-start;
  }

  .photos-grid {
    grid-template-columns: 1fr;
  }

  .photo-card-preview {
    aspect-ratio: 1.25 / 1;
  }

  .photos-grid.is-list-view .photo-card {
    display: block;
  }

  .photos-grid.is-list-view .photo-card-preview {
    min-height: 230px;
    border-radius: 16px 16px 0 0;
  }

  .albums-grid {
    grid-template-columns: 1fr;
  }

  .photo-upload-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photos-modal-actions {
    display: grid;
  }

  .photos-modal-actions button {
    width: 100%;
  }

  .photo-viewer-content {
    min-height: 360px;
    padding: 16px 47px;
  }

  .photo-viewer-image {
    aspect-ratio: 0.9 / 1;
  }

  .photo-viewer-navigation {
    width: 38px;
    height: 38px;
  }

  .photo-viewer-previous {
    left: 7px;
  }

  .photo-viewer-next {
    right: 7px;
  }

  .photo-viewer-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-viewer-actions {
    width: 100%;
  }

  .photo-viewer-actions button {
    flex: 1 1 auto;
  }
}

@media (max-width: 390px) {
  .photos-hero {
    min-height: 500px;
  }

  .photos-hero-stats {
    grid-template-columns: 1fr;
  }

  .photos-hero-stats div {
    min-height: 58px;
  }

  .photos-content-section,
  .albums-content-section {
    padding: 14px;
  }

  .photo-upload-preview-list {
    grid-template-columns: 1fr;
  }

  .photos-view-switch {
    display: none;
  }
}


/* ==========================================================
   PHOTO VIEWER BUTTONS — FINAL FIX 20260811

   De actuele HTML gebruikt ID's in plaats van de oudere
   .photo-viewer-navigation / .photo-viewer-actions classes.
   ========================================================== */


/* ----------------------------------------------------------
   Vorige / volgende foto
   ---------------------------------------------------------- */

#previousPhotoButton,
#nextPhotoButton {
  position: absolute;
  top: 50%;
  z-index: 4;

  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;
  padding: 0;

  color: #ffffff;

  background:
    rgba(18, 18, 18, 0.88);

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 50%;

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, 0.42);

  appearance: none;
  -webkit-appearance: none;

  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  transform:
    translateY(-50%);

  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}


#previousPhotoButton {
  left: 18px;
}


#nextPhotoButton {
  right: 18px;
}


#previousPhotoButton:hover,
#nextPhotoButton:hover,
#previousPhotoButton:focus-visible,
#nextPhotoButton:focus-visible {
  color: #171207;

  background:
    var(--yellow);

  border-color:
    var(--yellow);

  outline: none;

  transform:
    translateY(-50%)
    scale(1.06);
}


#previousPhotoButton:disabled,
#nextPhotoButton:disabled {
  opacity: 0.3;
  cursor: default;
}


/* ----------------------------------------------------------
   Footer acties
   ---------------------------------------------------------- */

.photo-viewer-footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}


#viewerSetAvatarButton,
#viewerSetCoverButton,
#viewerDeleteButton {
  min-height: 36px;
  padding:
    0
    12px;

  color:
    #d5cfc6;

  background:
    rgba(255, 255, 255, 0.045);

  border:
    1px solid
    var(--border);

  border-radius:
    999px;

  appearance:
    none;

  -webkit-appearance:
    none;

  font-family:
    inherit;

  font-size:
    0.56rem;

  font-weight:
    800;

  cursor:
    pointer;

  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}


#viewerSetAvatarButton:hover,
#viewerSetAvatarButton:focus-visible,
#viewerSetCoverButton:hover,
#viewerSetCoverButton:focus-visible {
  color:
    #171207;

  background:
    var(--yellow);

  border-color:
    var(--yellow);

  outline:
    none;
}


#viewerDeleteButton {
  color:
    #ffd0d0;

  background:
    rgba(231, 53, 53, 0.08);

  border-color:
    rgba(231, 53, 53, 0.22);
}


#viewerDeleteButton:hover,
#viewerDeleteButton:focus-visible {
  color:
    #ffffff;

  background:
    rgba(231, 53, 53, 0.26);

  border-color:
    rgba(255, 95, 95, 0.55);

  outline:
    none;
}


/* ----------------------------------------------------------
   Mobiel
   ---------------------------------------------------------- */

@media (max-width: 560px) {

  #previousPhotoButton,
  #nextPhotoButton {
    width: 38px;
    height: 38px;

    font-size: 1.35rem;
  }


  #previousPhotoButton {
    left: 7px;
  }


  #nextPhotoButton {
    right: 7px;
  }


  .photo-viewer-footer > div:last-child {
    width: 100%;

    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 7px;
  }


  #viewerSetAvatarButton,
  #viewerSetCoverButton,
  #viewerDeleteButton {
    width: 100%;
    min-width: 0;
  }


  #viewerDeleteButton {
    grid-column:
      1 / -1;
  }

}


@media (max-width: 390px) {

  #viewerSetAvatarButton,
  #viewerSetCoverButton {
    grid-column:
      1 / -1;
  }

}

