/* ==========================================================================
   ESRA AKDENIZ - FINE ART GALLERY & COLLECTION STYLES
   Curated, Editorial, Pure Gallery Aesthetics
   No AI Gradients, No Green Status Dots, Minimalist Luxury
   ========================================================================== */

:root {
  --gallery-bg: #FAF8F5;
  --gallery-card-bg: #FFFFFF;
  --gallery-text-main: #1F1D1A;
  --gallery-text-muted: #736C65;
  --gallery-border: #E8E3DC;
  --gallery-border-subtle: #F0ECE6;
  --gallery-accent: #8E7A68;
}

/* Page Container */
.gallery-page {
  background-color: var(--gallery-bg);
  min-height: 100vh;
  color: var(--gallery-text-main);
  padding-top: 0 !important;
}

/* Header Solid Overrides on Gallery Pages */
.gallery-page .header.header--solid {
  position: sticky;
  top: 0;
  padding: 0.85rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  z-index: 70;
}

/* Gallery Header / Curatorial Room Intro */
.gallery-hero {
  padding: 5rem var(--container-gutter) 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
}

.gallery-hero__kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gallery-accent);
  margin-bottom: 1.25rem;
  display: block;
  animation: heroKickerReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gallery-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 11vw, 11rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--gallery-text-main);
  margin-bottom: 2rem;
  animation: heroTitleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.gallery-hero__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gallery-text-muted);
  max-width: 520px;
  font-weight: 300;
  animation: heroDescReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

@keyframes heroKickerReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroTitleReveal {
  from { opacity: 0; transform: translateY(40px) skewY(1deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}
@keyframes heroDescReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sticky Collection Navigation Filter Bar */
.collection-nav-bar {
  position: sticky;
  top: 57px;
  z-index: 40;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gallery-border-subtle);
  border-bottom: 1px solid var(--gallery-border);
  padding: 0.65rem var(--container-gutter);
  transition: all 0.25s ease;
}

.collection-nav-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.collection-nav-inner::-webkit-scrollbar {
  display: none;
}

.collection-nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gallery-text-muted);
  padding: 0.35rem 0.2rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.collection-nav-link:hover,
.collection-nav-link.active {
  color: var(--gallery-text-main);
}

.collection-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--gallery-text-main);
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-nav-link.active::after,
.collection-nav-link:hover::after {
  transform: scaleX(1);
}

/* Artwork Large Exhibition Grid */
.gallery-section {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1.75rem var(--container-gutter) 4.5rem;
}

.collection-room {
  padding-top: 0.5rem;
  margin-bottom: 4rem;
  scroll-margin-top: 110px;
}

.collection-room:last-child {
  margin-bottom: 1.5rem;
}

.collection-room__header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gallery-border);
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.collection-room__number {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gallery-accent);
}

.collection-room__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--gallery-text-main);
  line-height: 1.15;
}

.collection-room__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gallery-text-muted);
  max-width: 650px;
  line-height: 1.6;
  font-weight: 300;
}

/* Large Artworks Showcase Grid */
.artworks-large-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4.5rem 3.5rem;
}

@media (max-width: 1024px) {
  .artworks-large-grid {
    gap: 3.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .artworks-large-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* Individual Large Artwork Card */
.art-card-large {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  group: pointer;
}

.art-card-large__figure {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #F0ECE6;
  overflow: hidden;
  border: 1px solid var(--gallery-border-subtle);
  transition: border-color 0.4s ease;
}

.art-card-large:hover .art-card-large__figure {
  border-color: var(--gallery-border);
}

.art-card-large__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.art-card-large__img--secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.art-card-large:hover .art-card-large__img--secondary {
  opacity: 1;
}

.art-card-large:hover .art-card-large__img {
  transform: scale(1.025);
}

/* Minimalist Badge/Tag (Subtle, No Gradients/Dots) */
.art-card-large__tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--gallery-text-main);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--gallery-border);
  pointer-events: none;
}

/* Artwork Meta & Label */
.art-card-large__meta {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.art-card-large__header-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.art-card-large__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gallery-text-main);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.art-card-large:hover .art-card-large__title {
  color: var(--gallery-accent);
}

.art-card-large__price {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gallery-text-main);
  white-space: nowrap;
}

.art-card-large__details {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gallery-text-muted);
}

.art-card-large__dot-separator {
  color: var(--gallery-border);
}

/* .art-card-large__action — kaldırıldı */

/* Studio Concierge / Atelier Inquiries Banner */
.gallery-concierge {
  border-top: 1px solid var(--gallery-border);
  padding: 5rem var(--container-gutter);
  text-align: center;
  background-color: #FFFFFF;
}

.gallery-concierge__inner {
  max-width: 640px;
  margin: 0 auto;
}

.gallery-concierge__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gallery-text-main);
  margin-bottom: 0.85rem;
}

