/* Approved photo-only cases: natural image proportions and content-driven height. */
.df-case-photo-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:40px; }
.df-case-photo-gallery--3 { grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.df-case-photo-gallery--1 { grid-template-columns:minmax(0,520px); justify-content:center; }
.df-case-photo { min-width:0; margin:0; padding:24px; border:1px solid #d1c3ae; background:#fff; }
.df-case-photo > img { display:block; position:static; width:100%; max-width:100%; height:auto; aspect-ratio:auto; object-fit:contain; transform:none; }
.df-case-photo-note { margin:24px 0 0; font-size:14px; line-height:1.8; letter-spacing:.03em; text-align:right; }
.df-cases-page > .df-case-photo-list { width:min(calc(100% - 48px),1040px); height:auto; min-height:0; margin:80px auto 120px; scroll-margin-top:140px; }
.df-home > .df-case-photo-section { height:auto; min-height:0; padding:0 0 80px; }
.df-home > .df-case-photo-section > .df-heading { height:auto; }
.df-case-photo-content { width:min(calc(100% - 48px),1200px); margin:48px auto 0; }
.df-home > .df-case-photo-section > .df-center { display:block; height:auto; margin:40px auto 0; }
.df-symptom-page > .df-symptom-case.df-case-photo-section { height:auto; min-height:0; padding:80px 0; }
.df-symptom-case.df-case-photo-section > div { width:min(calc(100% - 48px),1200px); margin-inline:auto; }
.df-symptom-case.df-case-photo-section .df-case-photo-gallery { margin-top:48px; }
.df-symptom-case.df-case-photo-section .df-button { margin:40px auto 0; }
.df-case-single { padding:180px 0 100px; }
.df-case-single .df-center { margin-top:40px; }
@media(max-width:780px) {
 .df-case-photo-gallery,.df-case-photo-gallery--3 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
 .df-case-photo-gallery--1 { grid-template-columns:minmax(0,520px); }
 .df-case-photo { padding:16px; }
 .df-case-photo-note { font-size:12px; text-align:left; }
 .df-cases-page > .df-case-photo-list { width:calc(100% - 32px); margin:48px auto 80px; scroll-margin-top:96px; }
 .df-home > .df-case-photo-section { padding:0 0 60px; }
 .df-case-photo-content { width:min(calc(100% - 32px),680px); margin-top:40px; }
 .df-home > .df-case-photo-section > .df-heading { width:calc(100% - 32px); margin-inline:auto; }
 .df-home > .df-case-photo-section > .df-center { width:calc(100% - 32px); margin-top:32px; }
 .df-symptom-page > .df-symptom-case.df-case-photo-section { padding:60px 0; }
 .df-symptom-case.df-case-photo-section > div { width:min(calc(100% - 32px),680px); }
 .df-symptom-case.df-case-photo-section .df-case-photo-gallery { margin-top:40px; }
 .df-symptom-case.df-case-photo-section .df-button { max-width:100%; margin-top:32px; }
 .df-case-single { padding:136px 0 72px; }
 .df-case-single h1 { font-size:28px; }
}
@media(max-width:599px) {
 .df-case-photo-gallery,.df-case-photo-gallery--3 { grid-template-columns:minmax(0,1fr); }
}
