/* SCOPU Galeries — scoped to avoid changing any other site pages. */
.scg-index-hero {
  padding-bottom: 3.6rem;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.scg-eyebrow {
  display: block;
  margin-bottom: 1.2rem;
  color: #757575;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scg-index-hero h1,
.scg-single-hero h1 {
  max-width: 960px;
  margin: 0 0 1.15rem;
  color: #0a0a0a;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.scg-index-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 38rem;
}
.scg-period { color: #888; }
.scg-index-section { padding: 3.4rem 0 5rem; }
.scg-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
  color: #555;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.scg-section-heading span:last-child { color: #757575; }
.scg-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.25rem; }
.scg-event-link { display: block; height: 100%; text-decoration: none; color: inherit; }
.scg-event-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #161616; }
.scg-event-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; }
.scg-event-link:hover .scg-event-cover img { transform: scale(1.045); }
.scg-cover-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #eee; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.045em; }
.scg-cover-icon { position: absolute; display: grid; place-items: center; bottom: 0; right: 0; width: 44px; height: 44px; background: #fff; color: #111; font-size: 1.45rem; transition: background .25s ease, color .25s ease; }
.scg-event-link:hover .scg-cover-icon { background: #111; color: #fff; }
.scg-event-info { padding-top: 1.15rem; }
.scg-card-date { display: block; margin-bottom: .6rem; color: #777; font-size: .76rem; letter-spacing: .065em; text-transform: uppercase; }
.scg-event-info h2 { font-size: clamp(1.12rem, 1.8vw, 1.4rem); line-height: 1.25; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.scg-event-info p { margin: .5rem 0 0; color: #666; font-size: .88rem; line-height: 1.6; }
.scg-card-action { display: inline-flex; align-items: center; gap: .6rem; margin-top: .85rem; padding-bottom: .2rem; border-bottom: 1px solid #bbb; color: #111; font-size: .82rem; font-weight: 500; }
.scg-card-action span { transition: transform .25s ease; }
.scg-event-link:hover .scg-card-action span { transform: translate(3px, -3px); }
.scg-empty { padding: 5rem 2rem; text-align: center; background: #f7f7f7; }
.scg-empty-mark { display: block; font-size: 4rem; font-weight: 600; letter-spacing: -.08em; line-height: 1; margin-bottom: 1.3rem; }
.scg-empty h2 { margin: 0 0 .55rem; font-size: 1.5rem; font-weight: 500; }
.scg-empty p { color: #777; margin: 0; }
.scg-pagination ul { margin: 2.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.scg-pagination a, .scg-pagination span { display: inline-flex; padding: .65rem 1rem; color: #111; border: 1px solid #ddd; text-decoration: none; }
.scg-pagination .current, .scg-pagination a:hover { background: #111; color: #fff; border-color: #111; }
.scg-single-hero { padding: calc(var(--header-h, 80px) + 3rem) 0 2.2rem; }
.scg-back { display: inline-block; color: #666; font-size: .84rem; margin-bottom: 3rem; text-decoration: none; border-bottom: 1px solid transparent; }
.scg-back:hover { color: #111; border-bottom-color: #111; }
.scg-single-hero h1 { font-size: clamp(2.35rem, 6vw, 5rem); margin-bottom: .8rem; }
.scg-single-date { color: #777; font-size: .85rem; letter-spacing: .05em; margin: 0; }
.scg-event-intro { margin-top: 1.5rem; max-width: 48rem; color: #666; font-size: 1rem; line-height: 1.75; }
.scg-event-intro > *:last-child { margin-bottom: 0; }
.scg-event-intro a { text-decoration: underline; text-underline-offset: 3px; }
.scg-single-tips { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; border-top: 1px solid #e8e8e8; margin-top: 2.6rem; padding-top: 1.1rem; color: #666; font-size: .81rem; }
.scg-single-tips span span { display: inline-block; font-size: 1.15rem; font-weight: 500; color: #111; margin-right: .3rem; }
.scg-gallery-section { padding: 1rem 0 5rem; min-height: 30vh; }
.scg-foogallery { width: 100%; min-height: 220px; }
/* Let FooGallery own its responsive layout/lightbox, but remove unnecessary frames. */
.scg-foogallery .fg-gallery { max-width: 100%; }
.scg-gallery-unavailable { padding: 5rem 2rem; text-align: center; background: #f7f7f7; }
.scg-gallery-unavailable h2 { font-size: 1.4rem; font-weight: 500; margin-bottom: .5rem; }
.scg-gallery-unavailable p { color: #666; }
.scg-bottom-note { background: #111; color: #fff; padding: 2.5rem 0; }
.scg-bottom-note .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.scg-bottom-note p { max-width: 42rem; margin: 0; color: #dedede; font-size: .95rem; line-height: 1.7; }
.scg-bottom-note strong { color: #fff; }
.scg-bottom-note a { flex: 0 0 auto; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); padding: .35rem 0; font-size: .85rem; }
.scg-bottom-note a:hover { border-bottom-color: #fff; }
/* Accessible invitation popup. Hidden until JavaScript opts to open it. */
.scg-modal[hidden] { display: none !important; }
.scg-modal { position: fixed; inset: 0; z-index: 2147480000; display: grid; place-items: center; padding: 1rem; }
.scg-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(5px); }
.scg-modal-panel { position: relative; z-index: 1; background: #111; color: #fff; width: min(100%, 510px); padding: clamp(2rem, 5vw, 3rem); max-height: min(90dvh, 740px); overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.32); outline: none; }
.scg-modal-close { position: absolute; top: .8rem; right: 1rem; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; color: #bbb; font: 300 2rem/1 Arial, sans-serif; cursor: pointer; }
.scg-modal-close:hover { color: #fff; }
.scg-modal-logo { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.08em; margin-bottom: 2rem; line-height: 1; }
.scg-modal-logo span { color: #888; }
.scg-modal-kicker { display: block; color: #a6a6a6; font-size: .68rem; letter-spacing: .16em; font-weight: 600; margin-bottom: .7rem; }
.scg-modal-panel h2 { font-size: clamp(1.65rem, 5vw, 2.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; margin: 0 0 1rem; color: #fff; }
.scg-modal-panel p { font-size: .95rem; color: #ccc; line-height: 1.75; margin: 0 0 1.4rem; }
.scg-modal-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.scg-modal-list li { display: flex; align-items: flex-start; gap: .7rem; color: #e6e6e6; font-size: .88rem; line-height: 1.4; }
.scg-modal-list li span { width: 1.25rem; flex: 0 0 1.25rem; color: #fff; font-size: 1.15rem; line-height: 1; text-align: center; }
.scg-modal-follow { display: flex; justify-content: space-between; align-items: center; gap: .7rem; width: 100%; padding: 1rem 1.2rem; background: #fff; color: #0a0a0a; text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .2s ease; }
.scg-modal-follow:hover { color: #0a0a0a; background: #ddd; }
.scg-modal-continue { display: block; margin: 1.2rem auto 0; padding: .5rem; background: transparent; border: 0; border-bottom: 1px solid #888; color: #eee; font: inherit; font-size: .82rem; cursor: pointer; }
.scg-modal-continue:hover { color: #fff; border-bottom-color: #fff; }
.scg-modal a:focus-visible, .scg-modal button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
body.scg-modal-open { overflow: hidden; }
@media (max-width: 900px) {
  .scg-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .scg-index-hero { padding-bottom: 2.2rem; }
  .scg-index-section { padding: 2.25rem 0 3.5rem; }
  .scg-section-heading { font-size: .65rem; margin-bottom: 1.3rem; }
  .scg-event-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .scg-single-hero { padding-top: calc(var(--header-h, 80px) + 1.7rem); }
  .scg-back { margin-bottom: 2rem; }
  .scg-gallery-section { padding-bottom: 3.3rem; }
  .scg-bottom-note .container { flex-direction: column; align-items: flex-start; }
  .scg-modal-panel { padding: 2.3rem 1.5rem 1.8rem; }
  .scg-modal-logo { margin-bottom: 1.6rem; }
  .scg-modal-list { margin-bottom: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scg-event-cover img, .scg-cover-icon, .scg-card-action span, .scg-modal-follow { transition: none; }
}

/* Editorial column stagger, applied only to the public SCOPU event pages.
   FooGallery remains responsible for positioning thumbnails and the lightbox.
   Using the independent CSS translate property preserves plugin transforms. */
.scg-foogallery.scg-has-stagger {
  padding-bottom: var(--scg-stagger-bottom, 0px);
}
.scg-foogallery.scg-has-stagger .foogallery.fg-masonry .fg-item .fg-item-inner {
  translate: 0 var(--scg-stagger-shift, 0px);
}
@media (prefers-reduced-motion: reduce) {
  .scg-foogallery.scg-has-stagger .foogallery.fg-masonry .fg-item .fg-item-inner {
    transition: none;
  }
}

/* Homepage: latest galleries, loaded only when the gallery plugin is active. */
.scg-home-showcase { padding-top: 5rem; padding-bottom: 5rem; }
.scg-home-showcase .scg-home-header { align-items: end; }
.scg-home-showcase .scg-event-info h3 { font-size: clamp(1.12rem,1.8vw,1.4rem); font-weight: 600; letter-spacing: -.035em; margin: 0; }
.scg-home-event-grid { margin-top: 2rem; }
@media (max-width: 640px) {
  .scg-home-showcase { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .scg-home-showcase .scg-home-header { align-items: start; flex-direction: column; }
  .scg-home-event-grid { margin-top: 1.3rem; }
}
.scg-ig-inline { margin-left:auto; color: #111; text-decoration: none; border-bottom: 1px solid currentColor; }
.scg-ig-inline:hover { color: #666; }
.scg-download-notice[hidden] { display: none !important; }
.scg-download-notice {
  position: fixed; z-index: 2147481000; bottom: max(1rem, env(safe-area-inset-bottom));
  right: 1rem; width: min(390px, calc(100vw - 2rem)); padding: 1.35rem 2.6rem 1.35rem 1.4rem;
  background: #111; color: #fff; box-shadow: 0 12px 44px rgba(0,0,0,.3);
  border: 1px solid #333; font-size: .88rem; line-height: 1.5;
}
.scg-download-notice strong { color: #fff; display: block; font-size: .95rem; margin-bottom: .35rem; }
.scg-download-notice p { color: #d5d5d5; margin: 0 0 .7rem; }
.scg-download-notice a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.scg-download-dismiss { background: transparent; color: #fff; border: 0; position: absolute; right: .8rem; top: .6rem; font-size: 1.4rem; cursor: pointer; }
.scg-download-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
