/*****************************************************
detail.css — small additions to the original template (assets/css/main.css)
*****************************************************/

* {
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10000;
  padding: 8px 12px;
  background: #ffcc00;
  color: #111;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

/* The project title is the page's h1 now; keep the original h2 look */
.portfolio-description h1.project_name {
  margin-bottom: 0.5rem;
}

.sc-player {
  border: 0;
}

.project_name:focus {
  outline: none;
}

/* "Artwork / Project Information" is an h2 now (no skipped heading level);
   same look as the template's .portfolio-info h3 */
.gallery-details .portfolio-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.gallery-details .portfolio-info h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

/* Arriving from the Artworks archive: the clicked image morphs into the gallery */
@view-transition {
  navigation: auto;
}
.portfolio-details-slider {
  view-transition-name: work-hero;
}
::view-transition-group(work-hero) {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
}
.vt-in #preloader {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
