
/* =========================================
   SITE-WIDE RESET
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  overflow-x: clip;
}

/* =========================================
   TYPOGRAPHY
========================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  line-height: 1.1;
}

p {
  line-height: 1.5;
}

/* =========================================
   LINKS
========================================= */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================================
   IMAGES & MEDIA
========================================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

video {
  width: 100%;
  height: auto;
}

/* =========================================
   LISTS
========================================= */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================
   SELECTION
========================================= */

::selection {
  color: #ffffff;
  background: #5548C8;
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(27, 18, 95, 0.35);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 18, 95, 0.65);
}

/* =========================================
   ACCESSIBILITY
========================================= */

:focus-visible {
  outline: 2px solid #5548C8;
  outline-offset: 4px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

}

/* =========================================
   SOUR POWER-UP — NATURAL IMAGE HEIGHTS
========================================= */

.project-page--powerade img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    max-height: none;
}


/* =========================================
   SOUR POWER-UP — CAMPAIGN (3 COLUMNS)
========================================= */

.project-page--powerade #campaign .project-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
}

.project-page--powerade #campaign .project-media {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
}


/* =========================================
   SOUR POWER-UP — EXTENSION (2 COLUMNS)
========================================= */

.project-page--powerade #extension .project-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.project-page--powerade #extension .project-media {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
}


/* =========================================
   SOUR POWER-UP — IMAGE OVERRIDE
========================================= */

.project-page--powerade .project-media img {
    width: 100%;
    height: auto !important;
    max-height: none;
    aspect-ratio: auto;
    object-fit: unset;
}

/* =========================================
   SOUR POWER-UP — ACTIVATION IMAGE
========================================= */

.project-page--powerade #activation .project-media {
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
}

.project-page--powerade #activation .project-media img {
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: unset;
}