@import 'variables-content.less';

figure[ typeof~='mw:File/Thumb' ],
figure[ typeof~='mw:File/Frame' ] {
	border: @border-thumbinner-print;
	border-bottom: 0;  // No border to figcaption
	background-color: @background-color-thumbinner-print;

	> a:first-child,
	> span:first-child {
		> *:first-child:not( .mw-broken-media ) {
			border: @border-thumbimage-print;
		}
	}

	> figcaption {
		border: @border-thumbinner-print;
		border-top: 0;
		background-color: @background-color-thumbinner-print;
		font-size: @font-size-thumbinner-print;
		color: @color-thumbinner-print;
	}
}

.mw-image-border {
	> a:first-child,
	> span:first-child {
		> *:first-child:not( .mw-broken-media ) {
			border: @border-thumbborder-print;
		}
	}
}
