/* ==========================================================================
   TEAMFILMER STUDIOS — PORTFOLIO MASONRY & ADMIN MANAGEMENT (/css/portfolio.css)
   Merged Media Archive: Photography Masonry & 4K Cinematic Films Tabs
   ========================================================================== */

/* Top Media Switcher Bar (Photography vs Films) */
.tf-media-tab-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2.25rem;
  padding: 0.35rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075) 0%, rgba(13, 16, 21, 0.75) 100%) !important;
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 9999px;
  max-width: 500px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 36px rgba(0, 0, 0, 0.55) !important;
}

.tf-media-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: clamp(0.875rem, 0.85rem + 0.08vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F5F3EF !important;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tf-media-tab-btn:hover {
  color: #E5C058 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.tf-media-tab-btn.active {
  color: #08090C !important;
  background: #D4AF37 !important;
  border-color: #D4AF37 !important;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35) !important;
}

.tf-tab-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.tf-tab-count {
  font-size: 0.75rem;
  opacity: 0.8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

.tf-media-tab-pane {
  animation: fadeInTab 0.35s ease-out forwards;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .tf-media-tab-nav {
    max-width: 100%;
    gap: 0.3rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
  }
  .tf-media-tab-btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.725rem;
    gap: 0.35rem;
  }
  .tf-tab-icon {
    font-size: 0.88rem;
  }
}

/* Page & Layout Architecture */
.tf-portfolio-page {
  padding-top: 2rem;
  padding-bottom: 5rem;
  background: transparent !important;
  min-height: 85vh;
}

.tf-portfolio-container {
  width: 100%;
  max-width: var(--container-wide, 1280px);
  margin: 0 auto;
  padding: 0 var(--gutter, 1.5rem);
}

/* Hero Section */
.tf-portfolio-hero {
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(179, 138, 34, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, #121316 0%, #1a1a1f 50%, #121316 100%);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.tf-portfolio-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E5C158;
}

/* Admin Quick Bar Controls */
.tf-admin-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tf-admin-controls-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.tf-admin-controls-group.is-admin-visible {
  display: flex;
  align-items: center;
  opacity: 1;
  visibility: visible;
}

.tf-admin-badge-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: #D1D5DB;
}

.tf-admin-badge-label strong {
  color: #E5C158;
  font-weight: 700;
}

.tf-admin-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  background: #D4AF37;
  color: #0B0B0D;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.tf-admin-btn-primary:hover {
  background: #C5A02E;
  transform: translateY(-1px);
}

.tf-admin-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tf-admin-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Category Filter Bar */
.tf-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tf-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tf-filter-pills-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.tf-filter-pills-list::-webkit-scrollbar {
  display: none;
}

.tf-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: clamp(0.8125rem, 0.79rem + 0.08vw, 0.875rem);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F5F3EF;
  border: 1px solid rgba(255, 255, 255, 0.13);
  cursor: pointer;
  transition: all 0.22s ease;
}

.tf-filter-btn:hover {
  color: #E5C058;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 175, 55, 0.4);
}

.tf-filter-btn.active {
  background: linear-gradient(135deg, #E5C058 0%, #D4AF37 100%);
  color: #08090C;
  border-color: #D4AF37;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Photography Masonry Grid */
.tf-masonry-grid {
  column-count: 1;
  column-gap: 1.75rem;
}

@media (min-width: 640px) {
  .tf-masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .tf-masonry-grid {
    column-count: 3;
  }
}

.tf-masonry-card {
  break-inside: avoid;
  margin-bottom: 1.75rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.068) 0%, rgba(255, 255, 255, 0.036) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 36px rgba(0, 0, 0, 0.55);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tf-masonry-card:hover {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.095) 0%, rgba(255, 255, 255, 0.055) 100%);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 48px rgba(0, 0, 0, 0.72), 0 0 24px rgba(212, 175, 55, 0.12);
  transform: translateY(-3px);
}

.tf-masonry-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #0B0B0D;
}

.tf-masonry-thumb-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tf-masonry-card:hover .tf-masonry-thumb-img {
  transform: scale(1.04);
}

.tf-masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tf-masonry-card:hover .tf-masonry-overlay {
  opacity: 1;
}

.tf-badge-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.tf-category-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tf-signature-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #D4AF37;
  color: #0B0B0D;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tf-card-actions {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.tf-action-circle-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tf-action-circle-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
}

.tf-action-circle-btn.is-active-fav {
  background: #E11D48;
  color: #FFFFFF;
}

.tf-photo-count-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 600;
  color: #FFFFFF;
  z-index: 2;
}

.tf-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tf-card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);
  font-weight: 600;
  color: #D4AF37;
}

.tf-card-title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.25rem, 1.18rem + 0.35vw, 1.5625rem);
  font-weight: 600;
  color: #F5F3EF;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.tf-masonry-card:hover .tf-card-title {
  color: #E5C058;
}

