/*
Theme Name: Gyvieji akmenys
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five with the look of the site's former Enfold design: stone and parchment textures, brown accents, PT Sans.
Version: 1.3.2
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: gyvieji-akmenys
*/

/*
 * Sizes and spacing follow the former Enfold pages as measured in the browser: 15px text with a
 * 1.65 line height (theme.json), no automatic gaps between blocks, Enfold's own margins instead.
 */

/*
 * Header: a 60px row with the logo and social icons, a 50px menu row; stays on screen while
 * scrolling, except on phones (as Enfold's).
 */
@media (min-width: 768px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: 0;
		z-index: 100;
	}
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}
.gak-header {
	background: #fff url(assets/images/header.jpg) 50% 50% repeat;
}
.gak-header-top {
	height: 60px;
}
.gak-header-top .wp-block-site-logo {
	align-self: flex-start;
	line-height: 0;
}
.gak-header-top .wp-block-social-links {
	gap: 0 !important;
	font-size: 15px;
}
.gak-header-top .wp-block-social-links .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
}
.gak-header-nav {
	height: 50px;
}

/* Menu (header and footer): small bold items with short dividers between them. */
.gak-header-nav .wp-block-navigation,
.gak-header-nav .wp-block-navigation__container,
.gak-footer .wp-block-navigation,
.gak-footer .wp-block-navigation__container {
	gap: 0;
}
.gak-header-nav .wp-block-navigation {
	font-size: 13px;
	font-weight: 700;
	color: #422c00;
}
.gak-header-nav .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
}
.gak-header-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0 13px;
	line-height: 50px;
}
.gak-header-nav .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 17px;
	margin-top: -9px;
	background: #616161;
}
.gak-header-nav .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.gak-header-nav .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	color: #855900;
}
.gak-header-nav .wp-block-navigation__submenu-container {
	min-width: 208px !important;
	border: 0 !important;
	background: #fff !important;
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
	font-size: 12px;
	font-weight: 400;
}
.gak-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 15px;
	line-height: 23px;
	border-inline: 1px solid #616161;
}

/* Phone menu: Enfold's "classic" side panel, 350px wide from the right over the dimmed page, every
   item on its own lined row, submenu items indented behind a short dash; none of the dropdowns'
   dividers, frames and shadows above. */
.gak-header-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background: rgba(0, 0, 0, 0.3) !important;
}
.gak-header-nav .is-menu-open .wp-block-navigation__responsive-close {
	width: 350px;
	max-width: 100%;
	height: 100%;
	margin: 0 0 0 auto;
	overflow-y: auto;
	background: #fff;
}
.gak-header-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
}
.gak-header-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 28px;
	right: 20px;
	color: #855900;
}
.gak-header-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	display: block !important;
	padding: 80px 0 0 !important;
}
.gak-header-nav .is-menu-open .wp-block-navigation__container,
.gak-header-nav .is-menu-open .wp-block-navigation__submenu-container,
.gak-header-nav .is-menu-open .wp-block-navigation-item {
	display: block !important;
	width: 100%;
	min-width: 0 !important;
	padding: 0 !important;
	box-shadow: none;
	background: transparent !important;
	font-size: 13px;
}
.gak-header-nav .is-menu-open .wp-block-navigation-item::before {
	content: none !important;
}
.gak-header-nav .is-menu-open .wp-block-navigation-item__content {
	position: relative;
	display: block;
	padding: 15px 50px !important;
	border: 0;
	border-bottom: 1px solid #616161;
	line-height: 1.3em !important;
	color: #855900;
}
.gak-header-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-left: 70px !important;
}
.gak-header-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-left: 90px !important;
}
.gak-header-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50px;
	width: 7px;
	height: 1px;
	background: currentColor;
	opacity: 0.3;
}
.gak-header-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
	left: 70px;
}
/* The menu focuses its first item on opening; Enfold showed no frame there. */
.gak-header-nav .is-menu-open .wp-block-navigation-item__content:focus {
	outline: 0;
}
.gak-header-nav .is-menu-open .wp-block-navigation-item__content:hover {
	background: #d1c2a7;
}
.gak-header-nav .wp-block-search__button {
	display: flex;
	align-items: center;
	height: 50px;
	padding: 0 0 0 13px;
	background: transparent;
	color: #422c00;
}
.gak-header-nav .wp-block-search__button svg {
	width: 20px;
	height: 20px;
	min-width: 20px;
}

