/* ==========================================================================
   SAILAWAY FINE ART - CONTEMPORARY GALLERY & MUSEUM STYLES
   Artist: Christine Johnson
   Creative Fine Art Aesthetic System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Alex+Brush&family=Playfair+Display:ital,wght@1,500&display=swap');

:root {
  --gallery-bg: #fbfbfa;
  --gallery-bg-secondary: #f4f3ef;
  --gallery-bg-warm: #f7f5f0;
  --gallery-card-bg: #ffffff;
  --gallery-text-main: #181a1b;
  --gallery-text-muted: #5e666c;
  --gallery-text-subtle: #89939a;
  --gallery-accent: #0d3441;
  --gallery-accent-light: #184b5c;
  --gallery-accent-gold: #c89d66;
  --gallery-accent-gold-light: #dfba88;
  --gallery-accent-gold-dark: #a87e45;
  --gallery-border: rgba(24, 26, 27, 0.09);
  --gallery-border-light: rgba(24, 26, 27, 0.05);
  --gallery-gold-glow: rgba(200, 157, 102, 0.18);
  --gallery-shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.04);
  --gallery-shadow-md: 0 12px 32px rgba(13, 52, 65, 0.08);
  --gallery-shadow-lg: 0 24px 50px rgba(13, 52, 65, 0.14);
  --gallery-shadow-frame: 0 15px 35px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.08);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-signature: 'Alex Brush', cursive;
  --font-editorial: 'Playfair Display', serif;
}

/* Base Gallery Wrapper */
.gallery-page-body {
  background-color: var(--gallery-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(200, 157, 102, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(13, 52, 65, 0.03) 0%, transparent 40%);
  color: var(--gallery-text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Artistic Section Filigree Divider */
.artistic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 26px;
  max-width: 240px;
}

.artistic-divider::before,
.artistic-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gallery-accent-gold), transparent);
}

.artistic-divider .diamond-glyph {
  color: var(--gallery-accent-gold);
  font-size: 11px;
  transform: rotate(0deg);
  display: inline-block;
  opacity: 0.85;
}

/* ==========================================================================
   BREADCRUMBS & GALLERY HERO SECTION
   ========================================================================== */
.gallery-hero-section {
  padding: 55px 0 45px;
  background: linear-gradient(180deg, #f7f6f2 0%, var(--gallery-bg) 100%);
  border-bottom: 1px solid var(--gallery-border);
  position: relative;
}

.gallery-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gallery-accent), var(--gallery-accent-gold), var(--gallery-accent));
}

.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gallery-text-subtle);
  margin-bottom: 24px;
}

.gallery-breadcrumb a {
  color: var(--gallery-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gallery-breadcrumb a:hover {
  color: var(--gallery-accent);
}

.gallery-breadcrumb .divider {
  color: var(--gallery-border);
  font-size: 11px;
}

.gallery-breadcrumb .current {
  color: var(--gallery-accent-gold-dark);
  font-weight: 600;
}

.gallery-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.gallery-artist-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-weight: 600;
  color: var(--gallery-accent-gold-dark);
  margin-bottom: 12px;
}

.gallery-artist-eyebrow::before {
  content: "✦";
  font-size: 10px;
  color: var(--gallery-accent-gold);
}

.gallery-hero-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--gallery-text-main);
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.gallery-hero-desc {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--gallery-text-muted);
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 22px;
}

/* Hero Curatorial Badges */
.hero-curatorial-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.curator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gallery-text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--gallery-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.curator-pill i {
  color: var(--gallery-accent-gold);
  font-size: 11px;
}

.curator-pill:hover {
  border-color: var(--gallery-accent-gold);
  background: #ffffff;
  transform: translateY(-1px);
}

/* Hero Artist Monogram / Provenance Stamp Card */
.hero-provenance-card {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--gallery-shadow-sm);
  position: relative;
  text-align: center;
  background-image: radial-gradient(circle at 50% 0%, rgba(200, 157, 102, 0.08) 0%, transparent 70%);
}

.hero-provenance-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(200, 157, 102, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

.provenance-seal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #0d3441 0%, #1a4f63 100%);
  color: var(--gallery-accent-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(13, 52, 65, 0.2);
  border: 2px solid var(--gallery-accent-gold);
}

.provenance-seal-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 4px;
}

