/*
Theme Name: ultraman_x
Description: The theme for ULTRAMAN X
*/

/* -------------------------------------------------- for Wordpress */
/* =Images
-------------------------------------------------------------- */

/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/

img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img,
.widget-container img {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}

/* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
img.size-full,
img.size-large,
img.header-image,
img.wp-post-image,
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
 /*  max-width: auto; */
	max-width: 100%;
}


.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
img.alignleft {
	float: left;
	margin-right:10px;
	margin-bottom:10px;
	/* padding:2px;
	border: 1px solid #e6e6eb; */
}
.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 4px;
}
img.alignright {
	float: right;
	margin-left:10px;
	margin-bottom:10px;
	/* padding:2px;
	border: 1px solid #e6e6eb; */
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
img.aligncenter {
	display:block;
	margin:0 auto 10px;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}
.wp-caption {
	background: #f1f1f1;
	line-height: 18px;
	margin-bottom: 20px;
	max-width: 632px !important; /* prevent too-wide images from breaking layout */
	padding: 4px;
	text-align: center;
}
.wp-caption img {
	margin: 5px 5px 0;
}
.wp-caption p.wp-caption-text {
	color: #888;
	font-size: 12px;
	margin: 5px;
}
.wp-smiley {
	margin: 0;
}

#content .attachment img {/* single attachment images should be centered */
	display: block;
	margin: 0 auto;
}
