@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --page-bg: #f3f6fb;
  --surface: #ffffff;
  --text: #334155;
  --text-dark: #0f172a;
  --muted: #64748b;
  --accent: #d31018; /* Brand Red */
  --accent-hover: #b00b12;
  --accent-light: #fdf2f2;
  --line: rgba(30, 41, 59, 0.08);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 44px rgba(15, 23, 42, 0.12);
}

html {
  background: var(--page-bg) !important;
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--text) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* TOP NAVIGATION BAR */
.top-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(30, 41, 59, 0.05);
  padding: 14px clamp(20px, 3vw, 38px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 112px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 3vw, 42px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 0 16px;
  border-bottom: 4px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link.active {
  border-bottom-color: var(--accent);
}

.nav-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.nav-link.active .nav-icon {
  color: var(--accent);
}

.nav-date-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, 0.08);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
}

.badge-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  stroke-width: 2.2;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-title {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.badge-value {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 1px;
  line-height: 1.2;
}

/* OVERRIDE main.css header fixed height (114px) to allow hero to expand */
header {
  height: auto !important;
  overflow: visible !important;
}

/* HERO COVER SECTION (FULL WIDTH WHITE AREA) */
.hero {
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 12px clamp(20px, 3vw, 38px) 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.hero-content {
  display: block;
  min-height: 430px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Red Dot grid pattern */
.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -38px;
  width: 120px;
  height: 96px;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 21%, rgba(255, 255, 255, 0.94) 29%, rgba(255, 255, 255, 0.56) 41%, rgba(255, 255, 255, 0.04) 57%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 82%, #ffffff 100%);
}

.hero-copy {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 2;
  width: min(520px, 54%);
  min-height: 430px;
  align-content: center;
  padding: 22px 0 32px 20px;
  box-sizing: border-box;
}

.hero .title,
.hero-copy .title {
  margin: 0;
  font-size: clamp(2.65rem, 4.2vw, 4.25rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-dark);
}

.title-red {
  color: var(--accent);
}

.title-script {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.6em;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-4deg);
  margin-left: 2px;
  margin-top: 4px;
  line-height: 1;
}

.hero .author {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
}

.hero-kicker {
  margin: 0 0 -6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* OVERRIDE main.css hero author positioning (was position: absolute) */
.hero .author,
.hero-copy .author,
#galleryAuthor {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
}

.hero-actions {

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.hero-metrics strong {
  margin-right: 4px;
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 180ms ease;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border-color: rgba(15, 23, 42, 0.15);
}

.button-secondary:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.3);
}

.btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  min-height: 430px;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  z-index: 0;
}

.hero-banner-image {
  width: 100%;
  height: 100%;
  min-height: 430px;
  background: url("../imgs/banner.png") center center / cover no-repeat;
  border-radius: 0;
}

/* COMBINED SUMMARY CARDS BAR */
.hero-summary {
  width: min(100% - 64px, 1150px);
  margin: 0 auto;
  box-sizing: border-box;
}

.summary-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 28px;
  width: 100%;
  box-sizing: border-box;
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0.95;
}

.summary-info-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.summary-divider {
  width: 1px;
  height: 52px;
  background: rgba(15, 23, 42, 0.08);
  margin: 0 32px;
  flex-shrink: 0;
}

.summary-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.summary-link-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.summary-link-label {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.summary-link-input-group {
  display: flex;
  gap: 8px;
  flex: 1;
  width: 100%;
}

.summary-link-input-group input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.summary-link-input-group input:focus {
  border-color: var(--accent);
  background: #ffffff;
}

.summary-link-input-group button {
  border: none;
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  width: 44px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
  box-sizing: border-box;
}

.summary-link-input-group button:hover {
  background: var(--accent-hover);
}

.summary-link-input-group button svg {
  width: 18px;
  height: 18px;
}

.summary-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff5f5;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  flex-shrink: 0;
}

.summary-icon svg {
  width: 32px;
  height: 32px;
}

.summary-label {
  margin: 0 0 2px;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.text-red {
  color: var(--accent);
}

.summary-text {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}

.sponsor-premium,
.coverage-intro {
  width: min(100% - 64px, 1150px);
  margin: 18px auto 0;
  box-sizing: border-box;
}

.sponsor-premium-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 58%, #d31018 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.sponsor-premium-carousel {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background: #111827;
}

.premium-banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 2600ms ease;
  pointer-events: none;
}

.premium-banner-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.premium-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.sponsor-premium-carousel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.16) 100%);
}

.sponsor-copy {
  display: grid;
  gap: 4px;
}

.sponsor-kicker {
  color: #fecaca;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sponsor-copy strong {
  font-size: 18px;
  line-height: 1.2;
}

