/* ============================================
   TRONDL Photography – Portfolio & Lightbox
   ============================================ */

/* ── Über mich Bio-Grid ─────────────────────── */
.about-bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-img-wrap {
  height: 560px;
  overflow: hidden;
  border-radius: 4px;
}
.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Portfolio Jahr-Filter & Suche ──────────── */
.port-filter-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}
.port-filter-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.port-year-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.port-year-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
}
.port-year-tabs::-webkit-scrollbar { display: none; }
.year-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.year-arrow:hover { background: rgba(200,146,26,0.15); color: var(--accent-orange); border-color: var(--accent-orange); }
.year-arrow:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.port-year-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.port-year-btn:hover {
  border-color: var(--accent-orange);
  color: var(--text-primary);
}
.port-year-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #000;
}
.port-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.port-search {
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  padding: 8px 16px 8px 36px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}
.port-search:focus {
  border-color: var(--accent-orange);
  width: 280px;
}
.port-search::placeholder { color: var(--text-muted); }
.port-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  opacity: 0.5;
}
@media (max-width: 600px) {
  .port-filter-bar { top: 56px; }
  .port-filter-inner { flex-direction: column; gap: 10px; align-items: stretch; }
  .port-year-btn { padding: 6px 14px; font-size: 11px; flex-shrink: 0; }
  .port-search-wrap { width: 100%; }
  .port-search { width: 100%; box-sizing: border-box; }
  .port-search:focus { width: 100%; }
  /* Über mich */
  .about-bio-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .about-img-wrap { height: auto; max-width: 340px; margin: 0 auto; }
  .about-portrait { height: auto; }
}

/* ── Filter Bar ─────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  background: none;
  font-family: var(--font-body);
}
.filter-btn:hover {
  border-color: var(--accent-orange);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}

/* ── Masonry Grid ───────────────────────────── */
.portfolio-grid {
  columns: 3;
  column-gap: 16px;
}
.portfolio-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--bg-card);
  display: block;
}
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.04);
  transition: transform 0.7s var(--ease-out-expo);
}
.portfolio-item:hover img { transform: scale(1); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-item-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out-expo);
}
.portfolio-item:hover .portfolio-item-title { transform: translateY(0); }

.portfolio-item-cat {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-top: 4px;
  transform: translateY(8px);
  transition: transform 0.4s 0.05s var(--ease-out-expo);
  opacity: 0;
}
.portfolio-item:hover .portfolio-item-cat { transform: translateY(0); opacity: 1; }

.portfolio-zoom {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(249,115,22,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  transform: scale(0) rotate(-90deg);
  transition: transform 0.4s var(--ease-out-expo);
}
.portfolio-item:hover .portfolio-zoom { transform: scale(1) rotate(0); }

/* Placeholder items */
.portfolio-placeholder {
  aspect-ratio: var(--ratio, 4/3);
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
}
.portfolio-placeholder-icon { font-size: 48px; opacity: 0.08; }
.portfolio-placeholder-text { font-size: 12px; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; }

/* Hidden state for filtering */
.portfolio-item.hidden {
  display: none;
}
.portfolio-item.filtering {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-item.filtering.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Load More ──────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: 64px;
}

/* ── Lightbox ───────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-out-expo);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-placeholder {
  max-width: 90vw;
  max-height: 85vh;
  width: 800px;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-out-expo);
}
.lightbox.open .lightbox-placeholder { transform: scale(1); }
.lightbox-placeholder-icon { font-size: 80px; opacity: 0.08; }
.lightbox-placeholder-text { font-size: 14px; color: var(--text-muted); }

.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15,15,15,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
}
.lightbox-close:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15,15,15,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
}
.lightbox-nav:hover { background: var(--accent-orange); color: #fff; border-color: var(--accent-orange); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-info {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.lightbox-cat {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-top: 4px;
}
.lightbox-counter {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Responsive Portfolio ───────────────────── */
@media (max-width: 1024px) {
  .portfolio-grid { columns: 2; }
}
@media (max-width: 600px) {
  .portfolio-grid { columns: 1; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── Lightbox active state ──────────────────── */
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}

/* ── Gallery loading ────────────────────────── */
.gallery-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Artist Index Bar ───────────────────────── */
.artist-index {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.artist-index-wrap {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8px;
  position: relative;
}
.artist-index-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.artist-index-arrow:hover { background: rgba(200,146,26,0.15); color: var(--accent-orange); border-color: var(--accent-orange); }
.artist-index-arrow:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.artist-index-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  flex: 1;
}
.artist-index-inner::-webkit-scrollbar { display: none; }
.artist-index-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.25s ease;
  text-decoration: none;
}
.artist-index-link:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  background: rgba(249,115,22,0.08);
}

/* ── Artist Section ─────────────────────────── */
.artist-section {
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.artist-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.artist-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.artist-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin: 0;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #E06000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.artist-count {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Album Card ─────────────────────────────── */
.album-card {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.album-card:last-child { border-bottom: none; }

.album-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.album-date {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-weight: 500;
}
.album-venue {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.album-venue::before {
  content: '·';
  margin-right: 16px;
  color: var(--border);
}
.album-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0 0 16px;
  line-height: 1.1;
}
.album-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 72ch;
  margin: 0 0 28px;
}

/* ── Photo Grid ─────────────────────────────── */
.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.album-photo-wrap {
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 3/2;
  cursor: pointer;
  background: var(--bg-card);
  position: relative;
}
.album-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.album-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.04);
  transition: transform 0.6s var(--ease-out-expo);
}
.album-photo-wrap:hover .album-photo { transform: scale(1.0); }

/* ── Album footer with "Alle ansehen" ───────── */
.album-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.album-count {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.album-view-all {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-mid);
  text-decoration: none;
  border: 1px solid var(--gold-dark);
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.album-view-all:hover {
  background: var(--gold-mid);
  color: #080808;
  border-color: var(--gold-mid);
  -webkit-text-fill-color: #080808;
}

/* ── Responsive Artists ─────────────────────── */
@media (max-width: 900px) {
  .album-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .album-card { margin-bottom: 48px; padding-bottom: 48px; }
  .artist-section { margin-bottom: 64px; }
}
@media (max-width: 600px) {
  .album-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .artist-name { font-size: clamp(28px, 8vw, 40px); }
  .album-card { margin-bottom: 32px; padding-bottom: 32px; }
  .artist-section { margin-bottom: 48px; }
  .artist-heading { gap: 12px; margin-bottom: 24px; padding-bottom: 14px; }
  .album-title { margin-bottom: 12px; }
  /* Filter-Buttons: größere Tap-Targets */
  .filter-btn { padding: 12px 20px; min-height: 44px; }
  /* Artist-Index-Links: größere Tap-Targets */
  .artist-index-inner { padding: 8px; }
  .artist-index-link { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; }
  .artist-index-arrow { width: 40px; height: 40px; }
}