.provenance-seal-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gallery-accent-gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.provenance-seal-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gallery-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   STICKY CATEGORY FILTER & SEARCH CONTROLS BAR
   ========================================================================== */
.gallery-filter-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gallery-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.gallery-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-nav-scroll {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}

.filter-nav-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gallery-text-muted);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  color: var(--gallery-text-main);
  background: rgba(13, 52, 65, 0.05);
}

.filter-btn.active {
  background: var(--gallery-accent);
  color: #ffffff;
  border-color: var(--gallery-accent);
  box-shadow: 0 3px 12px rgba(13, 52, 65, 0.25);
}

.filter-btn .count-badge {
  font-size: 11px;
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  padding: 1px 6px;
  border-radius: 10px;
}

.filter-btn.active .count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Secondary Tools: Search & Layout Toggle */
.gallery-secondary-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-search-input {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 20px;
  padding: 6px 14px 6px 32px;
  font-size: 12.5px;
  color: var(--gallery-text-main);
  width: 170px;
  transition: all 0.25s ease;
  outline: none;
}

.gallery-search-input:focus {
  width: 220px;
  border-color: var(--gallery-accent-gold);
  box-shadow: 0 0 0 3px var(--gallery-gold-glow);
}

.gallery-search-box i {
  position: absolute;
  left: 11px;
  font-size: 11.5px;
  color: var(--gallery-text-subtle);
  pointer-events: none;
}

.gallery-view-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--gallery-text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.view-toggle-btn.active {
  background: #ffffff;
  color: var(--gallery-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Active Filter Notification Bar */
.gallery-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gallery-border-light);
  font-size: 13.5px;
  color: var(--gallery-text-muted);
}

.gallery-status-bar .results-count {
  font-weight: 600;
  color: var(--gallery-accent);
}

/* ==========================================================================
   PAINTING GALLERY GRID - FINE ART FLOATER FRAME CARDS
   ========================================================================== */
.paintings-gallery-section {
  padding: 45px 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
  transition: all 0.3s ease;
}

.gallery-grid.grid-2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 45px 36px;
}

/* Fine-art Floater Frame Artwork Card */
.painting-card {
  background: var(--gallery-card-bg);
  border: 1px solid var(--gallery-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--gallery-shadow-sm);
}

.painting-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--gallery-shadow-lg);
  border-color: rgba(200, 157, 102, 0.5);
}

/* Floater frame gold corner accents on hover */
.painting-card::before,
.painting-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 10;
}

.painting-card::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--gallery-accent-gold);
  border-left: 2px solid var(--gallery-accent-gold);
  transform: translate(-3px, -3px);
}

.painting-card::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--gallery-accent-gold);
  border-right: 2px solid var(--gallery-accent-gold);
  transform: translate(3px, 3px);
}

.painting-card:hover::before,
.painting-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Image Container with Natural Aspect Preservation */
.painting-image-container {
  position: relative;
  overflow: hidden;
  background: #f1efea;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gallery-border-light);
}

.painting-image-container img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-2col .painting-image-container img {
  height: 380px;
}

.painting-card:hover .painting-image-container img {
  transform: scale(1.05);
}

/* Catalog Number Stamp */
.catalog-number-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  color: var(--gallery-text-main);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Artwork Hover Overlay */
.painting-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13, 52, 65, 0.2) 0%, rgba(13, 52, 65, 0.75) 100%);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
  text-decoration: none;
  z-index: 4;
}

.painting-card:hover .painting-hover-overlay {
  opacity: 1;
}

.view-artwork-btn {
  background: #ffffff;
  color: var(--gallery-accent);
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-artwork-btn:hover {
  background: var(--gallery-accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Card Body */
.painting-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.painting-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.painting-collection-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--gallery-accent-gold-dark);
}

.painting-year-tag {
  font-size: 12px;
  color: var(--gallery-text-subtle);
  font-weight: 500;
}

.painting-card-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 8px;
  line-height: 1.22;
}

.painting-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.painting-card-title a:hover {
  color: var(--gallery-accent-gold-dark);
}

.painting-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 13px;
  color: var(--gallery-text-muted);
  line-height: 1.6;
}

