/* Saba Relief responsive and UI fixes (UI bug sheet). Test site sabarelief.uk. Each fix is one block, see Project.md section 10.7. */


/* BEGIN UI-01 (hero banner buttons on phones, all four slides: every button exactly 2 times its original size; slides 2 to 4 are also moved so the Donate Now and Read More pair does not overlap; Slider Revolution layers) */
@media (max-width: 767px) {
	/* slides 1 to 4: all button layers at 2 times their original size (41 x 9 px and 44 x 10 px) */
	#SR7_3_2-44-0, #SR7_3_2-12-10, #SR7_3_2-12-11, #SR7_3_2-13-10, #SR7_3_2-13-11, #SR7_3_2-46-10, #SR7_3_2-46-11 { scale: 2 !important; }
	/* Food Parcel (slide id 12) */
	#SR7_3_2-12-10 { left: 13.8% !important; top: 77% !important; }
	#SR7_3_2-12-11 { left: 38.8% !important; top: 77% !important; }
	/* Health Appeal (slide id 13) */
	#SR7_3_2-13-10 { left: 9.1% !important; top: 70.9% !important; }
	#SR7_3_2-13-11 { left: 34.1% !important; top: 70.9% !important; }
	/* Yemen Emergency (slide id 46) */
	#SR7_3_2-46-10 { left: 31.3% !important; top: 70.9% !important; }
	#SR7_3_2-46-11 { left: 56.3% !important; top: 70.9% !important; }
}
/* END UI-01 */

/* BEGIN UI-04 (homepage Programme slider cards: every card image gets the same 342 : 274 shape, so a card whose picture has another size, like the Water Programme picture on production, no longer makes the card shorter) */
.testimonials-slider2 .apealimg img { width: 100%; height: auto; aspect-ratio: 342 / 274; object-fit: cover; }
/* END UI-04 */

/* BEGIN UI-05 (Winter Emergency page, section "Comfort Yemen This Winter: Donate Generously", phones only: removes the empty spacer blocks and the extra bottom space inside the two white cards, and makes every gap in the section 24 px) */
@media (max-width: 767px) {
	/* the two empty narrow columns (desktop side spacers) become tall empty blocks on phones: hide them */
	body.postid-1600 .single-pg.three-innerbox .vc_inner > .vc_col-sm-1 { display: none !important; }
	/* gap between the stacked blocks: 12 px above and below each = 24 px */
	body.postid-1600 .single-pg.three-innerbox .vc_inner > .wpb_column { padding-top: 12px !important; padding-bottom: 12px !important; }
	/* no extra space after the text of the cards and the Donate Now line */
	body.postid-1600 .single-pg.three-innerbox .vc_inner .wpb_text_column { margin-bottom: 0 !important; }
	body.postid-1600 .single-pg.three-innerbox .vc_inner .wpb_text_column p:last-child { margin-bottom: 0 !important; }
	/* white cards: same 15 px padding below the text as above it */
	body.postid-1600 .single-pg.three-innerbox .vc_inner .vc_col-sm-5 > .vc_column-inner { padding-bottom: 15px !important; }
	/* gap between the heading and the first card */
	body.postid-1600 .single-pg.three-innerbox > .vc_column_container > .vc_column-inner > .wpb_wrapper > .wpb_text_column { margin-bottom: 12px !important; }
	/* empty area under the Donate Now line */
	body.postid-1600 .single-pg.three-innerbox { padding-bottom: 25px !important; }
}
/* END UI-05 */

/* BEGIN UI-06 (Yemen Floods Emergency page, YouTube video, phones only: the space under the video was 107 px and above it 70 px; removing the extra 35 px under the video makes both about 70 px. The video exists on production only, on .uk this block has no visible effect) */
@media (max-width: 767px) {
	body.postid-4581 .wpb_video_widget { margin-bottom: 0 !important; }
}
/* END UI-06 */

/* BEGIN UI-07 (image gallery slider pagination dots, phones only: 22 dots of 30 px wrapped into 2 or 3 rows; now one row, the dots shrink to share the width, never wider than 20 px. The gallery slider exists on production only, on .uk this block has no visible effect) */
@media (max-width: 767px) {
	.gallery-slider .slick-dots { display: flex !important; flex-wrap: nowrap !important; justify-content: center !important; }
	.gallery-slider .slick-dots li { flex: 1 1 0 !important; min-width: 0 !important; max-width: 20px !important; margin: 0 !important; width: auto !important; }
	.gallery-slider .slick-dots li button, .gallery-slider .slick-dots li button:before { width: 100% !important; }
}
/* END UI-07 */

/* BEGIN UI-08 (project card headings, for example Education Projects: theme rule .three-innerbox h4 fixes the height at 47 px with overflow hidden, which cuts headings of two or three lines; the height now follows the text, the theme limit of 3 lines with ellipsis stays) */
.three-innerbox h4 { height: auto !important; }
/* END UI-08 */

