.gives-list .entry-thumbnail img { width:100%; aspect-ratio:1; object-fit:cover; }
.gives-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; margin:2rem 0; }
.gives-gallery figure { margin:0; min-width:0; }
.gives-gallery img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.gives-gallery figcaption { margin-top:.5rem; font-size:.9rem; }
.single-gives .realizzazioni-page-content img { max-width:100%; height:auto; }
.single-gives .realizzazioni-page-content video { display:block; max-width:100%; max-height:75vh; margin:2rem auto; }
.single-gives .gives-inline-image { margin:2rem 0; }
.single-gives .gives-inline-image img { max-height:600px; object-fit:contain; }
.single-gives .thumbnail-header img { max-width:min(800px,90vw); max-height:420px; width:auto; object-fit:contain; }
.single-gives .page-content-wrapper.realizzazioni-content-wrapper .page-content { flex-basis:100%; max-width:1100px; margin:auto; }
.gives-category-description { max-width:1000px; margin:0 auto; padding:3rem 1.5rem; }
.gives-category-description img { max-width:100%; height:auto; }
.gives-category-image { display:block; margin:0 auto 2rem; }
.gives-back { margin-bottom:2rem; }

/* Gives cards inside the shared Realizzazioni grid. */
.realizzazioni-list .tease-gives .entry-thumbnail img { width:100%; aspect-ratio:1; object-fit:cover; }
.post-list .tease-gives .entry-title h3.title { text-transform:none !important; }
.post-list .tease-gives .entry-title h3.title::first-letter { text-transform:uppercase; }
.single-gives .page-header h1.title { text-transform:lowercase !important; }
.single-gives .page-header h1.title::first-letter { text-transform:uppercase !important; }

.categorie-gives-list a:focus-visible,.gives-list a:focus-visible { outline:3px solid #e9cb24; outline-offset:-3px; }
@media(max-width:575px) {
    .gives-gallery { grid-template-columns:1fr; }
    .single-gives .page-content-wrapper.realizzazioni-content-wrapper .page-content { padding:0 1.5rem 2rem; }
    .single-gives .page-header-wrapper.bg-header-wrapper { min-height:400px; }
    .single-gives .thumbnail-header-wrapper .thumbnail-header { margin-top:-140px; }
    .single-gives .thumbnail-header-wrapper { min-height:180px; }
    .single-gives .thumbnail-header img { max-height:280px; }
}