.painting-specs-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.painting-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gallery-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.status-badge.available {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-badge.available::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.status-badge.private {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.painting-price-preview {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gallery-accent);
}

/* ==========================================================================
   FEATURED COLLECTIONS SECTION ("Explore by Collection")
   ========================================================================== */
.explore-collections-section {
  padding: 85px 0 95px;
  background: linear-gradient(180deg, #f4f3ef 0%, #ece9e2 100%);
  border-top: 1px solid var(--gallery-border);
  border-bottom: 1px solid var(--gallery-border);
  position: relative;
}

.section-header-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-weight: 600;
  color: var(--gallery-accent-gold-dark);
  margin-bottom: 10px;
  display: inline-block;
}

.section-title-serif {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--gallery-text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gallery-text-muted);
  line-height: 1.7;
}

.collections-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.collection-card {
  position: relative;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--gallery-shadow-lg);
  border-color: var(--gallery-accent-gold);
}

.collection-card-img {
  height: 235px;
  overflow: hidden;
  position: relative;
}

.collection-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover .collection-card-img img {
  transform: scale(1.08);
}

.collection-series-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(13, 52, 65, 0.85);
  backdrop-filter: blur(4px);
  color: var(--gallery-accent-gold-light);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(200, 157, 102, 0.4);
}

.collection-card-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.collection-card-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 8px;
}

.collection-card-desc {
  font-size: 14px;
  color: var(--gallery-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.collection-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gallery-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  align-self: flex-start;
}

.collection-card-link:hover {
  color: var(--gallery-accent-gold-dark);
  transform: translateX(4px);
}

/* ==========================================================================
   ARTIST STORY SECTION ("Behind the Canvas") - EDITORIAL PULL-QUOTE
   ========================================================================== */
.artist-story-section {
  padding: 95px 0;
  background-color: var(--gallery-bg);
}

.artist-story-wrapper {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--gallery-shadow-md);
  position: relative;
}

.artist-story-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gallery-accent), var(--gallery-accent-gold));
}

.artist-story-img-col {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.artist-story-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-signature-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--gallery-border);
  font-family: var(--font-signature);
  font-size: 26px;
  color: var(--gallery-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.artist-story-content-col {
  padding: 55px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.artist-quote-watermark {
  position: absolute;
  top: 20px;
  right: 35px;
  font-family: var(--font-serif);
  font-size: 140px;
  line-height: 1;
  color: rgba(200, 157, 102, 0.12);
  pointer-events: none;
  user-select: none;
}

.artist-story-content-col h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  color: var(--gallery-text-main);
  margin-bottom: 20px;
  line-height: 1.18;
}

.artist-pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--gallery-accent);
  border-left: 3px solid var(--gallery-accent-gold);
  padding-left: 18px;
  margin: 0 0 20px 0;
  background: rgba(200, 157, 102, 0.05);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
}

.artist-story-content-col p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--gallery-text-muted);
  margin-bottom: 28px;
}

.artist-medium-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.medium-pill {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gallery-text-muted);
  background: #f4f3ef;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--gallery-border);
}

.gallery-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 12px 28px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gallery-accent);
  background: transparent;
  border: 1.5px solid var(--gallery-accent);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.gallery-outline-btn:hover {
  background: var(--gallery-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 52, 65, 0.15);
}

/* ==========================================================================
   ARTWORK INQUIRY CTA - LUXURY MIDNIGHT CANVAS
   ========================================================================== */
.gallery-inquiry-cta {
  padding: 80px 0;
  background: radial-gradient(circle at 50% 30%, #134657 0%, #081d26 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-inquiry-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gallery-accent-gold), transparent);
}

.inquiry-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.inquiry-cta-inner h3 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  margin-bottom: 14px;
  color: #ffffff;
}

.inquiry-cta-inner p {
  font-size: 16px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.gallery-gold-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gallery-accent-gold) 0%, var(--gallery-accent-gold-dark) 100%);
  color: #ffffff;
  padding: 14px 34px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(200, 157, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-gold-btn:hover {
  background: linear-gradient(135deg, #dfba88 0%, var(--gallery-accent-gold) 100%);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(200, 157, 102, 0.6);
}

/* ==========================================================================
   INDIVIDUAL PAINTING DETAIL PAGE - VIRTUAL FRAME & MUSEUM PLAQUE
   ========================================================================== */
.artwork-detail-page {
  padding: 40px 0 85px;
}

.artwork-detail-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 55px;
  align-items: start;
}

/* Interactive Frame Simulation Box */
.artwork-viewer-card {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  padding: 30px;
  border-radius: 6px;
  box-shadow: var(--gallery-shadow-frame);
  position: relative;
  transition: all 0.4s ease;
}

.artwork-frame-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #fbfbfa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

/* Frame Modes */
.artwork-frame-wrapper.frame-black {
  background: #111111;
  padding: 24px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6), 0 15px 30px rgba(0, 0, 0, 0.25);
  border: 12px solid #1a1a1a;
}

