/* =========================
   MEDIA PAGE
========================= */

.media-page {
  background: #f7f5f2;
  color: #151a1f;
}

.media-container {
  width: min(1250px, 90%);
  margin: 0 auto;
}


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

.media-hero {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: 430px;

  padding: 90px 0 70px;

  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      #141618 0%,
      #1d1f21 55%,
      #2a2c2e 100%
    );

  color: #ffffff;
}

.media-hero::before {
  content: "MEDIA";

  position: absolute;

  right: -10px;
  bottom: -60px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(190px, 23vw, 400px);
  line-height: 0.8;

  color: rgba(255, 255, 255, 0.025);

  pointer-events: none;
}

.media-hero .media-container {
  position: relative;
  z-index: 2;
}

.media-eyebrow {
  margin: 0 0 12px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;

  color: #d10b10;
}

.media-hero h1 {
  margin: 0;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(85px, 10vw, 150px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 2px;

  color: #ffffff;
}

.media-hero-description {
  max-width: 620px;

  margin: 28px 0 0;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 18px;
  line-height: 1.65;

  color: rgba(255, 255, 255, 0.72);
}


/* =========================
   MEDIA BROWSER
========================= */

.media-browser {
  padding: 85px 0 100px;

  background: #f7f5f2;
}

.media-browser-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 40px;

  margin-bottom: 55px;
}

.section-label {
  display: block;

  margin-bottom: 7px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;

  color: #bb080b;
}

.media-browser-header h2,
.media-grid-header h2 {
  margin: 0;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 5vw, 65px);
  font-weight: 400;
  line-height: 1;

  color: #151a1f;
}


/* =========================
   CATEGORY FILTER
========================= */

.media-controls {
  width: 270px;
}

.media-controls label {
  display: block;

  margin-bottom: 9px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;

  color: #747474;
}

.media-select {
  width: 100%;

  padding: 14px 46px 14px 17px;

  border: 1px solid #d5d2cd;
  border-radius: 8px;

  outline: none;

  appearance: none;
  -webkit-appearance: none;

  background-color: #ffffff;

  background-image:
    linear-gradient(45deg, transparent 50%, #151a1f 50%),
    linear-gradient(135deg, #151a1f 50%, transparent 50%);

  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 14px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;

  color: #151a1f;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.media-select:hover,
.media-select:focus {
  border-color: #bb080b;

  box-shadow:
    0 0 0 3px rgba(187, 8, 11, 0.06);
}


/* =========================
   CREATORS
========================= */

.creator-section {
  padding: 30px 0 34px;

  border-top: 1px solid #dedbd6;
  border-bottom: 1px solid #dedbd6;
}

.creator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 30px;

  margin-bottom: 22px;
}

.creator-label {
  display: block;

  margin-bottom: 3px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;

  color: #8b8b8b;
}

.creator-header h3 {
  margin: 0;

  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 1px;

  color: #151a1f;
}

.creator-header > p {
  margin: 0 0 4px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 13px;

  color: #818181;
}


/* =========================
   CREATOR ROW
========================= */

.creator-scroll {
  display: flex;
  align-items: flex-start;

  gap: 17px;

  padding: 6px 3px 15px;

  overflow-x: auto;
  overflow-y: visible;

  scrollbar-width: thin;
  scrollbar-color: #c9c6c1 transparent;
}

.creator-scroll::-webkit-scrollbar {
  height: 5px;
}

.creator-scroll::-webkit-scrollbar-thumb {
  border-radius: 20px;

  background: #c9c6c1;
}

.creator-filter {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  flex: 0 0 auto;

  gap: 7px;

  min-width: 72px;

  padding: 0;

  border: 0;

  background: none;

  cursor: pointer;
}

/* display:flex above would otherwise override the hidden attribute */
.creator-filter[hidden] {
  display: none;
}

.creator-avatar-wrapper {
  position: relative;
}

.creator-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  overflow: hidden;

  border: 3px solid #ffffff;
  border-radius: 50%;

  background: #ffffff;

  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.creator-avatar img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;
}

.creator-filter:hover .creator-avatar {
  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.creator-filter.active .creator-avatar {
  border-color: #c9080c;
}

.creator-all {
  border-color: #c9080c;

  font-family: 'Bebas Neue', sans-serif;
  font-size: 25px;

  color: #c9080c;
}

.creator-name {
  max-width: 82px;

  overflow: hidden;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;

  color: #3b3b3b;

  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-filter.active .creator-name {
  color: #bb080b;
}


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

.creator-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  background: #e8e5e0;

  font-size: 20px;

  color: #777777;
}


/* =========================
   SELECTED CREATOR
========================= */

.creator-profile {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid #c9080c;
  background: #f0ede8;
}

.creator-profile.show {
  display: flex;
}

.creator-profile-copy {
  min-width: 0;
}

.creator-profile-copy h4 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1.2px;
  color: #151a1f;
}

.creator-profile-copy p {
  margin: 7px 0 0;
  font-family: 'Sofia Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #c9080c;
}

.creator-profile-socials {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.creator-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d1cdc7;
  border-radius: 50%;
  background: #ffffff;
  color: #151a1f;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
}

.creator-social-link:hover {
  color: #ffffff;
  border-color: #c9080c;
  background: #c9080c;
  transform: translateY(-2px);
}

.creator-social-link.is-hidden {
  display: none;
}

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

.media-grid-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin: 60px 0 25px;
}


