@media (min-width: 992px) {

  .profile-sticky-container,
  .project-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
  }
}

body {
  background-color: black;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: #94a3b8;
}

h1,
h2,
h3,
h4,
nav,
.pull-quote {
  font-family: 'Barlow', sans-serif;
  color: #f1f5f9;
  text-transform: uppercase;
}

h1 {
  text-transform: uppercase;
  font-size: 48px;
  font-weight: 600;
}

.bio-content h2 {
  font-weight: 600;
  margin-bottom: 30px;
}

.supporting-media h3 {
  margin-top: 40px;
}

strong {
  font-weight: 600;
}

/* Links - unified blue color from "Read more" button */
a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  color: #93c5fd;
  text-decoration: none;
}

.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.social-links a {
  color: #94a3b8;
}

.social-links a:hover {
  color: white;
}

.artwork-cell h2 {
  padding-top: 10px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  font-weight: 400;
  color: #94a3b8;
}

.artwork-cell:hover h2 {
  opacity: 1;
}

.artwork-cell a:hover {
  text-decoration: none;
}

.artwork-image-container {
  place-content: center;
  align-items: center;
  aspect-ratio: 4 / 3;
  display: flex;
  flex: 0 0 auto;
  flex-flow: row;
  gap: 0px;
  overflow: hidden;
  padding: 40px 20px;
  border: 1px solid #1e293b;
  position: relative;
}

.hover-video {
  position: absolute;
  top: 40px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 80px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.artwork-image-container .card-img-top {
  transition: opacity 0.3s ease-in-out;
}

.artwork-cell.has-video-hover:hover .hover-video {
  opacity: 1;
}

.artwork-cell.has-video-hover:hover .card-img-top {
  opacity: 0;
}

.bio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.bio-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.bio-content-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 66.666667%;
  height: 100%;
  border-right: 1px solid #1e293b;
  background-color: rgba(0, 0, 0, 0.95);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.bio-overlay.is-open .bio-content-panel {
  opacity: 1;
  transform: translateY(0);
}

.bio-header {
  border-bottom: 1px solid #1e293b;
  padding: 10px 30px;
}

.bio-content {
  padding: 30px;
  max-width: 600px;
}

@media (max-width: 991.98px) {
  .bio-content-panel {
    width: 100%;
  }
}

/* Project Detail Page Styles */
.project-title {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 0.25rem;
  display: block;
}

.meta-value {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
  color: #94a3b8;
}

.nav-link-custom {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.nav-link-custom:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.project-hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

.content-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #94a3b8;
  max-width: 800px;
}

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  background-color: black;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.secondary-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #1e293b;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.lightbox-overlay.is-open .lightbox-content {
  opacity: 1;
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lightbox-trigger {
  cursor: pointer;
  display: block;
}

.lightbox-trigger:hover {
  opacity: 0.9;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 15px 20px;
  z-index: 10;
  transition: background 0.2s ease, opacity 0.2s ease;
  border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 10px 15px;
    font-size: 1.2rem;
  }
}

/* Image Crossfade for projects without videos */
.artwork-cell.has-image-crossfade .gallery-image {
  position: absolute;
  top: 40px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 80px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.artwork-cell.has-image-crossfade .gallery-image.active {
  opacity: 1;
}

.artwork-cell.has-image-crossfade .gallery-image:first-child {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Progress bar for video/image gallery */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #60a5fa;
  transition: width 0.1s linear;
  z-index: 10;
}

/* Mobile: Show titles by default and disable hover effects */
@media (max-width: 767.98px) {
  .artwork-cell h2 {
    opacity: 1;
  }

  .artwork-cell:hover h2 {
    opacity: 1;
  }

  /* Keep video/images visible, disable transitions */
  .artwork-cell.has-video-hover:hover .hover-video {
    opacity: 0;
  }

  .artwork-cell.has-video-hover:hover .card-img-top {
    opacity: 1;
  }

  /* Disable image crossfade on mobile */
  .artwork-cell.has-image-crossfade .gallery-image {
    opacity: 0;
  }

  .artwork-cell.has-image-crossfade .gallery-image.active,
  .artwork-cell.has-image-crossfade .gallery-image:first-child {
    opacity: 1;
  }

  /* Hide progress bar on mobile */
  .progress-bar {
    display: none;
  }
}

/* About Page Styles */
.home-background-blurred {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  filter: blur(5px);
  z-index: -1;
}

.background-click-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: pointer;
  display: block;
}

.about-content-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 66.666667%;
  /* 2/3 width */
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: #94a3b8;
  overflow-y: auto;
  padding: 3rem;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .about-content-panel {
    width: 100%;
    padding: 1.5rem;
  }
}

.about-header h1 {
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
}

.about-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #94a3b8;
}

.about-header h4 a {
  color: inherit;
  text-decoration: none;
}

.about-header h4 a:hover {
  color: white;
}

/* Home page name link */
h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  color: inherit;
  text-decoration: none;
}

.about-nav {
  font-size: 1rem;
}

.about-nav a {
  color: #60a5fa;
  text-decoration: none;
}

.about-nav a:hover {
  color: #93c5fd;
  text-decoration: none;
}

.about-nav a[style*="600"] {
  color: #60a5fa;
  text-decoration: none;
}

.about-body {
  padding-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}