/* ============================================
   GALLERY CONTAINER & SCROLL
   ============================================ */
.gallery-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow: hidden;
  transition: opacity 0.4s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gallery-scroll {
  width: 100%;
  height: auto;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

/* ============================================
   SLIDES
   ============================================ */
.gallery-slide {
  height: auto;
  min-height: auto;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(var(--text-main-rgb), 0.2);
  position: relative;
  cursor: pointer;
  margin-top: 0;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--accent-lime);
  transition: width 0.05s linear;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */
.gallery-nav-arrow {
  position: absolute;
  top: 0;
  background: transparent;
  border: none;
  color: transparent;
  cursor: pointer;
  z-index: 99;
  transition: background 0.3s ease;
  width: 50%;
}

.gallery-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.05);
}

.gallery-prev {
  left: 0;
  right: auto;
}

.gallery-next {
  right: 0;
  left: auto;
}

/* ============================================
   PHOTO NAME
   ============================================ */
.photo-name {
  text-align: left;
  color: var(--accent-lime);
  font-size: 1.6vh;
  font-weight: 300;
  margin-top: 0.5vh;
  margin-left: 1vw;
  letter-spacing: -0.02vw;
  width: 100%;
}

.gallery-slide:hover .photo-name {
  opacity: 1;
}

/* ============================================
   PHOTO NAME — FORMATTAZIONE INLINE
   ============================================ */
.photo-name {
  font-weight: 400 !important;
  letter-spacing: -0.02vw;
}

.photo-name strong,
.photo-name b,
.project-slide-desc strong,
.project-slide-desc b {
  font-weight: 600 !important;
}

.photo-name u,
.project-slide-desc u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-name em,
.project-slide-desc em {
  font-style: italic;
}

.photo-name a,
.project-slide-desc a {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.photo-name a:hover,
.project-slide-desc a:hover {
  color: var(--accent-lime) !important;
  opacity: 0.8;
}