:root {
  --paper: #f7f5ef;
  --cream: #eeeae0;
  --white: #fffdf8;
  --ink: #202820;
  --muted: #525b50;
  --green: #2b473b;
  --sage: #dce5d7;
  --line: #d8d9cb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
body, .section-tint {
  --pattern-ground: var(--paper);
  --pattern-overlay: color-mix(in srgb, var(--pattern-ground) 90%, transparent);
  background-color: var(--pattern-ground);
  background-image: linear-gradient(var(--pattern-overlay), var(--pattern-overlay)), url("assets/paw-pattern.webp");
  background-size: auto, 1000px auto;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ac6b3f; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h2 { margin-bottom: 16px; font-size: clamp(2.55rem, 6vw, 4.4rem); letter-spacing: -.055em; }
h3 { font-size: 1.5rem; }
p { color: var(--muted); }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 10px; z-index: 2; padding: 8px 14px; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font: 1.55rem/1.02 var(--serif); }
.brand small { display: block; margin-top: 4px; font: 700 .55rem/1.35 var(--sans); letter-spacing: .14em; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(14px, 2.7vw, 34px); }
nav a { font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover, .text-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-contact { padding: 8px 13px; border: 1px solid #b3bfb2; border-radius: 7px; }
.nav-contact span { margin-left: 4px; }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 5vw, 70px); align-items: center; padding-block: 82px 88px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; color: var(--green); font-size: .71rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: #799378; }
h1 { font-size: clamp(3.5rem, 6.3vw, 6.1rem); letter-spacing: -.072em; line-height: .98; }
h1 em { color: var(--green); font-weight: 400; }
.intro { margin-top: 24px; max-width: 37ch; font-size: 1.06rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 11px; padding: 11px 15px; border-radius: 7px; background: var(--green); color: white; font-size: .88rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #3b5c4b; }
.text-link { color: var(--green); font-size: .88rem; font-weight: 750; text-decoration: none; }
.hero-photo { overflow: hidden; border-radius: 18px; background: var(--green); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.92; object-fit: cover; }
.hero-photo figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 13px 18px; color: #f2f4ed; font-size: .72rem; letter-spacing: .025em; }
.hero-photo figcaption span + span { color: #d3e0d3; }
.section { padding-block: 72px; }
.section-tint { --pattern-ground: var(--cream); border-block: 1px solid var(--line); }
.dog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.dog { display: grid; grid-template-columns: 40% 1fr; min-height: 215px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.dog-copy { align-self: center; padding: 23px; }
.dog-copy h3 { margin: 8px 0 12px; font-size: clamp(1.55rem, 2.5vw, 2.14rem); }
.kicker { color: var(--green); font-size: .67rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.dog-copy p:not(.kicker) { font-size: .93rem; }
.family { margin-top: 20px; border-block: 1px solid #cbcdbf; }
.family summary { padding: 13px 0; cursor: pointer; color: var(--green); font-weight: 680; }
.family-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-bottom: 20px; }
.family-grid h3 { margin-block: 12px 5px; }
#novinky { padding-bottom: 0; }
.news-list { display: flex; align-items: flex-start; width: max-content; min-width: 100%; gap: 1rem; padding: .25rem 0 .75rem; }
.news-card { flex: 0 0 auto; min-height: max(28rem, var(--news-card-height, 0px)); width: min(21rem, calc(100vw - 3rem)); overflow-wrap: anywhere; }
.news-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-copy { padding: .8rem 1rem 1rem; }
.news-copy time { color: var(--muted); font-size: .85rem; }
.news-preview { margin-top: .5rem; }
.news-preview.is-clamped { max-height: 6.6rem; overflow: hidden; }
.news-preview.is-faded { mask-image: linear-gradient(#000 60%, transparent); }
.news-text { white-space: pre-wrap; color: var(--muted); }
.news-more { cursor: pointer; border: 0; padding: .35rem 0 0; background: transparent; font-family: inherit; }
.family + .family { margin-top: 0; border-top: 0; }
.family:has(+ .family) { border-bottom: 0; }
#odchovy, .breed { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: 36px clamp(36px, 7vw, 94px); }
.litters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.litters li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.litters li > b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: var(--green); font: 1.1rem var(--serif); }
.litters h3 { font-size: 1.3rem; }
.litters h3 a { color: var(--green); text-underline-offset: .16em; }
.litters time, .litters li > span { color: var(--muted); font-size: .85rem; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 25px; }
.gallery a, .news-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--green); text-decoration: none; }
.gallery a > span { display: flex; justify-content: space-between; padding: 7px 10px; font-size: .75rem; font-weight: 700; }
.gallery a:hover > span { text-decoration: underline; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.breed { grid-template-columns: 1fr 1fr; }
.breed p { max-width: 47ch; }
.colors { align-self: center; padding: 23px 27px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.colors ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0; margin: 20px 0 0; list-style: none; }
.colors li { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .82rem; }
.colors b { display: block; color: var(--ink); }
.coat-swatch { display: inline-block; width: 26px; height: 26px; border: 1px solid #9d806d; border-radius: 50%; flex: none; }
.blenheim { background: linear-gradient(130deg, #f8efdd 50%, #a05232 50%); }
.tricolor { background: linear-gradient(130deg, #272523 40%, #f8efdd 40% 72%, #a05232 72%); }
.ruby { background: #a05232; }
.black-tan { background: linear-gradient(130deg, #272523 60%, #a05232 60%); }
.contact { padding-block: 62px; background: var(--green); color: #fffaf0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px 54px; }
.contact p { color: #edf1e7; max-width: 44ch; }
.contact .eyebrow > span { background: #bdcfb5; }
address { display: grid; font-style: normal; border-top: 1px solid #738679; }
address a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #738679; text-decoration: none; overflow-wrap: anywhere; }
address a:hover { text-decoration: underline; }
.footer { display: flex; justify-content: space-between; gap: 10px 18px; padding-block: 21px; color: var(--muted); font-size: .8rem; }
.footer a { text-decoration: none; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { padding-block: 60px; }
  .hero-photo img { aspect-ratio: 1.65; }
  .dog-grid { gap: 12px; }
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dog-copy { padding: 15px; }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-direction: column; align-items: flex-start; padding-block: 14px; gap: 11px; }
  nav { gap: 7px 14px; }
  nav a { font-size: .82rem; }
  .nav-contact { border: 0; padding: 0; }
  .hero, #odchovy, .breed, .contact-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 39px 47px; }
  .hero-photo img { aspect-ratio: 2.1; }
  .hero-photo figcaption { padding: 9px 12px; }
  .section, .contact { padding-block: 45px; }
  .dog-grid, .family-grid { grid-template-columns: 1fr; }
  .dog { min-height: 165px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .litters li { gap: 8px; }
  .colors { padding: 19px 15px; }
}
@media (max-width: 350px) {
  .colors ul { grid-template-columns: 1fr; }
  .litters li { grid-template-columns: 32px 1fr auto; }
  .litters li > b { width: 30px; height: 30px; }
}

.dog-compact { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.dog-copy { min-width: 0; overflow-wrap: anywhere; }
.dog-copy h3 a { text-decoration: none; }
.dog-copy h3 a:hover, .dog-profile-link:hover { text-decoration: underline; }
.dog-profile-link { display: inline-block; margin-top: 10px; color: var(--green); font-size: .85rem; font-weight: 700; }
.dog-dates { list-style: none; padding: 0; margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.dog-photos { position: relative; display: flex; flex-direction: column; min-width: 0; }
.dog-photo-frame { position: relative; overflow: hidden; flex: 1; background: var(--cream); }
.dog-photos img { width: 100%; height: 100%; object-fit: cover; }
.dog > .dog-photos img { position: absolute; inset: 0; }
.dog-compact .dog-photo-frame { aspect-ratio: 4 / 3; }
.mourning-ribbon { pointer-events: none; position: absolute; top: 24px; right: -31px; width: 130px; height: 14px; transform: rotate(45deg); background: #151515; box-shadow: 0 1px 4px #0005; }
.photo-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; text-align: center; background: var(--green); color: var(--white); font-size: .76rem; }
.photo-controls a { display: grid; place-items: center; min-width: 38px; min-height: 37px; font: 1.55rem/1 var(--sans); text-decoration: none; }
.photo-controls a:hover { background: #3b5c4b; }
.photo-controls a:focus-visible { outline-offset: -4px; }
.litters li:target { background: var(--sage); }

.profile-page { overflow-wrap: anywhere; }
.profile-back { display: inline-block; margin-bottom: 22px; }
.profile-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 5vw, 58px); align-items: start; }
.dog-photos-detail { width: min(100%, 450px); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); }
.dog-gallery-cover { position: absolute; inset: 0; }
.dog-gallery-cover:focus-visible { outline-offset: -4px; z-index: 1; }
.dog-photos-detail .dog-photo-frame { flex: none; aspect-ratio: 1; }
.dog-photos-detail img { position: absolute; inset: 0; }
.dog-photos-detail .mourning-ribbon { top: 32px; right: -37px; width: 166px; height: 20px; }
.profile-page h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); margin-bottom: 18px; }
.profile-intro .dog-dates { font-size: 1rem; }
.profile-description { white-space: pre-line; margin-top: 18px; }
.profile-page h2 { font-size: clamp(1.6rem, 3.2vw, 2.7rem); letter-spacing: -.03em; }
.profile-page .profile-litters { margin: 22px 0 7px; font-size: 1.45rem; }
.profile-list { margin: 0; padding-inline-start: 1.25rem; }
.profile-list a, .pedigree a { color: var(--green); }
.pedigree { margin-block: 18px; }
.pedigree summary, .profile-date-label { color: var(--green); font-weight: 700; }
.pedigree summary { cursor: pointer; }
.pedigree-tree { margin-top: 10px; text-align: center; }
.pedigree-tree ul { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.pedigree-tree li { position: relative; flex: 1; max-width: 16rem; padding: 0 4px 18px; }
.pedigree-tree li::before { content: ""; position: absolute; bottom: 0; left: 50%; height: 18px; border-left: 1px solid var(--muted); }
.pedigree-tree li:first-child:not(:only-child)::after,
.pedigree-tree li:last-child:not(:only-child)::after { content: ""; position: absolute; bottom: 0; width: 50%; border-top: 1px solid var(--muted); }
.pedigree-tree li:first-child:not(:only-child)::after { right: 0; }
.pedigree-tree li:last-child:not(:only-child)::after { left: 0; }
.pedigree-tree li > strong, .pedigree-tree li > span, .pedigree-tree li > a { display: block; }
.pedigree-tree p { position: relative; padding-top: 17px; font-weight: 700; }
.pedigree-tree p::before { content: ""; position: absolute; top: 0; left: 50%; height: 14px; border-left: 1px solid var(--muted); }
.profile-section { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 23px; }
.gallery-viewport { margin-top: 25px; }
.dog-gallery { display: flex; margin: 0; padding: 4px 4px .5rem; }
.dog-gallery > a { flex: 0 0 clamp(7rem, 18vw, 12rem); }
.document-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.document-list li + li { border-top: 1px solid var(--line); }
.document-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 10px 0; text-decoration: none; }
.document-list a:hover strong { text-decoration: underline; }
.document-list time { color: var(--muted); font-size: .85rem; }
.file-icon { --file-color: #46505a; display: grid; place-items: center; position: relative; width: 44px; height: 49px; padding-top: 6px; clip-path: polygon(0 0, 72% 0, 100% 26%, 100% 100%, 0 100%); border-radius: 4px; background: var(--file-color); color: white; font-size: .72rem; font-weight: 800; }
.file-icon::after { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 26%; background: #ffffff42; }
.file-icon-pdf { --file-color: #a32f35; }
.file-icon-word { --file-color: #2652a2; }
.file-icon-excel { --file-color: #26613e; }
.file-icon-slides { --file-color: #9a3b23; }
.file-icon-image { --file-color: #645184; }
.file-icon-archive { --file-color: #76551f; }

@media (max-width: 670px) {
  .profile-overview { grid-template-columns: 1fr; }
  .document-list a { grid-template-columns: auto minmax(0, 1fr); row-gap: 0; }
  .document-list .file-icon { grid-row: span 2; }
  .document-list time { grid-column: 2; }
}
.dog-copy .pedigree { margin-block: 9px 0; font-size: .83rem; }

.dog-page { min-height: 100vh; display: flex; flex-direction: column; }
.dog-page .profile-page { flex: 1; }
.profile-coat { display: flex; gap: 9px; align-items: center; margin-bottom: .7rem; }
.profile-birth { margin-bottom: .7rem; }
.profile-birth span { color: var(--green); font-weight: 700; }
.profile-description { white-space: pre-wrap; }
.profile-memorial { margin-top: 1.5rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.memorial-paws { display: inline-block; filter: brightness(0); }
.profile-memorial .memorial-text { margin-top: .35rem; white-space: pre-line; }
.profile-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.profile-table-title { width: 62%; }
.profile-table-date { width: 23%; }
.profile-table th, .profile-table td { padding: .55rem .4rem; text-align: left; border-bottom: 1px solid var(--line); }
.profile-documents th { color: var(--green); font-size: .85rem; }
.profile-table td:nth-child(n+2) { font-size: .86rem; color: var(--muted); }
.profile-table td:last-child, .profile-table th:last-child { text-align: right; }
.profile-documents a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.pdf-preview-link { display: block; font-size: .85rem; }
.profile-documents a.pdf-preview-link { display: block; margin-top: .25rem; }
.profile-documents a:hover strong { text-decoration: underline; }
.profile-documents .file-icon { width: 26px; height: 29px; padding-top: 3px; font-size: .49rem; flex: none; }
.profile-links { list-style: none; margin: 0; padding: 0; }
.profile-links li + li { border-top: 1px solid var(--line); }
.profile-links a { display: flex; align-items: center; gap: .6rem; padding: .55rem .4rem; text-decoration: none; }
.profile-links a:hover strong { text-decoration: underline; }
.profile-link-icon { display: grid; place-items: center; flex: none; width: 26px; height: 29px; border-radius: 5px; background: var(--sage); color: var(--green); }
.profile-link-icon svg, .profile-link-icon img { grid-area: 1 / 1; width: 18px; height: 18px; }
.profile-link-icon img { object-fit: contain; visibility: hidden; }
.profile-link-icon.has-favicon img { visibility: visible; }
.profile-link-icon.has-favicon svg { visibility: hidden; }
.award-scroll { max-height: 60vh; max-height: 60dvh; overflow-y: auto; }
.award-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.award-list tbody + tbody { border-top: 1px solid var(--line); }
.award-list :is(th, td) { vertical-align: top; border-bottom: 0; }
.award-list td.award-description { padding-top: 0; text-align: left; color: var(--muted); white-space: pre-wrap; }
.award-list tbody:has(tr:target) { background: var(--sage); }
.award-heading { display: flex; align-items: flex-start; gap: .6rem; }
.award-icon { display: grid; place-items: center; border-radius: 50%; width: 2.1rem; height: 2.1rem; flex: none; background: var(--sage); color: var(--green); }
.profile-table tbody tr:last-child td { border-bottom: 0; }
.profile-table tr:target { background: var(--sage); }
.profile-section--tight-end + .profile-section { margin-top: 0; }
.dog-timeline { padding-top: 35px; }
.dog-timeline h2 { margin-bottom: 4px; }
:is(.timeline-viewport, .gallery-viewport) { position: relative; }
:is(.timeline-viewport, .gallery-viewport)::before, :is(.timeline-viewport, .gallery-viewport)::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 1rem; width: 2.75rem; pointer-events: none; opacity: 0; }
:is(.timeline-viewport, .gallery-viewport)::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
:is(.timeline-viewport, .gallery-viewport)::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
:is(.timeline-viewport, .gallery-viewport).fade-start::before, :is(.timeline-viewport, .gallery-viewport).fade-end::after { opacity: 1; }
.timeline-scroll { color: var(--green); }
.side-scroll { overflow-x: auto; }
.side-scroll::-webkit-scrollbar { height: .75rem; }
.award-scroll::-webkit-scrollbar { width: .75rem; }
:is(.side-scroll, .award-scroll)::-webkit-scrollbar-track { background: var(--sage); border-radius: 999px; }
:is(.side-scroll, .award-scroll)::-webkit-scrollbar-thumb { background: #54715d; border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
:is(.side-scroll, .award-scroll)::-webkit-scrollbar-thumb:hover, :is(.side-scroll, .award-scroll)::-webkit-scrollbar-thumb:active { background-color: var(--green); }
@supports not selector(::-webkit-scrollbar) {
  :is(.side-scroll, .award-scroll) { scrollbar-width: thin; scrollbar-color: #54715d var(--sage); }
}
.metro-line { position: relative; display: flex; width: max-content; min-width: 100%; margin: 0; padding: 0 .75rem 0 4.5rem; list-style: none; }
.metro-stop { --track-height: 8px; --date-height: 3rem; display: grid; position: relative; flex: 1 0 6rem; min-width: 0; contain: inline-size; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(10rem, auto) var(--date-height); }
.metro-stop::before { content: ""; position: absolute; top: calc(100% - var(--date-height) - var(--track-height) / 2); left: 0; right: 0; height: var(--track-height); background: #799378; }
.metro-stop:last-child { flex: 0 0 7.75rem; }
.metro-stop:last-child::before { display: none; }
.metro-stop:only-child { margin-inline-start: calc(50% - 1.875rem); }
.metro-stop::after { content: ""; position: absolute; left: 0; top: calc(100% - var(--date-height)); transform: translate(-50%, -50%); width: 1.1rem; height: 1.1rem; border: 2px solid var(--paper); border-radius: 50%; background: var(--green); }
.metro-stop.metro-transfer::after { outline: 3px solid #d5ac74; }
.metro-label { align-self: end; width: 10rem; margin-bottom: 1.05rem; padding-left: .85rem; transform: rotate(-45deg); transform-origin: left bottom; font-size: .86rem; line-height: 1.15; }
.metro-label > div + div { margin-top: .25rem; }
.metro-label a:hover { color: var(--ink); }
.metro-stop time { align-self: start; justify-self: start; width: 6rem; transform: translateX(-50%); padding-top: 1.125rem; text-align: center; white-space: nowrap; font-size: .78rem; line-height: 1.1; color: var(--muted); }
@media (max-width: 670px) {
  .dog-timeline { padding-top: 1.5rem; }
  :is(.timeline-viewport, .gallery-viewport)::before, :is(.timeline-viewport, .gallery-viewport)::after { width: 1.1rem; }
  .profile-table-title { width: 51%; }
  .profile-table-date { width: 29%; }
  .profile-table td, .profile-table th { padding-inline: .2rem; }
  .profile-documents a { gap: .3rem; }
  .award-heading { gap: .35rem; }
  .award-list .profile-table-title { width: 48%; }
  .award-list .profile-table-date { width: 34%; }
  .award-list .award-date { text-align: right; overflow-wrap: normal; padding-inline-end: .55rem; }
}

#uzitecne-odkazy { padding-top: 0; }
.album-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.album-cards img { aspect-ratio: 4 / 3; }
.album-cards a > span { gap: .5rem; align-items: baseline; }
.album-cards a > span > span { white-space: nowrap; }
.gallery-all { display: inline-block; margin-top: 1rem; }

.puppy { padding-block: 1.4rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.puppy:last-child { border-bottom: 0; }
.puppy:target { border-color: #799378; }
.puppy-overview { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.puppy-without-photo { grid-template-columns: 1fr; }
.puppy-overview h3 { margin-bottom: .5rem; }
.puppy-cover { width: 100%; max-height: 19rem; object-fit: contain; border-radius: 10px; }
.puppy-overview .text-link { display: inline-block; margin-top: .5rem; }
.puppy-strip { display: flex; gap: .65rem; width: 100%; padding: .25rem .25rem .6rem; margin-top: 1rem; }
.puppy-strip a { flex: 0 0 6.5rem; }
.puppy-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.photo-viewer {
  width: min(76rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1rem);
  max-height: calc(100dvh - 1rem);
  padding: .4rem;
  border: 0;
  background: transparent;
  color: #f7f5ef;
}
.photo-viewer::backdrop { background: rgb(0 0 0 / .8); }
body:has(.photo-viewer[open]) { overflow: hidden; }
.viewer-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.viewer-header form { grid-column: 3; justify-self: end; margin: 0; }
.viewer-counter {
  grid-column: 2;
  padding: .23rem .8rem;
  border: 1px solid #ffffff55;
  border-radius: 999px;
  background: #141414d9;
  color: #f2f0eb;
  font-size: .87rem;
  font-variant-numeric: tabular-nums;
}
.photo-viewer button { cursor: pointer; color: inherit; border: 1px solid #ffffff66; background: #1c1c1ce8; }
.viewer-control { width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; font: 1.7rem/1 var(--sans); }
.viewer-control:hover { background: #3b3b3b; }
.viewer-stage { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; justify-items: center; gap: .75rem; }
.viewer-frame { grid-column: 2; grid-row: 1; position: relative; max-width: 100%; overflow: hidden; border: 1px solid #fff; border-radius: 12px; background: #141414; }
.viewer-photo { width: auto; height: auto; max-width: 100%; max-height: min(67vh, 43rem); max-height: min(67dvh, 43rem); object-fit: contain; touch-action: pan-y; }
.viewer-prev { grid-column: 1; grid-row: 1; }
.viewer-next { grid-column: 3; grid-row: 1; }
.viewer-caption {
  position: absolute;
  inset: auto 0 0;
  max-height: 60%;
  overflow: auto;
  padding: 1.2rem .8rem .55rem;
  background: linear-gradient(transparent, #000d 45%);
  color: #ebe8e2;
  text-align: center;
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.viewer-caption:empty { display: none; }
.viewer-strip { display: flex; justify-content: safe center; gap: .4rem; overflow-x: auto; padding: .4rem; margin-top: .45rem; }
.viewer-strip button { flex: 0 0 3.5rem; padding: 2px; border-radius: 7px; opacity: .75; }
.viewer-strip button[aria-current="true"] { border-color: #fff; outline: 2px solid #fff; opacity: 1; }
.viewer-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.photo-viewer :focus-visible { outline: 2px solid #fff2ce; outline-offset: 2px; }

@media (max-width: 670px) {
  .puppy-overview { grid-template-columns: minmax(0, 1fr); }
  .viewer-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem .75rem; }
  .viewer-frame { grid-column: 1 / -1; }
  .viewer-photo { max-height: min(58vh, 43rem); max-height: min(58dvh, 43rem); }
  .viewer-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .viewer-next { grid-column: 2; grid-row: 2; justify-self: start; }
}
