/*
Theme Name: Generación Maldita
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Tema hijo de Twenty Twenty-Five para customizaciones de Generación Maldita.
Author: Generación Maldita
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/* Add overrides below, or use the Site Editor + Additional CSS. */

/* Single fanzine: portada tipo revista y relieve sobre el resto de CPT */
.gm-single-fanzine .gm-fanzine-hero-wrap {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent);
}

.gm-single-fanzine .gm-fanzine-cover img {
	box-shadow:
		0 12px 28px color-mix(in srgb, currentColor 18%, transparent),
		0 2px 0 color-mix(in srgb, currentColor 8%, transparent);
	transform: rotate(-0.6deg);
	max-width: min(100%, 320px);
	margin-inline: auto;
}

@media (min-width: 782px) {
	.gm-single-fanzine .gm-fanzine-cover img {
		margin-inline: 0;
	}
}

/* Single cortometraje: cartel horizontal centrado en cabecera */
.gm-single-cortometraje .gm-corto-hero-wrap {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent);
}

.gm-single-cortometraje .gm-corto-hero-poster {
	margin-bottom: var(--wp--preset--spacing--50, 2rem);
}

.gm-single-cortometraje .gm-corto-cover {
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
}

.gm-single-cortometraje .gm-corto-cover img {
	display: block;
	width: 100%;
	max-height: min(56vw, 540px);
	object-fit: cover;
	margin-inline: auto;
	box-shadow:
		0 16px 40px color-mix(in srgb, currentColor 20%, transparent),
		0 2px 0 color-mix(in srgb, currentColor 8%, transparent);
}

.gm-single-cortometraje .gm-corto-hero-meta {
	text-align: center;
}

.gm-single-cortometraje .gm-corto-hero-meta .fm-corto-ficha__actions {
	justify-content: center;
}

