.mediaMenu {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
}

.mediaTabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  flex-shrink: 0;
}

.mediaLayout {
  grid-template-columns: 1fr;
}

.mediaHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mediaHead .cardTitle {
  margin: 0;
}

.mediaMenu__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.2px;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
  flex: 1 1 0;
}

.mediaMenu__item:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.mediaMenu__item[aria-current="page"] {
  background: var(--text);
  color: #ffffff;
  box-shadow: var(--shadow-2);
}

.mediaMenu__item[aria-current="false"] {
  color: var(--muted-2);
}

.mediaTabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.2px;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.mediaTabs__item:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.mediaTabs__item[aria-current="page"] {
  background: var(--text);
  color: #ffffff;
  box-shadow: var(--shadow-2);
}

.mediaTabs__item[aria-current="false"] {
  color: var(--muted-2);
}

.gallery .shot {
  grid-column: span 6;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 10px;
  aspect-ratio: auto;
  overflow: visible;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.gallery .shot:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-2);
  box-shadow: var(--shadow);
}

.gallery .shot:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.28);
  outline-offset: 2px;
}

.gallery .shot__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
}

.gallery .shot__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery .shot__label {
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.1px;
  line-height: 1.2;
}

.mediaVideos {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.mediaVideo {
  grid-column: span 6;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.mediaVideo__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  overflow: hidden;
}

.mediaVideo__frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mediaVideo__label {
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.1px;
  line-height: 1.2;
}

.imgLightbox {
  width: min(980px, calc(100vw - 24px));
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 10px);
  padding: 0;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.imgLightbox::backdrop {
  background: rgba(2, 6, 23, 0.55);
}

.imgLightbox__inner {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.imgLightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.imgLightbox__media {
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  overflow: hidden;
  max-height: min(72svh, 740px);
  display: grid;
  place-items: center;
}

.imgLightbox__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 960px) {
  .mediaLayout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mediaMenu {
    border-radius: 18px;
    flex-direction: column;
    padding: 8px;
  }
  .mediaMenu__item {
    flex: none;
    width: 100%;
  }
  .mediaHead {
    align-items: flex-start;
  }
  .mediaTabs {
    width: 100%;
    justify-content: space-between;
  }
  .mediaTabs__item {
    width: 100%;
    justify-content: center;
  }
  .gallery .shot {
    grid-column: span 12;
  }
  .mediaVideo {
    grid-column: span 12;
  }
}

.mediaEmpty {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px dashed var(--stroke);
  background: var(--surface-2);
  padding: 16px;
}

.mediaEmpty__title {
  font-weight: 950;
  letter-spacing: -0.2px;
  color: var(--text);
}

.mediaEmpty__desc {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}
