/* Detail referencie – minimalistický, v štýle podstránok (cenník, kontakt) */
.rpage2 { background: var(--paper); }
.dhead { padding: calc(74px + clamp(40px, 6vw, 72px)) 0 clamp(32px, 4vw, 48px); }
.dhead__row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.dhead .eyebrow { margin-bottom: 16px; }
.dhead h1 { font-family: var(--font); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.07; letter-spacing: -.025em; }
.dhead__lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 440px; justify-self: end; }
.dmeta { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(36px, 5vw, 56px) 0 0; }
.dmeta div { padding: 18px 24px 0; border-left: 1px solid var(--line); } .dmeta div:first-child { border-left: 0; padding-left: 0; }
.dmeta dt { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dmeta dd { margin: 6px 0 0; font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.dphoto__link { position: relative; display: block; cursor: zoom-in; }
.dphoto__count { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 3px; background: var(--red); color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; transition: background-color .2s; }
.dphoto__count svg { width: 20px; height: 20px; }
.dphoto__link:hover .dphoto__count { background: var(--red-d); }
.dphoto img, .dphoto video { width: 100%; height: clamp(320px, 46vw, 640px) !important; object-fit: cover; object-position: 70% 45%; display: block; }
/* Loop video + thumbnails of further photos beside it */
.dphoto--thumbs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 12px; }
.dphoto__thumbs { display: grid; grid-auto-rows: 1fr; gap: 12px; height: clamp(320px, 46vw, 640px); }
.dphoto__thumb { position: relative; display: block; overflow: hidden; cursor: zoom-in; background: var(--ink); }
.dphoto .dphoto__thumb img { height: 100% !important; object-position: 50% 50%; transition: transform .6s var(--ease), opacity .3s; }
.dphoto__thumb:hover img { transform: scale(1.04); }
.dphoto__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(14,16,20,.55); color: #fff; font-family: var(--font); font-weight: 700; font-size: 26px; letter-spacing: -.02em; transition: background-color .2s; }
.dphoto__thumb:hover .dphoto__more { background: rgba(14,16,20,.68); }
.dsec { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; }
.dbody { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.dsec h2 { font-family: var(--font); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.025em; line-height: 1.1; }
.dbody__text p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; max-width: 640px; }
.dlist { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 640px; }
.dlist li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 500; }
.dlist svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.dblock { margin-top: clamp(56px, 7vw, 96px); }
.dblock__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.dblock__head span { font-size: 14px; color: var(--muted); }
.dvideo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); cursor: pointer; }
.dvideo img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .6s var(--ease), opacity .3s; }
.dvideo:hover img { transform: scale(1.03); opacity: .6; }
/* Výzva (partials/cta, štýly v app.css) – na detaile s odstupom od galérie. */
.dnext { margin-top: clamp(64px, 8vw, 112px); }
@media (max-width: 900px) {
  .dhead__row, .dbody { grid-template-columns: 1fr; gap: 20px; } .dhead__lead { justify-self: start; }
  .dmeta { grid-template-columns: 1fr 1fr; } .dmeta div { padding: 16px 0 0; border-left: 0; }
  .dphoto { width: 100%; } .dphoto img, .dphoto video { aspect-ratio: 4 / 3; }
  /* Main photo is full-bleed on mobile, so the thumbnail row is too (edge to edge, thin gaps). */
  .dphoto--thumbs { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dphoto__thumbs { grid-auto-rows: auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; height: auto; }
  .dphoto .dphoto__thumb img { aspect-ratio: 4 / 3; height: auto !important; }
  .dphoto__more { font-size: 22px; }
}

/* Video z YouTube (vložené cez odkaz v administrácii) */
.dvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Formátovaný text z editora v administrácii (rich) */
.dbody__text h2, .dbody__text h3 { font-family: var(--font); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); margin: 32px 0 14px; max-width: 640px; }
.dbody__text h2 { font-size: 26px; }
.dbody__text h3 { font-size: 20px; }
.dbody__text ul:not(.dlist), .dbody__text ol { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; padding-left: 22px; max-width: 640px; }
.dbody__text :not(.dlist) > li + li { margin-top: 6px; }
.dbody__text blockquote { margin: 0 0 18px; padding-left: 18px; border-left: 3px solid var(--red); max-width: 640px; }
.dbody__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
