/*
 * astx-css-wp-core.css:
 * a part of the VaccinesToday theme for WordPress™
 *
 * Copyright Ⓒ 2016 Asterysk <wordpress@asterysk.com>
 *
 * This file is part of the VaccinesToday theme for WordPress.
 *
 * The VaccinesToday theme for WordPress™ is free software:
 * you can redistribute it and/or modify it under the terms of the GNU
 * General Public License as published by the Free Software Foundation,
 * either version 2 of the License, or (at your option) any later
 * version.
 *
 * The VaccinesToday theme for WordPress™ is distributed in the hope
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with the VaccinesToday theme for WordPress. If not, please
 * see <http://www.gnu.org/licenses/>.
 */

/**
 * ASTX stylesheet for core WP elements.
 *
 * The CoreXtender stylesheets order is
 * 1. astx-css-init.css         Reset stylesheet
 * 2. astx-css-core.css         Core styling elements
 * 3. astx-css-grid.css         5 and 24 Grid
 * 4. astx-css-cycle2.css       Cycle2 slideshows
 * 5. astx-css-palette.css      Colours and decorations
 * 6. astx-css-wp-core.css      WordPress mandatory styles
 * 7. astx-css-forms.css        Forms styles
 * 8. astx-css-theme.css        Theme styles
 *
 * CoreXtender stylesheets are not universal and may each require
 * customisation necessary for each installation. Elements in this
 * stylesheet are all specific to the theme in use and must be
 * appropriately re-aligned.
 *
 * @package     VaccinesToday
 * @subpackage  theme
 * @since       0.1.0
 */

/* $content_width - see https://codex.wordpress.org/Content_Width */
.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
	max-width: 100%;
	height: auto;
}

/* attachment images */
img[class*="align"],
img[class*="size-"],
img[class*="wp-image-"],
img[class*="attachment-"] {
	height: auto;
	width: auto;
	max-width: 100%;
}

/* alignment */
.alignnone,
img.alignnone,
a img.alignnone {
    margin: 0;
}

.aligncenter,
img.aligncenter,
a img.aligncenter {
	clear: both;
    display: block;
    margin: 0.25em auto;
}

/* zero side margins for div */
div.aligncenter {
	margin: 0 auto;
	text-align: center;
}

.alignright,
img.alignright,
a img.alignright {
	display: inline;
    float: right;
    margin: 0.25em 0 1em 1em;
}

.alignleft,
img.alignleft,
a img.alignleft {
	display: inline;
    float: left;
    margin: 0.25em 1em 1em 0;
}

/* [caption] and [wp_caption] shortcodes
 *
 * Markup:
 * <div ... wp-caption.align* ...>
 *     <a ... ><img ... size-*.wp-image-* ...></a>
 *     <p ... wp-caption-text> ... </p>
 * </div>
 *
 * Override filter: 'img_caption_shortcode'
 */
.wp-caption {
	margin: 0;
    padding: 0;
	width: 100%;
}

.wp-caption img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

.wp-caption .wp-caption-text {
	font-size: 0.75em;
	margin-bottom: 0.6em;
	position: relative;
}

/*
.wp-caption .wp-caption-text:before {
	content: '\2014';
	font-size: 0.875em;
	font-style: normal;
	font-weight: bold;
	margin-right: 0.3125em;
	position: absolute;
		left: 0.625em;
		top: 0.6875em;
}
*/
/* [gallery] shortcode
 *
 * Markup:
 * <div ... gallery ...>
 *     <dl ... gallery-item ...>
 *         <dt ... gallery-icon ...>
 *             <a ...><img ... attachment-thumbnail ...></a>
 *         </dt>
 *         <dd ... wp-caption-text.gallery-caption ...>
 *             ...
 *         </dd>
 *     </dl>
 * </div>
 *
 * Template override filter: 'post_gallery'
 * Inline styles suppression filter: 'use_default_gallery_style'
 */
dl.gallery-item {
	margin: 0;
}

.gallery-caption {
	font-size: 0.75em;
	margin: 0;
}
