/*
Theme Name: Itala Esperanto-Federacio
Author: Edoardo Nannotti, Matthieu Desplantes
Author URI: https://www.ikso.net/
Description: Etoso por la Itala Esperantista Federacio
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap
Text Domain: fei
*/
body {
	background-color: #004760;
}

h1 a, h1 a:hover {
	color: inherit;
}

#jumbo_header {
	background: transparent;
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.front_page #jumbo_header {
	background: url(img/header_berna.svg) no-repeat top center;
	background-size: cover;
	padding-top: 0;
	padding-bottom: 4rem;
	margin-bottom: 0;
}

/* arrows outside of carousels */
.carousel-inner {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}

.carousel-control-prev {
	width: auto;
	padding-right: 20px;
}

.carousel-control-next {
	width: auto;
	padding-left: 20px;
}

.border-thick {
	border-width: 7px !important;
}

/* feather svg sprite icons */
.feather {
	width: 1em;
	height: 1em;
	top: 0;
	position: relative;
	stroke: currentColor;
	fill: none;
	stroke-width: .12em;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/**
 * the ticket is "tearable" vertically of horizontally
 * depending on the screen size
 */
.tearoff-border {
	border-color: #004760;
	border-width: 4px;
	border-top-style: dashed;
	/* vertical tear */
}

@media only screen and (min-width : 768px) {
	.tearoff-border {
		border-top-style: none;
		border-left-style: dashed;
		/* horizontal tear */
	}
}

.rounded-1rem {
	border-radius: 1rem !important;
}

.poemtabulo {
	border-width: 10px;
	border-style: solid none;
	font-family: Book, serif;
	line-height: 2.5em;
}

.poemtabulo p::first-letter {
	font-size: 2.5em;
}

.eventoj h3 {
	font-size: 1.3em;
}

.eventoj h3 a {
	color: inherit;
}

.organizoj h5 a {
	color: inherit;
}

.card-title a {
	color: inherit;
}

.card-img-top {
	height: auto;
}

.btn-grey {
	background: #EAEAEA;
}

article + * {
	margin-top: 1rem;
}

/**
 * Seamless wooden background and two gradients for top and bottom inner shadows
 */
.ligna-tabulo {
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0)),
		linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)),
		url(img/ligna_fono.jpg);
	background-size: auto 30px, auto 30px, auto;
	background-repeat: no-repeat, no-repeat, repeat;
	background-position: top, bottom, 0 0;
}

/**
 * Overlap of the pin image.
 * Add vertical padding to the container and absolute positioning + negative margin
 * to the pin to overlap onto the next element
 */
.pinglo-container {
	padding-top: 146px;
	position: relative;
	padding-bottom: 80px;
}

.pinglo-img {
	position: absolute;
	display: block;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	margin-top: -96px;
	width: 200px;
}

.sub-pinglo-container {
	padding-top: 70px;
	padding-bottom: 20px;
	line-height: 2rem;
}

/* vertical centering of fa-icons in list items */
.pinglo-container .fa-ul {
	margin-left: 0;
}

.pinglo-container .fa-li {
	position: inherit;
	left: -0.5em;
}

.whitelinks a {
	color: white;
}

/* Pagination */
.pagination {
	margin-top: 2rem;
}

.screen-reader-text {
	display: none;
}

.page-numbers {
	display: inline-block;
	background: #EAEAEA;
	color: #333;
	border-radius: 8px;
	padding: 6px .75rem;
	margin: 3px;
}

.current {
	font-weight: bold;
}

.eventoj .page-numbers {
	color: rgb(52, 58, 64);
	background: rgb(248, 249, 250);
}

.evento .blog-post-meta {
	padding: 1rem;
	background: #F6F5F3;
	color: #444;
	border-radius: 9px;
}

a.btn-light {
	color: #333;
}

.wp-block-quote {
	border-left: 0.5em solid #004760;
	padding: 0.5em 1em;
}

.wp-block-image img {
	height: auto;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.contact-cell {
	padding: .4rem 0;
}

@media(max-width: 990px) {
	.contact-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media(max-width: 768px) {
	h1.display-4 {
		font-size: 2.5rem;
	}
}

@media(min-width: 769px) {
	.front_page #jumbo_header {
		background-size: 769px;
	}
}

@media(max-width: 600px) {
	.min-2-columns .wp-block-column:nth-child(2n) {
		margin-left: 32px;
	}
	
	.min-2-columns .wp-block-column {
		flex-basis: calc(50% - 16px);
	}
	
	.contact-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media(max-width: 460px) {
	.contact-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
