/*!
Theme Name: Fotogriausmas
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fotogriausmas
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.

Fotogriausmas 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.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TURINYS:
----------------------------------------------------------------
# Generic (Underscores)
	- Normalize
	- Box sizing
# Base (Underscores)
	- Typography
	- Elements
	- Links
	- Forms
# Components (Underscores)
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# Utilities (Underscores)
	- Accessibility
	- Alignments
# Fotogriausmas
	- Spalvų kintamieji
	- Pagrindas
	- Antraštė
	- Kelias (breadcrumbs)
	- Poraštė
	- Rodyklė į viršų
	- Komentarai
	- Skirtukai (bendri)
	- Pirmas puslapis (A, B, C dalys)
	- Renginiai
	- NextGEN
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

main {
	display: block;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: bolder;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img {
	border-style: none;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
button,
input,
select,
optgroup,
textarea {
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: var(--fg-bg2);
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	cursor: help;
}

mark,
ins {
	background: var(--fg-gold-tint);
	color: inherit;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
hr {
	background-color: var(--fg-line);
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: var(--fg-line);
	border-radius: 3px;
	background: var(--fg-bg2);
	color: var(--fg-text);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: var(--fg-mute);
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation (įrašų ir komentarų puslapiavimas)
--------------------------------------------- */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.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 {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries (WP galerijos senuose įrašuose)
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--fg-bg2);
	border-radius: 3px;
	box-shadow: 0 0 0 2px var(--fg-accent);
	clip: auto !important;
	clip-path: none;
	color: var(--fg-text);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
	/*rtl:ignore*/
	float: left;
	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	/*rtl:ignore*/
	float: right;
	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

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

/*==============================================================
# FOTOGRIAUSMAS
==============================================================*/

/* ===== Spalvų kintamieji ===== */
/* Tamsi tema (numatyta) */
:root {
    color-scheme: dark;
    --fg-bg: #0F0F10;
    --fg-bg2: #141416;
    --fg-line: #2A2A2D;
    --fg-text: #ECE8E1;
    --fg-mute: #A8A39B;
    --fg-accent: #E8642A;
    --fg-hover: #FFFFFF;
    --fg-tint: rgba(255,255,255,.03);
    --fg-hair: rgba(255,255,255,.08);
    --fg-hair2: rgba(255,255,255,.1);
    --fg-ph: rgba(255,255,255,.06);
    --fg-dash: rgba(255,255,255,.25);
    /* Renginiai: ★ organizatorius */
    --fg-gold: #D4A537;
    --fg-gold-tint: rgba(212,165,55,.10);
    /* Festivaliai: atstumas */
    --fg-near: #6BBF59;
    --fg-mid: #E3B341;
    --fg-far: #5B9BD5;
}
/* Šviesi tema: pagal įrenginį (kol lankytojas nepasirinko)… */
@media (prefers-color-scheme: light) {
    html:not([data-theme="dark"]) {
        color-scheme: light;
        --fg-bg: #F5F7F9; --fg-bg2: #EBEEF2; --fg-line: #D2D7DE;
        --fg-text: #16191D; --fg-mute: #5E6570; --fg-accent: #C8501C; --fg-hover: #000000;
        --fg-tint: #EBEEF2; --fg-hair: #D2D7DE; --fg-hair2: #D2D7DE; --fg-ph: #DFE3E8; --fg-dash: #A6ADB7;
        --fg-gold: #9A7410; --fg-gold-tint: rgba(154,116,16,.12);
        --fg-near: #2E7D32; --fg-mid: #A67C00; --fg-far: #1F5FA8;
    }
}
/* …ir pasirinkta jungikliu */
html[data-theme="light"] {
    color-scheme: light;
    --fg-bg: #F5F7F9; --fg-bg2: #EBEEF2; --fg-line: #D2D7DE;
    --fg-text: #16191D; --fg-mute: #5E6570; --fg-accent: #C8501C; --fg-hover: #000000;
    --fg-tint: #EBEEF2; --fg-hair: #D2D7DE; --fg-hair2: #D2D7DE; --fg-ph: #DFE3E8; --fg-dash: #A6ADB7;
    --fg-gold: #9A7410; --fg-gold-tint: rgba(154,116,16,.12);
    --fg-near: #2E7D32; --fg-mid: #A67C00; --fg-far: #1F5FA8;
}

