/* p_dragonslayerv2.php page styles (previously inline) */

main {
  max-inline-size: 1200px;
  margin-inline: auto;
  padding: var(--space-l) var(--space-s);
}

main > * + * {
  margin-block-start: var(--space-xl);
}

main > section:first-of-type {
  margin-block-start: var(--space-m);
}

section > * + * {
  margin-block-start: var(--space-s);
}

.projects {
  display: flex;
  gap: var(--space-l);
  flex-wrap: wrap;
}

.project {
  max-inline-size: var(--measure-s);
}

.project > * + *,
.project > a > * + * {
  margin-block-start: var(--space-xs);
}

.project > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-title {
  margin-block-start: var(--space-s);
}

.project-desc,
.project-notes {
  color: var(--text-2);
  line-height: 1.75;
}

.project-notes {
  list-style: none;
  padding: 0;
  font-style: italic;
  text-transform: lowercase;
}

figure {
  background: var(--surface-3);
  max-inline-size: 600px;
  block-size: 400px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--space-m);
  margin-inline: auto;
}

figure img {
  max-inline-size: 100%;
  inline-size: 300px;
  block-size: auto;
  object-fit: cover;
  transition: 0.5s ease-out;
}

figure[data-frame="mobile"] {
  padding-block-start: 40px;
  align-items: start;
}

figure[data-frame="desktop"] {
  align-items: center;
}

figure[data-frame="desktop"] img {
  inline-size: 500px;
}

figure[data-frame="mobile"] img:hover {
  transform: scale(1.05) translateY(-90px);
}

figure[data-frame="desktop"] img:hover {
  transform: scale(1.2) translateY(-5px);
}

.project a:has(figure[data-frame="mobile"] img):hover img {
  transform: scale(1.05) translateY(-90px);
}

.project a:has(figure[data-frame="desktop"] img):hover img {
  inline-size: 350px;
  transform: scale(1.15) translateY(-5px);
}
