/* Photographs stay true to the pets; colour belongs to the surrounding shapes. */
.hero-photo-scene {
  min-height: 570px;
  max-width: 550px;
  padding: 0 0 62px;
  margin-inline: auto;
  display: grid;
  place-items: end center;
}
.hero-photo-shape {
  position: absolute;
  inset: 72px 4% 76px;
  z-index: -2;
  border-radius: 47% 53% 43% 57% / 55% 46% 54% 45%;
  background: var(--hero-disc);
  transform: rotate(-7deg);
}
.hero-photo-shape::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px dashed var(--hero-disc-line);
  border-radius: inherit;
}
.hero-photo-sun {
  position: absolute;
  top: 66px;
  right: 1%;
  width: 124px;
  aspect-ratio: 1;
  z-index: -1;
  background: #f4c440;
  border-radius: 50%;
}
.hero-pet-portrait {
  display: block;
  width: min(100%, 400px);
  height: 510px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 12px #153b6419);
}
.hero-photo-sparkle {
  position: absolute;
  left: 3%;
  top: 72px;
  color: #e1b129;
  transform: rotate(-12deg);
}
.hero-photo-sparkle .icon { width: 42px; height: 42px; stroke-width: 1.4; }
.hero-photo-paw { position: absolute; right: 0; bottom: 157px; color: var(--green); transform: rotate(20deg); }
.hero-photo-paw .icon { width: 27px; height: 27px; }
.hero-photo-label {
  position: absolute;
  left: -2%;
  bottom: 137px;
  max-width: 190px;
  margin: 0;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  transform: rotate(-5deg);
}
.hero-photo-label > span { color: var(--green); font-size: 19px; margin-right: 5px; vertical-align: -1px; }
.hero-photo-scene .hero-work-link { bottom: 2px; }

