/*
 * Square corners (body.dflv-square).
 * Every photo, and every card or frame that clips a photo, gets square corners,
 * across the theme and the DFLV Homepage / events plugins. The newsletter boxes,
 * the homepage Find a Spot box, and the homepage walk and account boxes are
 * square too.
 * Stays rounded on purpose: buttons, pills, badges, icon circles, author
 * headshots and logos.
 * Customizer > DFLV Theme > Header & top bar > "Square photo corners".
 */

/* 1. Every photo. Headshots, logos and emoji keep their shape. */
html:root body.dflv-square.dflv-theme:not(.dflv-sq-off) img:not(:is(.avatar, .emoji, .custom-logo, .byline-avatar, .acct-avatar, .dflv-art-avatar img, .dflv-vshot-img, [class*="logo"])):not(:is(.byline-who, .author-box, .comment-author, .blk-author, .dflv-art-avatar, .brand, [class*="logo"]) img) {
	border-radius: 0 !important;
}

/* 2. Anything that wraps a photo directly (frames, links, cards that clip it). */
html:root body.dflv-square.dflv-theme:not(.dflv-sq-off) :is(a, figure, picture, span, div, article, li):has(> img:not(:is(.avatar, .emoji, .custom-logo, [class*="logo"])), > picture > img) {
	border-radius: 0 !important;
}

/* 3. Photo cards, frames and placeholders by name (the photo sits deeper inside). */
html:root body.dflv-square.dflv-theme:not(.dflv-sq-off) :is(
	.rf-lead, .rf-ev-c, .rf-sc,
	.rh-lead-img, .rh-scard, .rh-scard-media, .rh-story-img, .rh-vheat-card,
	.rc-card, .rc-spot,
	.post-card, .post-card--feature, .post-card-media .thumb, .result-media .thumb, .thumb, .page-hero,
	.dflv-card, .dflv-dir-card, .dflv-series-card, .dflv-vcard, .dflv-gcard, .dflv-trend-thumb,
	.dflv-roadie-img, .dflv-roadie-card, .dflv-cond-card,
	.sr-place, .sr-article-img, .dflv-sk-card,
	.tidy-card, .tidy-more-im, .blk-mc, .blk-mc-im, .dflv-art-hero-band-img,
	.dflv-art-hero-img, .dflv-art-hero, .dflv-art-hero-split-img, .dflv-art-hero-mag-img,
	.dflv-art-rcard, .dflv-art-rail-card, .dflv-art-pbl-card, .dflv-art-adopt-img, .dflv-lb-img,
	.dflv-rd-teaser-card, .dflv-rd-teaser-thumb, .dflv-rd-wide-card, .dflv-rd-card,
	.dflv-art-fw5-card, .dflv-art-fw6-card, .dflv-art-fw7-card, .dflv-art-fw9-card,
	.dflv-car-card, .dflv-evb-morecard, .dflv-ev1-morecard, .dflv-gs-card,
	.dflv-ev-hero, .ecbc-feat-card, .ecbc-week-card, .ecbc-related-card, .ecbc-obs-scroller-card,
	.calx-ev-im, .calx-ph, .evx-card, .evx-ph, .mm-card, .mm-ph,
	.acct-ev-img, .acct-sub-img, .gw-card, .gw-hero-im,
	.dflv-series-card, .dog-thumb, .place-card, .map-card, .cat-card,
	.thumb.is-empty span
) {
	border-radius: 0 !important;
}

/* 4. Newsletter boxes, the Find a Spot box, and the homepage walk and account boxes. */
html:root body.dflv-square.dflv-theme:not(.dflv-sq-off) :is(
	.dflv-art-news, .dflv-art-news--bar,
	.ecbc-c2-newsletter, .ecbc-list-nl-card,
	.rf-spotbox, .rb-spots,
	.rf-wband, .rf-acct,
	.rh-acct, .rh-walk-now, .rh-walk-chart,
	.rc-walk, .rc-acct,
	.walk-now, .walk-day
) {
	border-radius: 0 !important;
}