/* BEGIN UI-09 (red Donate Now buttons, for example on the School Essentials page, on touch screens: the theme turns the button gold while it is touched, and the card behind it is the same gold, so the button background seems to disappear; on touch screens the button now stays red in the touched, focused and pressed states) */
@media (hover: none) {
	.vc_btn3.vc_btn3-size-md[style*="background-color:#bd0504"]:hover,
	.vc_btn3.vc_btn3-size-md[style*="background-color:#bd0504"]:focus,
	.vc_btn3.vc_btn3-size-md[style*="background-color:#bd0504"]:active { background-color: #bd0504 !important; }
}
/* END UI-09 */

/* BEGIN UI-10 (Medical Equipment page, section "Serve The Needy Patients Through Saba Relief", phones only: removes the empty spacer blocks and the extra space inside the two white cards and makes every gap 24 px; same method as UI-05) */
@media (max-width: 767px) {
	/* the two empty narrow columns (desktop side spacers) become tall empty blocks on phones: hide them */
	body.postid-938 .single-pg.three-innerbox .inner-sections > .vc_col-sm-1 { display: none !important; }
	/* gap between the stacked cards: 12 px above and below each = 24 px */
	body.postid-938 .single-pg.three-innerbox .inner-sections > .wpb_column { padding-top: 12px !important; padding-bottom: 12px !important; }
	/* no extra space after the text of the cards */
	body.postid-938 .single-pg.three-innerbox .inner-sections .wpb_text_column { margin-bottom: 0 !important; }
	body.postid-938 .single-pg.three-innerbox .inner-sections .wpb_text_column p:last-child { margin-bottom: 0 !important; }
	/* white cards: same 15 px padding below the text as above it */
	body.postid-938 .single-pg.three-innerbox .inner-sections .vc_col-sm-5 > .vc_column-inner { padding-bottom: 15px !important; }
	/* gap between the heading and the first card */
	body.postid-938 .single-pg.three-innerbox .vc_inner:not(.inner-sections) .wpb_text_column { margin-bottom: 12px !important; }
	/* empty area at the end of the section */
	body.postid-938 .single-pg.three-innerbox { padding-bottom: 25px !important; }
}
/* END UI-10 */

/* BEGIN UI-11 (Kidney Dialysis page, desktop 1201 px and wider: the picture on the left was 13 px shorter than the gold text card on the right; the picture now fills the full height of the card, cropped a few pixels at the sides) */
@media (min-width: 1201px) {
	body.postid-959 .vc_custom_1661528004853 .vc_col-sm-4 > .vc_column-inner > .wpb_wrapper { flex: 1 1 auto !important; }
	body.postid-959 .vc_custom_1661528004853 .vc_col-sm-4 .wpb_single_image,
	body.postid-959 .vc_custom_1661528004853 .vc_col-sm-4 .wpb_single_image .wpb_wrapper,
	body.postid-959 .vc_custom_1661528004853 .vc_col-sm-4 .wpb_single_image .vc_single_image-wrapper { height: 100% !important; }
	body.postid-959 .vc_custom_1661528004853 .vc_col-sm-4 .wpb_single_image img { height: 100% !important; width: 100% !important; object-fit: cover !important; }
}
/* END UI-11 */

/* BEGIN UI-12 (Kidney Dialysis page, section "They Need Your Help Now, So Don't Wait!", phones only: removes the empty spacer blocks and makes every gap 24 px; same method as UI-05 and UI-10) */
@media (max-width: 767px) {
	/* the two empty narrow columns (desktop side spacers) become tall empty blocks on phones: hide them */
	body.postid-959 .single-pg.three-larger .inner-sections > .vc_col-sm-1 { display: none !important; }
	/* gap between the stacked cards: 12 px above and below each = 24 px */
	body.postid-959 .single-pg.three-larger .inner-sections > .wpb_column { padding-top: 12px !important; padding-bottom: 12px !important; }
	/* no extra space after the text of the cards */
	body.postid-959 .single-pg.three-larger .inner-sections .wpb_text_column { margin-bottom: 0 !important; }
	body.postid-959 .single-pg.three-larger .inner-sections .wpb_text_column p:last-child { margin-bottom: 0 !important; }
	/* white cards: same 15 px padding below the text as above it */
	body.postid-959 .single-pg.three-larger .inner-sections .vc_col-sm-5 > .vc_column-inner { padding-bottom: 15px !important; }
	/* gap between the heading and the first card */
	body.postid-959 .single-pg.three-larger > .vc_column_container > .vc_column-inner > .wpb_wrapper > .wpb_text_column { margin-bottom: 12px !important; }
	/* empty area at the end of the section */
	body.postid-959 .single-pg.three-larger { padding-bottom: 25px !important; }
}
/* END UI-12 */

/* BEGIN UI-13 (Sponsorship Programme page, cards Orphan, Child and Family Sponsorship, screens 768 px and wider: the theme rule .three-innerbox p fixes every description at 191 px, so a 3 to 5 line text left 70 to 140 px of empty space above the Read More button; the height now follows the text, the theme limit of 8 lines with ellipsis stays; phones already had no fixed height) */
@media (min-width: 768px) {
	body.postid-177 .three-innerbox p { height: auto !important; }
}
/* END UI-13 */

/* BEGIN UI-13b (Sponsorship Programme page, cards Orphan, Child and Family Sponsorship, screens 768 px and wider: the three Read More buttons are pinned to the bottom of their cards so they sit on one line, 22 px above the card bottom; the space above the button is kept at 16 px minimum, shorter texts get more space above the button) */
@media (min-width: 768px) {
	body.postid-177 .three-innerbox .vc_col-sm-3 > .vc_column-inner > .wpb_wrapper { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; }
	body.postid-177 .three-innerbox .vc_col-sm-3 .wpb_text_column { margin-bottom: 0 !important; }
	body.postid-177 .three-innerbox .vc_col-sm-3 .wpb_text_column p { margin-bottom: 0 !important; }
	body.postid-177 .three-innerbox .vc_col-sm-3 > .vc_column-inner > .wpb_wrapper > .vc_btn3-container { margin-top: auto !important; padding-top: 16px !important; }
}
/* END UI-13b */

/* BEGIN UI-14 (Orphan Sponsorship page, section Donate for the future of Yemen's Orphans, first card "Your Support Matters": the theme class none-display hides it on phones and on 768 to 992 px screens; it is now shown on those screens too, so all three cards are visible everywhere; the third card has no heading in the page content, that is a content question and is not changed here) */
@media (max-width: 992px) {
	body.postid-857 .three-innerbox .none-display { display: block !important; }
}
/* END UI-14 */

/* BEGIN UI-15 (Sew the Seeds page, YouTube video "Empower Women. Transform Lives", phones: the empty desktop spacer columns left and right of the video became 51 px blocks above and below it, plus row padding 35 px above and 50 px below, so about 104 px of empty space above and 119 px below the video card; the spacer columns are hidden and the space is now 24 px above and 24 px below; page id 6090 exists on the live site only, this block has no effect on the test site) */
@media (max-width: 767px) {
	body.postid-6090 .single-pg .inner-sections:has(.wpb_video_widget) > .vc_col-sm-2 { display: none !important; }
	body.postid-6090 .single-pg .inner-sections:has(.wpb_video_widget) > .wpb_column { padding-top: 12px !important; padding-bottom: 12px !important; }
	body.postid-6090 .single-pg:has(.wpb_video_widget) > .vc_column_container > .vc_column-inner { padding-top: 12px !important; }
	body.postid-6090 .single-pg:has(.wpb_video_widget) { padding-bottom: 12px !important; }
}
/* END UI-15 */

/* BEGIN UI-16 (Child Sponsorship page, cards Orphan Sponsorship, Family Sponsorship and Sponsorship Programme: the theme class none-display hides the first card (Orphan Sponsorship) on phones and on 768 to 992 px screens; it is now shown on those screens too, so all three cards are visible everywhere; the two empty spacer columns with the same class stay hidden) */
@media (max-width: 992px) {
	body.postid-877 .three-innerbox .vc_col-sm-4.none-display { display: flex !important; }
}
/* END UI-16 */

/* BEGIN UI-17 (Family Sponsorship page, cards Orphan Sponsorship, Child Sponsorship and Sponsorship Programme: the theme class none-display hides the first card (Orphan Sponsorship) on phones and on 768 to 992 px screens; it is now shown on those screens too, so all three cards are visible everywhere) */
@media (max-width: 992px) {
	body.postid-887 .three-innerbox .vc_col-sm-4.none-display { display: flex !important; }
}
/* END UI-17 */

/* BEGIN UI-18 (Water Well page, section Harness The Sun's Power To Quench Yemen's Thirst, first information card ("As a dry region, Yemen's only hope of having clean water access..."): the theme class none-display hides it on phones and on 768 to 992 px screens; it is now shown on those screens too, so all three cards are visible everywhere) */
@media (max-width: 992px) {
	body.postid-979 .none-display.vc_col-sm-4 { display: flex !important; }
}
/* END UI-18 */

/* BEGIN UI-19 (Public Water Tank page, section "Saba Relief's Public Water Tank & Refill Project", phones only: the empty spacer column and the margins made about 103 px of empty space between the heading and the first card; the spacer blocks are removed and every gap is 24 px; same method as UI-05, UI-10 and UI-12) */
@media (max-width: 767px) {
	/* the two empty narrow columns (desktop side spacers) become tall empty blocks on phones: hide them */
	body.postid-1008 .single-pg.three-innerbox .inner-sections > .vc_col-sm-1 { display: none !important; }
	/* gap between the stacked cards: 12 px above and below each = 24 px */
	body.postid-1008 .single-pg.three-innerbox .inner-sections > .wpb_column { padding-top: 12px !important; padding-bottom: 12px !important; }
	/* no extra space after the text of the cards */
	body.postid-1008 .single-pg.three-innerbox .inner-sections .wpb_text_column { margin-bottom: 0 !important; }
	body.postid-1008 .single-pg.three-innerbox .inner-sections .wpb_text_column p:last-child { margin-bottom: 0 !important; }
	/* white cards: same 15 px padding below the text as above it */
	body.postid-1008 .single-pg.three-innerbox .inner-sections .vc_col-sm-5 > .vc_column-inner { padding-bottom: 15px !important; }
	/* gap between the heading and the first card */
	body.postid-1008 .single-pg.three-innerbox > .vc_column_container > .vc_column-inner > .wpb_wrapper > .wpb_text_column { margin-bottom: 12px !important; }
	/* empty area at the end of the section */
	body.postid-1008 .single-pg.three-innerbox { padding-bottom: 25px !important; }
}
/* END UI-19 */

/* BEGIN UI-20 (Food Parcel page, phones only: the gap between the embedded YouTube videos was 70 px between the first two and 35 px between the others; every gap is now 25 px) */
@media (max-width: 767px) {
	/* space below each video */
	body.postid-899 .wpb_video_widget { margin-bottom: 25px !important; }
	/* second video of a pair: no extra space above it (it was adding to the space below the first video) */
	body.postid-899 .vc_col-sm-6 + .vc_col-sm-6 > .vc_column-inner:has(.wpb_video_widget) { padding-top: 0 !important; }
}
/* END UI-20 */

/* BEGIN UI-21 (Food Parcel page, section "For Only 50, You Can Provide A Food Parcel To A Family", phones only: about 105 px of empty space between the description and the video; it is now 25 px, same as the gaps between the videos in UI-20; the space below the video is not changed) */
@media (max-width: 767px) {
	/* space below the description text */
	body.postid-899 .single-pg.three-larger .wpb_text_column { margin-bottom: 25px !important; }
	/* the empty desktop spacer column above the video becomes a 35 px block on phones: hide it */
	body.postid-899 .single-pg.three-larger + .vc_row-full-width + .vc_row > .wpb_column:first-child { display: none !important; }
	/* no extra space above the video itself */
	body.postid-899 .single-pg.three-larger + .vc_row-full-width + .vc_row > .wpb_column:has(.wpb_video_widget) > .vc_column-inner { padding-top: 0 !important; }
}
/* END UI-21 */

/* BEGIN UI-22 (Aqiqah page, Hadith quote "Slaughter two comparable sheep...", phones only: about 149 px of empty space between the quote box and the next section "AQIQAH THROUGH SABA RELIEF"; it is now 35 px) */
@media (max-width: 767px) {
	/* the empty desktop spacer column after the quote becomes a 51 px block on phones: hide it */
	body.postid-1218 .single-pg:has(.paragraph-back) .inner-sections > .vc_col-sm-2 { display: none !important; }
	/* no extra padding under the quote column and no margin under the quote box */
	body.postid-1218 .single-pg:has(.paragraph-back) .inner-sections > .vc_col-sm-8 { padding-bottom: 0 !important; }
	body.postid-1218 .single-pg:has(.paragraph-back) .paragraph-back { margin-bottom: 0 !important; }
	/* space at the end of the section (was 50 px) */
	body.postid-1218 .single-pg:has(.paragraph-back) { padding-bottom: 35px !important; }
}
/* END UI-22 */

/* BEGIN UI-23 (Islamic Will page, desktop and tablet: the right column is an empty gold box (class formgravity, a form column with no form in it) and all the text sits in the left column; the empty gold box is hidden and the text uses the full width, in two columns on desktop) */
@media (min-width: 768px) {
	/* hide the empty gold column and let the text column use the full row */
	body.postid-649 .single-pg .vc_inner > .formgravity { display: none !important; }
	body.postid-649 .single-pg .vc_inner:has(> .formgravity) > .vc_col-sm-6:first-child { width: 100% !important; }
}
@media (min-width: 993px) {
	/* desktop: the text flows into two balanced columns (about 70 characters per line) */
	body.postid-649 .single-pg .vc_inner:has(> .formgravity) > .vc_col-sm-6:first-child > .vc_column-inner > .wpb_wrapper { column-count: 2 !important; column-gap: 48px !important; }
	body.postid-649 .single-pg .vc_inner:has(> .formgravity) > .vc_col-sm-6:first-child .wpb_text_column { break-inside: avoid; }
}
/* END UI-23 */

/* BEGIN UI-24 (Islamic Will page, phones only: the empty gold box (class formgravity, a form column with no form in it) shows as an 83 px gold band under the text; it is hidden) */
@media (max-width: 767px) {
	body.postid-649 .single-pg .vc_inner > .formgravity { display: none !important; }
}
/* END UI-24 */

/* BEGIN UI-25 (Appeals page, all devices: the Yemen Emergency card was 28 px taller than the other cards because its picture file has a different shape (342 x 274 px, the others 342 x 247 px); all card pictures now get the same shape, cropped from the middle, so the cards, texts and Read More buttons line up) */
body.post-type-archive-appeals .apealsbox img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 342 / 247 !important;
	object-fit: cover !important;
}
/* END UI-25 */

