/*
 Theme Name:   Paragans
 Theme URI:    https://phb.wpdata.eu
 Description:  Vzhled a chování projektu Paragan Horse Boxes
 Author:       Tým WP-admin.cz
 Author URI:   https://wp-admin.cz
 Template:     generatepress
 Version:      0.1
 Text Domain:  paragans
*/

header.gb-is-sticky img {
	transform: scale(0.6);
}
header img {
	transition: transform 0.3s ease;
	transform-origin: center top;
}
header .wp-block-polylang-language-switcher select {
	font-size: 20px;
	font-weight: 400;
	background-color: transparent;
	border-color: transparent;
	padding-right: 0;
	padding-left: 0;
}

/*** Navigation — mobile overlay ***/

.gb-site-header > a > img,
.gb-site-header > img {
	position: relative;
	z-index: 101;
}
.gb-menu-container--mobile .gb-menu-item {
	color: var(--base-3);
}
.gb-menu-container--mobile .gb-menu .gb-menu-item:is(.current-menu-item, .current-menu-item:hover, .current-menu-item:focus-within) {
	color: var(--global-color-8);
}
.gb-menu-container--mobile .gb-sub-menu {
	background-color: transparent;
	box-shadow: none;
	width: 100%;
}

.gb-menu-container--mobile .gb-sub-menu .gb-menu-item,
.gb-menu-container--mobile .gb-sub-menu .gb-menu-item:is(:hover, :focus-within) {
	background-color: transparent;
	color: var(--base-3);
}

/* sub-items: size instead of indent, the overlay is centred */
.gb-menu-container--mobile .gb-sub-menu .gb-menu-item {
	font-size: 22px;
	opacity: .85;
}

/*** Form ***/
.fluentform .ff-el-form-control {
	border-color: #313131;
}
.newsletter {
	gap: 0px !important;
	border-radius: 0px !important;
}

/* Newsletter input — beats the "Modern B" preset; fixed height + no vertical
   padding centres the placeholder, the button then stretches to match */
.fluentform .newsletter-form .ff-el-input--content input.ff-el-form-control {
	border-width: 1px;
	border-color: #313131;
	height: 55px;
	padding-top: 0;
	padding-bottom: 0;
}

/* Newsletter row — match button height to the input */
.newsletter-form .ff-t-container {
	align-items: stretch;
}

.fluentform .frm-fluent-form.newsletter-form .ff-el-group {
	margin-bottom: 0;
}

/* cell is flex-direction:column, so flex-grow does the stretching */
.fluentform .frm-fluent-form.newsletter-form .ff-el-group.ff_submit_btn_wrapper {
	display: flex;
	flex: 1;
	align-items: stretch;
	margin: 0;
}

/* no height here — a definite cross size would cancel the stretch */
.fluentform .frm-fluent-form.newsletter-form .ff-btn-submit {
	margin: 0;
	width: 100%;
}

/* newsletter messages on dark bg */
.newsletter-form ~ .ff-message-success,
.newsletter-form ~ .ff-el-is-error .text-danger,
.newsletter-form ~ .ff-errors-in-stack .error {
    color: #fff;
}

/* wrapper field */
.fluentform .frm-fluent-form .ff-el-group {
    position: relative;
	margin-bottom: 15px;
}

/* label wrapper */
.frm-fluent-form .ff-el-group .ff-el-input--label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    transition: all .2s ease;
    margin: 0;
}

/* label */
.frm-fluent-form .ff-el-group .ff-el-input--label label {
    margin: 0;
    font-size: 16px;
    line-height: 1;
    background: var(--base-2);
    padding: 0 6px;
}

/* input spacing */
.frm-fluent-form .ff-el-group input,
.frm-fluent-form .ff-el-group textarea,
.frm-fluent-form .ff-el-group select {
    padding-top: 20px;
}

/* focus */
.frm-fluent-form .ff-el-group:focus-within .ff-el-input--label {
    top: 0;
    transform: translateY(-50%);
}

/* select arrow */
.frm-fluent-form .ff-el-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23495057' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}
/* phone country selector - hidden by default */
.frm-fluent-form .ff-el-group .iti__country-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.frm-fluent-form .ff-el-group .iti input {
    padding-left: 15px;
    transition: padding-left .2s ease;
}

