/* ==========================================================================
   50_offering_GM260909 · Tribute Hall · base.css
   ========================================================================== */

:root {
  --off-cream: #f4ecd8;
  --off-cream-2: #faf3e0;
  --off-cream-3: #ebdfc4;
  --off-paper: #fbf6e8;
  --off-ink: #2a2520;
  --off-ink-soft: #4d4538;
  --off-oxblood: #7c2a1a;
  --off-oxblood-deep: #5e1f12;
  --off-brass: #a8814a;
  --off-brass-light: #c9a560;
  --off-brass-deep: #876233;
  --off-sage: #6b7a5c;
  --off-shadow: rgba(42, 37, 32, 0.18);
  --off-divider: rgba(77, 69, 56, 0.28);
  --off-page-texture:
    radial-gradient(ellipse at top right, rgba(168, 129, 74, 0.10), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(124, 42, 26, 0.06), transparent 50%);
  --off-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --off-font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --off-font-body: "Cormorant Garamond", Georgia, serif;
  --off-transition: 220ms ease;
}

* { -moz-box-sizing: border-box; box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--off-font-ui);
  background: var(--off-cream);
  color: var(--off-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-transition: color var(--off-transition);
  transition: color var(--off-transition);
}

button {
  font-family: var(--off-font-ui);
  cursor: pointer;
  background: transparent;
  border: 0;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

input, textarea, select {
  font-family: var(--off-font-ui);
  font-size: 14px;
  color: var(--off-ink);
}

:focus-visible {
  outline: 2px dashed var(--off-oxblood);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { -webkit-transition: none !important; transition: none !important; -webkit-animation: none !important; animation: none !important; }
}

/* ----- App layout shell ------------------------------------------------- */

.off-gallery-page {
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  background: var(--off-page-texture), var(--off-cream);
}

.off-gallery-main {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
     -moz-box-flex: 1;
          flex: 1 1 auto;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

/* ----- Header ----------------------------------------------------------- */

.off-gallery-header {
  background: -webkit-gradient(linear, left top, left bottom, from(var(--off-cream-2)), to(var(--off-cream)));
  background: -webkit-linear-gradient(top, var(--off-cream-2) 0%, var(--off-cream) 100%);
  background: linear-gradient(180deg, var(--off-cream-2) 0%, var(--off-cream) 100%);
  border-bottom: 1px solid var(--off-brass);
  padding: 18px 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

.off-gallery-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--off-oxblood);
}

.off-gallery-header-inner {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 24px;
}

.off-gallery-brand {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 14px;
  font-family: var(--off-font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1.5px;
  color: var(--off-ink);
  white-space: nowrap;
}

.off-gallery-brand:hover { color: var(--off-oxblood); }

.off-gallery-brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--off-brass-deep);
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  font-family: var(--off-font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  color: var(--off-oxblood);
  background: var(--off-cream-2);
  box-shadow: inset 0 0 0 1px var(--off-brass-light);
  letter-spacing: 0;
}

.off-gallery-brand-text em {
  font-style: italic;
  color: var(--off-oxblood);
  font-weight: 500;
}

.off-gallery-brand-stamp {
  margin-left: 4px;
  padding: 5px 10px;
  font-family: var(--off-font-ui);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--off-brass-deep);
  letter-spacing: 2.5px;
  color: var(--off-brass-deep);
  background: var(--off-cream-2);
}

.off-gallery-nav {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  gap: 18px;
  font-family: var(--off-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--off-ink-soft);
}