/* =========================
   MEDIA GRID
========================= */

.media-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.media-card {
  position: relative;

  display: block;

  overflow: hidden;

  border-radius: 10px;

  background: #16181a;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.12);
}

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


/* =========================
   MEDIA THUMBNAIL
========================= */

.media-thumb {
  position: relative;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #16181a;
}

.media-thumb > img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.45s ease,
    filter 0.45s ease;

  filter:
    contrast(1.02)
    saturate(1.02);
}

.media-card:hover .media-thumb > img {
  transform: scale(1.035);
}

.media-thumb::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.40) 0%,
      rgba(0, 0, 0, 0.03) 45%
    );

  pointer-events: none;
}


/* =========================
   VIDEO INDICATOR
========================= */

.video-indicator {
  position: absolute;

  z-index: 5;

  top: 13px;
  right: 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  background: rgba(10, 10, 10, 0.65);

  backdrop-filter: blur(8px);

  color: #ffffff;

  font-size: 12px;
}


/* =========================
   CREATOR ATTRIBUTION
========================= */

.media-card-overlay {
  position: absolute;

  z-index: 4;

  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 15px;
}

.media-creator-mini {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  flex-shrink: 0;

  overflow: hidden;

  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;

  background: #252525;
}

.media-creator-mini img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.media-creator-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: #ffffff;

  font-size: 11px;
}

.media-creator-name {
  font-family: 'Sofia Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;

  color: #ffffff;

  text-shadow:
    0 1px 5px rgba(0, 0, 0, 0.4);
}


/* =========================
   EMPTY STATES
========================= */

.media-empty,
.filter-empty {
  grid-column: 1 / -1;

  padding: 70px 20px;

  border: 1px solid #dedbd6;
  border-radius: 10px;

  background: #ffffff;

  text-align: center;
}

.media-empty h3,
.filter-empty h3 {
  margin: 0 0 8px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  font-weight: 400;

  color: #151a1f;
}

.media-empty p,
.filter-empty p {
  margin: 0;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 14px;

  color: #777777;
}

.filter-empty {
  display: none;

  margin-top: 18px;
}

.filter-empty.show {
  display: block;
}


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

@media (max-width: 950px) {

  .media-hero {
    min-height: 380px;
  }

  .media-browser {
    padding: 70px 0 80px;
  }

  .media-browser-header {
    align-items: flex-start;
    flex-direction: column;

    gap: 25px;
  }

  .media-controls {
    width: min(350px, 100%);
  }

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

}


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

@media (max-width: 650px) {

  .media-container {
    width: 90%;
  }

  .media-hero {
    min-height: 330px;

    padding: 70px 0 50px;
  }

  .media-hero h1 {
    font-size: 85px;
  }

  .media-hero-description {
    margin-top: 20px;

    font-size: 15px;
  }

  .media-browser {
    padding: 55px 0 70px;
  }

  .media-browser-header {
    margin-bottom: 40px;
  }

  .media-browser-header h2,
  .media-grid-header h2 {
    font-size: 48px;
  }

  .media-controls {
    width: 100%;
  }

  .creator-header {
    align-items: flex-start;
    flex-direction: column;

    gap: 5px;
  }

  .creator-scroll {
    gap: 13px;

    margin-right: -5%;
    padding-right: 5%;
  }

  .creator-avatar {
    width: 64px;
    height: 64px;
  }

  .creator-filter {
    min-width: 66px;
  }

  .creator-name {
    max-width: 70px;

    font-size: 11px;
  }

  .creator-profile {
    align-items: flex-start;
    flex-direction: column;

    gap: 14px;

    margin-top: 20px;
    padding-top: 16px;
  }

  .creator-profile-socials {
    gap: 8px;
  }

  .creator-social-link {
    width: 34px;
    height: 34px;
  }

  .media-grid-header {
    margin-top: 45px;
  }

  .media-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .media-thumb {
    aspect-ratio: 4 / 3;
  }

}