.sponsor-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.sponsor-cta,
.intro-whatsapp,
.inline-sponsor-card a,
.mobile-action-bar a,
.mobile-action-bar button {
  text-decoration: none;
}

.sponsor-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.coverage-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 4px;
}

.coverage-intro h2 {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.coverage-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.intro-whatsapp {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(211, 16, 24, 0.18);
  background: #ffffff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

/* GALLERY REGISTROS SECTION */
.gallery-section {
  width: min(100% - 64px, 1150px);
  margin: 26px auto 0;
  box-sizing: border-box;
}

.gallery-section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.gallery-header-bottom {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.gallery-title-wrapper {
  position: relative;
  padding-left: 14px;
}

.gallery-title-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-label {
  margin: 0;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.gallery-filters {
  display: flex;
  gap: 8px;
}

.filter-button {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #64748b;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.filter-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.filter-button.active svg,
.filter-button:hover svg {
  color: #ffffff;
}

/* SEARCH INPUT */
.gallery-search-container {
  display: flex;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  width: 220px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #ffffff;
  color: var(--text-dark);
  transition: all 0.2s;
  box-sizing: border-box;
}

.search-input-wrapper input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 16, 24, 0.08);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
  stroke-width: 2.2;
}

/* GALLERY MAIN LAYOUT */
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 242px;
  gap: 30px;
  margin-bottom: 24px;
  align-items: start;
}

.gallery-main {
  min-width: 0;
}

.featured-moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.featured-moments article {
  min-height: 112px;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.featured-moments span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.featured-moments strong {
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.25;
}

.featured-moments p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.photos-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.inline-sponsor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px dashed rgba(211, 16, 24, 0.34);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.inline-sponsor-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inline-sponsor-card strong {
  flex: 1;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.3;
}

.inline-sponsor-card a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

#thumbnailContainer {
  padding: 0;
  overflow: visible;
}

div.thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
}

/* OVERRIDE main.css thumbnail float layout — use CSS grid instead */
div.thumbnails {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  overflow: visible !important;
}

div.thumbnail {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  padding-bottom: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 8px !important;
  background-color: #e2e8f0 !important; /* DO NOT use background shorthand — JS sets background-image */
  background-size: cover !important;
  background-position: center center !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
  cursor: pointer !important;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 220ms ease !important;
}

div.thumbnail img,
.thumb-img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 100% !important;
  object-fit: cover !important;
  border: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transition: transform 300ms ease !important;
}

div.thumbnail:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
}

div.thumbnail:hover img {
  transform: scale(1.05) !important;
}

#thumbnailContainer {
  padding: 0 !important;
  overflow: visible !important;
  font-size: initial !important;
}



div.thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ffffff url("../imgs/logo.png") center / min(62%, 120px) no-repeat;
  opacity: 0;
  transition: opacity 180ms ease;
}

div.thumbnail.is-loading::before {
  opacity: 1;
}

div.thumbnail.is-loaded::before {
  opacity: 0;
  pointer-events: none;
}

div.thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

div.thumbnail img,
.thumb-img {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border: 0;
  transition: transform 300ms ease;
}

div.thumbnail:hover img {
  transform: scale(1.05);
}

/* THUMBNAIL OVERLAYS */
.thumbnail-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.75);
  padding: 8px 12px;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
  transform: translateY(1px);
}

.thumbnail-overlay span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* SIDEBAR CARD */
.partners-sidebar {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sidebar-header {
  background: var(--accent);
  padding: 14px 16px;
  color: #ffffff;
}

#partnersTitle {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.sidebar-card-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sponsor-seal {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.partners-list {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  width: 100%;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 280ms ease, transform 280ms ease, max-height 280ms ease;
  width: 100%;
  box-sizing: border-box;
}

.partner-logo.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
}

.partner-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 180px;
  height: auto;
  object-fit: contain;
  transform: scale(1.35);
}

.sidebar-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.sidebar-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-features li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.feature-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.3;
}

.feature-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

.partners-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* PAGINATION ROW */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 0;
  margin-top: 24px;
  padding: 0;
  color: var(--text);
  font-size: 14px;
}

.pagination-button {
  min-width: 110px;
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #ffffff;
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: #ffffff;
}

.pagination-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-numbers {
  display: flex;
  gap: 6px;
}

.page-number-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px; /* matching red square */
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.page-number-btn:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.page-number-btn.active {
  color: #ffffff;
  background: var(--accent);
  border-radius: 4px;
}

/* REDESIGNED FOOTER */
.site-footer {
  margin-top: 54px;
  padding: 34px clamp(20px, 3vw, 38px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: var(--muted);
  box-sizing: border-box;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1150px);
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 108px;
  width: auto;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-left: 1px solid rgba(15, 23, 42, 0.12);
  padding-left: 18px;
}