/* phone country selector - visible on focus/filled */
.frm-fluent-form .ff-el-group:focus-within .iti__country-container,
.frm-fluent-form .ff-el-group.ff-has-value .iti__country-container {
    opacity: 1;
    pointer-events: auto;
}
.frm-fluent-form .ff-el-group:focus-within .iti input,
.frm-fluent-form .ff-el-group.ff-has-value .iti input {
    padding-left: 52px;
}
.frm-fluent-form .ff-el-group:focus-within {
    z-index: 10;
}
/* filled */
.frm-fluent-form .ff-el-group.ff-has-value .ff-el-input--label {
    top: 0;
    transform: translateY(-50%);
}
.frm-fluent-form .ff-el-group:focus-within .ff-el-input--label label,
.frm-fluent-form .ff-el-group.ff-has-value .ff-el-input--label label {
	font-size: 13px;
}

/*** Animations ***/
.fade-up,
.fade-left,
.fade-right {
	opacity: 0;
	transition: opacity 1s ease, transform 1s ease;
	will-change: opacity, transform;
}

.fade-up {
	transform: translateY(24px);
}

.fade-left {
	transform: translateX(-24px);
}

.fade-right {
	transform: translateX(24px);
}

.fade-up.is-visible,
.fade-left.is-visible,
.fade-right.is-visible {
	opacity: 1;
	transform: translate(0);
}

/* delay */
.fade-delay-1 { transition-delay: .15s; }
.fade-delay-2 { transition-delay: .3s; }
.fade-delay-3 { transition-delay: .45s; }

/* accessibility */
@media (prefers-reduced-motion: reduce) {
	.fade-up,
	.fade-left,
	.fade-right {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.parallax__bg {
		transform: none !important;
	}
}
.parallax {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.parallax .parallax__bg {
	position: absolute;
	top: -60px;
	left: 0;
	width: 100%;
	height: calc(100% + 120px);
	margin: 0;
	pointer-events: none;
	z-index: 0;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}


.parallax img.parallax__bg,
.parallax .parallax__bg img {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}


.parallax > * {
	position: relative;
	z-index: 1;
}


.parallax .parallax__bg {
	z-index: 0;
}

/* Gallery */

.masonry-gallery {
	column-count: 3;
	column-gap: 15px;
}

.masonry-item {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin-bottom: 15px;
}

.masonry-item img {
	display: block;
	width: 100%;
	height: auto;
}
@media (max-width: 1024px) {
	.masonry-gallery {
		column-count: 2;
	}
}

@media (max-width: 640px) {
	.masonry-gallery {
		column-count: 1;
	}
}
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}

.lightbox.active {
	opacity: 1;
	pointer-events: auto;
}

.lightbox img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	color: white;
	font-size: 32px;
	cursor: pointer;
	user-select: none;
}

.lightbox-close {
	top: 20px;
	right: 30px;
}

.lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

/*** CARD HOVER OVERLAY ***/

.home .gb-loop-item.bazar,
.models .model-card,
.stock .gb-loop-item.bazar,
.gb-loop-item.category-blog {
	position: relative;
}
.home .gb-loop-item.bazar:hover {
	justify-content: center;
    /* text-align: center; */
}
.home .gb-loop-item.bazar:hover > div,
.models .model-card:hover,
.stock .gb-loop-item.bazar:hover,
.gb-loop-item.category-blog:hover {
	display: flex;
	flex-direction: column;	
    justify-content: center;
    align-items: flex-start;
}
.home .gb-loop-item.bazar::before,
.models .model-card::before,
.stock .gb-loop-item.bazar::before,
.gb-loop-item.category-blog::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: transparent;
	transition: background-color 0.3s ease;
	z-index: 1;
}
.home .gb-loop-item.bazar:hover::before,
.models .model-card:hover::before,
.stock .gb-loop-item.bazar:hover::before,
.gb-loop-item.category-blog:hover::before {
	background-color: rgba(49, 49, 49, 0.9);
}
.home .gb-loop-item.bazar .gb-text,
.home .gb-loop-item.bazar .gb-shape,
.models .model-card .gb-text,
.models .model-card .gb-shape,
.stock .gb-loop-item.bazar .gb-text,
.stock .gb-loop-item.bazar .gb-shape,
.gb-loop-item.category-blog .gb-text,
.gb-loop-item.category-blog .gb-shape {
	position: relative;
	z-index: 2;
	transition: opacity 0.3s ease;
}
.home .gb-loop-item.bazar:hover .gb-text,
.home .gb-loop-item.bazar:hover .gb-shape,
.models .model-card:hover p,
.stock .gb-loop-item.bazar:hover .gb-shape,
.gb-loop-item.category-blog:hover p {
	display: inline-flex;
	opacity: 1;
}

/* Model cards live in assets/css/components.css — that file is also loaded
   into the block editor, so the cards render there the same as on the front. */

/*** STOCK ***/
.gb-text.label-used {
	background-color: var(--global-color-20);
}