/* ==========================
MEDIUM PAGE
========================== */

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

.page-header {
  max-width: 900px;

  margin: 0 auto;

  padding: 180px 10% 80px;
}

.page-header h1 {
  font-size: clamp(3rem, 7vw, 5rem);

  font-weight: 300;

  letter-spacing: -2px;

  margin-bottom: 30px;
}

.page-header p {
  max-width: 750px;

  font-size: 1.2rem;
  line-height: 1.8;

  color: #d9e2e3;
}

/* ==========================
WORK GRID
========================== */

.medium-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 80px 40px;

  max-width: 1400px;

  margin: 0 auto;

  padding: 0 5% 120px;
}

/* ==========================
WORK ITEM
========================== */

.medium-item {
  color: #d9e2e3;
  min-width: 0;
}

/* ==========================
WORK LINK
========================== */

.medium-link {
  display: block;

  color: inherit;

  text-decoration: none;
}

/* ==========================
IMAGE
========================== */

.medium-image {
  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  margin-bottom: 20px;
}

.medium-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.5s ease;
}

/* ==========================
HOVER
========================== */

.medium-link:hover .medium-image img {
  transform: scale(1.03);
}

/* ==========================
TITLE
========================== */

.medium-link h2 {
  font-size: 1.5rem;

  font-weight: 400;

  margin: 0;
}

/* ==========================
DESCRIPTION
========================== */

.medium-item > p {
  max-width: 600px;

  margin-top: 12px;
  margin-bottom: 7px;

  font-size: 0.95rem;
  line-height: 1.6;

  color: #d9e2e3;
}

.work-title {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.work-title h2 {
  margin: 0;
}

.work-details {
  display: flex;
  flex-direction: column;
  padding-top: 13px;
  gap: 0;
}

.work-details p {
  margin: 0;
  line-height: 1.1;
}

.instrumentation {
  color: #aebec1;
  margin-top: 0px;
  font-size: 0.9rem;
  opacity: 1;
}

.year {
  color: #8fa2a6;
  font-size: 0.8rem;
  margin-top: -10px;
}

.programme-note {
  color: #d9e2e3;
}

.programme-note h3 {
  color: #f4f6f6;
}

/* ==========================
   MUSIC PLAYER
   ========================== */

.music-player {
  color: #d9e2e3;

  display: flex;
  align-items: center;
  gap: 18px;

  margin-top: 5px;
  padding-top: 18px;

  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Play button */

.play-button {
  flex: 0 0 auto;

  width: 42px;
  height: 42px;

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

  padding: 0;

  border: 1px solid currentColor;
  border-radius: 50%;

  background: transparent;
  color: inherit;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.play-button:hover {
  background: currentColor;
  color: var(--background-color, white);

  transform: scale(1.05);
}

.play-button i {
  font-size: 0.75rem;
}

/* Main player area */

.player-main {
  flex: 1;

  min-width: 0;
}

/* Track information */

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 8px;

  font-size: 0.75rem;
}

.player-title {
  font-weight: 500;
}

.player-time {
  opacity: 0.55;
  white-space: nowrap;
}

/* Progress bar */

.progress-bar {
  width: 100%;
  height: 3px;

  margin: 0;

  appearance: none;

  background: rgba(0, 0, 0, 0.15);

  cursor: pointer;
}

/* Webkit browsers */

.progress-bar::-webkit-slider-thumb {
  appearance: none;

  width: 10px;
  height: 10px;

  border-radius: 50%;
  border: none;

  background: currentColor;

  cursor: pointer;
}

/* Firefox */

.progress-bar::-moz-range-thumb {
  width: 10px;
  height: 10px;

  border-radius: 50%;
  border: none;

  background: currentColor;

  cursor: pointer;
}

/* Progress track */

.progress-bar::-webkit-slider-runnable-track {
  height: 3px;
}

.progress-bar::-moz-range-track {
  height: 3px;
}

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

@media (max-width: 900px) {
  .medium-grid {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .page-header {
    color: #f4f6f6;
    padding-top: 140px;

    padding-bottom: 60px;
  }

  .music-player {
    gap: 12px;
  }

  .play-button {
    width: 38px;
    height: 38px;
  }

  .player-info {
    font-size: 0.7rem;
  }
}
