/* ==========================================================================
   Global Boxing — Galeria Summit 2026
   ========================================================================== */

.sg-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at top right, rgba(225, 6, 0, 0.16), transparent 48%),
    linear-gradient(180deg, #0c0c0c 0%, #090909 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sg-header {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.sg-header .eyebrow {
  color: var(--gb-red, #e10600);
}

.sg-meta {
  margin: 0.85rem 0 0;
  color: rgba(242, 242, 242, 0.62);
  font-size: 0.95rem;
}

.sg-status {
  margin: 0.75rem 0 0;
  color: #ffb4b0;
  font-size: 0.92rem;
}

.sg-albums-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sg-album {
  position: relative;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: #121212;
  color: #fff;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.sg-album:hover,
.sg-album:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(225, 6, 0, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.sg-album-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0f0f0f;
}

.sg-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.sg-album:hover .sg-album-cover img {
  transform: scale(1.04);
}

.sg-album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.sg-album-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.05rem;
  display: grid;
  gap: 0.25rem;
}

.sg-album-body strong {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.25;
}

.sg-album-body span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.sg-photos-view {
  margin-top: 0.25rem;
}

.sg-photos-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.sg-back {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f2f2;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.sg-back:hover {
  border-color: rgba(225, 6, 0, 0.45);
  background: rgba(225, 6, 0, 0.12);
}

.sg-photos-heading h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.sg-photos-heading p {
  margin: 0;
  color: rgba(242, 242, 242, 0.62);
}

.sg-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.sg-photo {
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sg-photo:hover,
.sg-photo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  outline: 2px solid rgba(225, 6, 0, 0.55);
  outline-offset: 2px;
}

.sg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

.sg-load-more {
  border: 1px solid rgba(225, 6, 0, 0.45);
  background: rgba(225, 6, 0, 0.14);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.sg-load-more:disabled {
  opacity: 0.55;
  cursor: wait;
}

.sg-sentinel {
  height: 1px;
  width: 100%;
  margin-top: 0.5rem;
}

/* Lightbox */
.sg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 5.5rem;
}

.sg-lightbox.is-open {
  display: flex;
}

.sg-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.sg-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  max-height: calc(100vh - 6.5rem);
  display: grid;
  place-items: center;
}

.sg-lightbox-figure {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  position: relative;
  width: 100%;
}

.sg-lightbox-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  gap: 0.65rem;
  flex-direction: column;
  pointer-events: none;
}

.sg-lightbox.is-loading .sg-lightbox-loader {
  display: flex;
}

.sg-lightbox-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--gb-red, #e10600);
  animation: sg-spin 0.75s linear infinite;
}

.sg-lightbox-loader-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sg-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 7.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: opacity 180ms ease;
}

.sg-lightbox-img.is-loading {
  opacity: 0.25;
}

@keyframes sg-spin {
  to {
    transform: rotate(360deg);
  }
}

.sg-lightbox-caption {
  margin-top: 0.55rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.sg-lightbox-close,
.sg-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.sg-lightbox-close {
  top: 0.35rem;
  right: 0.35rem;
}

.sg-lightbox-prev {
  left: 0.2rem;
  top: 45%;
}

.sg-lightbox-next {
  right: 0.2rem;
  top: 45%;
}

.sg-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.sg-lightbox-sharebar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  max-width: calc(100vw - 1.5rem);
}

.sg-lightbox-share-label {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.sg-lightbox-share {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.sg-share-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sg-share-icon span {
  line-height: 1;
}

.sg-share-icon:hover {
  transform: translateY(-1px);
}

.sg-share-icon--facebook:hover {
  border-color: rgba(24, 119, 242, 0.7);
  background: rgba(24, 119, 242, 0.22);
}

.sg-share-icon--x:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.sg-share-icon--copy:hover,
.sg-share-icon--native:hover {
  border-color: rgba(225, 6, 0, 0.45);
  background: rgba(225, 6, 0, 0.16);
}

@media (max-width: 1100px) {
  .sg-photos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sg-albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sg-albums-grid,
  .sg-photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-lightbox {
    padding: 0.75rem 0.75rem 5.8rem;
  }

  .sg-lightbox-img {
    max-height: calc(100vh - 8rem);
  }

  .sg-lightbox-prev,
  .sg-lightbox-next {
    top: auto;
    bottom: 1.2rem;
  }

  .sg-lightbox-sharebar {
    bottom: 0.7rem;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem 0.45rem 0.7rem;
  }

  .sg-lightbox-share-label {
    font-size: 0.75rem;
  }

  .sg-share-icon span {
    display: none;
  }

  .sg-share-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .sg-share-icon--native {
    display: inline-flex;
  }
}