/* BEGIN UI-26 (Projects page, all devices: on the live site the Water Programme card is shorter than the Islamic Will card because its picture file has a different shape (342 x 247 px, the other five are 342 x 274 px); all card pictures now get the shape of the majority (342 x 274), so every card has the same height and the picture fills its card) */
body.post-type-archive-projects .apealsmain img {
	aspect-ratio: 342 / 274 !important;
	object-fit: cover !important;
}
/* END UI-26 */

/* BEGIN UI-27 (project pages Education, Sponsorship, Food, Health and Islamic Will, phones only: the theme hides the blue line under the hero title on phones (for example "Charity Support 10 pounds a month." on Education) although it is shown on desktop; it is now shown as a centred blue label under the sub title. The Water Programme page is not changed: its title block is switched off on all devices on purpose, the picture carries the heading) */
@media (max-width: 767px) {
	body:is(.postid-161, .postid-177, .postid-182, .postid-184, .postid-649) .singlepageheader .blue-descri {
		display: block !important;
		margin: 12px auto 0 !important;
		text-align: center !important;
	}
}
/* END UI-27 */

/* BEGIN UI-28 (Projects page, all devices: every card heading sits in a fixed 56 px box (room for two lines) but is drawn at the top of it, so a one line heading left about 30 px of empty space above the description; the heading is now centred in its box (about 15 px above and below). The box keeps its height, so the descriptions and Read More buttons stay exactly where they were and line up from card to card) */
body.post-type-archive-projects .projects-main .pagestitle {
	display: flex !important;
	align-items: center !important;
}
body.post-type-archive-projects .projects-main .pagestitle a {
	height: auto !important;
	max-height: 52px !important;
	margin-bottom: 0 !important;
}
/* END UI-28 */