/* ===== Pagrindas ===== */
body{background:var(--fg-bg);color:var(--fg-text);font-family:'IBM Plex Sans','Helvetica Neue',sans-serif;font-size:16px;line-height:1.6}
a{color:inherit;text-decoration:none}
a:hover,a:focus{color:var(--fg-accent)}
h1,h2,h3,h4{font-family:'Bebas Neue','Oswald',sans-serif;font-weight:400;line-height:1.05;color:var(--fg-text)}
button,input,select,textarea{font-family:inherit;color:inherit}
input,select,textarea{background:var(--fg-bg2);border:1px solid var(--fg-line);color:var(--fg-text);padding:8px 10px;border-radius:6px}
.fg-wrap{width:100%;padding:0 clamp(16px,3vw,40px);box-sizing:border-box}
.site-main{width:100%;max-width:1400px;margin:0 auto;padding:24px clamp(16px,3vw,40px);box-sizing:border-box}
.home .site-main{padding-top:0}

/* ===== Antraštė ===== */
.fg-header{background:var(--fg-bg2);border-bottom:1px solid var(--fg-line);position:sticky;top:0;z-index:50}
.fg-header-in{display:flex;align-items:center;gap:24px;min-height:64px}

/* Logotipas: FOTO akcento spalva, GRIAUSMAS pilkas; užvedus FOTO baltas (šviesioje – juodas) */
.fg-logo{font-family:'Bebas Neue',sans-serif;font-size:30px;letter-spacing:1px;line-height:1;color:var(--fg-accent);transition:color .2s ease}
.fg-logo span{color:var(--fg-mute)}
.fg-logo:hover{color:var(--fg-hover)}

/* Meniu */
.fg-nav{flex:1}
.fg-nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0}
.fg-nav a{display:block;padding:8px 0;font-weight:500;font-size:15px}
.fg-nav .current-menu-item>a,.fg-nav .current-menu-ancestor>a,.fg-nav .current-page-ancestor>a{color:var(--fg-accent)}
.fg-burger{display:none;background:none;border:1px solid var(--fg-line);padding:8px 12px;border-radius:6px;min-height:44px;margin-left:auto;cursor:pointer}