.tf-card-couple {
  font-size: clamp(0.8125rem, 0.78rem + 0.1vw, 0.9375rem);
  color: #A6A6A6;
  font-weight: 500;
}

.tf-card-couple strong {
  color: #F5F3EF;
  font-weight: 600;
}

.tf-card-summary {
  font-size: clamp(0.9375rem, 0.91rem + 0.14vw, 1.0625rem);
  color: #A6A6A6;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-card-footer {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.75rem, 0.73rem + 0.08vw, 0.875rem);
  background: rgba(255, 255, 255, 0.03);
}

.tf-card-crew {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: #A6A6A6;
}

.tf-card-cta-link {
  font-weight: 600;
  color: #E5C058;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.tf-masonry-card:hover .tf-card-cta-link {
  color: #F5F3EF;
  transform: translateX(2px);
}

/* Cinematic Films Layout */
.tf-film-hero-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(13, 16, 21, 0.85) 100%);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 28px 60px -12px rgba(0, 0, 0, 0.65);
  position: relative;
}

.tf-film-grid-row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .tf-film-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tf-film-grid-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tf-film-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.068) 0%, rgba(255, 255, 255, 0.036) 100%) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 36px rgba(0, 0, 0, 0.52);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tf-film-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.055) 100%) !important;
  border-color: rgba(212, 175, 55, 0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 48px rgba(0, 0, 0, 0.68), 0 0 24px rgba(212, 175, 55, 0.14);
}

.tf-film-play-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #E5C058 0%, #D4AF37 100%);
  color: #08090C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
  transition: transform 0.25s ease;
}

.tf-film-card:hover .tf-film-play-btn {
  transform: scale(1.1);
}

/* Modals & Dialogs */
.tf-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.tf-lightbox-container {
  background: linear-gradient(165deg, rgba(20, 24, 32, 0.92) 0%, rgba(13, 16, 21, 0.95) 100%);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  color: #FFFFFF;
  border-radius: 1.5rem;
  max-width: 64rem;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 75px rgba(0, 0, 0, 0.78);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .tf-admin-controls-group.is-admin-visible {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   FULLSCREEN PORTFOLIO LIGHTBOX CONTROLLER STYLES (#portfolio-lightbox)
   ========================================================================== */
#portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  color: #FFFFFF;
}

#portfolio-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Lightbox Header Bar */
.tf-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  z-index: 10;
  gap: 1rem;
}

.tf-lb-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.tf-lb-meta-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: #E5C158;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#portfolio-lb-counter {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
}

#portfolio-lb-caption {
  font-family: var(--font-serif, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #F5F3EF;
  max-width: 32rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-lb-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tf-lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tf-lb-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.tf-lb-btn-primary {
  background: #D4AF37;
  color: #0B0B0D;
  border-color: #D4AF37;
  font-weight: 700;
  width: auto;
  padding: 0 0.9rem;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.tf-lb-btn-primary:hover {
  background: #C5A02E;
}

.tf-lb-btn-danger {
  background: rgba(225, 29, 72, 0.85);
  color: #FFFFFF;
  border-color: rgba(225, 29, 72, 0.9);
  width: auto;
  padding: 0 0.9rem;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.tf-lb-btn-danger:hover {
  background: #E11D48;
}

/* Stage Area (Image Container) */
#portfolio-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 3.5rem;
  user-select: none;
}

.tf-lightbox-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

#portfolio-lb-image {
  max-width: 90vw;
  max-height: calc(100vh - 13.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: scale(var(--tf-lb-zoom, 1));
  transition: transform 0.2s ease-out, opacity 190ms ease-in-out;
  cursor: grab;
}

#portfolio-lb-image.is-switching {
  opacity: 0.35;
}

/* Nav arrows on stage */
.tf-lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.tf-lb-nav-btn:hover {
  background: rgba(212, 175, 55, 0.95);
  color: #0B0B0D;
  border-color: #D4AF37;
  transform: translateY(-50%) scale(1.08);
}

#portfolio-lb-prev {
  left: 1.5rem;
}

#portfolio-lb-next {
  right: 1.5rem;
}

/* Bottom Thumbnail Strip */
.tf-lb-bottom-bar {
  padding: 0.75rem 1.5rem 1.25rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

#portfolio-lb-thumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

#portfolio-lb-thumbs::-webkit-scrollbar {
  height: 4px;
}
#portfolio-lb-thumbs::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 9999px;
}

.tf-lb-thumb {
  flex-shrink: 0;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  background: #0B0B0D;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tf-lb-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.tf-lb-thumb.active {
  opacity: 1;
  border-color: #D4AF37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  transform: scale(1.06) translateY(-2px);
}

.tf-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  #portfolio-lb-prev {
    left: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  #portfolio-lb-next {
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  #portfolio-lb-stage {
    padding: 0.5rem 1rem;
  }
  .tf-lb-header {
    padding: 0.75rem 1rem;
  }
  #portfolio-lb-caption {
    font-size: 1rem;
    max-width: 16rem;
  }
}