/* BEGIN UI-29 (footer Subscribe box on every page, all devices: 16 px between the email field and the Subscribe button but 0 px between the button and the description text under it; both gaps are now 12 px) */
footer .footerright .mc4wp-form-fields > .col-12.mb-3 { margin-bottom: 12px !important; }
footer .footerright .mc4wp-form-fields > .col-12.mb-4 > p { margin-top: 12px !important; }
/* END UI-29 */

/* BEGIN UI-30 (Zakat page, desktop where the picture is shown: the picture was 632 px high and the gold text box 666 px, leaving a 34 px white strip under the picture; the picture now fills the full height of its column and ends where the gold box ends) */
@media (min-width: 768px) {
body.postid-1240 .two_newsection > .inner-img > .vc_column-inner { display: flex !important; flex-direction: column !important; }
body.postid-1240 .two_newsection > .inner-img .wpb_wrapper,
body.postid-1240 .two_newsection > .inner-img .wpb_single_image,
body.postid-1240 .two_newsection > .inner-img figure.vc_figure,
body.postid-1240 .two_newsection > .inner-img .vc_single_image-wrapper { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; min-height: 0 !important; }
body.postid-1240 .two_newsection > .inner-img img { flex: 1 1 auto !important; min-height: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
}
/* END UI-30 */

/* BEGIN UI-31 (Sadaqah page, Hadith quote "Save yourself from hellfire...", phones only: about 149 px of empty space between the quote box and the next section "Support Saba Relief By Helping Yemen With Your Sadaqah"; it is now 35 px) */
@media (max-width: 767px) {
	/* the empty desktop spacer column after the quote becomes a 51 px block on phones: hide it */
	body.postid-1627 .single-pg:has(.paragraph-back) .inner-sections > .vc_col-sm-2 { display: none !important; }
	/* no extra padding under the quote column and no margin under the quote box */
	body.postid-1627 .single-pg:has(.paragraph-back) .inner-sections > .vc_col-sm-8 { padding-bottom: 0 !important; }
	body.postid-1627 .single-pg:has(.paragraph-back) .paragraph-back { margin-bottom: 0 !important; }
	/* space at the end of the section (was 50 px) */
	body.postid-1627 .single-pg:has(.paragraph-back) { padding-bottom: 35px !important; }
}
/* END UI-31 */

/* BEGIN X-01 (EXTRA, not in the client's bug sheet: Religious Dues page on .uk, all devices: the Aqiqah card picture file is 342 x 274 px while the other five are 342 x 247 px, so the Aqiqah card is 29 to 33 px taller and its text and buttons sit lower than the other cards in the row; all card pictures now get the shape of the majority (342 x 247), so every card has the same height and the buttons line up) */
body.post-type-archive-religious .apealsmain img {
	aspect-ratio: 342 / 247 !important;
	object-fit: cover !important;
}
/* END X-01 */

/* BEGIN X-02 (EXTRA, not in the client's bug sheet: the "Religious Dues" related-cards slider at the bottom of every Religious Dues page on .uk, all devices: the Aqiqah picture file is 342 x 274 px while the others are 342 x 247 px, so when the Aqiqah card is shown it is 23 to 33 px taller than its neighbours and its text and buttons sit lower; all slider pictures now get the shape of the majority (342 x 247), so the cards have the same height and the buttons line up) */
body.single-religious .each-related-post .apealimg img {
	aspect-ratio: 342 / 247 !important;
	object-fit: cover !important;
}
/* END X-02 */

/* BEGIN UI-32 (Sadaqah Jariyah page, desktop 993 px and wider: the two image-and-text sections had different widths (first 1119 px, second 1326 px at 1912 px) and heights (632 px and 749 px) and the second had 275 px of empty gold under its text; both are now 1119 px wide, 560 px high, picture 373 x 560 px, and the empty space under the text is 39 px and 87 px) */
@media (min-width: 993px) {
	/* the second section had no fixed width: give it the same as the first (the theme rule .two_newsection) */
	body.postid-1245 .inner-single.inner-pg-hding.vc_row-o-equal-height { width: 1119px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
	/* both pictures the same height; the picture fills its column */
	body.postid-1245 .inner-single.inner-pg-hding .inner-img .wpb_single_image,
	body.postid-1245 .inner-single.inner-pg-hding .inner-img figure.vc_figure,
	body.postid-1245 .inner-single.inner-pg-hding .inner-img .vc_single_image-wrapper { display: block !important; width: 100% !important; }
	body.postid-1245 .inner-single.inner-pg-hding .inner-img img { height: 560px !important; width: 100% !important; max-width: none !important; object-fit: cover !important; display: block !important; }
}
/* END UI-32 */

/* BEGIN UI-33 (Fidya / Kaffarah page, desktop 993 px and wider: both image-and-text sections were 1326 x 749 px at 1912 px (1146 px wide at 1366 px, the other religious pages are 1119 px) because the tall picture set the height, which left 451 px of empty gold under the "What Is Kaffarah?" text and 227 px under the "What is Fidya?" text; both sections are now 1119 px wide and as high as their text needs (at least 420 px), the picture fills its column without setting the height, and the text is centred in the gold box) */
@media (min-width: 993px) {
	body.postid-1639 .inner-single.vc_row-o-equal-height { width: 1119px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; min-height: 420px !important; }
	/* the picture fills its column and no longer sets the section height */
	body.postid-1639 .inner-single > .inner-img { position: relative !important; overflow: hidden !important; }
	body.postid-1639 .inner-single > .inner-img img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; object-position: center 20% !important; }
	/* text centred in the gold box, 35 px at the top and at the bottom */
	body.postid-1639 .inner-single > .vc_col-has-fill > .vc_column-inner { display: flex !important; flex-direction: column !important; justify-content: center !important; padding-bottom: 35px !important; }
}
/* END UI-33 */

/* BEGIN UI-35b (Get Involved page, desktop 768 px and wider: the three cards "Yemen Deployment", "Join As A Volunteer" and "Help Us Continue Impacting Lives" have texts of different length, so their buttons sat at different heights (Yemen 24 px lower than Join Now at 1912 px); the button of every card is now pinned to the bottom of its card, so the buttons of cards in the same row line up) */
@media (min-width: 768px) {
	body.page-id-1300 .inner-sections.vc_row-o-equal-height .vc_column-inner > .wpb_wrapper { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; }
	body.page-id-1300 .inner-sections.vc_row-o-equal-height .wpb_wrapper > .vc_btn3-container { margin-top: auto !important; }
}
/* END UI-35b */

/* BEGIN UI-36 (Get Involved page, phones up to 767 px: around "Join Hands To Help The Needy In Yemen!" there were 114 px of empty space above the heading and 85 px below it, before the footer; the first came from an empty spacer column after the last card that the theme only hides on phones when it carries the class none-display (this one does not), the second from a 35 px bottom margin of the heading plus 50 px bottom padding of the section; the empty spacer is now hidden on phones, the heading has no extra top/bottom margin and the section 40 px bottom padding: about 43 px above and 40 px below) */
@media (max-width: 767px) {
	body.page-id-1300 .inner-sections > .vc_col-sm-3:not(.none-display) { display: none !important; }
	body.page-id-1300 .wpb_text_column.vc_custom_1660825293486 { margin-top: 0 !important; margin-bottom: 0 !important; }
	body.page-id-1300 .single-pg { padding-bottom: 40px !important; }
}
/* END UI-36 */

/* BEGIN UI-37 (Yemen Deployment page, phones up to 767 px: below the banner picture (104 px high at 375 px) there were 107 px of blank space before a gap of 35 px and the first text, 142 px in total; the page title (h1 "Yemen Deployment 2026") is hidden by a page style (visibility hidden, because the title is already in the picture) but on phones the theme moves it from over the picture to below it, where the hidden title still takes 20 px + 67 px + 20 px; the empty title block is now removed on phones: 35 px between picture and text) */
@media (max-width: 767px) {
	body.page-id-3473 section.toppageheader .singlepgheader { display: none !important; }
}
/* END UI-37 */

/* BEGIN UI-39 (Careers page, phones up to 767 px: the heading "Are you dedicated to helping those who are in need?" was 40 px (the theme rule .vector-section h2) and wrapped to four lines, 192 px high; the gaps between heading and texts and sections were uneven (20 px, 35 px, 35 px); the heading is now 26 px (three lines, 98 px) and the gaps between heading, the two texts and the "Current Openings" heading are all 20 px) */
@media (max-width: 767px) {
	body.page-id-1794 .vector-section.about-mains h2 { font-size: 26px !important; line-height: 1.25 !important; }
	body.page-id-1794 .about-mainsection .wpb_text_column { margin-bottom: 20px !important; }
	body.page-id-1794 .about-mainsection .vector-section .wpb_text_column { margin-bottom: 0 !important; }
}
/* END UI-39 */

/* BEGIN UI-01d (hero banner on phones, slides "Yemen Conflict Emergency" (slide id 104) and "Purify Your Wealth, Show Mercy" (slide id 93): Donate Now and Read More are 44 x 10 px on production and on .uk; same 2 times size, same order (Donate Now left, Read More right) and same spacing as UI-01; Slider Revolution layers) */
@media (max-width: 767px) {
	#SR7_3_2-104-10, #SR7_3_2-104-11, #SR7_3_2-93-10, #SR7_3_2-93-11 { scale: 2 !important; }
	/* Yemen Conflict Emergency (slide id 104) */
	#SR7_3_2-104-10 { left: 13.8% !important; top: 78.4% !important; }
	#SR7_3_2-104-11 { left: 38.8% !important; top: 78.4% !important; }
	/* Purify Your Wealth, Show Mercy (slide id 93) */
	#SR7_3_2-93-10 { left: 13.8% !important; top: 72.4% !important; }
	#SR7_3_2-93-11 { left: 38.8% !important; top: 72.4% !important; }
}
/* END UI-01d */

/* BEGIN UI-41 (Annual Reports page, all widths: the report cards sit in two WPBakery rows of four columns (empty, card, card, empty / empty, card, empty, empty), so the 2023 card stood alone, left of centre, and on tablets (768 px) the 2024 card overlapped the 2025 card by 68 px because each column is 25 percent wide but a card is 250 px; on phones the cards were left of centre; each card row is now centred, empty columns are hidden, columns are as wide as a card, so incomplete rows are centred and nothing overlaps) */
body.page-id-4950 .vc_row.vc_inner:has(.df-book-cover) { display: flex !important; flex-wrap: wrap; justify-content: center; }
body.page-id-4950 .vc_row.vc_inner:has(.df-book-cover)::before,
body.page-id-4950 .vc_row.vc_inner:has(.df-book-cover)::after { display: none !important; }
body.page-id-4950 .vc_row.vc_inner:has(.df-book-cover) > .vc_column_container { float: none !important; width: auto !important; flex: 0 0 auto; }
body.page-id-4950 .vc_row.vc_inner:has(.df-book-cover) > .vc_column_container:not(:has(.df-book-cover)) { display: none !important; }
/* END UI-41 */

/* BEGIN UI-40 (Contact Us page, id 505: on desktop the left column (heading and two bullets, 166 px) is 434 px shorter than the form column (600 px), so the text sits at the top with a big empty space below; the two columns are now centred against each other (same middle line). On phones: 70 px between the intro and the form heading becomes 24 px, and each contact detail (Email, Phone, Address, Charity Number) had 35 px of empty space under it, now 20 px) */
@media (min-width: 768px) {
	body.page-id-505 .vc_row:has(.heading-contact) { display: flex !important; align-items: center; }
	body.page-id-505 .vc_row:has(.heading-contact)::before,
	body.page-id-505 .vc_row:has(.heading-contact)::after { display: none !important; }
	body.page-id-505 .vc_row:has(.heading-contact) > .wpb_column { float: none !important; }
	body.page-id-505 .vc_row:has(.heading-contact) > .wpb_column:first-child .wpb_text_column { margin-bottom: 0 !important; }
}
@media (max-width: 767px) {
	body.page-id-505 .vc_row:has(.heading-contact) > .wpb_column:first-child .wpb_text_column { margin-bottom: 0 !important; }
	body.page-id-505 .vc_row:has(.heading-contact) > .wpb_column + .wpb_column > .vc_column-inner { padding-top: 24px !important; }
	body.page-id-505 .vc_row:has(.wpb_text_column h3) .wpb_text_column { margin-bottom: 20px !important; }
}
/* END UI-40 */

/* BEGIN UI-42 (Donate Now page, id 344: the Usman Fundraising card picture is 1361 x 408 while the other 22 card pictures are 780 x 323, so at the same card width it is 125 px high against 172 px and its heading and amounts sit about 47 px higher than in the cards next to it; every card picture now has the same shape (780 : 323) and is cropped to fit, so the pictures and the headings line up) */
body.page-id-344 .donate-card img.card-img { aspect-ratio: 780 / 323; width: 100%; height: auto !important; object-fit: cover; }
/* END UI-42 */

/* BEGIN UI-42b (Donate Now page, id 344, 768 px and wider: in each row of donation cards the cards are as tall as the tallest one, but the frequency buttons (Single, Monthly) and the Donate Now button sat just below each card's own content, so they were at different heights from card to card and the shorter cards had blank space at the bottom; the card is now a column whose form fills the card, and the form is a grid in which the frequency buttons and Donate Now are always in the last two rows, so they line up across every row and the spare space sits in the middle of the card; only layout, no change to the form fields or buttons) */
@media (min-width: 768px) {
	body.page-id-344 .donate-card { display: flex !important; flex-direction: column; }
	body.page-id-344 .donate-card > .donate-pgttile { flex: 1 1 auto; display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
	body.page-id-344 .donate-card .donation-amount-fields { display: flex !important; flex-direction: column; }
	body.page-id-344 .donate-card .donation-amount-fields > .donate-form { flex: 1 1 auto; display: flex !important; }
	body.page-id-344 .donate-card .donate-form > .donation-form { flex: 1 1 auto; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto auto 1fr auto auto; }
	body.page-id-344 .donate-card .donation-form > * { max-width: none !important; width: auto !important; flex: none !important; }
	body.page-id-344 .donate-card .donation-form > .col-lg-3 { grid-row: 1; }
	body.page-id-344 .donate-card .donation-form > .main-dont { grid-column: 1 / -1; grid-row: 2; }
	body.page-id-344 .donate-card .donation-form > .custom_amount_field { grid-column: 1 / -1; grid-row: 3; }
	body.page-id-344 .donate-card .donation-form > .dont-cus { grid-column: 1 / -1; grid-row: 4; }
	body.page-id-344 .donate-card .donation-form > .dont-main { grid-column: span 2; grid-row: 6; }
	body.page-id-344 .donate-card .donation-form > .dont-bu { grid-column: 1 / -1; grid-row: 7; }
}
/* END UI-42b */


/* BEGIN UI-43 (How to Donate page, id 1087, phones and small tablets, 767 px and narrower: the three columns stack, but Phone and By Post sit at the page edge and left aligned, the Cash box is centred and indented 33 px more, and the Bank Transfer column keeps its 59 px desktop left padding, so the four sections start at different distances from the edge (12, 12, 45 and 71 px at 390 px wide) and mix left and centred text; every section is now centred, with the same width and the same space on both sides (heading icon and text centred together); the gold Cash box keeps its colour and top and bottom space; desktop is not changed) */
@media (max-width: 767px) {
	body.page-id-1087 .row-htd .innerd-boxz { padding-left: 0 !important; padding-right: 0 !important; }
	body.page-id-1087 .row-htd .htd { padding-left: 0 !important; }
	body.page-id-1087 .row-htd .vc_custom_1653902264697 { padding-right: 0 !important; }
	body.page-id-1087 .row-htd h3, body.page-id-1087 .row-htd h5, body.page-id-1087 .row-htd p, body.page-id-1087 .row-htd .innerd-boxz div { text-align: center !important; }
}
/* END UI-43 */

/* BEGIN UI-04b (homepage, desktop and laptop Programme cards (the six cards under Our Current Projects, the ones shown from 992 px up): the Water Programme picture file is 300 x 216 while the other five are 300 x 240, so at the same card width its picture is 28 px lower in height at 1366 px wide (260 px against 288 px) and its title and Read More button sit 28 px higher than in the cards next to it; every card picture now has the same 5 : 4 shape and is cropped to fit, so the six titles and buttons line up at 1000, 1366 and 1920 px; the phone slider is not touched, it has its own block UI-04) */
body.home .col-lg-4.slider .apealimg img { aspect-ratio: 5 / 4; width: 100%; height: auto !important; object-fit: cover; }
/* END UI-04b */



/* BEGIN UI-13c (Sponsorship Programme page, cards Orphan, Child and Family Sponsorship, screens 768 px and wider: the theme rule .three-top moves the Orphan and Family cards 35 px down on desktop (it is already off on phones), so the three cards had different tops, the row was 35 px taller than needed and the Child Sponsorship card was stretched so it had 77 px of empty space above its Read More button; the three cards now start on the same line and have the same height, the three Read More buttons are on one line, and the space above the button in the Child card is 42 px instead of 77 px at 1366 px wide; the row is 320 px high instead of 355 px) */
@media (min-width: 768px) {
	body.postid-177 .three-innerbox .three-top { margin-top: 0 !important; }
}
/* END UI-13c */