.footer-tagline {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-subtagline {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-left: 8px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-icon:hover {
  transform: scale(1.1);
}

.facebook {
  background: #1877f2;
}

.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.youtube {
  background: #ff0000;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-right p + p {
  margin-top: 4px;
}

.site-footer strong {
  color: var(--text-dark);
}

.mobile-action-bar {
  display: none;
}

.developer-link {
  color: var(--accent) !important;
  font-weight: 700;
  text-decoration: none;
}

.developer-link:hover {
  text-decoration: underline;
}

/* GALLERY LOADING OVERLAY */
.gallery-loading {
  inset: 0;
  position: fixed;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-loading img {
  width: 80px;
  height: auto;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.gallery-is-loading .gallery-loading {
  opacity: 1;
  pointer-events: auto;
}

/* LOUPE VIEW STYLES */
#loupeContainer div.background {
  background: rgba(9, 13, 23, 0.98) !important;
}

#loupeContainer img {
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

#loupeContainer div.info-container {
  min-height: 80px;
  padding: 16px 24px;
  background: rgba(9, 13, 23, 0.85);
  color: #f8fafc;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

#loupeContainer ul {
  line-height: 45px;
}

.photo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s;
}

.photo-action-button:hover {
  background: #ffffff;
  color: #0f172a;
}

#loupeMeta p.title,
#loupeMeta p.caption {
  color: #f8fafc;
}

.custom-colorable {
  fill: var(--accent) !important;
}

#loupeContainer .custom-colorable {
  fill: #ffffff !important;
}

#loupeCloseButton {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 30 !important;
  width: auto !important;
  min-width: 112px;
  height: 46px !important;
  padding: 0 12px 0 18px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(211, 16, 24, 0.94);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.loupe-active #loupeCloseButton {
  display: inline-flex !important;
}

#loupeCloseButton:hover,
#loupeCloseButton:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.loupe-close-text {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

#svgIconLoupeClose {
  position: static !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
}

/* RESPONSIVE DESIGN MEDIA QUERIES */
@media (max-width: 900px) {
  .hero-content {
    min-height: auto;
  }

  .hero-visual {
    position: relative;
    min-height: 280px;
    margin-top: 18px;
    border-radius: 12px;
  }

  .hero-banner-image {
    min-height: 280px;
    border-radius: 12px;
  }

  .hero-content::after {
    display: none;
  }

  .hero-copy {
    width: 100%;
    min-height: auto;
    padding: 26px 0 0;
  }

  .hero-summary {
    grid-template-columns: 1fr;
  }

  .summary-container {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .summary-left {
    width: 100%;
  }

  .summary-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }

  .summary-right {
    width: 100%;
    justify-content: flex-start;
  }

  .summary-link-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sponsor-premium,
  .coverage-intro {
    width: min(100% - 40px, 1150px);
  }

  .sponsor-premium-content,
  .coverage-intro,
  .inline-sponsor-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .sponsor-premium-carousel {
    aspect-ratio: 16 / 7;
  }

  .sponsor-cta,
  .intro-whatsapp,
  .inline-sponsor-card a {
    width: 100%;
    box-sizing: border-box;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .featured-moments {
    grid-template-columns: 1fr;
  }

  .partners-sidebar {
    position: static;
    top: auto;
  }

  .partners-list {
    min-height: 100px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand-text {
    border-left: none;
    padding-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    padding: 12px 16px;
  }

  .nav-links {
    display: none; /* simple hidden mobile menu in this layout */
  }

  .nav-date-badge {
    padding: 4px 10px;
  }

  .badge-icon {
    width: 16px;
    height: 16px;
  }

  .badge-value {
    font-size: 10px;
  }

  .gallery-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

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

  .gallery-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-button {
    flex-shrink: 0;
  }

  .mobile-action-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-action-bar a,
  .mobile-action-bar button {
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: #f8fafc;
    color: var(--text-dark);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
  }

  .mobile-action-bar a:first-child {
    background: var(--accent);
    color: #ffffff;
  }

  .site-footer {
    padding-bottom: 94px;
  }

  div.thumbnails {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }

  .thumbnail-overlay span {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  div.thumbnails {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .hero .title,
  .hero-copy .title {
    font-size: 2.55rem;
  }

  .hero-metrics span {
    font-size: 11px;
  }

  .sponsor-premium,
  .coverage-intro,
  .gallery-section,
  .hero-summary {
    width: min(100% - 28px, 1150px);
  }

  .summary-label,
  .summary-text {
    font-size: 17px;
  }

  .sponsor-premium-carousel {
    aspect-ratio: 4 / 3;
  }

  .coverage-intro h2 {
    font-size: 1.35rem;
  }

  .coverage-intro p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .gallery-pagination {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pagination-numbers {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .pagination-button {
    min-width: 104px;
  }
}