.gallery-concierge__desc {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--gallery-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.gallery-concierge__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--gallery-text-main);
  color: var(--gallery-text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  transition: all 0.3s ease;
}

.gallery-concierge__btn:hover {
  background-color: var(--gallery-text-main);
  color: #FFFFFF;
}

/* ==========================================================================
   COOL ALL-ARTWORKS GRID (shown when "Tüm Eserler" is active)
   Editorial, masonry-feel, luxury fine art overview
   ========================================================================== */

.gallery-all-grid-wrapper {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0.5rem var(--container-gutter) 6rem;
}

.gallery-all-grid-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.gallery-all-grid-divider__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gallery-accent);
  white-space: nowrap;
}

.gallery-all-grid-divider::before,
.gallery-all-grid-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--gallery-border);
}

.gallery-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

@media (max-width: 1024px) {
  .gallery-all-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
}

@media (max-width: 580px) {
  .gallery-all-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.gallery-all-grid-item {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}

/* Alternating heights for visual interest */
.gallery-all-grid-item:nth-child(3n+1) .gallery-all-grid-item__img-wrap { aspect-ratio: 3 / 4; }
.gallery-all-grid-item:nth-child(3n+2) .gallery-all-grid-item__img-wrap { aspect-ratio: 4 / 5; }
.gallery-all-grid-item:nth-child(3n)   .gallery-all-grid-item__img-wrap { aspect-ratio: 2 / 3; }

.gallery-all-grid-item__img-wrap {
  position: relative;
  overflow: hidden;
  background-color: #F0ECE6;
  border: 1px solid var(--gallery-border-subtle);
}

.gallery-all-grid-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-all-grid-item:hover .gallery-all-grid-item__img {
  transform: scale(1.04);
}

.gallery-all-grid-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 29, 26, 0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-all-grid-item:hover .gallery-all-grid-item__overlay {
  opacity: 1;
}

.gallery-all-grid-item__overlay-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-all-grid-item:hover .gallery-all-grid-item__overlay-title {
  transform: translateY(0);
}

.gallery-all-grid-item__overlay-price {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}

.gallery-all-grid-item:hover .gallery-all-grid-item__overlay-price {
  transform: translateY(0);
}

.gallery-all-grid-item__col-label {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--gallery-border);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gallery-text-main);
  padding: 0.3rem 0.7rem;
  pointer-events: none;
}

.gallery-all-grid-item__meta {
  padding: 0.85rem 0 0;
}

.gallery-all-grid-item__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gallery-text-main);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.gallery-all-grid-item__sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gallery-text-muted);
}

/* ==========================================================================
/* ==========================================================================
   EDITORIAL CURATED SHOWCASE (Single Collection Exhibition)
   Luxury gallery presentation: ample breathing room, gallery stages,
   curtain reveals, scroll parallax, and interactive 3D lighting.
   ========================================================================== */

.editorial-showcase {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem var(--container-gutter) 8rem;
}

/* Individual Exhibition Bay / Artwork Section */
.editorial-item {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 5.5rem;
  align-items: center;
  margin-bottom: 7.5rem;
  padding-bottom: 5.5rem;
  border-bottom: 1px solid var(--gallery-border-subtle);
  position: relative;
}

.editorial-item:last-child {
  margin-bottom: 2rem;
  border-bottom: none;
  padding-bottom: 2rem;
}

/* Alternating Layout: Odd (image right), Even (image left) */
.editorial-item--image-right .editorial-item__stage { order: 2; }
.editorial-item--image-right .editorial-item__content { order: 1; }
.editorial-item--image-right { grid-template-columns: 0.88fr 1.12fr; }

.editorial-item--image-left .editorial-item__stage { order: 1; }
.editorial-item--image-left .editorial-item__content { order: 2; }
.editorial-item--image-left { grid-template-columns: 1.12fr 0.88fr; }

/* 1. Museum Wall Alcove / Matting Stage (Prevents any contact between artworks!) */
.editorial-item__stage {
  position: relative;
  background-color: #F5F1EB;
  border: 1px solid #ECE5DC;
  padding: 3.25rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  perspective: 1200px;
  transition: background-color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

/* Center viewport spotlight highlight */
.editorial-item.in-focal-view .editorial-item__stage {
  background-color: #FAF7F2;
  border-color: #E2DAD0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.035);
}

/* 2. Floating Artwork Canvas Container with Parallax & Curtain Mask */
.editorial-item__canvas-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #EAE4DB;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 48px -12px rgba(28, 25, 23, 0.16), 0 3px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(var(--scroll-shift, 0px));
  transition: box-shadow 0.6s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, clip-path;
  cursor: pointer;
  text-decoration: none;
}