.off-gallery-nav a {
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.off-gallery-nav a:hover {
  color: var(--off-oxblood);
  border-bottom-color: var(--off-oxblood);
}

.off-gallery-search {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
     -moz-box-flex: 1;
          flex: 1 1 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0;
  max-width: 480px;
  margin-left: auto;
  border: 1.5px solid var(--off-brass-deep);
  background: var(--off-paper);
}

.off-gallery-search-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
     -moz-box-flex: 1;
          flex: 1 1 auto;
  border: 0;
  padding: 10px 14px;
  background: transparent;
  font-family: var(--off-font-ui);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.off-gallery-search-input::-webkit-input-placeholder {
  color: var(--off-brass-deep);
  font-style: italic;
  font-family: var(--off-font-body);
  font-size: 14px;
}

.off-gallery-search-input::-moz-placeholder {
  color: var(--off-brass-deep);
  font-style: italic;
  font-family: var(--off-font-body);
  font-size: 14px;
}

.off-gallery-search-input::placeholder {
  color: var(--off-brass-deep);
  font-style: italic;
  font-family: var(--off-font-body);
  font-size: 14px;
}

.off-gallery-search-input:focus { outline: none; }

.off-gallery-search-trigger {
  background: var(--off-ink);
  color: var(--off-cream);
  padding: 0 18px;
  font-family: var(--off-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  border-left: 1.5px solid var(--off-ink);
  cursor: pointer;
}

.off-gallery-search-trigger:hover {
  background: var(--off-oxblood);
  border-left-color: var(--off-oxblood);
}

/* ----- Footer ----------------------------------------------------------- */

.off-gallery-footer {
  background: -webkit-gradient(linear, left top, left bottom, from(var(--off-ink)), to(#1a1612));
  background: -webkit-linear-gradient(top, var(--off-ink) 0%, #1a1612 100%);
  background: linear-gradient(180deg, var(--off-ink) 0%, #1a1612 100%);
  color: var(--off-cream-2);
  padding: 36px 0 18px;
  margin-top: 36px;
  position: relative;
}

.off-gallery-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--off-brass);
}

.off-gallery-footer-inner {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
}

.off-gallery-footer-crest {
  text-align: center;
  margin-bottom: 24px;
}

.off-gallery-footer-crest-mark {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid var(--off-brass);
  font-family: var(--off-font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--off-brass-light);
}

.off-gallery-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(168, 129, 74, 0.25);
}

.off-gallery-footer-col h5 {
  font-family: var(--off-font-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--off-brass-light);
  letter-spacing: 3px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.off-gallery-footer-col p {
  font-family: var(--off-font-body);
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px;
  color: var(--off-cream-3);
}

.off-gallery-footer-col a {
  display: block;
  font-family: var(--off-font-ui);
  font-size: 12px;
  padding: 4px 0;
  color: var(--off-cream-3);
  text-decoration: none;
  line-height: 1.9;
  letter-spacing: 1px;
}

.off-gallery-footer-col a:hover { color: var(--off-brass-light); }

.off-gallery-footer-bottom {
  padding-top: 14px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 12px;
  font-family: var(--off-font-ui);
  font-size: 10px;
  color: var(--off-brass-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ----- Image Lazy Loading ---------------------------------------------- */

.off-gallery-lazy-image {
  background: var(--off-cream-3);
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: opacity 240ms ease;
  transition: opacity 240ms ease;
  opacity: 0;
}

.off-gallery-lazy-image[src^="data:"] {
  opacity: 0.35;
}

.off-gallery-img-loaded {
  opacity: 1 !important;
}

.off-gallery-img-failed {
  opacity: 0.45;
  background: var(--off-ink);
}

/* ----- Cards (Framed Artwork) ------------------------------------------ */

.off-gallery-card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.off-gallery-frame {
  cursor: pointer;
  position: relative;
  background: var(--off-paper);
  border: 2px solid var(--off-brass-deep);
  padding: 8px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 8px;
  color: var(--off-ink);
  box-shadow:
    inset 0 0 0 5px var(--off-cream-2),
    inset 0 0 0 6px var(--off-brass-light),
    4px 4px 0 var(--off-shadow);
  -webkit-transition: box-shadow var(--off-transition), -webkit-transform var(--off-transition);
  transition: box-shadow var(--off-transition), -webkit-transform var(--off-transition);
  transition: transform var(--off-transition), box-shadow var(--off-transition);
  transition: transform var(--off-transition), box-shadow var(--off-transition), -webkit-transform var(--off-transition);
  overflow: hidden;
}

.off-gallery-frame:hover {
  -webkit-transform: translate(-2px, -2px);
          transform: translate(-2px, -2px);
  box-shadow:
    inset 0 0 0 5px var(--off-cream-2),
    inset 0 0 0 6px var(--off-brass-light),
    6px 6px 0 var(--off-oxblood);
  color: var(--off-ink);
}

.off-frame-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--off-brass-deep);
  z-index: 1;
}

.off-frame-corner-tl { top: 2px; left: 2px; border-right: 0; border-bottom: 0; }

.off-frame-corner-tr { top: 2px; right: 2px; border-left: 0; border-bottom: 0; }

.off-frame-corner-bl { bottom: 2px; left: 2px; border-right: 0; border-top: 0; }

.off-frame-corner-br { bottom: 2px; right: 2px; border-left: 0; border-top: 0; }

.off-frame-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--off-font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--off-cream);
  background: var(--off-oxblood);
  padding: 2px 7px;
  text-transform: uppercase;
  z-index: 1;
}

.off-frame-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: -webkit-linear-gradient(315deg, var(--off-cream-3), var(--off-cream));
  background: linear-gradient(135deg, var(--off-cream-3), var(--off-cream));
  border: 1px solid var(--off-brass);
  overflow: hidden;
  position: relative;
}

.off-frame-plaque {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 4px;
  padding: 6px 10px;
  background: var(--off-cream-3);
  border: 1px solid var(--off-brass);
  min-width: 0;
}

.off-frame-plaque-name {
  font-family: var(--off-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--off-ink);
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.off-frame-plaque-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  font-family: var(--off-font-ui);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.off-frame-plaque-num {
  color: var(--off-brass-deep);
  font-weight: 600;
}

.off-frame-plaque-genre {
  color: var(--off-oxblood);
  font-weight: 600;
}

/* ----- Section header -------------------------------------------------- */

.off-gallery-section {
  margin-bottom: 30px;
}

.off-gallery-section-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--off-ink);
  position: relative;
}