.artwork-frame-wrapper.frame-gold {
  background: #2b2318;
  padding: 24px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7), 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 14px solid #b8860b;
  border-image: linear-gradient(to right, #b8860b, #e6ca65, #996515, #e6ca65, #b8860b) 1;
}

.artwork-frame-wrapper.frame-oak {
  background: #d8c3a5;
  padding: 22px;
  border: 14px solid #8c6d46;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.artwork-frame-wrapper.frame-room {
  background: linear-gradient(180deg, #e5e3dc 0%, #d8d5cd 70%, #4a3728 70%, #2f2219 100%);
  padding: 60px 40px 100px;
  border-radius: 4px;
}

.artwork-viewer-img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Frame Selector Controls */
.frame-selector-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gallery-border-light);
  flex-wrap: wrap;
}

.frame-selector-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gallery-text-subtle);
  font-weight: 600;
  margin-right: 4px;
}

.frame-btn {
  background: transparent;
  border: 1px solid var(--gallery-border);
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 20px;
  color: var(--gallery-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frame-btn:hover {
  border-color: var(--gallery-accent-gold);
  color: var(--gallery-text-main);
}

.frame-btn.active {
  background: var(--gallery-accent);
  color: #ffffff;
  border-color: var(--gallery-accent);
}

.artwork-zoom-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gallery-text-subtle);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Right Column: Museum Wall Plaque & Details */
.artwork-info-col {
  padding-left: 5px;
}

.museum-plaque-card {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 6px;
  padding: 32px 30px;
  box-shadow: var(--gallery-shadow-sm);
  position: relative;
  background-image: linear-gradient(180deg, rgba(200, 157, 102, 0.04) 0%, transparent 100%);
}

.museum-plaque-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gallery-accent-gold), transparent);
}

.artwork-detail-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--gallery-text-main);
  line-height: 1.15;
  margin-bottom: 6px;
}

.artwork-artist-name {
  font-size: 15px;
  color: var(--gallery-accent-gold-dark);
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.artwork-specs-table {
  width: 100%;
  margin-bottom: 24px;
  border-top: 1px solid var(--gallery-border);
  border-bottom: 1px solid var(--gallery-border);
}

.artwork-specs-table tr {
  border-bottom: 1px solid var(--gallery-border-light);
}

.artwork-specs-table tr:last-child {
  border-bottom: none;
}

.artwork-specs-table th {
  padding: 11px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--gallery-text-subtle);
  width: 38%;
}

.artwork-specs-table td {
  padding: 11px 0;
  font-size: 14.5px;
  color: var(--gallery-text-main);
  font-weight: 500;
}

/* Certificate of Authenticity Stamp */
.provenance-certificate-tag {
  background: rgba(200, 157, 102, 0.08);
  border: 1px solid rgba(200, 157, 102, 0.35);
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.provenance-certificate-tag i {
  color: var(--gallery-accent-gold-dark);
  font-size: 20px;
}

.provenance-cert-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gallery-text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.provenance-cert-desc {
  font-size: 11.5px;
  color: var(--gallery-text-muted);
  margin-bottom: 0;
}

.artwork-story-block {
  margin-bottom: 28px;
}

.artwork-story-block h4 {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.artwork-story-block h4::before {
  content: "✦";
  font-size: 10px;
  color: var(--gallery-accent-gold);
}

.artwork-story-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gallery-text-muted);
}

.artwork-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.artwork-btn-inquire {
  background: var(--gallery-accent);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(13, 52, 65, 0.2);
}

.artwork-btn-inquire:hover {
  background: #154e60;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 52, 65, 0.3);
}