/* Įrankiai: kalba, paieška, tema, vokas */
.fg-tools{display:flex;align-items:center;gap:16px;position:relative}
.fg-lang{font-size:13px;color:var(--fg-mute);letter-spacing:1px;white-space:nowrap}
.fg-lang a{color:var(--fg-mute)}
.fg-lang a.is-on{color:var(--fg-text);font-weight:600}
.fg-search-toggle{background:none;border:0;color:var(--fg-text);cursor:pointer;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.fg-search{display:none;position:absolute;right:0;top:100%;margin-top:10px;z-index:60}
.fg-search.is-open{display:block}
.fg-search input{width:260px}
.fg-search input::placeholder{color:var(--fg-mute);opacity:1}

/* Vokas (Bendradarbiauti) */
.fg-cta{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;box-shadow:none;padding:8px;color:var(--fg-accent);transition:color .2s ease}
.fg-cta:hover{color:var(--fg-hover)}

/* Temos jungiklis */
.fg-theme-toggle{background:none;border:0;padding:0;color:var(--fg-text);cursor:pointer;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.fg-theme-toggle:hover,.fg-theme-toggle:focus-visible{color:var(--fg-accent);background:none}
.fg-theme-toggle .fg-ico-moon{display:none}
html[data-theme="light"] .fg-theme-toggle .fg-ico-sun{display:none}
html[data-theme="light"] .fg-theme-toggle .fg-ico-moon{display:block}

@media(min-width:861px){
 .fg-nav ul{justify-content:center}
}
@media(max-width:860px){
 .fg-header-in{flex-wrap:wrap;gap:12px}
 .fg-burger{display:block}
 .fg-nav{display:none;order:5;flex-basis:100%}
 .fg-nav.is-open{display:block}
 .fg-nav ul{flex-direction:column;gap:0}
 .fg-nav a{padding:12px 0;border-top:1px solid var(--fg-line)}
}

/* ===== Kelias (breadcrumbs) ===== */
.fg-bc{padding:12px clamp(16px,3vw,40px);font-size:13px;color:var(--fg-mute);border-bottom:1px solid var(--fg-line)}
.fg-bc ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.fg-bc li+li::before{content:"›";margin-right:6px}

/* ===== Poraštė ===== */
.fg-footer{background:var(--fg-bg2);border-top:1px solid var(--fg-line);margin-top:48px}
.fg-footer-in{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:40px;padding-top:32px;padding-bottom:32px}
.fg-footer-brand-col{flex:1;min-width:250px}           /* kairė: logotipas ir aprašymas */
.fg-footer-nav-cols{display:flex;gap:50px;flex-wrap:wrap} /* dešinė: trys stulpeliai */
.fg-footer-nav-cols>div{min-width:130px}
.fg-footer h2{font-size:18px;color:var(--fg-mute);margin:0 0 8px;letter-spacing:1px}
.fg-footer ul{list-style:none;margin:0;padding:0}
.fg-footer li{margin:4px 0}
.fg-footer p{color:var(--fg-mute);font-size:14px;margin:8px 0 0}

/* ===== Rodyklė į viršų ===== */
.fg-totop{position:fixed;right:24px;bottom:24px;z-index:999;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:var(--fg-accent);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,background .2s,color .2s}
.fg-totop.is-on{opacity:1;visibility:visible}
.fg-totop:hover,.fg-totop:focus-visible{background:var(--fg-hover);color:var(--fg-bg)}
@media (max-width:600px){.fg-totop{right:16px;bottom:16px;width:42px;height:42px}}

/* ===== Komentarai (akordeonai) ===== */
#comments,
#respond {
    border: 1px solid var(--fg-line);
    background-color: var(--fg-bg2);
    border-radius: 6px;
    padding: 15px 20px !important;
    margin-top: 30px !important;
    color: var(--fg-text);
}

/* Antraštės (komentarų sąrašo ir rašymo formos) */
.comments-title,
#comments > h2,
#reply-title {
    cursor: pointer;
    margin: 0 !important;
    font-size: 1.1rem !important;
    color: var(--fg-text) !important;
    display: flex !important;
    align-items: center !important;
}

/* Pliusas dešinėje; išskleidus (.is-open) – minusas */
.comments-title::after,
#comments > h2::after,
#reply-title::after {
    content: "＋";
    color: var(--fg-accent);
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: auto !important;
}
#comments.is-open .comments-title::after,
#comments.is-open > h2::after,
#respond.is-open #reply-title::after {
    content: "－";
}

/* Teksto dalys antraštėje – iš eilės */
.comments-title *,
#comments > h2 * {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Paslėpta pagal nutylėjimą, rodoma su .is-open */
#comments .comment-list,
#respond form {
    display: none;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--fg-line);
}
#comments.is-open .comment-list,
#respond.is-open form {
    display: block !important;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    background-color: var(--fg-bg);
    border: 1px solid var(--fg-line);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.comment-author .fn {
    color: var(--fg-text);
    font-weight: bold;
}

.comment-meta a {
    color: var(--fg-mute);
    font-size: 0.85rem;
}

.comment-content p {
    color: var(--fg-mute);
    margin-top: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: var(--fg-bg);
    border: 1px solid var(--fg-line);
    color: var(--fg-text);
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--fg-accent);
    outline: none;
}

