/* Shared component contracts override legacy route-specific layouts. */
:where(html.df-core picture)>img{height:auto}
html.df-core .df-review-masonry {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1px!important;grid-auto-flow:dense!important;column-gap:28px!important;row-gap:0!important;align-items:start!important}
html.df-core.df-references :is(#reviews,.reviews) [data-review-card]:not(.is-visible){display:none!important}
html.df-core.df-family .review-page:not(.is-active){display:none!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] {box-sizing:border-box!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:28px 30px!important;border:1px solid rgba(36,32,28,.14)!important;background:rgba(250,247,241,.62)!important;display:flex!important;flex-direction:column!important;align-self:start!important;position:relative!important;left:auto!important;top:auto!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] header {display:grid!important;grid-template-columns:46px minmax(0,1fr) 24px!important;gap:14px!important;align-items:center!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-avatar {display:grid!important;place-items:center!important;border-radius:50%!important;width:46px!important;height:46px!important;overflow:hidden!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-avatar img {width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] blockquote {margin:0!important;min-height:0!important;display:-webkit-box!important;-webkit-line-clamp:5!important;-webkit-box-orient:vertical;overflow:hidden!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"].is-expanded blockquote {display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-copy {margin:24px 0!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-expand {background:none;border:0;border-bottom:1px solid currentColor;padding:0 0 4px;cursor:pointer}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] footer {margin-top:18px!important;padding:0!important;min-height:0!important;background:none!important;border:0!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-media {display:flex!important;gap:10px!important;width:100%!important;overflow-x:auto!important;height:auto!important;grid-template-columns:none!important;margin:0!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-photo-button {flex:0 0 65%!important;width:65%!important;aspect-ratio:auto!important;height:auto!important;border:0;padding:0;background:transparent}
html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-photo-button img {width:100%!important;height:auto!important;object-fit:contain!important;aspect-ratio:auto!important}
html.df-core [data-df-faq-component] details {border:0!important;border-bottom:1px solid var(--line,rgba(36,32,28,.18))!important;border-radius:0!important;padding:0!important;background:transparent!important}
html.df-core [data-df-faq-component] summary {display:grid!important;grid-template-columns:36px minmax(0,1fr) 24px!important;gap:18px!important;align-items:start!important;padding:24px 0!important;cursor:pointer;list-style:none}
html.df-core [data-df-faq-component] summary::-webkit-details-marker {display:none}
html.df-core [data-df-faq-component] summary strong {font:400 26px/1.25 var(--df-serif)!important}
html.df-core [data-df-faq-component] details>div {padding:0 42px 24px 54px!important;font:400 19px/1.55 var(--df-serif)!important}
html.df-core .df-gallery-track {padding-left:5vw!important;padding-right:5vw!important;align-items:flex-start!important}
html.df-core .df-uniform-gallery {display:block!important;width:100%!important;height:auto!important;max-height:none!important;overflow:hidden!important;padding:0!important}
html.df-couples .cinema-strip.source-video {width:100%!important;max-width:100%!important;min-width:0!important}
@media(min-width:761px){html.df-core .df-gallery-component .df-gallery-card {width:calc(clamp(420px,45vw,680px) * var(--df-media-ratio))!important;max-width:none!important}html.df-core .df-gallery-component .df-gallery-media{aspect-ratio:var(--df-media-ratio)!important}}
html.df-core .df-gallery-component .df-carousel-bottom-controls button {background:transparent!important;color:#fff!important;filter:drop-shadow(0 1px 3px #171513);min-width:64px!important;min-height:64px!important}
html.df-core .df-gallery-component .df-carousel-bottom-controls .df-icon {width:48px!important;height:48px!important}
html.df-core .df-proof-lightbox {inset:0;width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0;background:rgba(18,16,14,.98);color:white}
html.df-core .df-proof-lightbox::backdrop {background:rgba(0,0,0,.85)}
html.df-core .df-proof-lightbox [data-diafoto-lightbox-rail] {height:100dvh;display:grid;place-items:center}
html.df-core .df-proof-lightbox figure {margin:0}
html.df-core .df-proof-lightbox img {width:auto!important;height:auto!important;max-width:100vw!important;max-height:100dvh!important;object-fit:contain!important}
html.df-core .df-proof-lightbox>button {position:absolute;z-index:2;color:white;background:rgba(0,0,0,.25);border:0;width:52px;height:52px}
html.df-core .df-proof-lightbox [data-diafoto-lightbox-close] {right:12px;top:12px;font-size:32px}
html.df-core .df-proof-lightbox [data-diafoto-lightbox-prev] {left:12px;top:50%}
html.df-core .df-proof-lightbox [data-diafoto-lightbox-next] {right:12px;top:50%}
html.df-core .df-proof-lightbox button svg {width:28px;height:28px}
html.df-couples .location-label {font-size:28px!important;line-height:1.3!important}
html.df-couples .package-detail li {list-style:none!important}
html.df-couples .package-detail li::before {content:'•';margin-right:12px}
html.df-core.df-couples #packages .package-detail li::before {content:'•'!important;display:inline!important;margin-right:12px!important}
@media(min-width:761px){html.df-core.df-couples #packages .package-detail li{border-top:0!important;border-bottom:0!important}}
html.df-proposal .hero-copy {left:5vw!important;text-align:left!important;max-width:90vw!important}
html.df-proposal .hero-copy h1 {font-size:28px!important;line-height:1.3!important;margin-left:0!important;max-width:90vw}
html.df-proposal .hero-copy .semantic-sub {font-size:36px!important;line-height:1.3!important;margin-left:0!important}
html.df-proposal .hero-display {margin-left:0!important;padding-left:0!important}
html.df-proposal .responsive-divider picture,html.df-proposal .responsive-divider img {display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important}
html.df-proposal .responsive-divider {height:auto!important;max-height:none!important}
html.df-proposal .final-cta {display:grid!important;height:auto!important;min-height:0!important;background:var(--paper,#faf7f1)!important;color:var(--ink,#171513)!important;overflow:visible!important;padding:0!important}
html.df-proposal .final-cta>picture,html.df-proposal .final-cta>picture img {position:static!important;display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}
html.df-proposal .final-shade {display:none!important}
html.df-proposal .final-copy {position:static!important;padding:60px 5vw!important;width:100%!important;max-width:none!important}
@media(min-width:761px){html.df-couples .package-detail li {border-top:0!important;border-bottom:0!important}html.df-home .second-film .film-frame{width:90vw!important;margin-left:5vw!important;margin-right:5vw!important}html.df-home .second-film{padding-left:0!important;padding-right:0!important}}
@media(max-width:760px){
 html.df-couples .cinema-strip.source-video {width:calc(100% - 40px)!important;max-width:calc(100% - 40px)!important}
 html.df-core .df-review-masonry {display:flex!important;flex-direction:column!important;gap:18px!important}
 html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] {padding:23px 20px!important;grid-row-end:auto!important}
 html.df-core [data-df-faq-component] summary {grid-template-columns:28px minmax(0,1fr) 24px!important;gap:12px!important;padding:20px 0!important}
 html.df-core [data-df-faq-component] summary strong {font-size:23px!important}
 html.df-core [data-df-faq-component] details>div {padding:0 0 22px 40px!important;font-size:18px!important}
 html.df-proposal .hero-copy {left:20px!important;bottom:14vh!important;max-width:calc(100vw - 40px)!important}
 html.df-proposal .hero-copy h1 {font-size:22px!important;max-width:100%}
 html.df-proposal .hero-copy .semantic-sub {font-size:32px!important}
 html.df-proposal .hero-display {font-size:clamp(48px,12vw,72px)!important}
 html.df-couples .location-label {font-size:24px!important}
 html.df-core .df-gallery-track {padding-left:27px!important;padding-right:27px!important}
}

/* R19 desktop overrides; keep after the shared base rules. */
.df-footer-copyright{display:none}
html.df-core :is(#reviews,.reviews) [data-df-review-source="website"] header{grid-template-columns:minmax(0,1fr)!important;min-height:46px}
@media(min-width:761px){
 html.df-core .df-uniform-gallery{columns:auto!important;column-count:1!important}
 html.df-core .df-gallery-component .df-gallery-card{aspect-ratio:auto!important;overflow:visible!important}
 html.df-core .df-gallery-component .df-carousel-bottom-controls{position:static!important;display:flex!important;justify-content:center!important;padding:24px 5vw!important}
 html.df-core .df-gallery-component .df-carousel-bottom-controls button{position:absolute!important;top:calc(clamp(420px,45vw,680px) / 2)!important;transform:translateY(-50%)!important;z-index:4;border:0!important;box-shadow:none!important}
 html.df-core .df-gallery-component [data-df-carousel-prev]{left:calc(5vw - 32px)!important}
 html.df-core .df-gallery-component [data-df-carousel-next]{right:calc(5vw - 32px)!important}
 html.df-core .df-gallery-component .df-carousel-bottom-controls .arrow{width:48px!important;height:48px!important}
 html.df-home .second-film-title{margin-left:5vw!important;margin-right:5vw!important;width:90vw!important}
 html.df-core [data-df-faq-component] li:last-child{border-bottom:0!important}
 html.df-core [data-df-faq-component] .faq-package-choices>div:last-child{border-bottom:0!important}
 html.df-core.df-proposal .final-cta{position:relative!important;color:white!important;height:auto!important;min-height:0!important;max-height:none!important}
 html.df-core.df-proposal .final-cta>picture{height:auto!important;min-height:0!important}
 html.df-proposal .final-cta .final-shade{display:block!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,transparent 25%,rgba(12,12,12,.8))!important;z-index:1}
 html.df-proposal .final-cta .final-copy{position:absolute!important;left:5vw!important;bottom:60px!important;width:auto!important;max-width:80vw!important;padding:0!important;color:white!important;z-index:2}
 html.df-proposal .final-cta .final-copy .eyebrow{color:white!important}
 html.df-core :is(#reviews,.reviews) .review-media{align-items:start!important;scroll-snap-type:x mandatory}
 html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-photo-button{flex-basis:100%!important;width:100%!important;scroll-snap-align:start}
 html.df-core :is(#reviews,.reviews) [data-df-review-component="diafoto"] .review-photo-button img{max-height:none!important}
 html.df-core .df-review-photo-controls{display:flex;justify-content:space-between;gap:12px;margin-top:12px}
 html.df-core .df-review-photo-controls button{background:transparent;border:1px solid var(--line);padding:8px 16px;cursor:pointer}
 html.df-core .df-review-photo-controls button:disabled{opacity:.35;cursor:default}
 html.df-family .family-promise-photo{padding:0!important}
 html.df-family .family-promise-photo picture{width:100%!important;max-width:none!important}
 html.df-family .album-item:nth-child(19),html.df-family .album-item:nth-child(40){display:none!important}
 html.df-core.df-family .final{height:auto!important;min-height:0!important;max-height:none!important}
 html.df-family .final>picture{position:static!important;display:block!important}
 html.df-family .final>picture img{display:block!important;width:100%!important;height:auto!important;object-fit:contain!important}
 html.df-core.df-wedding .gateway-copy{min-width:0}
 html.df-core.df-wedding .gateway .cta{min-width:0!important;max-width:100%!important}
 html.df-core [data-diafoto-site-footer]{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:24px!important;min-height:130px!important;padding:30px 5vw!important;border-top:1px solid var(--line)!important;background:var(--paper)!important;font:400 11px/1.6 var(--df-sans,Arial,sans-serif)!important;letter-spacing:.08em!important}
 html.df-core [data-diafoto-site-footer]>div{text-align:center}
 html.df-core [data-diafoto-site-footer]>a:last-child{justify-self:end!important}
 html.df-core [data-diafoto-site-footer] .df-footer-copyright{display:block;margin-top:8px;font-size:10px;letter-spacing:.03em;text-transform:none}
 html.df-references [data-review-load]{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.2!important;padding:16px 26px!important;height:auto!important;min-height:48px!important}
}
.df-review-photo-controls{display:none}

/* R20: one review lifecycle, contained instances of the same gallery, simple site footer. */
html.df-core [data-df-review-component] :is(.review-expand,.review-more)[hidden]{display:none!important}
html.df-core :is(#reviews,.reviews) [data-df-review-source="google"] footer{display:block!important;text-align:left!important;align-self:stretch!important}
html.df-core :is(#reviews,.reviews) [data-df-review-source="google"] footer a{display:inline!important;text-decoration:underline!important;text-underline-offset:4px;justify-self:start!important}
html.df-core .df-gallery-component[data-df-gallery-layout="contained"] .df-gallery-track{padding:0!important;gap:0!important}
html.df-core .df-gallery-component[data-df-gallery-layout="contained"] .df-gallery-card{width:100%!important;flex:0 0 100%!important;aspect-ratio:auto!important;overflow:visible!important}
html.df-core .df-gallery-component[data-df-gallery-layout="contained"] .df-gallery-media{aspect-ratio:var(--df-contained-ratio)!important;height:auto!important}
html.df-core .df-gallery-component[data-df-gallery-layout="contained"] .df-carousel-bottom-controls button{top:var(--df-gallery-control-y,50%)!important}
html.df-core .df-gallery-component[data-df-gallery-layout="contained"] [data-df-carousel-prev]{left:12px!important}
html.df-core .df-gallery-component[data-df-gallery-layout="contained"] [data-df-carousel-next]{right:12px!important}
html.df-core.df-terrace .package-media{min-width:0!important;align-self:start}
html.df-core.df-terrace main .package .package-media{align-self:start!important;aspect-ratio:auto!important;height:auto!important}
html.df-core.df-terrace .setup>.df-uniform-gallery{width:calc(100% + 10vw)!important;max-width:none!important;margin-left:-5vw}
html.df-core [data-diafoto-site-footer]{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:30px 5vw!important;min-height:100px!important;border-top:1px solid var(--line,rgba(36,32,28,.18))!important;background:var(--paper,#faf7f1)!important;color:var(--ink,#171513)!important;font:400 11px/1.6 var(--df-sans,Arial,sans-serif)!important;text-transform:none!important;letter-spacing:.03em!important}
html.df-core [data-diafoto-site-footer] .df-footer-copyright{display:block!important;margin:0!important;font:inherit!important;letter-spacing:inherit!important}
@media(min-width:761px){
 html.df-core.df-proposal .hero-copy h1{font-size:calc(28px / 1.5)!important}
 html.df-core.df-proposal .hero-copy .semantic-sub{font-size:calc(36px / 1.3)!important}
 html.df-core.df-terrace .final>picture img{object-position:65% 45%!important}
 html.df-core.df-proposal .package-summary .package-details:not([open]) summary{border-bottom:0!important}
 html.df-core.df-family .hero-copy{display:block!important;left:5vw!important;right:auto!important;bottom:58px!important;width:min(1200px,90vw)!important;max-width:90vw!important;text-align:left!important}
 html.df-core.df-family .hero-copy h1{font:600 14px/1.3 var(--df-sans,Arial,sans-serif)!important;letter-spacing:.11em!important;margin:0 0 8px!important}
 html.df-core.df-family .hero-copy .semantic-sub{display:block!important;font:400 18px/1.3 var(--df-serif)!important;margin:0 0 18px!important}
 html.df-core.df-family .hero-display{font:400 var(--df-display-service-hero)/.9 var(--df-serif)!important;margin:0!important;max-width:90vw!important}
 html.df-core.df-family .hero-copy .hero-support{font:400 19px/1.5 var(--df-serif)!important;max-width:620px!important;margin:26px 0 0!important}
 html.df-core.df-references .closing{padding:28px 5vw!important;border-top:1px solid var(--line);display:flex!important;align-items:center!important;min-height:0!important}
 html.df-core.df-references .closing :is(.eyebrow,.closing-display){display:none!important}
 html.df-core.df-references .closing-link{margin:0!important}
}
@media(max-width:760px){
 html.df-core.df-terrace .setup>.df-uniform-gallery{width:100%!important;margin-left:0}
 html.df-core [data-diafoto-site-footer]{padding:28px 20px!important;min-height:0!important;flex-wrap:wrap!important}
 html.df-core [data-diafoto-site-footer][data-df-footer-has-mobile-cta]{padding-bottom:94px!important}
}

/* R21: the gallery boundary owns layout on phones as well as desktop. */
html.df-core .df-uniform-gallery{columns:auto!important;column-count:1!important}
html.df-core .df-gallery-component{container-type:inline-size;--df-gallery-standard-height:clamp(420px,45vw,680px);--df-gallery-gutter:5vw}
html.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-track{scroll-padding-left:var(--df-gallery-gutter);padding-right:max(var(--df-gallery-gutter),calc(100cqw - var(--df-gallery-standard-height) * var(--df-gallery-last-ratio,1) - var(--df-gallery-gutter)))!important}
html.df-core .df-gallery-component .df-gallery-card{scroll-snap-align:start!important}
html.df-core .df-gallery-component .df-gallery-card{display:block!important;aspect-ratio:auto!important;overflow:visible!important}
html.df-core .df-gallery-component .df-carousel-bottom-controls{position:static!important;display:flex!important;justify-content:center!important;margin:0!important;padding:24px 5vw!important}
html.df-core .df-gallery-component .df-carousel-bottom-controls button{position:absolute!important;top:var(--df-gallery-control-y,50%)!important;transform:translateY(-50%)!important;z-index:4;border:0!important;box-shadow:none!important}
html.df-core .df-gallery-component .df-carousel-bottom-controls .arrow{width:48px!important;height:48px!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component] .df-review-gallery{display:block!important;overflow:visible!important;min-width:0!important;padding:0!important;box-sizing:border-box!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component] .df-review-gallery img{height:100%!important;max-height:none!important;object-fit:contain!important}
html.df-core :is(#reviews,.reviews) [data-df-review-component] .df-review-gallery .df-carousel-bottom-controls{padding:16px 0!important}
html.df-core [data-df-faq-component] details>div{padding-top:18px!important}
html.df-core.df-couples #packages .package-detail li{padding-left:22px!important}
html.df-core.df-couples #packages .package-detail li::before{position:absolute!important;display:block!important;left:0!important;top:13px!important;margin:0!important;width:10px!important;text-align:left!important}
@media(min-width:761px){html.df-core.df-couples #packages .package-detail li::before{top:14px!important}}
@media(max-width:760px){
 html.df-core .df-gallery-component[data-df-gallery-layout="standard"]{--df-gallery-standard-height:min(420px,calc((100cqw - 54px) / var(--df-gallery-max-ratio,1.5)));--df-mobile-gallery-height:var(--df-gallery-standard-height);--df-gallery-gutter:27px}
 html.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-card{width:calc(var(--df-mobile-gallery-height) * var(--df-media-ratio))!important;max-width:none!important}
 html.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-media{height:var(--df-mobile-gallery-height)!important;aspect-ratio:var(--df-media-ratio)!important}
 html.df-core .df-gallery-component [data-df-carousel-prev]{left:12px!important}
 html.df-core .df-gallery-component [data-df-carousel-next]{right:12px!important}
 html.df-core.df-home #experience .display-title em{letter-spacing:-.015em!important}
 html.df-core.df-proposal .package-detail li:last-child{border-bottom:0!important}
 html.df-core.df-family .family-promise-photo{padding:0!important}
 html.df-core.df-family .family-promise-photo picture{width:100%!important;max-width:none!important}
 html.df-core.df-family :is(.story-media,.album-item) img{object-fit:contain!important}
 html.df-core.df-proposal .final-cta>picture img{object-position:center!important;max-height:none!important}
}

/* R23-001/002/004/007 (owner, 2026-11-16): one universal phone gallery. A vertical photo fills the width
   except for a visible sliver of the next photo, so it reads as a gallery; nothing is cropped — every
   card is the same 2:3 frame and every photo is shown whole inside it.
   Height is no longer derived from the widest photo, which made whole rails tiny. */
@media(max-width:760px){
 html.df-core.df-core .df-gallery-component[data-df-gallery-layout="standard"]{
  --df-gallery-gutter:20px;--df-gallery-peek:44px;
  --df-m-card-max:calc(100cqw - var(--df-gallery-gutter) - var(--df-gallery-peek));
  --df-m-gallery-height:min(calc(var(--df-m-card-max) * 1.5),calc(100svh - 190px));
 }
 html.df-core.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-track{
  gap:8px!important;padding-left:var(--df-gallery-gutter)!important;scroll-padding-left:var(--df-gallery-gutter)!important;
  padding-right:max(var(--df-gallery-gutter),calc(100cqw - var(--df-m-gallery-height) / 1.5 - var(--df-gallery-gutter)))!important
 }
 /* Every card is the same 2:3 frame (R21-003: equal heights). 2:3 photos fill it exactly; other ratios
    are shown whole inside it (contain), centred — never cropped. */
 html.df-core.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-card{
  width:calc(var(--df-m-gallery-height) / 1.5)!important;flex:0 0 auto!important;max-width:none!important
 }
 html.df-core.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-media{
  width:100%!important;height:var(--df-m-gallery-height)!important;aspect-ratio:auto!important;background:transparent!important
 }
 /* Wedding portfolio sits inside a padded section: bleed it to both screen edges like the others. */
 html.df-core.df-core.df-wedding section.portfolio>.df-uniform-gallery{width:calc(100% + 40px)!important;max-width:none!important;margin-left:-20px!important;margin-right:-20px!important}
 html.df-core.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-media img{
  width:100%!important;height:100%!important;object-fit:contain!important
 }
}

/* R23-009 (owner, 2026-11-16): general add-on rule — add-on prices are 3pt smaller than the 58px
   display price they used (58px → 54px), on every page and width. */
html.df-core.df-core{--df-addon-price-size:calc(58px - 3pt)}
html.df-core.df-core :is(.addon-grid,.addons) article strong{font-size:var(--df-addon-price-size)!important}

/* Regression from the 2026-11-16 looser display tracking: at 761–790px the Wedding gateway CTA
   (nowrap) outgrew its narrower column and its arrow pushed the page sideways. Let it wrap. */
@media(min-width:761px){
 html.df-core.df-core.df-wedding .gateway .cta{white-space:normal!important;height:auto!important;min-height:48px!important;padding-top:12px!important;padding-bottom:12px!important;max-width:100%!important;box-sizing:border-box!important}
}
@media(max-width:760px){
 /* R23: the letterbox around non-2:3 photos is page paper, not a grey placeholder band. */
 html.df-core.df-core .df-gallery-component[data-df-gallery-layout="standard"] :is(.df-gallery-card,.df-gallery-media,.df-gallery-media picture){background:transparent!important}
 html.df-core.df-core .df-gallery-component[data-df-gallery-layout="standard"] .df-gallery-media img{object-position:center!important;background:transparent!important}
}

/* Owner, 2026-12-01: phone galleries must be even. Supersedes the R23 "contain" letterbox for rails that
   inc/render-helpers.php marks data-df-phone-fill (vertical media only): photos fill one larger 2:3 frame
   edge to edge (4:5 loses a sliver at the sides); films are shown whole at 9:16 at the same height, in a
   narrower card. Client review photos of mixed orientation keep the whole-photo frame. */
@media(max-width:760px){
 html.df-core.df-core .df-gallery-component[data-df-gallery-viewport="mobile"][data-df-gallery-layout="standard"]{--df-gallery-gutter:16px;--df-gallery-peek:34px}
 html.df-core.df-core .df-gallery-component[data-df-phone-fill][data-df-gallery-layout="contained"] .df-gallery-media{aspect-ratio:2/3!important;height:auto!important}
 html.df-core.df-core .df-gallery-component[data-df-phone-fill] .df-gallery-media :is(img,video){width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
 html.df-core.df-core .df-gallery-component[data-df-phone-fill][data-df-gallery-layout="standard"] .df-gallery-card.story-video{width:calc(var(--df-m-gallery-height) * var(--df-media-ratio))!important}
 html.df-core.df-core .df-gallery-component[data-df-gallery-viewport="mobile"][data-df-gallery-layout="standard"] .df-gallery-track{
  padding-right:max(var(--df-gallery-gutter),calc(100cqw - var(--df-m-gallery-height) * var(--df-gallery-last-phone-ratio,.6667) - var(--df-gallery-gutter)))!important
 }
}

/* Footer: blog and legal pages that stay on the Wfolio part of diafoto.com. */
html.df-core [data-diafoto-site-footer] .df-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px}
html.df-core [data-diafoto-site-footer] .df-footer-links a{color:inherit;text-decoration:none;border-bottom:1px solid transparent;padding:6px 0}
html.df-core [data-diafoto-site-footer] .df-footer-links a:hover,html.df-core [data-diafoto-site-footer] .df-footer-links a:focus-visible{border-bottom-color:currentColor}
@media(max-width:760px){html.df-core [data-diafoto-site-footer] .df-footer-links{order:3;width:100%;justify-content:flex-start;gap:4px 18px}}