.artwork-btn-purchase {
  background: transparent;
  color: var(--gallery-accent-gold-dark);
  border: 1.5px solid var(--gallery-accent-gold);
  padding: 13px 28px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.artwork-btn-purchase:hover {
  background: var(--gallery-accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Related Paintings Section */
.related-paintings-section {
  padding: 75px 0 45px;
  border-top: 1px solid var(--gallery-border);
  background: #fbfbfa;
}

/* ==========================================================================
   ABOUT THE ARTIST - EDITORIAL PROFILE STYLES
   ========================================================================== */
.about-hero-section {
  padding: 65px 0 60px;
  background: linear-gradient(180deg, #f7f6f2 0%, var(--gallery-bg) 100%);
  border-bottom: 1px solid var(--gallery-border);
  position: relative;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about-hero-left {
  padding-right: 20px;
}

.about-hero-h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--gallery-text-main);
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.about-hero-supporting {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 26px;
  color: var(--gallery-accent-gold-dark);
  margin-bottom: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.about-hero-intro {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gallery-text-muted);
  font-weight: 300;
  margin-bottom: 30px;
}

.about-hero-image-box {
  position: relative;
  background: #ffffff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow-frame);
}

.about-hero-image-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.about-hero-image-caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gallery-text-subtle);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 4. Artist Biography Section */
.artist-bio-section {
  padding: 95px 0;
  background-color: var(--gallery-bg);
}

.artist-bio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 65px;
  align-items: center;
}

.artist-bio-text h2 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--gallery-text-main);
  margin-bottom: 24px;
  line-height: 1.18;
}

.artist-bio-text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gallery-text-muted);
  margin-bottom: 20px;
}

.artist-bio-image-wrapper {
  position: relative;
  background: #ffffff;
  padding: 18px;
  border: 1px solid var(--gallery-border);
  border-radius: 6px;
  box-shadow: var(--gallery-shadow-md);
}

.artist-bio-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* 5. Painter's Story Section */
.painters-story-section {
  padding: 90px 0;
  background-color: var(--gallery-bg-secondary);
  border-top: 1px solid var(--gallery-border);
  border-bottom: 1px solid var(--gallery-border);
}

.painters-story-container {
  max-width: 900px;
  margin: 0 auto;
}

.painters-story-header {
  text-align: center;
  margin-bottom: 45px;
}

.painters-story-header h2 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--gallery-text-main);
  margin-bottom: 14px;
}

.painters-story-prose p {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--gallery-text-muted);
  margin-bottom: 24px;
}

.story-fullwidth-image-box {
  margin: 45px 0;
  background: #ffffff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow-frame);
}

.story-fullwidth-image-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.story-image-caption {
  font-size: 12.5px;
  color: var(--gallery-text-subtle);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* 6. Painting on Location */
.painting-location-section {
  padding: 95px 0;
  background-color: var(--gallery-bg);
}

.location-destination-cards {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
}

.location-dest-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--gallery-shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.location-dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gallery-shadow-md);
  border-color: rgba(200, 157, 102, 0.4);
}

.location-dest-card.reverse {
  grid-template-columns: 1fr 1fr;
}

.location-dest-card.reverse .location-dest-img {
  order: 2;
}

.location-dest-card.reverse .location-dest-info {
  order: 1;
}

.location-dest-img {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 4px;
  background: #f4f3ef;
}

.location-dest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.location-dest-card:hover .location-dest-img img {
  transform: scale(1.05);
}

.location-dest-info {
  display: flex;
  flex-direction: column;
}

.location-dest-tag {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--gallery-accent-gold-dark);
  margin-bottom: 8px;
}

.location-dest-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 14px;
  line-height: 1.2;
}

.location-dest-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--gallery-text-muted);
  margin-bottom: 22px;
}

.location-dest-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gallery-accent);
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.25s ease;
  border-bottom: 1.5px solid var(--gallery-accent);
  padding-bottom: 3px;
}

.location-dest-btn:hover {
  color: var(--gallery-accent-gold-dark);
  border-color: var(--gallery-accent-gold-dark);
  transform: translateX(4px);
}

/* 7. Artistic Style Section */
.artistic-style-section {
  padding: 95px 0;
  background: linear-gradient(180deg, #f7f6f2 0%, #ece9e2 100%);
  border-top: 1px solid var(--gallery-border);
  border-bottom: 1px solid var(--gallery-border);
}

.style-crops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 45px;
}

.style-crop-card {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--gallery-shadow-sm);
  transition: all 0.35s ease;
}

.style-crop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gallery-shadow-md);
  border-color: var(--gallery-accent-gold);
}

.style-crop-img {
  height: 220px;
  overflow: hidden;
  background: #0d3441;
}

.style-crop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.style-crop-card:hover .style-crop-img img {
  transform: scale(1.08);
}