.comment-form .submit {
    background-color: var(--fg-accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== Skirtukai (bendri) ===== */
.fg-tabs__bar { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--fg-hair2); margin-bottom: 16px; }
.fg-tabs__btn { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; padding: 8px 0; margin-bottom: -1px; color: inherit; opacity: .6; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.fg-tabs__btn:hover { opacity: 1; background: none; }
.fg-tabs__btn.is-active { opacity: 1; color: var(--fg-accent); border-bottom-color: var(--fg-accent); }
.fg-tabs__panel[hidden] { display: none; }

/* Senesnis skirtukų užrašas (galbūt nenaudojamas) */
.fg-tabs-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--fg-line);
  margin-bottom: 20px;
  padding-bottom: 10px;
}

/* ===== Pirmas puslapis (A dalis) ===== */
.fp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fp-sec { padding: 40px 0; border-top: 1px solid var(--fg-hair); }
.fp > .fp-sec:nth-of-type(even) { background: var(--fg-tint); }
.fp-kicker { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-accent); }
.fp-sec__title { font-size: 30px; margin: 0 0 12px; }
.fp-sec__intro { margin: 0 0 20px; opacity: .8; }

.fp-btn { display: inline-block; padding: 10px 20px; text-decoration: none; font-weight: 600; border: 1px solid var(--fg-accent); }
.fp-btn--accent { background: var(--fg-accent); color: #fff; }
.fp-btn--ghost { color: var(--fg-accent); background: transparent; }
.fp-btn:hover { opacity: .85; }

.fp-slot { display: flex; align-items: center; justify-content: center; min-height: 80px; padding: 16px; border: 1px dashed var(--fg-dash); color: var(--fg-mute); font-size: 13px; text-align: center; }

.fp-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.fp-hero__title { font-size: 48px; line-height: 1.05; margin: 0 0 12px; }
.fp-hero__lead { margin: 0 0 20px; opacity: .85; }
.fp-hero__stats { margin: 0 0 20px; }
.fp-hero__stats-label { display: block; margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.fp-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.fp-hero__photo .fp-slot { min-height: 360px; }

.fp-yt__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.fp-yt__lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fp-yt__card { display: block; text-decoration: none; color: inherit; }
.fp-yt__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fg-ph); }
.fp-yt__name { display: block; margin-top: 6px; font-size: 14px; }

.fp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.fp-card { padding: 20px; border: 1px solid var(--fg-hair2); }
.fp-card__title { font-size: 20px; margin: 0 0 8px; }
.fp-card p { margin: 0; opacity: .8; }

.fp-news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.fp-news__title { font-size: 22px; margin: 0 0 6px; }
.fp-news p { margin: 0; opacity: .8; }

@media (max-width: 800px) {
	.fp-hero__grid, .fp-yt__grid, .fp-news__grid, .fp-cards { grid-template-columns: 1fr; }
	.fp-hero__title { font-size: 36px; }
}

/* ===== Pirmas puslapis (B dalis) ===== */
.fp-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.fp-sec__link, .fp-more a { color: var(--fg-accent); text-decoration: none; font-weight: 600; }
.fp-more { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.fp-more span { opacity: .6; }
.fp-note { margin: 12px 0 0; font-size: 13px; opacity: .6; }
.fp-events__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.fp-events__cal .fp-slot { min-height: 280px; }

@media (max-width: 800px) {
	.fp-events__grid { grid-template-columns: 1fr; }
}

/* ===== Pirmas puslapis (C dalis) ===== */
.fp-banner--top { padding: 0; }
.fp-ad { display: flex; align-items: stretch; justify-content: center; gap: 6px; }
.fp-ad__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; opacity: .4; }
.fp-ad__box { max-width: 100%; }
.fp-ad__box--728 { width: 728px; min-height: 90px; }
.fp-ad__box--610 { width: 610px; min-height: 230px; }
.fp-ad__box .fp-slot { height: 100%; min-height: inherit; }
.fp-ad__box img { display: block; max-width: 100%; height: auto; }

