/*
Theme Name: Grammer
Theme URI: https://themeshaper.com/grammer/
Author: Automattic
Author URI: https://automattic.com
Description: Get Grammer now to bring the Social Media experience to your site and transform it into a repository for your photos and videos.
Requires at least: 
Tested up to: 6.6
Requires PHP: 
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grammer
Tags: photography, blog, grid-layout, block-patterns, translation-ready, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments

/*
 * Font smoothing
 * https://github.com/WordPress/gutenberg/issues/35934
 */

/*
 * Font smoothing
 * https://github.com/WordPress/gutenberg/issues/35934
 */
body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--secondary);
}

/**
 * Currently table styles are only available with 'wp-block-styles' 
 * theme support (block css) thus the following needs to be included
 * since 'wp-block-styles' aren't used for this theme.
 * https://github.com/WordPress/gutenberg/issues/45065
 */
.wp-block-table thead {
	border-bottom: 3px solid;
}
.wp-block-table tfoot {
	border-top: 3px solid;
}
.wp-block-table td,
.wp-block-table th {
	padding: var(--wp--preset--spacing--30);
	border: 1px solid;
	word-break: normal;
}
.wp-block-table figcaption {
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}

/*
 * Home gallery: 4 columns desktop, responsive down to 2/1
 */
.home-gallery.wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
}
.home-gallery.wp-block-gallery .wp-block-image {
	margin: 0 !important;
	width: auto !important;
}
@media (max-width: 900px) {
	.home-gallery.wp-block-gallery {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 560px) {
	.home-gallery.wp-block-gallery {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}

/*
 * Social icons: hover to brand accent, short transition
 */
.site-social .wp-social-link a {
	transition: color 0.15s ease;
}
.site-social .wp-social-link:hover {
	color: var(--wp--preset--color--accent) !important;
}
.site-social .wp-social-link:hover svg {
	fill: var(--wp--preset--color--accent);
}

/*
 * Contact form: minimal, compact inputs
 */
.site-contact-form label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-bottom: 0.4rem;
}
.site-contact-form input[type="text"],
.site-contact-form input[type="email"],
.site-contact-form input[type="tel"],
.site-contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.8rem;
	margin-bottom: 1.25rem;
	border: 1px solid #0c0c0e33;
	border-radius: 0.25rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	background: transparent;
	color: inherit;
}
.site-contact-form textarea {
	min-height: 8rem;
	resize: vertical;
}
.site-contact-form input:focus,
.site-contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
}
