#tab-albums .alb-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

#tab-albums .alb-list { display: flex; flex-direction: column; gap: 6px; }

#tab-albums .alb-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
#tab-albums .alb-item.active { border-color: currentColor; background: rgba(0, 0, 0, 0.04); }
#tab-albums .alb-item-title { font-weight: 600; font-size: 14px; }
#tab-albums .alb-item-meta { font-size: 11.5px; opacity: 0.65; }

#tab-albums .alb-block {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
#tab-albums .alb-block h3 { margin: 0 0 4px; font-size: 15px; }
#tab-albums .alb-block .note { font-size: 12.5px; opacity: 0.65; margin: 0 0 14px; }

#tab-albums .alb-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
#tab-albums .alb-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
#tab-albums .alb-checks { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
#tab-albums .alb-checks label { display: inline-flex; align-items: center; gap: 8px; }

#tab-albums table { width: 100%; border-collapse: collapse; font-size: 13px; }
#tab-albums th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 0 8px 8px 0;
}
#tab-albums td { padding: 8px 8px 8px 0; border-top: 1px solid rgba(0, 0, 0, 0.07); vertical-align: middle; }
#tab-albums .alb-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  letter-spacing: 0.14em;
}
#tab-albums .off { opacity: 0.5; font-style: italic; }

#tab-albums .alb-groups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
#tab-albums .alb-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}
#tab-albums .alb-group-move { display: inline-flex; gap: 4px; }
#tab-albums .alb-group-move .mini { padding: 4px 9px; line-height: 1; }
#tab-albums .alb-group-name {
  flex: 1;
  min-width: 130px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
}
#tab-albums .alb-group-name:hover  { border-color: rgba(0, 0, 0, 0.12); }
#tab-albums .alb-group-name:focus  { outline: none; border-color: currentColor; background: #fff; }
#tab-albums .alb-group-slug {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  opacity: 0.55;
}
#tab-albums .alb-group-count { font-size: 11.5px; opacity: 0.65; min-width: 64px; }

#tab-albums .alb-photo-group { font-size: 11.5px; }

#tab-albums .alb-photo-acties { display: flex; gap: 6px; flex-wrap: wrap; }
#tab-albums .alb-photo-acties .mini { flex: 1; min-width: 0; padding: 5px 8px; font-size: 10.5px; }

#tab-albums .mini.aan {
  border-color: #9A7B36;
  background: rgba(154, 123, 54, 0.12);
  font-weight: 600;
}

#tab-albums .alb-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
#tab-albums .alb-photo {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  overflow: hidden;
  background: #EDE6D8;
}

#tab-albums .alb-photo.besloten { border-color: #9A7B36; box-shadow: inset 0 0 0 2px rgba(154, 123, 54, 0.35); }

#tab-albums .alb-photo.video { position: relative; }
#tab-albums .alb-play {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  margin-top: calc(50% - 19px);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(20, 23, 27, 0.55);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
#tab-albums .alb-play::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}

#tab-albums .alb-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
#tab-albums .alb-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px 11px;
  background: rgba(255, 255, 255, 0.85);
}
#tab-albums .alb-photo .nm {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tab-albums .alb-photo .sz { font-size: 11px; opacity: 0.6; }

#tab-albums .alb-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#tab-albums .alb-progress { margin-top: 14px; }
#tab-albums .alb-progress[hidden] { display: none; }
#tab-albums .alb-track { height: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
#tab-albums .alb-bar { height: 100%; width: 0; background: #9A7B36; transition: width 140ms linear; }
#tab-albums .alb-status { font-size: 12px; opacity: 0.7; margin: 7px 0 0; }

#tab-albums .mini {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: none;
  cursor: pointer;
}
#tab-albums .mini.danger:hover { border-color: #A7503F; color: #A7503F; }

#tab-albums .alb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
#tab-albums .alb-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
#tab-albums .alb-row .grow { flex: 1; min-width: 150px; }
#tab-albums .alb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
#tab-albums .alb-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
#tab-albums .alb-spaced { margin-top: 12px; }
#tab-albums .alb-count { font-size: 12.5px; opacity: 0.65; font-weight: 400; margin-left: 8px; }

@media (max-width: 820px) {
  #tab-albums .alb-grid { grid-template-columns: 1fr; }
}