.fp-lens__grid { display: flex; gap: 32px; align-items: flex-start; }
.fp-lens__main { flex: 1; min-width: 0; }

@media (max-width: 1000px) {
	.fp-lens__grid { flex-direction: column; }
	.fp-lens__ad { align-self: center; }
}

/* Užfiksuota per laiką – telefone */
@media (max-width: 600px) {
	.fp-hero__stats .fg-hs {
		width: 100%;
		gap: 12px;
	}
	.fg-hs__num { font-size: 26px; }
	.fg-hs__label { font-size: 12px; }
}

/* ===== Renginiai: ★ organizatoriaus kortelė (perrašo fg-renginiai) ===== */
li.fg-evc.is-star { border-left-width: 6px; border-left-color: var(--fg-gold, #D4A537); background: linear-gradient(var(--fg-gold-tint), var(--fg-gold-tint)), var(--fg-bg); }
li.fg-evc.is-star .fg-evc__date { align-self: stretch; justify-content: center; padding: 6px 0; border-radius: 4px; background: var(--fg-gold, #D4A537); }
li.fg-evc.is-star .fg-evc__d,
li.fg-evc.is-star .fg-evc__m { color: var(--fg-bg); }

/* ===== NextGEN ===== */
/* Galerijų kortelės (visos galerijos; perrašo NextGEN įrašytas spalvas) */
div[id*="displayed_gallery_"] .image_container,
[id^="gallery_"] .image-wrapper {
    background-color: var(--fg-bg2) !important;
    border: 1px solid var(--fg-line) !important;
    color: var(--fg-text) !important;
}
div[id*="displayed_gallery_"] .caption,
div[id*="displayed_gallery_"] [class*="caption"],
div[id*="displayed_gallery_"] [class*="title"],
[id^="gallery_"] .image-wrapper [class*="caption"],
[id^="gallery_"] .image-wrapper [class*="title"] {
    color: var(--fg-text) !important;
    background-color: transparent !important;
}

/* NextGEN parašų nuorodos: NextGEN nustato #333 – keičiam į temos spalvą (visi albumai) */
[id^="displayed_gallery_"] .caption_link a,
[id^="displayed_gallery_"] .caption_link a:visited {
    color: var(--fg-text) !important;
}
[id^="displayed_gallery_"] .caption_link a:hover {
    color: var(--fg-accent) !important;
}

/* Ikonos po nuotrauka: dalijimasis – blankus, krepšelis – akcentas */
div[id*="displayed_gallery_"] .image_container .fa,
div[id*="displayed_gallery_"] .image_container [class*="share"],
[id^="gallery_"] .image-wrapper .fa,
[id^="gallery_"] .image-wrapper [class*="share"] {
    color: var(--fg-mute) !important;
}
div[id*="displayed_gallery_"] .image_container .fa-shopping-cart,
div[id*="displayed_gallery_"] .image_container [class*="cart"],
[id^="gallery_"] .image-wrapper .fa-shopping-cart,
[id^="gallery_"] .image-wrapper [class*="cart"],
div[id*="displayed_gallery_"] .image_container a:hover .fa,
div[id*="displayed_gallery_"] .image_container .fa:hover,
[id^="gallery_"] .image-wrapper a:hover .fa,
[id^="gallery_"] .image-wrapper .fa:hover,
[id^="gallery_"] .image-wrapper [class*="share"]:hover {
    color: var(--fg-accent) !important;
}
div[id*="displayed_gallery_"] .image_container svg,
[id^="gallery_"] .image-wrapper svg {
    fill: currentColor !important;
}

/* Puslapiavimas: aktyvus puslapis ir užvedus */
.ngg-navigation a:hover,
.ngg-pagination a:hover,
.ngg-pagination span.current,
.ngg-pro-pagination .active {
    background-color: var(--fg-accent) !important;
    border-color: var(--fg-accent) !important;
    color: #FFFFFF !important;
}