/*!
Theme Name: St Michaels Golf Club 2026
Theme URI: https://them.es/starter
Author: Allan Winter
Author URI: https://winterscomputing.co.uk
Description: 
Version: 3.6.2
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: stm-gc-2026
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition:
		filter 0.2s ease-in,
		-webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Winter's Computing Styles */

/* Header */
header{
	background-color: #1CA62F;
	/*264A36*/
}

/* Navbar and links */
.navbar-stmgc{
	background-color: #1CA62F;
	color: #fff;
}
.nav-link{
	color: #fff;
}
.nav-link.active{
	color: #fff !important;
	font-weight: bold;
	text-decoration: underline;
}
/* Footer */
.stmgc-footer{
	background-color: #1CA62F;
	color: #fff;
}
footer{
	background-color: #1CA62F !important;
	color: #fff;
}

/* 
*
* Tables 
*
*
*/
.wp-block-table table {
	--bs-table-color-type: initial;
    --bs-table-bg-type: initial;
    --bs-table-color-state: initial;
    --bs-table-bg-state: initial;
    --bs-table-color: var(--bs-emphasis-color);
    --bs-table-bg: initial;
    --bs-table-border-color: black;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: darkgrey;
    --bs-table-striped-bg: blue;
    --bs-table-active-color: var(--bs-emphasis-color);
    --bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
    --bs-table-hover-color: var(--bs-emphasis-color);
    --bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
    

}
/* Striping for tables */
.wp-block-table.is-style-stripes table th
{
	border: black 0.25em solid;
}
.wp-block-table.is-style-stripes table td
{
	border: black 0.25em solid;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(even) 
{
	background-color: #EBEFE6 !important;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) 
{
	background-color: #fff !important;
}

/*
*
* Table Types
*
*/
/* Fees Table */
.stmgc-fees-table table th {
	background-color: #264A36 ;
	color: #fff;
	/*border: black 0.25em solid;*/
}
.stmgc-fees-table table td
{
	/*border: black 0.25em solid;*/
}
.stmgc-fees-table {
	width: 100% !important;
	text-size-adjust: 75%;
}
/* Buggy Table */
.stmgc-buggy-table {
	width: 100% !important;
	text-size-adjust: 75%;
}
.stmgc-buggy-table table th {
	background-color: #264A36 ;
	color: #fff;
	/*border: black 0.25em solid;*/
}
/* Fixtures Table */
.stmgc-fixtures-table table th {
	background-color: #264A36 ;
	text-align: center;
	color: #fff;
	/*border: black 0.25em solid;*/
}
.stmgc-fixtures-table table td
{
	/*border: black 0.25em solid;*/
}
.stmgc-fixtures-table {
	width: 100% !important;
	text-size-adjust: 55%;
}
/*Stroke/Yards Tables*/
.stmgc-yards-table {
	width: 70% !important;
	text-size-adjust: 75%;
}

/*span Text Colours */
span.ladies{
	color: red;
}
span.gents{
	color: blue;
}
span.mixed{
	color:green;

}
span.compall{
	color: black;
}

/* Titles */
.entry-title{
	text-align: center !important;
	background-color: #fff !important;
	color: #264A36 !important;
	overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem; /* Space between text and lines */
}
.entry-header{
	background-color: #fff !important;

}
.stmgc-sub-heading{
	text-align: center;
}
.entry-meta{
	text-align: center;
	background-color: #fff !important;
}
.line-header {
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem; /* Space between text and lines */
}

.line-header span {
  position: relative;
  z-index: 1;
  background: #fff; /* Match your background color */
  padding: 0 10px;
}

/* Create the lines */
.line-header::before,
.line-header::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #264A36; /* Line color */
}

.entry-title::before,
.entry-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #264A36; /* Line color */
}

/* News Posts */
header.card-body{
	background-color: #fff !important;
}

h2.card-title{
	color: #264A36 !important;
	text-align: center;
}
h2.card-title > a{
	color: #264A36 !important;
	text-align: center;
}

/*Homepage */
.home .entry-title {
    display: none;
}

/* Table experiments */
.col-small_stm{
	/*background-color: hotpink !important;*/
	width: 20% !important;
	text-size-adjust: 60%;
}
.col-med_stm{
	/*background-color: chartreuse !important;*/
	width: 20% !important;
}
.col-large_stm{
	/*background-color: cornflowerblue !important;*/
	width: 60% !important;
}

/* Marquee Example */
.stmgc_marquee{
	background-color: black;
	color: yellow;
	font-size: 2em;

}
.stmgc_container_button{
	/*padding-left: 2em;*/
	justify-content: center;
	
}
.btn-stmgc
{
	background-color: #264A36;
}
.stmgc_button_link{
	color: white;
}
.stmgc-members-table {
	width: 100% !important;
	text-size-adjust: 60%;
}
.stmgc-members-table table th {
	background-color: #264A36 ;
	text-align: center;
	color: #fff;
	/*border: black 0.25em solid;*/
}

/* Sort news side bar */
.recentposts
{
	display: none;
}
.categories
{
	display: none;
}
.by-author{
	display: none;
}
footer.entry-meta{
	display: none;
}
@media only screen and (min-width: 800px) {
	.stmgc-fees-table {
	width: 70% !important;
	text-size-adjust: 100%;
	}
	/* Buggy Table */
	.stmgc-buggy-table {
		width: 50% !important;
		text-size-adjust: 100%;
	}
	/* Table experiments */
	.col-small_stm{
		/*background-color: hotpink !important;*/
		width: 20% !important;
	}
	.col-med_stm{
		/*background-color: chartreuse !important;*/
		width: 20% !important;
	}
	.col-large_stm{
		/*background-color: cornflowerblue !important;*/
		width: 60% !important;
	}
	.stmgc-fixtures-table {
	width: 70% !important;
	text-size-adjust: 100%;
}
	.stmgc-members-table {
	width: 100% !important;
	text-size-adjust: 100%;
}
/*Stroke/Yards Tables*/
.stmgc-yards-table {
	width: 33% !important;
	text-size-adjust: 100%;
}

}
