:root {
  --red: #d90000;
  --red-dark: #a90000;
  --ink: #171717;
  --muted: #666;
  --light: #f5f5f5;
  --white: #fff;
  --border: #dedede;
  --shadow: 0 14px 35px rgba(0, 0, 0, .12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      var(--red),
      var(--red-dark)
    );
  border-radius: 11px;
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--red);
}

.menu-toggle {
  display: none;
}

/* =========================
   HERO
========================= */

.gallery-hero {
  position: relative;
  min-height: 610px;
  padding: 150px 24px 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background:
    url('/img/gmcblue.jpg')
    center / cover
    no-repeat;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(0, 0, 0, .58),
      rgba(0, 0, 0, .76)
    );
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  width: min(850px, 100%);
}

.gallery-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.gallery-hero-content > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gallery-hero .eyebrow,
.gallery-cta .eyebrow {
  color: #ff7676;
}

.hero-actions,
.gallery-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .75);
  background: rgba(0, 0, 0, .28);
}

.btn-secondary:hover {
  color: var(--ink);
  background: var(--white);
}

.btn-dark {
  color: var(--white);
  background: #151515;
}

.btn-dark:hover {
  background: #000;
}

/* =========================
   INTRODUCTION
========================= */

.gallery-intro {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding: 0 24px;
}

.gallery-intro-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-intro article {
  padding: 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.gallery-intro article:last-child {
  border-right: 0;
}

.gallery-intro strong {
  color: var(--red);
  font-size: 1.08rem;
}

.gallery-intro p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* =========================
   GALLERY SECTION
========================= */

.gallery-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 90px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-heading p:last-child {
  color: var(--muted);
}

/* =========================
   FILTER BUTTONS
========================= */

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

/* =========================
   GALLERY GRID
========================= */

.showcase-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.showcase-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform .2s ease,
    opacity .2s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
}

.showcase-card.is-hidden {
  display: none;
}

.showcase-card-wide {
  grid-column: span 2;
}

/* =========================
   GALLERY IMAGES
========================= */

.media-button {
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background: #111;
  cursor: zoom-in;
}

.media-button img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}

.showcase-card:hover .media-button img {
  transform: scale(1.025);
}

/* =========================
   GALLERY VIDEOS
========================= */

.video-frame {
  width: 100%;
  overflow: hidden;
  background: #111;
}

.video-frame video {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center;
  background: #111;
}

.showcase-card-wide .video-frame video {
  height: 380px;
}

/* =========================
   CAPTIONS
========================= */

.showcase-card figcaption {
  padding: 18px 20px 20px;
}

.showcase-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.showcase-card figcaption strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.4;
}

/* =========================
   PLACEHOLDER
========================= */

.gallery-placeholder {
  min-height: 290px;
  padding: 24px;
  display: grid;
  place-content: center;
  gap: 4px;
  color: var(--muted);
  background:
    linear-gradient(
      145deg,
      #f5f5f5,
      #e3e3e3
    );
  text-align: center;
}

.gallery-placeholder span {
  font-weight: 900;
}

.gallery-placeholder small {
  font-size: .78rem;
}

/* =========================
   CALL TO ACTION
========================= */

.gallery-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 90px;
  padding: 55px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #1d1d1d,
      #050505
    );
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.gallery-cta > div:first-child {
  width: min(760px, 100%);
}

.gallery-cta h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}

.gallery-cta p:last-child {
  margin: 0;
  color: #d2d2d2;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 38px 24px 24px;
  color: var(--white);
  background: #151515;
}

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

footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  color: #ff7676;
}

.insta {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
}

.copyright {
  margin: 28px 0 0;
  color: #aaa;
  text-align: center;
  font-size: .9rem;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, .9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, .45);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, .15);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* =========================
   TABLET
========================= */

@media (max-width: 980px) {
  nav ul {
    gap: 14px;
  }

  nav a {
    font-size: .92rem;
  }

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

/* =========================
   MOBILE NAVIGATION
========================= */

@media (max-width: 850px) {
  .header-inner {
    padding-right: 56px;
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--red);
    border-radius: 3px;
  }

  nav {
    margin-left: 0;
  }

  nav ul {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  nav ul.is-open {
    display: flex;
  }

  nav li {
    width: 100%;
  }

  nav a {
    width: 100%;
    display: block;
    padding: 11px 8px;
  }

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

  .gallery-intro article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .gallery-intro article:last-child {
    border-bottom: 0;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 66px;
    padding-right: 54px;
  }

  .brand {
    max-width: 100%;
    font-size: 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  nav ul {
    top: 66px;
  }

  .gallery-hero {
    min-height: 540px;
    padding: 120px 18px 70px;
  }

  .gallery-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .hero-actions,
  .gallery-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn,
  .gallery-cta-actions .btn {
    width: 100%;
  }

  .gallery-intro {
    margin-top: -24px;
    padding: 0 14px;
  }

  .gallery-section {
    width: min(100% - 24px, 1180px);
    padding: 70px 0 60px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  /*
  |--------------------------------------------------------------------------
  | Mobile gallery layout
  |--------------------------------------------------------------------------
  */

  .showcase-grid {
    width: 100%;
    display: grid;
    grid-template-columns:
      minmax(0, 1fr);
    gap: 24px;
  }

  .showcase-card,
  .showcase-card-wide {
    width: 100%;
    min-width: 0;
    grid-column: auto;
    margin: 0;
    overflow: hidden;
  }

  /*
  |--------------------------------------------------------------------------
  | Mobile images
  |--------------------------------------------------------------------------
  |
  | The image keeps its natural shape instead of being forced into
  | a fixed-height box. This prevents bad cropping and overlapping.
  |
  */

  .media-button {
    width: 100%;
    overflow: hidden;
    background: #f1f1f1;
  }

  .media-button img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .showcase-card:hover .media-button img {
    transform: none;
  }

  /*
  |--------------------------------------------------------------------------
  | Mobile videos
  |--------------------------------------------------------------------------
  */

  .video-frame {
    width: 100%;
    overflow: hidden;
    background: #111;
  }

  .video-frame video,
  .showcase-card-wide .video-frame video {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 520px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: #111;
  }

  /*
  |--------------------------------------------------------------------------
  | Mobile placeholder
  |--------------------------------------------------------------------------
  */

  .gallery-placeholder {
    width: 100%;
    height: auto;
    min-height: 240px;
  }

  .showcase-card figcaption {
    padding: 16px 18px 19px;
  }

  .gallery-cta {
    width: min(100% - 28px, 1180px);
    margin-bottom: 65px;
    padding: 40px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 390px) {
  .brand {
    max-width: calc(100% - 4px);
    overflow: hidden;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gallery-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gallery-section {
    width: min(100% - 20px, 1180px);
  }

  .showcase-grid {
    gap: 20px;
  }

  .showcase-card figcaption {
    padding-left: 15px;
    padding-right: 15px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}