/* Plain CSS (not run through the Tailwind build) so this renders correctly
   without requiring a theme rebuild. See ellison.libraries.yml: copy-link. */

/* The site footer's top strip (site-footer.css: footer.footer-fixed) is
   position: fixed to the bottom of the viewport. The templates put Copy
   link above the player (not below) so it's never at the bottom of a short
   page where that strip could sit over it. This is just normal breathing
   room below the player. */
.media--full {
  padding-bottom: 3rem;
}

.copy-link {
  margin: 1.5rem 0;
}

/* The oEmbed iframe carries the provider's default size (426x240 for most
   Vimeo videos), which is tiny on a page of its own. Scale it to the column
   at 16:9; core's oembed.frame.css already makes the inner player fill it. */
.media--full--remote-video iframe.media-oembed-content,
.media--full--video video {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
}

.media--full--remote-video iframe.media-oembed-content {
  aspect-ratio: 16 / 9;
}

.oembed-fallback {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 0.25rem;
}

.oembed-fallback a {
  font-weight: 600;
}

.copy-link__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background-color: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  border: 0;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.15;
}

.copy-link__button:hover,
.copy-link__button:focus {
  opacity: 0.85;
}

.copy-link__button svg {
  height: 16px;
  width: 16px;
  flex-shrink: 0;
}
