/*!
Theme Name: Terroir & Terre
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Atelier de terre cuite artisanale — thème sur mesure basé sur Underscores, stylé avec Tailwind et prêt pour Elementor.
Version: 1.0.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: terroir-terre
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Terroir & Terre is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
The page design is built with Tailwind (see assets/css/theme.css and the
runtime config in functions.php). Tailwind ships its own reset — Preflight —
so the Underscores base stylesheet is deliberately NOT kept here: its
normalize layer and its `.main-navigation { display:block; width:100% }`
rules fight Preflight and break the header's flex layout.

The original Underscores sheet is kept alongside as style.css.underscores-backup.

What remains below is only what WordPress itself needs and Tailwind does not
provide: the core content alignment classes, captions, galleries and the
required .sticky / .bypostauthor hooks.
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */
.skip-link:focus {
	outline-offset: -7px;
}

/* Alignments — applied by the editor to content inside the_content()
--------------------------------------------- */
.alignleft {
	float: left;
	margin-inline-end: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-inline-start: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.alignwide {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: none;
	width: 100%;
}

/* Media
--------------------------------------------- */
.entry-content img,
.entry-content iframe,
.entry-content object,
.entry-content embed {
	max-width: 100%;
}

.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text,
.gallery-caption {
	font-size: 0.8125rem;
	line-height: 1.5;
	margin: 0.5em 0;
	opacity: 0.7;
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	display: grid;
	grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
	gap: 1rem;
	margin-bottom: 1.5em;
}

.gallery-columns-1 { --gallery-columns: 1; }
.gallery-columns-2 { --gallery-columns: 2; }
.gallery-columns-4 { --gallery-columns: 4; }
.gallery-columns-5 { --gallery-columns: 5; }
.gallery-columns-6 { --gallery-columns: 6; }

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* Required WordPress post-state hooks
--------------------------------------------- */
.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

/* Clearings
--------------------------------------------- */
.entry-content::after,
.comment-content::after {
	clear: both;
	content: "";
	display: table;
}