.portfolio-section { display: block; padding-top: 8px; padding-bottom: 70px; }
.portfolio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 32px; }
.portfolio-intro { max-width: 670px; }
.portfolio-intro h2 { max-width: 640px; font-size: clamp(34px, 3.5vw, 48px); }
.portfolio-intro > p:not(.eyebrow) { max-width: 570px; margin-bottom: 0; }
.portfolio-instagram { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding-bottom: 4px; white-space: nowrap; font-size: 12px; font-weight: 650; color: var(--green); }
.portfolio-instagram > .icon { width: 18px; height: 18px; }
.portfolio-instagram > .icon:last-child { width: 16px; }
.portfolio-instagram:hover { text-decoration: underline; text-underline-offset: 5px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px 23px; }
.portfolio-item { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 23px; overflow: hidden; }
.portfolio-image { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--sage); overflow: hidden; text-align: left; cursor: zoom-in; }
.portfolio-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 44%; transition: transform .35s ease; }
.portfolio-image[data-gallery-open="1"] img { object-position: center 40%; }
.portfolio-image[data-gallery-open="2"] img { object-position: 60% center; }
.portfolio-image[data-gallery-open="4"] img { object-position: center 39%; }
.photo-expand { position: absolute; bottom: 13px; right: 13px; display: grid; place-items: center; width: 35px; height: 35px; background: #ffffffed; color: #1f3366; border: 1px solid #ffffff; border-radius: 50%; font-size: 24px; line-height: 1; box-shadow: 0 2px 9px #153b6415; }
.portfolio-image:focus-visible { outline-offset: -5px; outline-width: 3px; z-index: 1; }
.portfolio-image:hover img { transform: scale(1.035); }
.portfolio-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px 16px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.portfolio-caption > span { color: var(--ink); }
.portfolio-caption > .icon { color: var(--green); width: 17px; height: 17px; opacity: .65; }
.portfolio-footnote { text-align: center; font-size: 12px; color: var(--muted); margin: 23px 0 0; }

/* Small companions occupy their own gaps rather than covering site content. */
.pet-moment { position: relative; height: 175px; pointer-events: none; }
.pet-moment-yorkie { margin-top: -35px; margin-bottom: 15px; }
.pet-moment-samoyed { margin-top: 15px; margin-bottom: -55px; }
.pet-moment-schnauzer { margin-top: -45px; margin-bottom: 15px; }
.pet-cutout { position: absolute; bottom: 0; width: 180px; height: 175px; isolation: isolate; }
.pet-cutout img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 7px #153b6413); }
.pet-cutout-spot { position: absolute; z-index: -1; bottom: 0; inset-inline: 8%; height: 64%; border-radius: 48% 52% 45% 55%; background: var(--sage); transform: rotate(8deg); }
.pet-moment-yorkie .pet-cutout { right: 8px; }
.pet-moment-schnauzer .pet-cutout { right: 8px; }
.pet-moment-yorkie .pet-cutout-spot { background: #f4c4402e; }
.pet-moment-samoyed .pet-cutout { left: 0; width: 230px; }
.pet-trail { position: absolute; bottom: 18px; display: flex; gap: 24px; color: var(--green); opacity: .24; }
.pet-trail .icon { width: 16px; height: 16px; transform: rotate(45deg); }
.pet-trail .icon:nth-child(2) { transform: translateY(-12px) rotate(35deg); }
.pet-moment-yorkie .pet-trail { right: 218px; transform: rotate(-9deg); }
.pet-moment-schnauzer .pet-trail { right: 218px; transform: rotate(-9deg); }
.pet-moment-samoyed .pet-trail { left: 260px; transform: rotate(9deg); }

.gallery-dialog { position: fixed; width: min(810px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 36px); padding: 48px 20px 16px; border-radius: 23px; overflow: auto; }
.gallery-dialog:not([open]) { display: none; }
.gallery-dialog[open] { display: grid; justify-items: center; }
.gallery-dialog img { display: block; max-width: 100%; width: auto; max-height: calc(100dvh - 165px); height: auto; object-fit: contain; border-radius: 12px; }
.gallery-dialog > p { margin: 14px 4px 0; color: var(--ink); font-size: 14px; text-align: center; }
.gallery-close { position: absolute; right: 10px; top: 7px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 25px; line-height: 1; }
html.gallery-is-open { overflow: hidden; }

@media (max-width: 1150px) {
  .hero-photo-scene { min-height: 525px; }
  .hero-pet-portrait { width: 355px; height: 465px; }
  .hero-photo-shape { inset: 68px 3% 75px; }
  .hero-photo-sun { width: 105px; right: -1%; }
  .hero-photo-label { font-size: 11px; left: -1%; bottom: 121px; padding: 10px 13px; max-width: 165px; }
  .portfolio-heading { gap: 25px; }
  .portfolio-instagram { font-size: 11px; }
  .portfolio-grid { gap: 22px 18px; }
}
@media (max-width: 900px) {
  .hero-photo-scene { min-height: 470px; }
  .hero-pet-portrait { width: 310px; height: 410px; }
  .hero-photo-shape { inset: 64px 0 75px; }
  .hero-photo-sun { top: 65px; width: 83px; }
  .hero-photo-sparkle { left: -2%; top: 68px; }
  .hero-photo-sparkle .icon { width: 30px; height: 30px; }
  .hero-photo-label { left: -4%; bottom: 110px; max-width: 155px; font-size: 10px; padding: 9px 11px; }
  .hero-photo-paw { right: -3%; bottom: 140px; }
  .hero-photo-paw .icon { width: 20px; height: 20px; }
  .hero-photo-scene .hero-work-link { bottom: 10px; }
  .portfolio-heading { display: block; margin-bottom: 25px; }
  .portfolio-instagram { font-size: 12px; margin-top: 10px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .portfolio-item { border-radius: 20px; }
  .portfolio-image { border-radius: 19px 19px 0 0; }
  .portfolio-caption { padding: 14px 15px; font-size: 12px; }
}
@media (max-width: 700px) {
  .hero-photo-scene { min-height: 465px; width: 100%; max-width: 410px; margin-top: 19px; padding-bottom: 60px; }
  .hero-pet-portrait { width: min(100%, 330px); height: 410px; }
  .hero-photo-shape { inset: 50px 7% 70px; }
  .hero-photo-sun { right: 4%; top: 49px; width: 91px; }
  .hero-photo-label { left: 2%; bottom: 104px; font-size: 11px; max-width: 170px; padding: 10px 13px; }
  .hero-photo-sparkle { left: 5%; top: 58px; }
  .hero-photo-paw { right: 4%; bottom: 147px; }
  .hero-photo-scene .hero-work-link { bottom: 3px; font-size: 11px; }
  .portfolio-section { padding-top: 5px; padding-bottom: 50px; }
  .portfolio-heading { margin-bottom: 22px; }
  .portfolio-intro h2 { font-size: 35px; }
  .portfolio-intro > p:not(.eyebrow) { font-size: 13px; margin-bottom: 0; }
  .portfolio-grid { gap: 16px 12px; }
  .portfolio-item { border-radius: 16px; }
  .portfolio-image { border-radius: 15px 15px 0 0; }
  .portfolio-caption { align-items: flex-start; padding: 11px 11px 12px; gap: 5px; font-size: 11px; font-weight: 550; }
  .portfolio-caption > .icon { width: 13px; height: 13px; margin-top: 2px; }
  .photo-expand { width: 27px; height: 27px; font-size: 20px; bottom: 9px; right: 9px; }
  .portfolio-footnote { margin-top: 19px; font-size: 11px; line-height: 1.75; }
  .pet-moment { height: 124px; }
  .pet-moment-yorkie { margin-top: -24px; margin-bottom: 14px; }
  .pet-moment-samoyed { margin-top: 12px; margin-bottom: -30px; }
  .pet-moment-schnauzer { margin-top: -24px; margin-bottom: 14px; }
  .pet-cutout { width: 125px; height: 123px; }
  .pet-moment-yorkie .pet-cutout { right: 0; }
  .pet-moment-schnauzer .pet-cutout { right: 0; }
  .pet-moment-samoyed .pet-cutout { width: 155px; }
  .pet-trail { gap: 18px; bottom: 13px; }
  .pet-trail .icon { width: 12px; height: 12px; }
  .pet-moment-yorkie .pet-trail { right: 146px; }
  .pet-moment-schnauzer .pet-trail { right: 146px; }
  .pet-moment-samoyed .pet-trail { left: 178px; }
  .gallery-dialog { width: calc(100vw - 22px); max-height: calc(100dvh - 24px); padding: 47px 10px 15px; border-radius: 17px; }
  .gallery-dialog img { max-height: calc(100dvh - 155px); border-radius: 9px; }
  .gallery-dialog > p { font-size: 12px; }
}
@media (max-width: 390px) {
  .hero-photo-scene { min-height: 428px; overflow-x: clip; }
  .hero-pet-portrait { width: min(100%, 300px); height: 373px; }
  .hero-photo-shape { inset: 51px 5% 67px; }
  .hero-photo-sun { width: 76px; top: 56px; right: 1%; }
  .hero-photo-label { bottom: 105px; max-width: 151px; font-size: 10px; left: 0; padding: 9px 11px; }
  .hero-photo-paw { right: 0; bottom: 141px; }
  .hero-photo-scene .hero-work-link { font-size: 10px; }
  .portfolio-intro h2 { font-size: 32px; }
  .portfolio-caption { font-size: 10px; padding-inline: 9px; }
  .portfolio-caption > .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-scene, .portfolio-image img { animation: none !important; transition: none !important; }
  .portfolio-image:hover img { transform: none; }
}
@media print {
  .pet-moment, .gallery-dialog, .photo-expand { display: none !important; }
  .portfolio-item { break-inside: avoid; }
}