.editorial-item:hover .editorial-item__canvas-wrap {
  box-shadow: 0 28px 60px -12px rgba(28, 25, 23, 0.24), 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* 3. The Painting Image — High-precision scaling and lighting */
.editorial-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.14);
  filter: brightness(0.98) contrast(1.0);
  transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s ease;
  will-change: transform, filter;
}

.editorial-item:hover .editorial-item__img {
  transform: scale(1.035);
}

.editorial-item.in-focal-view .editorial-item__img {
  filter: brightness(1.03) contrast(1.02);
}

/* Interactive Specular Glare across canvas */
.editorial-item__glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.45) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* Floating Fine Art Tag */
.editorial-item__image-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gallery-border);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gallery-text-main);
  padding: 0.35rem 0.85rem;
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   EDITORIAL TEXT & TYPOGRAPHY
   ========================================================================== */
.editorial-item__content {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-item__index-wrap {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.editorial-item__index {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gallery-accent);
  display: block;
}

.editorial-item__title-wrap {
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding-bottom: 0.15em;
}

.editorial-item__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--gallery-text-main);
  margin: 0;
}

.editorial-item__title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.editorial-item:hover .editorial-item__title a {
  color: var(--gallery-accent);
}

.editorial-item__details {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gallery-text-muted);
  margin-bottom: 1.75rem;
}

.editorial-item__details-sep {
  display: block;
  width: 1px;
  height: 0.9em;
  background-color: var(--gallery-border);
}

.editorial-item__desc {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--gallery-text-muted);
  max-width: 440px;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.editorial-item__price-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gallery-border-subtle);
  max-width: 440px;
}

.editorial-item__price-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gallery-text-muted);
  margin-bottom: 0.25rem;
}

.editorial-item__price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--gallery-text-main);
  letter-spacing: -0.02em;
}

.editorial-item__price-suffix {
  font-size: 0.9rem;
  margin-left: 0.25rem;
  color: var(--gallery-text-muted);
}

.editorial-item__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gallery-text-main);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--gallery-text-main);
  transition: all 0.3s ease;
}

.editorial-item__cta-link:hover {
  color: var(--gallery-accent);
  border-color: var(--gallery-accent);
  transform: translateX(4px);
}

/* Empty state */
.editorial-empty-state {
  padding: 5rem 0;
  text-align: center;
  color: #8A8580;
  font-style: italic;
  font-size: 1rem;
}

/* ==========================================================================
   PREMIUM SCROLL-REVEAL ANIMATIONS (Curtain, Typography Mask & Settle)
   ========================================================================== */

/* 1. Base reveal transition */
.reveal-on-scroll {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
}

/* 2. Editorial Curtain Reveal on Canvas */
.editorial-item .editorial-item__canvas-wrap {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.3s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.6s ease;
}

.editorial-item.is-revealed .editorial-item__canvas-wrap {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.editorial-item.is-revealed .editorial-item__img {
  transform: scale(1.0);
}

/* 3. Typography Curtain (Masked emergence) */
.editorial-item .editorial-item__title {
  transform: translateY(115%);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.12s;
}

.editorial-item.is-revealed .editorial-item__title {
  transform: translateY(0);
}

.editorial-item .editorial-item__index {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.editorial-item.is-revealed .editorial-item__index {
  transform: translateY(0);
  opacity: 1;
}

/* Grid items standard reveal */
.gallery-all-grid-item.reveal-on-scroll {
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-all-grid-item.reveal-on-scroll.is-revealed {
  transform: translateY(0);
}

.gallery-all-grid-item.reveal-on-scroll:nth-child(3n+1) { transition-delay: 0s; }
.gallery-all-grid-item.reveal-on-scroll:nth-child(3n+2) { transition-delay: 0.12s; }
.gallery-all-grid-item.reveal-on-scroll:nth-child(3n)   { transition-delay: 0.24s; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .editorial-item,
  .editorial-item--image-right,
  .editorial-item--image-left {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-bottom: 5.5rem;
    padding-bottom: 4.5rem;
  }

  .editorial-item--image-right .editorial-item__stage,
  .editorial-item--image-left .editorial-item__stage {
    order: 1;
  }

  .editorial-item--image-right .editorial-item__content,
  .editorial-item--image-left .editorial-item__content {
    order: 2;
  }

  .editorial-item__stage {
    padding: 2.25rem;
  }

  .editorial-item__canvas-wrap {
    max-width: 100%;
  }

  .editorial-item__content {
    padding: 0;
  }
}

@media (max-width: 640px) {
  .editorial-item {
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 3.5rem;
  }

  .editorial-item__stage {
    padding: 1.5rem 1.25rem;
  }

  .editorial-item__title {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
  }

  .editorial-item__price-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   GALLERY MODE SWITCHER STATE
   ========================================================================== */

.gallery-mode-target {
  display: none;
}

.gallery-mode-target.is-active {
  display: block;
}