.off-gallery-section-head::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--off-oxblood);
}

.off-gallery-section-tag {
  font-family: var(--off-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--off-oxblood);
  text-transform: uppercase;
}

.off-gallery-section-head h3 {
  margin: 0;
  font-family: var(--off-font-display);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.4px;
  color: var(--off-ink);
}

.off-gallery-section-see {
  margin-left: auto;
  font-family: var(--off-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--off-cream);
  background: var(--off-ink);
  padding: 8px 16px;
  border: 1px solid var(--off-ink);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.off-gallery-section-see:hover {
  background: var(--off-oxblood);
  border-color: var(--off-oxblood);
}

/* ----- Advertisement visual classes (CSS-driven by common.js) ---------- */

.off-gallery-ad-frame {
  margin: 16px auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}

.off-gallery-ad-slot {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-inline: auto;
  min-height: 250px;
  max-width: 300px;
  width: 100%;
  background: var(--off-cream-3);
  border: 1px dashed var(--off-brass-deep);
}

.off-gallery-ad-tag {
  text-align: center;
  font-family: var(--off-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--off-oxblood);
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* ----- Buttons --------------------------------------------------------- */

.off-gallery-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  padding: 12px 22px;
  font-family: var(--off-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--off-ink);
  -webkit-transition: all var(--off-transition);
  transition: all var(--off-transition);
  text-decoration: none;
}

.off-gallery-btn-primary {
  background: var(--off-oxblood);
  border-color: var(--off-oxblood-deep);
  color: var(--off-cream);
}

.off-gallery-btn-primary:hover {
  background: var(--off-oxblood-deep);
  border-color: var(--off-oxblood-deep);
}

.off-gallery-btn-secondary {
  background: transparent;
  border-color: var(--off-brass-deep);
  color: var(--off-ink);
}

.off-gallery-btn-secondary:hover {
  background: var(--off-brass-light);
  border-color: var(--off-brass-deep);
  color: var(--off-ink);
}

.off-gallery-btn-ink {
  background: var(--off-ink);
  border-color: var(--off-ink);
  color: var(--off-cream);
}

.off-gallery-btn-ink:hover {
  background: var(--off-oxblood);
  border-color: var(--off-oxblood);
}

/* ----- Flavor / curator's note panel (decorative, optional) ------------ */

.off-gallery-note {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: min(280px, 80vw);
  background: var(--off-paper);
  border: 1.5px solid var(--off-brass-deep);
  padding: 12px 14px;
  font-family: var(--off-font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--off-ink-soft);
  box-shadow:
    inset 0 0 0 4px var(--off-cream-2),
    inset 0 0 0 5px var(--off-brass-light),
    4px 4px 0 var(--off-shadow);
  cursor: pointer;
  z-index: 80;
  letter-spacing: 0.2px;
}

.off-gallery-note-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--off-brass);
}

.off-gallery-note-stamp {
  font-family: var(--off-font-ui);
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  color: var(--off-oxblood);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.off-gallery-note-host {
  font-family: var(--off-font-ui);
  font-style: normal;
  font-size: 10px;
  color: var(--off-brass-deep);
  letter-spacing: 1.2px;
}

.off-gallery-note-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}

.off-gallery-note-list li {
  margin-bottom: 4px;
}

.off-gallery-reduced-motion .off-gallery-note { -webkit-transition: none; transition: none; }

/* ----- Responsive ------------------------------------------------------- */

@media (max-width: 1050px) {
  .off-gallery-card-grid { grid-template-columns: repeat(4, 1fr); }
  .off-gallery-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .off-gallery-nav { display: none; }
}

@media (max-width: 480px) {
  .off-gallery-header { padding: 12px 0; }
  .off-gallery-header-inner { -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 10px; }
  .off-gallery-brand { font-size: 16px; }
  .off-gallery-brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .off-gallery-brand-stamp { display: none; }
  .off-gallery-search { width: 100%; -webkit-box-ordinal-group: 4; -webkit-order: 3; -moz-box-ordinal-group: 4; order: 3; margin-left: 0; }
  .off-gallery-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .off-gallery-section-head h3 { font-size: 18px; }
  .off-gallery-section-tag { font-size: 9px; letter-spacing: 2px; }
  .off-gallery-footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .off-gallery-footer-bottom { font-size: 9px; }
  .off-gallery-frame { padding: 6px; }
  .off-frame-plaque { padding: 5px 8px; }
  .off-frame-plaque-name { font-size: 12px; }
  .off-gallery-note { bottom: 10px; right: 10px; padding: 10px 12px; }
}