.style-crop-body {
  padding: 24px 22px;
}

.style-crop-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 8px;
}

.style-crop-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gallery-text-muted);
  margin-bottom: 0;
}

/* 8. Medium & Process Section */
.medium-process-section {
  padding: 95px 0;
  background-color: var(--gallery-bg);
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 45px;
}

.process-step-card {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 6px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  box-shadow: var(--gallery-shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--gallery-accent-gold);
  box-shadow: var(--gallery-shadow-md);
}

.process-step-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--gallery-accent-gold);
  margin-bottom: 8px;
  display: block;
}

.process-step-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gallery-text-main);
  margin-bottom: 10px;
}

.process-step-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gallery-text-muted);
  margin-bottom: 0;
}

/* 9. Artist Philosophy Full-Width Banner */
.artist-philosophy-section {
  padding: 85px 0;
  background: linear-gradient(135deg, #113c4a 0%, #071c26 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.artist-philosophy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gallery-accent-gold), transparent);
}

.philosophy-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.philosophy-heading {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 18px;
}

.philosophy-text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 20px;
  line-height: 1.75;
  color: #e2e8f0;
  margin-bottom: 0;
}

/* 10. Timeline / Journey Section */
.artistic-timeline-section {
  padding: 95px 0;
  background-color: var(--gallery-bg-secondary);
  border-top: 1px solid var(--gallery-border);
  border-bottom: 1px solid var(--gallery-border);
}

.timeline-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 45px;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--gallery-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--gallery-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gallery-shadow-md);
  border-color: var(--gallery-accent-gold);
}

.timeline-card-img {
  height: 190px;
  overflow: hidden;
}

.timeline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.timeline-card:hover .timeline-card-img img {
  transform: scale(1.06);
}

.timeline-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.timeline-stage-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--gallery-accent-gold-dark);
  margin-bottom: 6px;
}

.timeline-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 8px;
}

.timeline-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gallery-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   INTERACTIVE INQUIRY & LIGHTBOX MODALS
   ========================================================================== */
.gallery-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 27, 42, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--gallery-shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid var(--gallery-accent-gold);
}

.gallery-modal-backdrop.active .gallery-modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header-custom {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--gallery-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfbfa;
}

.modal-header-custom h3 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  margin: 0;
  color: var(--gallery-text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--gallery-text-subtle);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--gallery-text-main);
}

.modal-body-custom {
  padding: 26px 28px 30px;
}

.modal-form-group {
  margin-bottom: 18px;
}

.modal-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gallery-text-main);
  margin-bottom: 6px;
}

.modal-form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--gallery-border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form-control:focus {
  border-color: var(--gallery-accent-gold);
  box-shadow: 0 0 0 3px var(--gallery-gold-glow);
}

/* Enhanced Lightbox */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 82vh;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.lightbox-caption {
  color: #e2e8f0;
  font-family: var(--font-serif);
  font-size: 18px;
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.5px;
}

.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #ffffff;
  font-size: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close-btn:hover {
  opacity: 1;
  color: var(--gallery-accent-gold);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
  .gallery-hero-grid,
  .about-hero-grid,
  .artist-bio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .collections-cards-grid,
  .style-crops-grid,
  .timeline-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .artwork-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .location-dest-card,
  .location-dest-card.reverse {
    grid-template-columns: 1fr;
  }

  .location-dest-card.reverse .location-dest-img {
    order: 1;
  }

  .location-dest-card.reverse .location-dest-info {
    order: 2;
  }

  .artist-story-img-col {
    min-height: 320px;
  }

  .gallery-controls-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-search-box {
    width: 100%;
  }

  .gallery-search-input {
    width: 100%;
  }

  .gallery-search-input:focus {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .gallery-hero-title,
  .about-hero-h1 {
    font-size: 36px;
  }

  .about-hero-supporting {
    font-size: 22px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .collections-cards-grid,
  .style-crops-grid,
  .timeline-cards-grid,
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
  
  .artist-story-content-col {
    padding: 38px 25px;
  }
  
  .artist-story-content-col h2,
  .artist-bio-text h2,
  .painters-story-header h2 {
    font-size: 30px;
  }
  
  .painting-image-container img {
    height: 260px;
  }

  .about-hero-image-box img,
  .artist-bio-image-wrapper img {
    height: 340px;
  }
}