/* Footer: the thin bar with the copyright and the menu, on the header's stone texture. */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}
.gak-footer {
	padding-block: 15px;
	border-top: 1px solid #422c00;
	background: #d6d6d6 url(assets/images/header.jpg) 50% 50% repeat;
	color: #422c00;
	font-size: 11px;
	line-height: 24.75px;
}
.gak-footer p {
	margin: 0;
}
.gak-footer .wp-block-navigation {
	font-size: 11px;
	font-weight: 400;
	color: #422c00;
}
.gak-footer .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0 10px;
	line-height: 10px;
}
.gak-footer .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
	padding-right: 0;
}
.gak-footer .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item {
	border-left: 1px solid #422c00;
}

/* Page body: the sand texture behind the content; sections have 50px above and below. */
.gak-main,
.gak-section {
	background: #f9f9f9 url(assets/images/sand.jpg) 50% 50% repeat;
}
.gak-section {
	padding-block: 50px;
}
/* Enfold's section padding settings, on content sections and photo bands alike. */
.gak-section.gak-pad-no-padding,
.gak-band.gak-pad-no-padding { padding-block: 0; }
.gak-section.gak-pad-small,
.gak-band.gak-pad-small { padding-block: 20px; }
.gak-section.gak-pad-default,
.gak-band.gak-pad-default { padding-block: 50px; }
.gak-section.gak-pad-large,
.gak-band.gak-pad-large { padding-block: 70px; }
.gak-section.gak-pad-huge,
.gak-band.gak-pad-huge { padding-block: 130px; }

/* Text: Enfold's paragraph, heading and list spacing. */
.wp-block-post-content p {
	margin-block: 0.85em;
}
/*
 * Enfold's line height was a length, so smaller or larger words inside a line (small print, a font
 * of their own) kept the line's height; and its small print was 80 %.
 */
.wp-block-post-content :is(p, li) {
	line-height: 1.65em;
}
.wp-block-post-content small {
	font-size: 80%;
}
/* Core drops the outer margins of a container's first and last block; Enfold kept them. */
.wp-block-post-content :is(.wp-block-column, .wp-block-group) > p:is(:first-child, :last-child) {
	margin-block: 0.85em;
}
/* Lines pasted from Facebook were <div>s without margins (gak-lines: one paragraph with line breaks). */
.wp-block-post-content p.gak-lines,
.wp-block-post-content :is(.wp-block-column, .wp-block-group) > p.gak-lines {
	margin-block: 0;
}
.wp-block-post-content :is(h1, h2, h3, h4, h5, h6) {
	margin-block: 0;
}
.wp-block-post-content h1 { margin-bottom: 14px; }
.wp-block-post-content h2 { margin-bottom: 10px; }
.wp-block-post-content h3 { margin-bottom: 8px; }
.wp-block-post-content h4 { margin-bottom: 4px; }
.wp-block-post-content p + :is(h1, h2, h3, h4, h5, h6):not(.gak-heading-large) {
	margin-top: 1.5em;
}
/* Enfold's "modern quote" heading in its default colours (the "page not found" text). */
.gak-heading-quote {
	margin-bottom: 0 !important;
	font-weight: 300;
	color: #222;
}
/*
 * Lists, also those kept as HTML; constrained groups centre their children with !important
 * margins, so the indent needs them too.
 */
