@charset "UTF-8";
/* jackself.com v3.0 May 2024 */

/* Efecto de blur general al cargar la página */
body {
    filter: blur(15px);
    animation: page-load-blur 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes page-load-blur {
    0% {
        filter: blur(15px);
        opacity: 0.9;
    }
    15% {
        filter: blur(12px);
        opacity: 0.92;
    }
    30% {
        filter: blur(8px);
        opacity: 0.94;
    }
    45% {
        filter: blur(5px);
        opacity: 0.96;
    }
    60% {
        filter: blur(3px);
        opacity: 0.98;
    }
    75% {
        filter: blur(1px);
        opacity: 0.99;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

body, .v6_3 {
    background-color: transparent;
    color: #8A9197;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: auto;
    font-family: 'Headland One', serif;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    line-height: 1.4;
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #000 !important;
}

html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  font-weight: 400;
}

@font-face {
    font-family: 'Martel';
    src: url('/archive_2024/fonts/Martel-Regular.woff2') format('woff2'),
         url('/archive_2024/fonts/Martel-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Italic';
    src: url('/archive_2024/fonts/HEL BQ IT/HelveticaBQ-Italic.woff2') format('woff2'),
        url('/archive_2024/fonts/HEL BQ IT/HelveticaBQ-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'YoungSerif';
    src: url('/archive_2024/fonts/YoungSerif-Regular.woff2') format('woff2'),
         url('/archive_2024/fonts/YoungSerif-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Biryani';
    src: url('/archive_2024/fonts/Biryani-Light.woff2') format('woff2'),
         url('/archive_2024/fonts/Biryani-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* Fallback: original font files are missing, use Headland One instead */
@font-face {
    font-family: 'Headland One';
    src: local('Headland One'), local('HeadlandOne');
    font-weight: normal;
    font-style: normal;
}

/* Estilo base para todos los enlaces */
a {
    position: relative;
    text-decoration: none;
    color: #8A9197;
    border: none;
    outline: none;
    z-index: 1;
    padding: 0.2em 0.4em;
    margin: 0 -0.4em;
    --text-index: 4;
}

/* Efecto de nube base */
a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(251, 252, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    filter: blur(8px);
}

a:hover::before {
    width: 130%;
    height: 160%;
    background: rgba(251, 252, 255, 0.08);
}

/* Ajustes para los enlaces del menú */
.menu a {
    color: #5A5F6B;
    opacity: 0.85;
    transition: all 0.4s ease;
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
}

.menu a:hover {
    color: #fff;
    opacity: 1;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.menu a::before {
    background: rgba(251, 252, 255, 0.05);
}

.menu a:hover::before {
    width: 140%;
    height: 180%;
    background: rgba(251, 252, 255, 0.08);
}

/* Ajustes para enlaces en writing-item */
.writing-item a::before {
    background: rgba(251, 252, 255, 0.05);
}

.writing-item a:hover::before {
    width: 120%;
    height: 150%;
    background: rgba(251, 252, 255, 0.07);
}

/* Ajustes para enlaces en project-item */
.project-item a::before {
    background: rgba(251, 252, 255, 0.04);
}

.project-item a:hover::before {
    width: 125%;
    height: 155%;
    background: rgba(251, 252, 255, 0.06);
}

/* Ajustes para enlaces en contact-section */
.contact-section a::before {
    background: rgba(251, 252, 255, 0.03);
}

.contact-section a:hover::before {
    width: 130%;
    height: 160%;
    background: rgba(251, 252, 255, 0.05);
}

/* Ajuste para el menú en modo portrait */
@media (orientation: portrait) {
    body {
        font-size: 4vw;
    }

    .menu {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        padding: 5vw 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        box-shadow: 0 -10px 20px rgba(251, 252, 255, 0.1);
        border: none; /* Eliminar cualquier borde */
    }

    .menu a {
        display: inline-block;
        padding: 2vw 3vw;
        font-size: 4vw;
        margin: 0 2vw; /* Aumentado el margen entre elementos */
        opacity: 0.8;
        min-width: 15vw; /* Ancho mínimo para mejor distribución */
        text-align: center; /* Centrar texto */
    }

    /* Ajustar el efecto de nube para el nuevo espaciado */
    .menu a::before {
        filter: blur(15px);
    }

    .menu a:hover::before {
        width: 160%;
        height: 200%;
    }

    /* Ajustar el contenedor principal para dar más espacio al menú */
    .container {
        display: block;
        margin: 4vw;
        padding-bottom: 25vw; /* Más espacio para el menú */
    }

    .project-item, .gallery-item {
        margin-bottom: 8vw;
        width: 100%;
    }

    /* Mejorar la legibilidad del menú activo */
    .menu a.active {
        opacity: 1;
        transform: scale(1.05); /* Ligeramente más grande */
    }

    /* Ajustar el gradiente para móvil */
    .menu-gradient {
        top: -30px;
        height: 30px;
        background: linear-gradient(
            to top,
            rgba(251, 252, 255, 0.1),
            rgba(251, 252, 255, 0)
        );
    }
}

body {
	font-family: 'Headland One', serif;
	font-weight: 400;
	text-rendering:optimizeLegibility;
	line-height: 1.4;
	}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.element {
	margin: 0;
	padding: 0;
}

.project-item, .gallery-item, .writing-item {
	margin-bottom: 4vw;
}

.project-item img, .gallery-item img {
	width: 100%;
	height: auto;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
	display: block;
}

.project-item img:hover, .gallery-item img:hover {
	opacity: 0.92;
	transform: scale(1.01);
}

.gallery-caption, .project-item h3, .writing-item h3 {
	margin-top: 0;
	margin-bottom: 0;
	font-family: 'EB Garamond', 'Garamond', serif;
	position: relative;
	overflow: hidden;
}

.gallery-caption p, .project-item p, .writing-item p {
	margin: 0;
	opacity: 0.7;
	font-family: 'Martel', serif;
}

.writing-category {
	margin-bottom: 4vw;
}

.writing-category h2 {
	margin-bottom: 2vw;
	font-family: 'EB Garamond', 'Garamond', serif;
	color: #fff;
	position: relative;
	overflow: hidden;
	filter: blur(0);
	animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	animation-delay: calc(var(--text-index, 3) * 0.2s);
}

.writing-category h2::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, currentColor, transparent);
	opacity: 0.2;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.writing-category h2:hover::after {
	transform: scaleX(1);
}

.menu, .menu-gradient {
    display: none;
}

/* Links in text */
.container a {
    color: #5A5F6B;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
}

.container a:hover {
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Project and gallery titles */
.gallery-caption h3, .project-item h3, .writing-item h3 {
	color: #5A5F6B;
}

#bouncingImagesLyr0 {
	display: none;
	z-index:12 !important;
}

@media (orientation: landscape) {
  body {
        font-size: 1.45vw;
  }

	.container {
        margin-left: 15vw;
    }
    
    .menu a {
        font-size: 1.45vw;
    }

    .menu {
        position: fixed;
        top: 2.5vw;
        left: 2.5vw;
        width: auto;
        padding: 0;
        background: transparent;
        z-index: 10;
        border: none; /* Eliminar cualquier borde */
    }

    /* Ajustar el gradiente para desktop */
    .menu-gradient {
        display: none; /* No necesitamos el gradiente en desktop */
    }
}

@media (orientation: portrait) {
  body {
        font-size: 4vw;
    }

    .menu {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        padding: 4vw;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: none; /* Quitamos la línea */
        box-shadow: 0 -10px 20px rgba(251, 252, 255, 0.1);
    }

    .menu a {
        display: inline-block;
        padding: 0 4vw 0 0;
        font-size: 3.5vw;
  }

		.container {
        display: block;
        margin: 4vw;
        padding-bottom: 20vw; /* Aseguramos que el contenido no quede detrás del menú */
    }

    .project-item, .gallery-item {
        margin-bottom: 8vw;
        width: 100%;
    }
}

.contact-section {
    margin: 4vw;
    max-width: 800px;
}

.contact-info {
    margin-top: 2em;
}

.contact-item {
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Averia Sans Libre', cursive;
    font-weight: 700;
    margin: 0;
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 0) * 0.2s);
}

.scramble {
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    filter: blur(0);
}

.scramble.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 6) * 0.2s);
}

@keyframes glitch {
    0% {
        transform: translate(0) skew(0deg) rotate(0deg) scale(1);
        filter: blur(0);
        opacity: 1;
    }
    10% {
        transform: translate(-2px, 2px) skew(-3deg, 2deg) rotate(-1deg) scale(1.02);
        filter: blur(1px);
        opacity: 0.9;
    }
    20% {
        transform: translate(3px, -1px) skew(2deg, -3deg) rotate(2deg) scale(0.98);
        filter: blur(2px);
        opacity: 0.8;
    }
    30% {
        transform: translate(-4px, 3px) skew(-5deg, 3deg) rotate(-2deg) scale(1.03);
        filter: blur(1.5px);
        opacity: 1;
    }
    40% {
        transform: translate(2px, -3px) skew(3deg, -5deg) rotate(1deg) scale(0.99);
        filter: blur(2.5px);
        opacity: 0.85;
    }
    50% {
        transform: translate(5px, -5px) skew(-6deg, 2deg) rotate(-3deg) scale(1.05);
        filter: blur(3px);
        opacity: 0.7;
    }
    60% {
        transform: translate(-3px, 2px) skew(2deg, -2deg) rotate(3deg) scale(0.97);
        filter: blur(1px);
        opacity: 1;
    }
    70% {
        transform: translate(3px, -1px) skew(-3deg, 3deg) rotate(-1deg) scale(1);
        filter: blur(2px);
        opacity: 0.9;
    }
    80% {
        transform: translate(-1px, 1px) skew(4deg, -2deg) rotate(2deg) scale(1.02);
        filter: blur(1.5px);
        opacity: 1;
    }
    90% {
        transform: translate(2px, -2px) skew(-2deg, 4deg) rotate(-1deg) scale(0.98);
        filter: blur(2px);
        opacity: 0.8;
    }
    100% {
        transform: translate(0) skew(0deg) rotate(0deg) scale(1);
        filter: blur(0);
        opacity: 1;
    }
}

.glitching {
    animation: glitch 0.5s ease-in-out infinite;
    opacity: 0.97;
    display: inline-block;
}

.glitch-text {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    background: black;
    display: inline-block;
    animation: glitch 0.2s infinite alternate ease-in-out;
}

/* Refinamiento de la galería principal */
.gallery-composition {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 12vh 0 0 0; /* Solo padding arriba para el header */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1vw;
    background: #fff;
    box-sizing: border-box;
}

/* Ajuste de los items para llenar el espacio */
.gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Distribución específica para llenar la pantalla */
.gallery-item.pos-1 {
    grid-column: 1;
    grid-row: 1 / span 2; /* Ocupa toda la altura izquierda */
}

.gallery-item.pos-2 {
    grid-column: 2;
    grid-row: 1;
}

.gallery-item.pos-3 {
    grid-column: 3;
    grid-row: 1;
}

.gallery-item.pos-4 {
    grid-column: 2;
    grid-row: 2;
}

.gallery-item.pos-5 {
    grid-column: 3;
    grid-row: 2;
}

.gallery-item.pos-6 {
    display: none; /* Ocultamos la sexta imagen para mantener la composición limpia */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Ajustes responsive */
@media (orientation: portrait) {
    .gallery-composition {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 60vh);
        padding: 10vh 0 0 0;
        gap: 1vh;
    }

    .gallery-item.pos-1,
    .gallery-item.pos-2,
    .gallery-item.pos-3,
    .gallery-item.pos-4,
    .gallery-item.pos-5 {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Estilos para la página de detalle del proyecto */
.project-detail {
    display: flex;
    justify-content: center;
    padding: 120px 0 40px 0;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
    height: auto;
}

.project-left {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 40px;
    box-sizing: border-box;
}

.project-left h2 {
    margin: 0;
    font-size: 2.5em;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: #fff;
    flex: 0 0 auto;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Rectangular images for specific projects */
.project-2 .project-image,
.project-4 .project-image,
.project-6 .project-image {
    width: 100%;
    height: 80%;
    object-fit: cover;
    position: absolute;
    top: 10%;
    left: 0;
}

@media (orientation: portrait) {
    .v1_6 {
        max-width: 100%;
    }

    .v5_59 {
        width: 100%;
        height: 50vh;
        padding: 0;
}

.project-image {
        position: relative;
        height: 100%;
    }

    /* Adjust rectangular images for mobile */
    .project-2 .project-image,
    .project-4 .project-image,
    .project-6 .project-image {
    height: 100%;
        top: 0;
    }
}

/* Eliminar estilos conflictivos */
.project-right,
.project-description,
.project-header,
.project-info,
.project-metadata,
.project-links,
.description-text {
    display: none;
}

/* Ajustes responsive */
@media (orientation: portrait) {
    .project-detail {
        padding: 100px 0 20px 0;
    }

    .project-left {
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
    }

    .project-left h2 {
        font-size: 2em;
    }

    .project-image {
        width: 100%;
        max-width: 400px;
    }
}

/* Estilos específicos para la página About */
.about-container {
    padding: 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

.element {
    margin-bottom: 4vw;
    font-size: 1.2vw;
    line-height: 1.6;
}

.element p {
    margin-bottom: 1.5em;
    font-size: 0.8em;
    line-height: 1.6;
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 5) * 0.2s);
}

@media (orientation: portrait) {
    .element {
        font-size: 0.9em;
    }
    .element p {
        font-size: 0.9em;
    }
}

/* Estilos para la navegación */
.main-nav {
    background-color: #000000;
    color: #8A9197;
    padding: 20px 40px;
    position: fixed;
    width: calc(100% - 80px);
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    font-family: 'EB Garamond', serif;
    font-weight: 500;
}

.main-nav-right {
    display: flex;
    gap: 40px;
}

.main-nav-left {
    display: none;
}

.main-nav a {
    color: #8A9197;
    text-decoration: none;
    position: relative;
    padding: 0.2em 0.4em;
    margin: 0 -0.4em;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    font-style: normal;
    width: auto;
    min-width: 120px;
    box-sizing: border-box;
    white-space: nowrap;
    filter: blur(0);
    animation: text-focus 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               menu-wave 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--menu-index) * 0.3s);
}

/* Efecto de texto superpuesto */
.main-nav a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: rgba(251, 252, 255, 0.1);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    animation: font-switch 2s infinite;
    filter: blur(16px) !important;
    opacity: 0.25 !important;
}

@keyframes font-switch {
    0%, 45% {
        font-family: 'Astloch', serif;
        filter: blur(0);
        opacity: 1;
    }
    48%, 52% {
        filter: blur(2px);
        opacity: 0.5;
    }
    55%, 95% {
        font-family: 'Headland One', serif;
        filter: blur(0);
        opacity: 1;
    }
    98%, 100% {
        filter: blur(2px);
        opacity: 0.5;
    }
}

.main-nav a:hover {
    color: #fff;
    font-style: italic;
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: text-blur 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    filter: blur(24px) !important;
    opacity: 0.18 !important;
}

/* Ajuste para el enlace "current works" */
.main-nav a[href="index.html"] {
    min-width: 160px;
    --menu-index: 1;
}

.main-nav a[href="index.html"]::after {
    content: "current works";
}

/* Ajuste para el enlace "bio" */
.main-nav a[href="bio.html"] {
    --menu-index: 2;
}

.main-nav a[href="bio.html"]::after {
    content: "bio";
}

/* Ajuste para el enlace "contact" */
.main-nav a[href="contact.html"] {
    --menu-index: 3;
}

.main-nav a[href="contact.html"]::after {
    content: "contact";
}

/* Ajuste para el enlace scramble */
.main-nav a[href="scramble.html"] {
    --menu-index: 0;
}

.main-nav a[href="scramble.html"]::after {
    content: "scramble";
}

/* Efecto de nube para la navegación */
.main-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(251, 252, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    filter: blur(12px);
}

.main-nav a:hover {
    color: #fff;
    font-style: italic;
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: text-blur 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes text-blur {
    0% {
        filter: blur(0);
    }
    20% {
        filter: blur(2px);
    }
    100% {
        filter: blur(0);
    }
}

.main-nav a:hover::before {
    width: 180%;
    height: 220%;
    background: rgba(251, 252, 255, 0.25);
    animation: light-flicker 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes light-flicker {
    0% {
        background: rgba(251, 252, 255, 0.15);
    }
    20% {
        background: rgba(251, 252, 255, 0.3);
    }
    40% {
        background: rgba(251, 252, 255, 0.2);
    }
    60% {
        background: rgba(251, 252, 255, 0.25);
    }
    80% {
        background: rgba(251, 252, 255, 0.18);
    }
    100% {
        background: rgba(251, 252, 255, 0.25);
    }
}

/* Grid para las imágenes */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
    padding: 100px 60px 60px 60px;
    height: calc(100vh - 160px);
    width: calc(100% - 120px);
    overflow: hidden; /* Asegura que no haya scroll dentro del grid */
}

.project-link {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-link img,
.project-link .hover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.hover-video {
    opacity: 0;
    z-index: 1;
}

/* Estilos específicos para el proyecto live */
.project-live::after {
    content: 'diamantista live';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
    text-align: center;
    width: 90%;
}

.project-live:hover::after {
    opacity: 1;
}

.project-live:hover::before {
    animation: font-switch 2s infinite;
}

/* Estilos específicos para el proyecto ep */
.project-ep::after {
    content: 'diamantista - LOVE IS VITAL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.project-ep:hover::after {
    opacity: 1;
}

.project-ep:hover::before {
    animation: font-switch 2s infinite;
}

/* Efectos de hover comunes */
.project-link:hover .hover-video {
    opacity: 1;
}

.project-link:hover img {
    opacity: 0;
}

/* Posición específica para cada imagen */
.project-link:nth-child(1) img {
    object-position: center;
}

.project-link:nth-child(3) img {
    object-position: center 20%;
}

.project-link:nth-child(5) img {
    object-position: center 20%;
}

.project-link img.loaded {
    filter: blur(0) brightness(1);
}

/* Efecto de linterna al hover */
.project-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle at center, rgba(251, 252, 255, 0.3) 0%, rgba(251, 252, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    filter: blur(8px);
    opacity: 0;
}

.project-link:hover::before {
    width: 200%;
    height: 200%;
    opacity: 1;
    animation: flashlight 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.project-link:hover img {
    filter: brightness(1.2);
}

@keyframes flashlight {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Efecto de iluminación para proyectos pares (2, 4, 6) */
.project-link:nth-child(even) img.loaded {
    animation: illuminate-even 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Efecto de iluminación para proyectos impares (1, 3, 5) */
.project-link:nth-child(odd) img.loaded {
    animation: illuminate-odd 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes illuminate-even {
    0% {
        filter: brightness(1);
        box-shadow: 0 0 0 rgba(251, 252, 255, 0);
    }
    15% {
        filter: brightness(1.3);
        box-shadow: 0 0 40px rgba(251, 252, 255, 0.4);
    }
    30% {
        filter: brightness(1.1);
        box-shadow: 0 0 30px rgba(251, 252, 255, 0.3);
    }
    45% {
        filter: brightness(1.2);
        box-shadow: 0 0 35px rgba(251, 252, 255, 0.35);
    }
    60% {
        filter: brightness(1.05);
        box-shadow: 0 0 20px rgba(251, 252, 255, 0.2);
    }
    75% {
        filter: brightness(1.1);
        box-shadow: 0 0 25px rgba(251, 252, 255, 0.25);
    }
    90% {
        filter: brightness(1.02);
        box-shadow: 0 0 15px rgba(251, 252, 255, 0.15);
    }
    100% {
        filter: brightness(1);
        box-shadow: 0 0 0 rgba(251, 252, 255, 0);
    }
}

@keyframes illuminate-odd {
    0% {
        filter: brightness(1);
        box-shadow: 0 0 0 rgba(251, 252, 255, 0);
    }
    30% {
        filter: brightness(1.3);
        box-shadow: 0 0 40px rgba(251, 252, 255, 0.4);
    }
    45% {
        filter: brightness(1.1);
        box-shadow: 0 0 30px rgba(251, 252, 255, 0.3);
    }
    60% {
        filter: brightness(1.2);
        box-shadow: 0 0 35px rgba(251, 252, 255, 0.35);
    }
    75% {
        filter: brightness(1.05);
        box-shadow: 0 0 20px rgba(251, 252, 255, 0.2);
    }
    90% {
        filter: brightness(1.1);
        box-shadow: 0 0 25px rgba(251, 252, 255, 0.25);
    }
    95% {
        filter: brightness(1.02);
        box-shadow: 0 0 15px rgba(251, 252, 255, 0.15);
    }
    100% {
        filter: brightness(1);
        box-shadow: 0 0 0 rgba(251, 252, 255, 0);
    }
}

/* Refinamiento de la galería principal */
.gallery-composition {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 15vh 4vw 4vw; /* Añadido espacio arriba para el header */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 2vw;
    background: #fff;
}

/* Estilos base para los items de la galería */
.gallery-item {
    position: absolute;
    width: 405px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: blur(20px) brightness(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.gallery-item img.loaded {
    filter: blur(0) brightness(1);
    transform: scale(1);
}

/* Posiciones específicas para cada item */
.item-1 {
    top: 102px;
    left: 120px;
    height: 259px;
}

.item-2 {
    top: 387px;
    left: 120px;
    height: 318px;
}

.item-3 {
    top: 672px;
    left: 553px;
    height: 310px;
}

.item-4 {
    top: 731px;
    left: 120px;
    height: 249px;
}

.item-5 {
    top: 387px;
    left: 987px;
    height: 318px;
}

.item-6 {
    top: 102px;
    left: 553px;
    height: 544px;
}

.item-7 {
    top: 102px;
    left: 987px;
    height: 259px;
}

.item-8 {
    top: 731px;
    left: 987px;
    height: 251px;
}

/* Hover suave en las imágenes */
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Ajustes responsive */
@media (orientation: portrait) {
    .gallery-composition {
        padding-top: 12vh; /* Ajustado para móviles */
    }

    .main-nav {
        padding: 4vw;
    }
}

/* Refinamiento de las páginas de detalle */
.project-detail {
    padding: 15vh 10vw 10vw;
    max-width: none;
}

.project-header {
    margin-bottom: 8vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
}

.project-title {
    font-size: 2.5vw;
    margin-bottom: 2vw;
    grid-column: 1 / -1;
}

.project-description {
    font-size: 1.1vw;
    line-height: 1.8;
    opacity: 0.85;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2vw;
    margin-top: 6vw;
}

.project-image {
    grid-column: span 6;
    opacity: 0.95;
    transition: opacity 0.4s ease;
}

.project-image:hover {
    opacity: 1;
}

/* Refinamiento de la página About */
.container {
    margin: 15vh auto 10vw;
    padding: 0 10vw;
    max-width: 1800px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4vw;
}

.element {
    grid-column: span 6;
    font-size: 1.1vw;
    line-height: 1.8;
    opacity: 0.85;
}

.element p {
    margin-bottom: 2em;
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 5) * 0.2s);
}

@media (orientation: portrait) {
    .element {
        font-size: 0.9em;
    }
    .element p {
        font-size: 0.9em;
    }
}

/* Refinamiento de la página Writings */
.writings-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4vw;
}

.writing-category {
    grid-column: span 6;
}

.writing-category h2 {
    font-size: 1.8vw;
    margin-bottom: 3vw;
    opacity: 0.9;
}

.writing-item {
    margin-bottom: 4vw;
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.writing-item:hover {
    opacity: 1;
}

.writing-item h3 {
    margin-top: 1em;
    margin-bottom: 0.3em;
    font-family: 'EB Garamond', 'Garamond', serif;
    position: relative;
    overflow: hidden;
    color: #5A5F6B;
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 2) * 0.2s);
}

.writing-item p {
    margin: 0;
    opacity: 0.7;
    font-family: 'Martel', serif;
    line-height: 1.6;
    margin-bottom: 1em;
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 3) * 0.2s);
}

.writing-item a.read-more {
    color: #5A5F6B;
    text-decoration: none;
    display: inline-block;
    margin-top: 1em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 0.2em 0.4em;
    margin: 1em -0.4em 0;
    min-width: 1.2em;
    text-align: center;
}

.writing-item a.read-more:hover {
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Restaurar efecto de nube */
.writing-item a.read-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(213, 74, 58, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    filter: blur(8px);
}

.writing-item a.read-more:hover::before {
    width: 120%;
    height: 150%;
    background: rgba(213, 74, 58, 0.07);
}

/* Ajustes responsive más elegantes */
@media (orientation: portrait) {
    .main-nav {
        padding: 6vw 4vw;
    }

    .project-header {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 8vw;
    }

    .project-description {
        font-size: 4vw;
	}

	.element {
        grid-column: span 12;
        font-size: 4vw;
    }

    .writings-grid {
        gap: 8vw;
    }

    .writing-category {
        grid-column: span 12;
    }

    .writing-category h2 {
        font-size: 6vw;
    }
}

/* Refinamiento del efecto scramble */
.scramble {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.scramble.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glitching {
    opacity: 0.95;
    display: inline-block;
    mix-blend-mode: difference;
}

/* Nueva disposición de la galería */
.gallery-grid {
    width: 100%;
    padding-top: 80px; /* Espacio para el nav */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #fff;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Contenedor principal */
.gallery-container {
    width: 100%;
    height: 982px;
    background: rgba(255,255,255,1);
    position: relative;
    overflow: hidden;
}

.v6_3 {
    width: 100%;
    height: 982px;
    background-color: black;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Estilos para las imágenes */
.v6_13, .v6_14, .v6_15, .v6_16, .v6_17, .v6_18, .v6_19, .v6_20 {
    width: 405px;
    position: absolute;
    overflow: hidden;
    display: block;
    mix-blend-mode: normal;
}

.v6_13 {
    height: 259px;
    top: 102px;
    left: 120px;
}

.v6_14 {
    height: 318px;
    top: 387px;
    left: 120px;
}

.v6_18 {
    height: 544px;
    top: 102px;
    left: 553px;
}

.v6_19 {
    height: 259px;
    top: 102px;
    left: 987px;
}

.v6_17 {
    height: 318px;
    top: 387px;
    left: 987px;
}

.v6_16 {
    height: 249px;
    top: 731px;
    left: 120px;
}

.v6_15 {
    height: 310px;
    top: 672px;
    left: 553px;
}

.v6_20 {
    height: 251px;
    top: 731px;
    left: 987px;
}

/* Estilos para las imágenes dentro de los contenedores */
.v6_13 img, .v6_14 img, .v6_15 img, .v6_16 img, 
.v6_17 img, .v6_18 img, .v6_19 img, .v6_20 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para la página de detalle */
.v6_58 {
    width: 100%;
    height: 982px;
    background: rgba(255,255,255,1);
    position: relative;
    overflow: hidden;
}

/* Estilos para la información del proyecto */
.project-info {
    width: auto;
    position: absolute;
    top: 102px;
    left: 120px;
    opacity: 1;
    text-align: left;
}

.project-title {
    font-family: 'EB Garamond', 'Garamond', serif;
    font-size: 2.5vw;
    margin-bottom: 2vw;
    color: #5A5F6B;
}

.project-metadata {
    font-family: 'Biryani', sans-serif;
    font-size: 1.1vw;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 3vw;
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 1) * 0.2s);
}

.project-links {
    margin-top: 2vw;
}

.project-links a {
    display: block;
    font-family: 'Biryani', sans-serif;
    font-size: 1.1vw;
    color: #fff;
    margin-bottom: 1em;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 1.2em;
    text-align: center;
    filter: blur(0);
    animation: text-focus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 4) * 0.2s);
}

.project-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    font-family: 'EB Garamond', serif;
    font-style: italic;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Estilos para la imagen del proyecto */
.project-image {
    width: 609px;
    height: 611px;
    position: absolute;
    top: 369px;
    left: 783px;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: blur(20px) brightness(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.project-image img.loaded {
    filter: blur(0) brightness(1);
    transform: scale(1);
}

.project-image:hover img {
    transform: scale(1.02);
}

/* Estilos para la descripción del proyecto */
.project-description {
    width: 609px;
    position: absolute;
    top: 102px;
    left: 783px;
    font-family: 'Biryani', sans-serif;
    font-size: 1.1vw;
    line-height: 1.8;
    opacity: 0.85;
}

.description-text {
    margin-bottom: 2em;
}

/* Animaciones y efectos */
.scramble {
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
}

.scramble.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 1s ease, visibility 1s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ajustes responsive */
@media (orientation: portrait) {
    .project-title {
        font-size: 8vw;
    }

    .project-metadata,
    .project-links a,
    .project-description {
        font-size: 4vw;
    }

    .project-image {
        position: relative;
        width: 100%;
        height: auto;
        margin: 4vw 0;
        left: 0;
        top: 0;
    }

    .project-description {
        position: relative;
        width: 100%;
        left: 0;
        padding: 4vw;
    }
}

/* Estilos responsive para móvil */
@media (max-width: 768px) {
    /* Navegación móvil */
    .main-nav {
        padding: 20px 15px;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
    }

    .main-nav a {
        font-size: 16px;
    }

    .main-nav-right {
        gap: 20px;
    }

    /* Layout de proyecto */
    .project-detail {
        padding: 80px 15px 40px;
        flex-direction: column;
        min-height: auto;
    }

    /* Columna izquierda */
    .project-left {
        width: 100%;
        margin-bottom: 40px;
    }

    .project-left h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .writing-item {
        margin-bottom: 30px;
    }

    .writing-item h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .writing-item p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    /* Enlaces */
    .writing-item a.read-more {
        display: inline-block;
        margin: 5px 0;
        padding: 8px 0;
        font-size: 16px;
    }

    /* Columna derecha */
    .project-right {
        width: 100%;
        margin-left: 0;
    }

    /* Descripción del proyecto */
    .project-description {
        margin-bottom: 30px;
    }

    .project-description p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Imagen del proyecto */
    .project-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 40px;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Ajustes para la galería en index */
    .v6_3 {
        padding: 80px 15px 40px;
    }

    [class^="v6_"] {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-bottom: 20px;
    }

    [class^="v6_"] img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    .project-image,
    .image-section {
        display: none !important;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 375px) {
    .main-nav a {
        font-size: 14px;
    }

    .project-left h2 {
        font-size: 28px;
    }

    .writing-item h3,
    .writing-item p,
    .writing-item a.read-more,
    .project-description p {
        font-size: 14px;
    }
}

.writings-grid h2,
.writings-grid h3,
.writings-grid p,
.writings-grid a {
    color: #8A9197;
}

/* Aseguramos que todos los textos sean legibles sobre fondo negro */
.project-left h2,
.project-left h3,
.project-left p,
.writing-item p,
.writing-item a {
    color: #8A9197;
}

/* Ajuste para el texto de navegación */
.main-nav a.glitch-text {
    font-size: 1.2rem;
    background: transparent;
    color: #8A9197;
    animation: glitch 0.2s infinite alternate ease-in-out;
    text-shadow: 0 0 1px rgba(251, 252, 255, 0.1);
}

.main-nav a.glitch-text:hover {
    color: #FBFCFF;
    font-style: italic;
    text-shadow: 0 0 2px rgba(251, 252, 255, 0.2);
}

/* Efecto de blur ondulante para todo el texto */
h1, h2, h3, h4, h5, h6, p, a, span {
    filter: blur(0);
    animation: text-focus 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--text-index, 0) * 0.15s);
}

/* Ajuste de índices para diferentes secciones */
.project-detail * {
    --text-index: 1;
}

.writing-item * {
    --text-index: 2;
}

.writing-category * {
    --text-index: 3;
}

.contact-section * {
    --text-index: 4;
}

/* Ajuste para elementos específicos */
.project-title {
    --text-index: 0;
}

.project-description {
    --text-index: 1;
}

.writing-item h3 {
    --text-index: 2;
}

.writing-item p {
    --text-index: 3;
}

/* Ajuste para enlaces */
a {
    --text-index: 4;
}

/* Ajuste para la navegación */
.main-nav a {
    --menu-index: 5;
}

/* Ajuste para elementos scramble */
.scramble {
    --text-index: 6;
}

@keyframes text-focus {
    0% {
        filter: blur(1px);
        opacity: 0.85;
    }
    20% {
        filter: blur(0.5px);
        opacity: 0.9;
    }
    40% {
        filter: blur(0.2px);
        opacity: 0.95;
    }
    60% {
        filter: blur(0.1px);
        opacity: 0.97;
    }
    80% {
        filter: blur(0.05px);
        opacity: 0.99;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

.main-nav a span {
    display: inline-block;
    transform: translateX(0);
    animation: letter-wave 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--letter-index) * 0.05s);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de repulsión magnética al hover */
.main-nav a:hover span {
    animation: none;
}

/* Current works */
.main-nav a[href="index.html"]:hover span:nth-child(1) { transform: translateX(-8px); }
.main-nav a[href="index.html"]:hover span:nth-child(2) { transform: translateX(-6px); }
.main-nav a[href="index.html"]:hover span:nth-child(3) { transform: translateX(-4px); }
.main-nav a[href="index.html"]:hover span:nth-child(4) { transform: translateX(-2px); }
.main-nav a[href="index.html"]:hover span:nth-child(5) { transform: translateX(0); }
.main-nav a[href="index.html"]:hover span:nth-child(6) { transform: translateX(2px); }
.main-nav a[href="index.html"]:hover span:nth-child(7) { transform: translateX(4px); }
.main-nav a[href="index.html"]:hover span:nth-child(8) { transform: translateX(6px); }
.main-nav a[href="index.html"]:hover span:nth-child(9) { transform: translateX(8px); }
.main-nav a[href="index.html"]:hover span:nth-child(10) { transform: translateX(6px); }
.main-nav a[href="index.html"]:hover span:nth-child(11) { transform: translateX(4px); }
.main-nav a[href="index.html"]:hover span:nth-child(12) { transform: translateX(2px); }

/* Bio */
.main-nav a[href="bio.html"]:hover span:nth-child(1) { transform: translateX(-6px); }
.main-nav a[href="bio.html"]:hover span:nth-child(2) { transform: translateX(0); }
.main-nav a[href="bio.html"]:hover span:nth-child(3) { transform: translateX(6px); }

/* Contact */
.main-nav a[href="contact.html"]:hover span:nth-child(1) { transform: translateX(-8px); }
.main-nav a[href="contact.html"]:hover span:nth-child(2) { transform: translateX(-6px); }
.main-nav a[href="contact.html"]:hover span:nth-child(3) { transform: translateX(-4px); }
.main-nav a[href="contact.html"]:hover span:nth-child(4) { transform: translateX(-2px); }
.main-nav a[href="contact.html"]:hover span:nth-child(5) { transform: translateX(0); }
.main-nav a[href="contact.html"]:hover span:nth-child(6) { transform: translateX(2px); }
.main-nav a[href="contact.html"]:hover span:nth-child(7) { transform: translateX(4px); }

/* Ajuste para el enlace scramble */
.main-nav a.scramble:hover span {
    transform: translateX(0);
}

/* Estilos para los enlaces de contacto */
.contact-link {
    color: #fff !important;
    text-decoration: none;
    font-family: 'EB Garamond', serif;
    font-style: normal;
    font-size: 0.95em;
    transition: none;
    position: relative;
}

.contact-link:hover {
    color: #fff !important;
    opacity: 0.8;
    font-style: normal !important;
}

.contact-link::after {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: rgba(251, 252, 255, 0.1);
    white-space: nowrap;
    opacity: 0;
    transition: none;
    z-index: -1;
    text-transform: lowercase;
}

.contact-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    animation: font-switch 2s infinite;
}

/* Efecto de nube para los enlaces de contacto */
.contact-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(251, 252, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: none;
    z-index: -1;
    filter: blur(12px);
}

.contact-link:hover::before {
    width: 180%;
    height: 220%;
    background: rgba(251, 252, 255, 0.25);
    animation: light-flicker 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Estilos específicos para el proyecto licitir */
.project-licitir::after {
    content: 'licitir live';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.project-licitir:hover::after {
    opacity: 1;
}

.project-licitir:hover::before {
    animation: font-switch 2s infinite;
}

/* Estilos específicos para el proyecto licitir ep */
.project-licitir-ep::after {
    content: 'licitir - Tomorrow we dream of sleeping in a garden of camellias';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 2.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
    text-align: center;
    max-width: 90%;
}

.project-licitir-ep:hover::after {
    opacity: 1;
}

.project-licitir-ep:hover::before {
    animation: font-switch 2s infinite;
}

/* Estilos específicos para el proyecto pastoral */
.project-pastoral::after {
    content: 'pastoral live';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.project-pastoral:hover::after {
    opacity: 1;
}

.project-pastoral:hover::before {
    animation: font-switch 2s infinite;
}

/* Estilos específicos para el proyecto pastoral ep */
.project-pastoral-ep::after {
    content: 'pastoral ep';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.project-pastoral-ep:hover::after {
    opacity: 1;
}

.project-pastoral-ep:hover::before {
    animation: font-switch 2s infinite;
}

/* Efecto de transición eléctrica al hacer click en proyectos */
.electric-transition {
    animation: electric-blur 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes electric-blur {
    0% {
        filter: blur(0);
        opacity: 1;
    }
    25% {
        filter: blur(12px);
        opacity: 0.6;
    }
    50% {
        filter: blur(8px);
        opacity: 0.8;
    }
    75% {
        filter: blur(4px);
        opacity: 0.9;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

/* Efecto de parpadeo eléctrico */
.electric-flicker {
    animation: electric-flicker 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes electric-flicker {
    0% {
        filter: brightness(1);
    }
    33% {
        filter: brightness(1.2);
    }
    66% {
        filter: brightness(0.9);
    }
    100% {
        filter: brightness(1);
    }
}

.element.data h2 {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 1rem;
}

.element.data p {
    margin-bottom: 1.5rem;
    font-size: 0.8em;
    line-height: 1.4;
}

.element.data .divider {
    font-family: serif;
    color: #666;
    line-height: 1;
    margin: 2rem 0;
    text-align: center;
}

.project-text {
    font-family: 'EB Garamond', serif;
    font-size: 0.8em;
    line-height: 1.4;
    color: #8A9197;
    margin-top: 20px;
    text-align: left;
}

.project-text p {
    margin-bottom: 10px;
}

.project-text p:last-child {
    margin-bottom: 0;
}

@media (orientation: portrait) {
    .project-text {
        margin-top: 1rem;
        font-size: 0.9em;
        padding-left: 0;
        text-align: left;
    }
}

.v1_6 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.v5_57 {
    width: 50%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.v5_59 {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    background: transparent;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.project-text {
    margin-top: 2rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.2em;
    line-height: 1.6;
    color: #8A9197;
}

.project-text p {
    margin-bottom: 1.5rem;
}

.project-text p:last-child {
    margin-bottom: 0;
}

@media (orientation: portrait) {
    .v5_59 {
        width: 100%;
        height: 50vh;
        padding: 0;
    }

    .project-image {
        position: relative;
        height: 100%;
    }
}

/* Square image for project 4 */
.project-4 .v5_59 {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    background: transparent;
}

.project-4 .project-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (orientation: portrait) {
    .project-4 .v5_59 {
        width: 100%;
        height: 50vh;
        padding: 0;
    }

    .project-4 .project-image {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Estilos base para el texto del proyecto */
.project-text {
    font-family: 'EB Garamond', serif;
    font-size: 1em;
    line-height: 1.4;
    color: #8A9197;
    margin-top: 20px;
}

.project-text p {
    margin-bottom: 10px;
}

.project-text p:last-child {
    margin-bottom: 0;
}

/* Estilos específicos para el contenedor del proyecto */
.v1_6 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.v5_57 {
    width: 50%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.v5_59 {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    background: transparent;
}

@media (orientation: portrait) {
    .project-text {
        margin-top: 1rem;
        font-size: 0.9em;
        padding-left: 0;
    }

    .v5_59 {
        width: 100%;
        height: 50vh;
        padding: 0;
    }
}

/* Estilos para el contenedor del proyecto */
.project-container {
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-title {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: #fff;
    font-size: 2em;
    margin: 0;
    text-align: center;
}

.media-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.image-section, .video-section {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.project-video {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Ajustes responsive */
@media (orientation: portrait) {
    .project-container {
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    .media-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-section, .video-section {
        height: 50vh;
    }

    .project-title {
        font-size: 1.8em;
    }
}

.video-section {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.project-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    aspect-ratio: 16/9;
}

/* Ajustes responsive */
@media (orientation: portrait) {
    .video-section {
        padding: 10px;
    }
}

.main-nav a::after {
    filter: blur(8px) !important;
    opacity: 0.35 !important;
}

.main-nav a:hover::after {
    filter: blur(12px) !important;
    opacity: 0.22 !important;
}

.element.data p {
    margin-bottom: 1.5rem;
    font-size: 0.8em;
    line-height: 1.4;
}

@media (orientation: portrait) {
    .element.data p {
        font-size: 0.9em;
    }
}

/* --- MENÚ MÓVIL CENTRALIZADO PARA TODAS LAS PÁGINAS --- */
@media (max-width: 768px) {
    .main-nav {
        width: 100vw !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 100 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        background: #000 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .main-nav-right {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100vw !important;
        height: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        border: none !important;
        background: none !important;
        margin: 0 !important;
    }
    .main-nav a {
        color: #8A9197 !important;
        font-family: 'EB Garamond', serif !important;
        font-size: clamp(0.85em, 3.5vw, 1.1em) !important;
        font-style: normal !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: none !important;
        box-shadow: none !important;
        filter: none !important;
        outline: none !important;
        text-align: center !important;
        line-height: 60px !important;
        white-space: nowrap !important;
        padding: 0.2em 0.3em !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
    }
    .main-nav a:hover,
    .main-nav a:active {
        color: #fff !important;
        font-style: italic !important;
        transition: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    .main-nav-left { 
        display: none !important; 
    }
}

@media (max-width: 512px) {
    .main-nav-right {
        padding: 0 calc(12px + (100vw - 512px) * 0.02) !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100vw !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }
    .main-nav a {
        font-size: clamp(1.02em, 3.8vw, 1.28em) !important;
        padding: 0.2em 0.3em !important;
        white-space: nowrap !important;
        min-width: auto !important;
        width: auto !important;
        margin: 0 !important;
    }
    .main-nav a[href="index.html"] {
        text-align: left !important;
        margin-left: calc(6px + (100vw - 512px) * 0.01) !important;
    }
    .main-nav a[href="bio.html"] {
        text-align: center !important;
    }
    .main-nav a[href="contact.html"] {
        text-align: right !important;
        margin-right: calc(6px + (100vw - 512px) * 0.01) !important;
    }
}

@media (max-width: 360px) {
    .main-nav-right {
        padding: 0 calc(8px + (100vw - 360px) * 0.02) !important;
    }
    .main-nav a {
        font-size: clamp(0.95em, 3.4vw, 1.15em) !important;
        padding: 0.2em 0.25em !important;
    }
    .main-nav a[href="index.html"] {
        margin-left: calc(4px + (100vw - 360px) * 0.01) !important;
    }
    .main-nav a[href="contact.html"] {
        margin-right: calc(4px + (100vw - 360px) * 0.01) !important;
    }
}

@media (max-width: 768px) {
    /* Proyecto 2, 4 y 6: texto ocupa toda la pantalla */
    .project-2 .v1_6,
    .project-4 .v1_6,
    .project-6 .v1_6 {
        flex-direction: column !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        height: auto !important;
        align-items: stretch !important;
    }
    .project-2 .v5_57,
    .project-4 .v5_57,
    .project-6 .v5_57 {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 24px 6vw 0 6vw !important;
        box-sizing: border-box !important;
        align-items: flex-start !important;
    }
    .project-2 .project-title,
    .project-4 .project-title,
    .project-6 .project-title {
        font-size: 1.2em !important;
        margin-bottom: 1em !important;
        text-align: left !important;
    }
    .project-2 .project-text,
    .project-4 .project-text,
    .project-6 .project-text {
        font-size: 1.1em !important;
        line-height: 1.7 !important;
        color: #8A9197 !important;
        text-align: left !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Ocultar la sección derecha (imagen) en proyectos 2, 4 y 6 */
    .project-2 .v5_59,
    .project-4 .v5_59,
    .project-6 .v5_59 {
        display: none !important;
    }
}

@media (min-width: 769px) {
    /* Títulos principales */
    h1, .project-title, .element.data h2 {
        font-size: 2em !important;
    }
    /* Subtítulos */
    h2, h3, .writing-category h2 {
        font-size: 1.3em !important;
    }
    /* Texto normal y bio */
    p, .element.data p, .project-text {
        font-size: 1em !important;
    }
    /* Enlaces secundarios, metadatos, detalles */
    .contact-link, .project-metadata, .project-links a, .writing-item a.read-more {
        font-size: 0.95em !important;
    }
}

@media (max-width: 768px) {
    /* Títulos principales */
    h1, .project-title, .element.data h2 {
        font-size: 1.3em !important;
    }
    /* Subtítulos */
    h2, h3, .writing-category h2 {
        font-size: 1.1em !important;
    }
    /* Texto normal y bio */
    p, .element.data p, .project-text {
        font-size: 1em !important;
    }
    /* Enlaces secundarios, metadatos, detalles */
    .contact-link, .project-metadata, .project-links a, .writing-item a.read-more {
        font-size: 0.95em !important;
    }
}

.project-1 .project-title,
.project-3 .project-title,
.project-5 .project-title {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.video-section iframe.project-video {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 180px;
    display: block;
    object-fit: contain;
    aspect-ratio: 16/9;
}

.project-text, .project-text p {
    font-size: 1em !important;
    line-height: 1.7;
    color: #8A9197;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: black;
        padding: 1em 0;
        z-index: 1000;
        display: flex;
        justify-content: center;
        gap: 1.5em;
        margin: 0;
        border: none;
    }

    .menu a {
        color: white;
        text-decoration: none;
        font-size: 1em;
        transition: color 0.3s ease;
    }

    .menu a:hover {
        color: white;
    }

    .menu a::after {
        display: none;
    }

    .menu a::before {
        display: none;
    }

    .menu a span {
        display: none;
    }

    .menu a:hover span {
        display: none;
    }
}

@media (max-width: 768px) {
  html, body {
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto !important;
  }
  .project-1 .project-container,
  .project-3 .project-container,
  .project-5 .project-container {
    min-height: 100vh;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    padding-top: 60px; /* altura del menú fijo */
  }
  .project-1 .media-container,
  .project-3 .media-container,
  .project-5 .media-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    height: 100%;
    gap: 0;
  }
  .project-1 .video-section,
  .project-3 .video-section,
  .project-5 .video-section {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    min-height: 220px;
    max-height: 70vh;
    width: 100%;
    background: #000;
    margin: 0;
    padding: 0;
  }
  .project-1 .project-video,
  .project-3 .project-video,
  .project-5 .project-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .project-link::after {
    display: block !important;
    content: attr(data-title);
    position: absolute;
    top: 10px;
    left: 10px;
    color: #8A9197;
    font-family: 'EB Garamond', serif;
    font-style: normal;
    font-size: clamp(0.8em, 1.5vw, 1.2em);
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s;
    z-index: 3;
    pointer-events: none;
    width: 90%;
    text-align: left;
    line-height: 1.2;
    animation: none;
  }
  .project-link.visible::after {
    opacity: 1;
    font-style: italic;
    color: #fff;
    animation: scramble-text 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@keyframes scramble-text {
  0% {
    opacity: 0.2;
    filter: blur(2px);
    letter-spacing: 0.2em;
  }
  40% {
    opacity: 0.7;
    filter: blur(1px);
    letter-spacing: 0.1em;
  }
  80% {
    opacity: 1;
    filter: blur(0.2px);
    letter-spacing: 0.02em;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0;
  }
}

@media (max-width: 768px) {
  .project-caption {
    display: block !important;
    font-family: 'EB Garamond', serif;
    font-style: italic !important;
    color: #fff !important;
    font-size: 1.05em;
    text-align: left;
    margin: 2px 0 0 0;
    padding-left: 2px;
    letter-spacing: 0.01em;
    line-height: 1.3;
    font-weight: 400;
    width: 100%;
    max-width: 100%;
    word-break: break-word;
  }
}

.project-caption {
  display: none;
}

.main-nav a.flash::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  opacity: 0.95;
  pointer-events: none;
  border-radius: 6px;
  z-index: 10;
  animation: nav-flash 0.22s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes nav-flash {
  0% { opacity: 0.95; }
  80% { opacity: 0.7; }
  100% { opacity: 0; }
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.25) 30%, rgba(255,255,255,0) 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.project-1 .project-title,
.project-1 .project-container,
.project-1 .media-container,
.project-1 .video-section,
.project-1 .project-video,
.project-1 .v5_59,
.project-1 .image-section {
  background: none !important;
}

.project-1 .v5_59::before,
.project-1 .v5_59::after,
.project-1 .project-container::before,
.project-1 .project-container::after,
.project-1 .media-container::before,
.project-1 .media-container::after,
.project-1 .video-section::before,
.project-1 .video-section::after,
.project-1 .image-section::before,
.project-1 .image-section::after {
  display: none !important;
  background: none !important;
}

.project-1 .image-section {
  background: transparent !important;
}

.project-1 .v5_59,
.project-3 .v5_59,
.project-5 .v5_59 {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .project-1 .project-container,
  .project-2 .project-container,
  .project-3 .project-container,
  .project-4 .project-container {
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 60px !important;
  }

  .project-1 .media-container,
  .project-2 .media-container,
  .project-3 .media-container,
  .project-4 .media-container {
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .project-1 .video-section,
  .project-2 .video-section,
  .project-3 .video-section,
  .project-4 .video-section {
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
  }

  .project-1 .project-video,
  .project-2 .project-video,
  .project-3 .project-video,
  .project-4 .project-video {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
  }
}

@media (max-width: 768px) {
  .project-link::before,
  .project-link::after,
  .project-live::before,
  .project-live::after,
  .project-ep::before,
  .project-ep::after,
  .project-licitir::before,
  .project-licitir::after,
  .project-licitir-ep::before,
  .project-licitir-ep::after,
  .project-pastoral::before,
  .project-pastoral::after,
  .project-pastoral-ep::before,
  .project-pastoral-ep::after {
    display: none !important;
  }

  .project-link:hover img,
  .project-link:hover .hover-video,
  .project-live:hover::before,
  .project-live:hover::after,
  .project-ep:hover::before,
  .project-ep:hover::after,
  .project-licitir:hover::before,
  .project-licitir:hover::after,
  .project-licitir-ep:hover::before,
  .project-licitir-ep:hover::after,
  .project-pastoral:hover::before,
  .project-pastoral:hover::after,
  .project-pastoral-ep:hover::before,
  .project-pastoral-ep:hover::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .project-link img,
  .project-link .hover-video {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}