.gm-single-cortometraje .gm-corto-informacion-wrap {
	border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.gm-single-cortometraje .gm-corto-valoraciones {
	border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	padding-top: var(--wp--preset--spacing--50, 2rem);
}

/* Archivo de fanzines: miniaturas de portada coherentes con la ficha */
.gm-archive-fanzine .gm-archive-fanzine-cover img {
	max-width: min(100%, 220px);
	margin-inline: auto;
	box-shadow: 0 8px 20px color-mix(in srgb, currentColor 14%, transparent);
}

@media (min-width: 782px) {
	.gm-archive-fanzine .gm-archive-fanzine-cover img {
		margin-inline: 0;
	}
}

/* —— Búsqueda (plantilla search.html): tarjetas oscuras —— */
.gm-search-results .wp-block-post-template > li {
	min-width: 0;
	max-width: 100%;
}

.gm-search-results .gm-search-card .wp-block-columns {
	flex-wrap: wrap !important;
}

.gm-search-results .gm-search-card .wp-block-column {
	flex-basis: 100% !important;
	min-width: 0;
}

@media (min-width: 782px) {
	.gm-search-results .gm-search-card .wp-block-column:first-child {
		flex-basis: 28% !important;
	}

	.gm-search-results .gm-search-card .wp-block-column:last-child {
		flex-basis: 72% !important;
	}
}

.gm-search-results .gm-search-inline-form .wp-block-search__inside-wrapper {
	border-radius: 6px;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.gm-search-results .gm-search-inline-form .wp-block-search__input {
	background: transparent;
}

.gm-search-results .gm-search-card {
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	background: color-mix(in srgb, currentColor 5%, transparent);
	box-shadow: 0 10px 28px color-mix(in srgb, currentColor 8%, transparent);
	border-inline-start: 4px solid color-mix(in srgb, currentColor 35%, transparent);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gm-search-results .gm-search-card:hover {
	border-color: color-mix(in srgb, currentColor 22%, transparent);
	box-shadow: 0 14px 36px color-mix(in srgb, currentColor 12%, transparent);
}

.gm-search-results .gm-search-type-badge {
	display: inline-block;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.gm-search-results .gm-search-card-terms .wp-block-post-terms:empty {
	display: none;
}

.gm-search-results .gm-search-card-thumb img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 6px 18px color-mix(in srgb, currentColor 12%, transparent);
}

.gm-search-results .gm-search-card .wp-block-post-title,
.gm-search-results .gm-search-card .wp-block-post-excerpt {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Acentos por CPT (clases type-* en el <li> del post-template) */
.gm-search-results .type-cortometraje .gm-search-card {
	border-inline-start-color: #c41e3a;
}

.gm-search-results .type-artista .gm-search-card {
	border-inline-start-color: var(--wp--preset--color--accent-3, #503aa8);
}

.gm-search-results .type-espacio .gm-search-card {
	border-inline-start-color: #2d8cf0;
}

.gm-search-results .type-proyeccion .gm-search-card {
	border-inline-start-color: #e6a317;
}

.gm-search-results .type-fanzine .gm-search-card {
	border-inline-start-color: var(--wp--preset--color--accent-2, #f6cff4);
}

.gm-search-results .type-post .gm-search-card {
	border-inline-start-color: var(--wp--preset--color--accent-1, #ffee58);
}

.gm-search-results .type-page .gm-search-card {
	border-inline-start-color: color-mix(in srgb, var(--wp--preset--color--accent-4, #888) 80%, transparent);
}

/* Fanzine / espacio: cartel más “portada” */
.gm-search-results .type-fanzine .gm-search-card-media,
.gm-search-results .type-cortometraje .gm-search-card-media {
	max-width: 260px;
	margin-inline: auto;
}

@media (min-width: 782px) {
	.gm-search-results .type-fanzine .gm-search-card-media,
	.gm-search-results .type-cortometraje .gm-search-card-media {
		margin-inline: 0;
	}
}

.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption,
.wp-block-jetpack-slideshow:hover .wp-block-jetpack-slideshow_caption.gallery-caption {
	position: absolute;   
	top: 50%;
	   left: 50%;
	   transform: translate(-50%, 0%);
	   opacity: 0;
	   text-align: center;
	   width: 100%;
	   height: 100%;
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: bold;
	background-color: rgba(0, 0, 0, 0.5);
	gap: 20px;
	text-shadow: 0px 0px 5px black;
	transition: all 0.3s ease-in-out;
}

.wp-block-jetpack-slideshow:hover .wp-block-jetpack-slideshow_caption.gallery-caption {
	opacity: 1;
	transform: translate(-50%, -50%);
}
	
	
	.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption .button {
	display: block;
	background-color: #090;
	color: white;
	text-decoration: none;
	padding: 0.3em 1em;
	border-radius: 12px;
	}
	
	.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets, .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-custom {
	position: absolute;   
	bottom: 20%;
	   left: 50%;
	   transform: translate(-50%, -50%);
	display: block;
	width: auto;
	}
	
	.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet, .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-custom .swiper-pagination-bullet {
	width: 30px;
	height: 30px;
	cursor: pointer;
	margin: 10px;
	}
	
	#gma-main-menu .wp-block-navigation-item__content {
		display: block;
		padding: 0.3em 0.8em;
		text-decoration: none;
		position: relative;
	}

	#gma-main-menu .wp-block-navigation-item__content:after {
		opacity: 0;
		content: '';
		display: block;
		width: 100%;
		height: 2px;
		background-color: #0A0;
		transition: all 0.3s ease-in-out;
		transform: scaleX(0%);
		position: absolute;
		bottom: 0;
		left: 0;
		outline: none;

	}

	#gma-main-menu * {

		outline: none;
	}
	#gma-main-menu .wp-block-navigation-item__content:hover {
		color: #0A0;
	}


	#gma-main-menu .wp-block-navigation-item__content:active {
		outline: none;
	}

	#gma-main-menu .wp-block-navigation-item__content:hover:after {
		opacity: 1;
		transform: scaleX(100%);
	}


	.has-base-background-color {
		color: white !important;
		background-color:rgba(0, 0, 0, 0.5) !important;
		backdrop-filter: blur(10px);
	}

	.has-base-background-color .wp-block-navigation-item__content {
	}