.wp-block-post-content ul:is(.wp-block-list, :not([class])) {
	margin: 0 0 20px 7px !important;
	padding: 0;
	list-style: disc outside;
}
.wp-block-post-content ol:is(.wp-block-list, :not([class])) {
	margin: 0 0 20px 15px !important;
	padding: 0;
}
.wp-block-post-content :is(.wp-block-list, ul:not([class]), ol:not([class])) > li {
	margin-block: 0;
	margin-left: 1em;
	padding-block: 3px;
}
.wp-block-post-content li :is(ul, ol):is(.wp-block-list, :not([class])) {
	margin: 4px 0 5px 30px !important;
}
.wp-block-post-content iframe {
	max-width: 100%;
}

/* Title band: a section with a stone photo background and a beige (or dark) overlay. */
.gak-band {
	position: relative;
	min-height: 100px;
	padding-block: 0;
}
.gak-band-empty {
	min-height: 100px;
}
/* Only sections that had an overlay in Enfold get one (some bands are a plain texture). */
.gak-band[class*="gak-overlay-"]::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(206 188 142 / var(--gak-overlay, 0.5));
}
.gak-band.gak-overlay-dark::before {
	background: rgb(0 0 0 / var(--gak-overlay, 0.5));
}
.gak-band > * {
	position: relative;
}
/* Overlay strengths the pages use; any other gak-overlay-* class gets the 50 % default. */
.gak-overlay-30 { --gak-overlay: 0.3; }
.gak-overlay-40 { --gak-overlay: 0.4; }
.gak-overlay-70 { --gak-overlay: 0.7; }
.gak-overlay-80 { --gak-overlay: 0.8; }
/* Parallax photo (assets/parallax.js): a taller layer behind the band that moves with scrolling. */
.gak-parallax.gak-parallax-ready {
	overflow: hidden;
	isolation: isolate;
	background-image: none !important;
}
.gak-band > .gak-parallax-layer {
	position: absolute;
	inset: auto 0 0;
	z-index: -1;
	max-width: none !important;
	margin: 0 !important;
	will-change: transform;
}

/* Band headings: 50px, with Enfold's 50px above unless they come first (gak-heading-spaced). */
.wp-block-post-content .gak-heading-large {
	margin-bottom: 0;
	font-size: 50px;
	font-weight: 400;
	line-height: 1.1;
}
.wp-block-post-content .gak-heading-spaced {
	margin-top: 50px;
}
.wp-block-post-content .gak-heading-spaced:first-child {
	margin-top: 0;
}
.gak-heading-light,
.gak-subheading-light {
	color: #fff;
}
.wp-block-post-content .gak-subheading {
	font-size: 15px;
	line-height: 1.3;
	margin-block: 0 0.3em;
}
.wp-block-post-content .gak-heading-large + .gak-subheading {
	margin-block: 0.3em 0;
}

