/**
Theme Name: Green Latinos LCJF
Author: Happy Hippopotam.us
Author URI: https://happyhippopotam.us
Description: Child of Astra theme
Version: 1.1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: green-latinos-lcjf
Template: astra
*/

body {
	overscroll-behavior: none;
	/* height: 100vh;
  height: 100svh;
  min-height: 100svh; */
}

/****** #region Press List *******/
/* Parent UL Grid */
#PressList ul.columns-3.wp-block-post-template {
	grid-template-columns: repeat(3, 1fr); /* Three columns */
	gap: 1rem; /* Adjust spacing between items */
}

/* List Items as Grid Containers */
#PressList ul.columns-3.wp-block-post-template > li {
	position: relative; /* For absolute positioning inside */
	background: var(--ast-global-color-4); /* Background color */
	padding: 1rem;
	border-radius: 8px; /* Optional: rounded corners */
	overflow: visible; /* Clip overflowing content */
}

/* Article Subgrid */
#PressList li > article {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 0.5rem;
	align-content: start;
	padding: 3rem 1rem 1rem;
	border-radius: 4px;
}

#PressList li:nth-child(3n + 1) > article {
	background: var(--ast-global-color-1);
}

#PressList li:nth-child(3n + 2) > article {
	background: var(--ast-global-color-2);
}
#PressList li:nth-child(3n + 2) > article a:hover {
	color: var(--ast-global-color-6);
}

#PressList li:nth-child(3n) > article {
	background: var(--ast-global-color-3);
}

/* Date Styling */
#PressList .wp-block-post-date {
	font-size: 0.9rem;
	color: var(--wp--preset--color--secondary); /* Use secondary color */
	text-align: center; /* Center text */
	margin: 0;
}

.press_list {
	position: relative;
}
.press-list-citation {
	position: absolute;
	top: -1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	background: var(--ast-global-color-4);
	color: var(--ast-global-color-8);
	width: fit-content;
	margin: 0 auto;
	padding: 0.5em 0.8em;
	border-radius: 0.2em;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.press-list-item {
	position: relative;
	height: 100%;

	> * {
		position: relative;
		z-index: 5;
	}

	a {
		text-decoration: none !important;
	}

	.wp-block-post-title {
		align-self: center;
		margin: 0;
	}

	.wp-block-post-featured-image {
		/* position: absolute;
		inset: 0;
		height: 100%;
		width: 100%; */
		text-align: center;
		max-height: 120px;
		max-width: 80%;
		margin: 0;
		z-index: 1;
		opacity: 1;
	}
	img {
		height: 100%;
		width: 100%;
		z-index: 100;
		object-fit: contain !important;
	}
}

/* #endregion Press List */

/****** #region GSAP *******/
#gsapHScroll,
#gsapHScrollRL {
	padding: 0;
	overscroll-behavior: none;
}

@media (min-width: 500px) {
	#gsapHScroll .uagb-container-inner-blocks-wrap,
	#gsapHScrollRL .uagb-container-inner-blocks-wrap,
	.pin-spacer .uagb-container-inner-blocks-wrap {
		overscroll-behavior: none;
		width: 400vw;
		max-width: 400vw;
		min-width: 400vw !important;
		height: calc(400vw + 100vh);
		display: flex;
		flex-wrap: nowrap;
		margin: 0 !important;
	}

	.uagb-container-inner-blocks-wrap.animating {
		/* z-index: -1 !important; */
	}

	#gsapHScroll .panel,
	#gsapHScrollRL .panel-allen {
		height: 100svh;
		min-height: 100svh;
		width: 100vw;
		max-width: unset !important;
		min-width: 100vw !important;
	}
}

.partner-logos img {
	max-height: 160px;
	max-width: 220px;
	width: auto;
}

:root .transform-none .uagb-image-heading {
	transform: none;
}

@-webkit-keyframes ticker {
	0% {
		transform: translate3d(25%, 0, 0);
	}
	100% {
		transform: translate3d(-25%, 0, 0);
	}
}

@keyframes ticker {
	0% {
		transform: translate3d(25%, 0, 0);
	}
	100% {
		transform: translate3d(-25%, 0, 0);
	}
}

section {
	text-align: center;
	position: relative;
	z-index: 1;
	background-color: #273f32;
}

section .group {
	width: 100vw;
	padding: 0.5em;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	overflow: hidden;
}

section .group .row {
	width: fit-content;
	display: flex;
	flex-direction: row;
	gap: 1.5rem;
	align-items: flex-start;
	justify-content: space-around;
	transform: translate3d(25%, 0, 0);
	white-space: nowrap;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;
	animation-timing-function: linear;
	-webkit-animation-name: ticker;
	animation-name: ticker;
	-webkit-animation-duration: 30s;
	animation-duration: 30s;
}

section .group .row:hover {
	-webkit-animation-play-state: paused;
	animation-play-state: paused;
}

section .group .row:nth-child(even) {
	animation-direction: reverse;
}

section .group .row span {
	color: #fdfdfd;
	font-size: clamp(15px, 0.547rem + 1.25vw, 20px);
	font-weight: 600;
}