/* Photo strip at the top of a page: one row of 7, 2px apart, scrolls sideways when longer. */
.wp-block-gallery.gak-strip {
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 0 !important;
	margin-block: 25px 30px;
}
.wp-block-gallery.gak-strip > figure.wp-block-image {
	box-sizing: border-box;
	flex: 0 0 calc(100% / 7) !important;
	width: auto !important;
	margin: 0 !important;
	padding: 1px;
	scroll-snap-align: start;
}
/* The same photos in a narrow column (Enfold's logo element of one column): one under another. */
.wp-block-gallery.gak-partner {
	gap: 0 !important;
	margin-block: 25px 30px;
}
.wp-block-gallery.gak-partner > figure.wp-block-image {
	box-sizing: border-box;
	width: 100% !important;
	margin: 0 !important;
	padding: 1px;
}
/* As the last thing in a card the photos keep no space below them. */
.wp-block-column > .wp-block-gallery:is(.gak-strip, .gak-partner):last-child {
	margin-bottom: 0;
}
.wp-block-gallery:is(.gak-strip, .gak-partner) img {
	aspect-ratio: 260 / 185;
	object-fit: cover;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* The front page's self-turning photo slider (assets/slider.js): one row at a time, with dots. */
.wp-block-gallery.gak-slider {
	margin-bottom: 0;
}
.wp-block-gallery.gak-slider.gak-slider-ready {
	overflow: hidden;
}
.wp-block-gallery.gak-slider > figure.gak-slide-hidden {
	display: none !important;
}
.wp-block-gallery.gak-slider-fade > figure {
	animation: gak-slide-in 0.8s ease;
}
@keyframes gak-slide-in {
	from {
		opacity: 0;
	}
}
.gak-slider-dots {
	display: flex;
	justify-content: center;
	gap: 2px;
	margin-top: 10px;
}
.gak-slider-dots button {
	width: 16px;
	height: 16px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: #d1c2a7;
	cursor: pointer;
}
.gak-slider-dots button[aria-current="true"] {
	background: #919191;
}
.wp-block-post-content .gak-slider-dots + .gak-heading-spaced {
	margin-top: 33px;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.gak-slider-fade > figure {
		animation: none;
	}
}

/* Content cards: columns on parchment, each with Enfold's own padding; cards of a row sit together. */
.wp-block-columns.gak-row {
	gap: 0;
	margin-block: 0;
}
.wp-block-columns.gak-row.gak-row-spaced {
	gap: 6%;
}
.gak-card {
	box-sizing: border-box;
	background: #fff url(assets/images/parchment.jpg) repeat;
}
.gak-card .wp-block-image {
	margin-bottom: 10px;
}
.gak-card .wp-block-image:last-child {
	margin-bottom: 0;
}
/* Core centres images with display: table, which lets a large image widen its column. */
.gak-card .wp-block-image.aligncenter,
.gak-team .wp-block-image {
	display: block;
	text-align: center;
}
.gak-card .wp-block-image img {
	max-width: 100%;
	height: auto;
	border-radius: 3px;
}
.gak-pull-up {
	position: relative;
	z-index: 1;
	margin-top: -90px !important;
}
/* A whole section pulled up stays under the photo band, as in Enfold: only its cards cover the band. */
.gak-section.gak-pull-up {
	position: static;
	z-index: auto;
}

/* Buttons: Enfold's small button (theme.json) with its darker bottom edge; each on a line of its own. */
.wp-block-buttons:has(> .gak-btn) {
	gap: 8px;
	margin-block: 0 7px;
}
/* The icons of Enfold's buttons, drawn again: a page, a page with lines (outlined or filled), YouTube. */
.gak-btn[class*="gak-icon-"] .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: var(--gak-icon-width);
	height: 12px;
	margin: 0 3.9px 0 -3.9px;
	vertical-align: -1px;
	background-color: currentColor;
	-webkit-mask: var(--gak-icon) center / contain no-repeat;
	mask: var(--gak-icon) center / contain no-repeat;
}
.gak-icon-doc {
	--gak-icon-width: 10.4px;
	--gak-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Crect x='.75' y='.75' width='7.5' height='10.5' rx='1' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
.gak-icon-doc-text {
	--gak-icon-width: 9.1px;
	--gak-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Crect x='.75' y='.75' width='7.5' height='10.5' rx='1' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M2.5 3.5h4M2.5 5.5h4M2.5 7.5h4M2.5 9.5h4' stroke='%23000'/%3E%3C/svg%3E");
}
.gak-icon-doc-text-inv {
	--gak-icon-width: 9.1px;
	--gak-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cmask id='m'%3E%3Crect width='9' height='12' rx='1.5' fill='%23fff'/%3E%3Cpath d='M2 3.5h5M2 5.5h5M2 7.5h5M2 9.5h5' stroke='%23000'/%3E%3C/mask%3E%3Crect width='9' height='12' rx='1.5' mask='url(%23m)'/%3E%3C/svg%3E");
}
.gak-icon-youtube {
	--gak-icon-width: 11.2px;
	--gak-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 12'%3E%3Cmask id='m'%3E%3Crect y='6' width='11' height='6' rx='1.6' fill='%23fff'/%3E%3Ctext x='5.5' y='10.6' font-family='Arial,sans-serif' font-size='4.6' font-weight='700' text-anchor='middle'%3ETube%3C/text%3E%3C/mask%3E%3Ctext x='5.5' y='4.9' font-family='Arial,sans-serif' font-size='5' font-weight='700' text-anchor='middle'%3EYou%3C/text%3E%3Crect y='6' width='11' height='6' rx='1.6' mask='url(%23m)'/%3E%3C/svg%3E");
}
.gak-btn .wp-block-button__link {
	margin-block: 3px;
	border-bottom: 1px solid #371b00;
}
.gak-btn-medium .wp-block-button__link {
	padding: 12px 16px 10px;
}

/*
 * Photo galleries in the text, without gaps and with the last row not stretched: framed
 * thumbnails (Enfold's gallery), or photos side by side (its masonry gallery).
 */
.wp-block-gallery:is(.gak-gallery, .gak-masonry) {
	--wp--style--unstable-gallery-gap: 0px;
	gap: 0 !important;
}
.wp-block-gallery:is(.gak-gallery, .gak-masonry) > figure.wp-block-image {
	box-sizing: border-box;
	flex-grow: 0 !important;
}
/* A masonry of fixed size: photos cropped to 5:4 with 1px between them. */
.wp-block-gallery.gak-masonry.gak-fixed {
	--wp--style--unstable-gallery-gap: 1px;
	gap: 1px !important;
}
.wp-block-gallery.gak-masonry.gak-fixed img {
	aspect-ratio: 5 / 4;
	object-fit: cover;
}
.wp-block-gallery.gak-gallery > figure.wp-block-image {
	padding: 7px;
	border: 1px solid #fff;
	background: #f9f9f9;
}

@media (max-width: 781px) {
	.gak-hide-mobile,
	.gak-hide-mobile + .gak-slider-dots {
		display: none !important;
	}
	/* With the slider hidden the heading after it keeps Enfold's full 50px above. */
	.wp-block-post-content .gak-hide-mobile + .gak-slider-dots + .gak-heading-spaced {
		margin-top: 50px;
	}
	/* The logo shrinks into the space the social icons leave. */
	.gak-header-top .wp-block-site-logo {
		flex: 1 1 0;
		min-width: 0;
		align-self: center;
	}
	.gak-header-top .wp-block-site-logo img {
		width: 100% !important;
		height: auto;
	}
	/* Cards of a row, one under another, with 20px between them (Enfold's columns on small screens). */
	.wp-block-columns.gak-row > .wp-block-column {
		margin-bottom: 20px;
	}
}

/* Phones, as Enfold's mobile layout: content 85 % of the width, band headings 40px, photos of a masonry one under another. */
@media (max-width: 767px) {
	html body {
		--wp--style--root--padding-right: 7.5vw;
		--wp--style--root--padding-left: 7.5vw;
	}
	.wp-block-post-content .gak-heading-large {
		font-size: 40px;
	}
	.wp-block-gallery.gak-masonry > figure.wp-block-image {
		width: 100% !important;
	}
	/* A photo last in a card keeps its 10px below on phones (only side by side did Enfold drop it). */
	.gak-card .wp-block-image:last-child {
		margin-bottom: 10px;
	}
}

/* Phones with the menu button: one 80px header row with the logo, the search and the button. */
@media (max-width: 599px) {
	/* Enfold's thumbnail galleries kept their columns on phones (core halves them). */
	.wp-block-gallery.gak-gallery.columns-3 > figure.wp-block-image { width: calc(100% / 3) !important; }
	.wp-block-gallery.gak-gallery.columns-4 > figure.wp-block-image { width: 25% !important; }
	.wp-block-gallery.gak-gallery.columns-5 > figure.wp-block-image { width: 20% !important; }
	.wp-block-gallery.gak-gallery.columns-6 > figure.wp-block-image { width: calc(100% / 6) !important; }
	.gak-header {
		display: flex;
		align-items: center;
		height: 80px;
	}
	.gak-header > .gak-header-top,
	.gak-header > .gak-header-nav {
		margin-inline: 0 !important;
	}
	.gak-header-top {
		flex: 1 1 auto;
		min-width: 0;
		height: auto;
	}
	.gak-header-top .wp-block-site-logo {
		flex: 0 1 255px;
	}
	.gak-header-top .wp-block-social-links {
		display: none;
	}
	.gak-header-nav {
		flex: none;
		height: 80px;
	}
	.gak-header-nav .wp-block-search {
		order: -1;
	}
	.gak-header-nav .wp-block-search__button {
		height: 80px;
		padding-left: 20px;
		color: #855900;
	}
	.gak-header-nav .wp-block-search__button svg {
		width: 24px;
		height: 24px;
	}
	/* Enfold's menu button: three bars. */
	.gak-header-nav .wp-block-navigation__responsive-container-open {
		align-items: center;
		justify-content: center;
		width: 21px;
		height: 48px;
		margin-left: 10px;
		color: #855900;
	}
	.gak-header-nav .wp-block-navigation__responsive-container-open svg {
		display: none;
	}
	.gak-header-nav .wp-block-navigation__responsive-container-open::before {
		content: "";
		width: 21px;
		height: 14px;
		background:
			linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat,
			linear-gradient(currentColor 0 0) 0 50% / 100% 2px no-repeat,
			linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat;
	}
}

.wp-block-separator.gak-hr {
	width: 20%;
	margin-inline: auto;
	border-top-width: 1px;
	opacity: 0.6;
}

.gak-team .wp-block-image {
	margin-bottom: 10px;
}
.wp-block-post-content .gak-team .gak-team-name {
	margin-block: 7px 8px;
	font-size: 23.25px;
	line-height: 1.1;
	color: #563f0e;
}
.wp-block-post-content .gak-team > p.gak-team-job {
	margin-block: -7px 0;
	color: #563f0e;
	opacity: 0.7;
}

/* Images inside text keep their own shape, whatever size the classic editor wrote on them (as in Enfold). */
.wp-block-post-content img {
	max-width: 100%;
	height: auto;
}
/* Images floated inside text, as inserted by the classic editor. */
.wp-block-post-content img.alignleft {
	float: left;
	margin: 0.3em 1.2em 1em 0;
}
.wp-block-post-content img.alignright {
	float: right;
	margin: 0.3em 0 1em 1.2em;
}
.wp-block-post-content img.aligncenter {
	display: block;
	margin: 10px auto;
	padding-block: 10px;
}

/*
 * Pages without sections (password-protected or empty ones, search results, posts): Enfold's
 * plain content area, 50px above and below.
 */
.gak-main:not(.gak-page) > .wp-block-post-content:not(:has(> .alignfull)),
.gak-main:not(:has(*)),
.gak-main.gak-page {
	padding-block: 50px;
}
.wp-block-post-content .post-password-form {
	margin-bottom: 20px;
}
.post-password-form label {
	font-size: 13.8px;
	font-weight: 700;
}
.post-password-form input[type="password"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 20px;
	padding: 8px 6px;
	border: 1px solid #fff;
	border-radius: 0;
	background: #fff;
	color: #919191;
	font: 13.8px HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.post-password-form input[type="submit"] {
	padding: 9px 22px;
	border: 0;
	border-radius: 0;
	background: #593d01;
	color: #fff;
	font: 13.3px/18px Arial, sans-serif;
}

/* Search boxes in the content: white field with the dark button beside it. */
.wp-block-search.gak-search {
	margin-bottom: 20px;
}
.gak-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 1px solid #fff;
	border-radius: 0;
}
.gak-search .wp-block-search__input {
	height: 40px;
	padding: 0 22.5px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #919191;
	font: 15px/40px HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.gak-search .wp-block-search__button {
	margin: 0;
	padding: 0 30px;
	border: 0;
	border-radius: 0;
	background: #593d01;
	color: #fff;
	font: 15px/40px Arial, sans-serif;
}
/* The search results page's box: a narrow field with a magnifier button. */
.gak-search.wp-block-search__button-only,
.gak-search.wp-block-search__icon-button .wp-block-search__inside-wrapper {
	border: 0;
}
.gak-search.wp-block-search__icon-button .wp-block-search__input {
	height: 43px;
	padding: 11px 47px 11px 5px;
	border: 1px solid #fff;
}
.gak-search.wp-block-search__icon-button .wp-block-search__button {
	width: 40px;
	padding: 0;
	justify-content: center;
}
.gak-search.wp-block-search__icon-button .wp-block-search__button svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

/* "Page not found": the light parchment texture, 130px above and below. */
.gak-notfound {
	padding-block: 130px;
	background: #f9f9f9 url(assets/images/parchment.jpg) 0 0 repeat;
}

/* Search results and post lists: numbered titles with their dates. */
.gak-search-head {
	margin-bottom: 40px;
	padding-bottom: 44px;
	border-bottom: 1px solid #fff;
}
.gak-search-head h4 {
	margin-block: 0 4px;
	font-weight: 600;
	color: #222;
}
.gak-search-head p {
	margin-block: 9px 12.75px;
}
.gak-search-head .wp-block-search.gak-search {
	margin-bottom: 0;
}
.gak-list-title {
	margin-block: 0 4px;
	padding-bottom: 20px;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #919191;
}
.gak-list .wp-block-post-template {
	counter-reset: gak-list var(--gak-list-start, 0);
}
.gak-list .wp-block-post-template > li {
	position: relative;
	min-height: 59px;
	margin: 0 0 40px;
	padding-left: 55px;
	counter-increment: gak-list;
}
.gak-list .wp-block-post-template > li::before {
	content: counter(gak-list);
	position: absolute;
	top: 1px;
	left: 0;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 100px;
	background: #fff;
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	font-size: 13px;
	line-height: 24px;
	text-align: center;
}
.gak-list .wp-block-post-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: #222;
}
.gak-list .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}
.gak-list .wp-block-post-date {
	font-size: 10.53px;
	line-height: 1;
	color: #919191;
}
.gak-list .wp-block-query-pagination {
	margin: 0;
	padding: 1px 50px 10px 55px;
	gap: 3px;
}
.gak-list .page-numbers {
	display: inline-block;
	box-sizing: border-box;
	width: 35px;
	height: 35px;
	border-radius: 100px;
	background: #fff;
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	font-size: 11px;
	line-height: 35px;
	text-align: center;
	text-decoration: none;
	color: #919191;
}
.gak-list .page-numbers.current {
	font-weight: 700;
	color: #222;
}
.gak-list .page-numbers.dots {
	background: none;
	box-shadow: none;
}

/* A single post: its title, date and categories above the text. */
.gak-entry-title {
	margin-block: 0 4px;
	font-size: 22px;
	font-weight: 600;
	color: #222;
}
.gak-entry-meta {
	gap: 0 6px;
	margin-bottom: 20px;
	font-size: 11.7px;
	color: #919191;
}
.gak-entry-meta a {
	color: inherit;
}

/* Events listed on pages (events.php): each a section whose cards cover the band or section above. */
.gak-event > .wp-block-columns:first-child {
	position: relative;
	z-index: 1;
	margin-top: -90px !important;
}
.gak-event-edit {
	margin-top: 8px;
	font-size: 12px;
}
.gak-event-edit a {
	color: #919191;
}

/* In the editor: what the lists and the "Kas įvyko" cards are, since the page shows neither as such. */
.editor-styles-wrapper .gak-events-note {
	padding: 20px;
	border: 1px dashed #8a7550;
	background: #fffaf0;
	font-style: italic;
}
.editor-styles-wrapper .gak-summary {
	margin-top: 30px;
	padding: 30px 10px 10px;
	border: 1px dashed #8a7550;
}
.editor-styles-wrapper .gak-summary::before {
	content: "Kortelė puslapiui „Kas įvyko“ (rodoma ten vietoj kvietimo)";
	display: block;
	margin: -22px 0 8px;
	font-size: 12px;
	font-style: italic;
	color: #8a7550;
}
