/* =========================================== */
/* ===         ARCHIVO MAIN.CSS FINAL        === */
/* =========================================== */

/* ------------------- */
/* 1. VARIABLES Y GLOBALES */
/* ------------------- */
:root {
    --color-background: #FFFFFF;
    --color-text: #000000;
    --color-white: #FFFFFF;
    --color-accent-1: #EAC9C1;
    --color-accent-strong: #E53A7A;
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #a0a0a0;
    --font-brand: 'Poppins', sans-serif;
    --font-descriptor: 'Dancing Script', cursive;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    padding-top: 90px; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--color-accent-1);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ------------------- */
/* 2. HEADER Y MENÚ MÓVIL (CORREGIDO) */
/* ------------------- */
/* --- Animación de entrada para el header --- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-header {
    padding: 15px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    /* Estado inicial transparente */
    background-color: transparent;
    border-bottom: 1px solid transparent;
    /* Transición suave para los cambios */
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, transform 0.4s ease-in-out;
}

.main-header.is-scrolled {
    /* Estado al hacer scroll con efecto de vidrio */
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Compatibilidad con Safari */
    border-bottom: 1px solid rgba(238, 238, 238, 0.5);
}

.main-header.is-hidden {
    /* Oculta el header deslizándolo hacia arriba */
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo-image {
    max-width: 100px;
    margin: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.main-nav {
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-white); /* Color inicial blanco para contraste sobre el hero */
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.4s ease;
    /* Sombra para legibilidad sobre imágenes */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-strong);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-white); /* Color inicial blanco */
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* --- Colores de los elementos del header al hacer scroll --- */
.main-header.is-scrolled .nav-links a {
    color: var(--color-text);
    text-shadow: none;
}
.main-header.is-scrolled .hamburger-icon,
.main-header.is-scrolled .hamburger-icon::before,
.main-header.is-scrolled .hamburger-icon::after {
    background-color: var(--color-text);
}

.hamburger-icon {
    top: 10px;
}

.hamburger-icon::before {
    top: -10px;
}

.hamburger-icon::after {
    top: 10px;
}

.menu-toggle.is-active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.is-active .hamburger-icon::before {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-icon::after {
    transform: translateY(-10px) rotate(-45deg);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    /* Estado inicial: oculto y ligeramente desplazado hacia arriba */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--color-white);
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 1100;
    /* Transición suave para la animación */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown:hover .dropdown-menu {
    /* Estado visible al pasar el mouse */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-text); /* Aseguramos texto oscuro sobre fondo blanco */
    text-shadow: none; /* Quitamos la sombra de texto heredada */
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* --- Animaciones de carga para el menú de escritorio --- */
@media (min-width: 993px) {
    .logo-container {
        opacity: 0;
        animation: fadeInDown 0.5s ease-out 0.5s forwards;
    }

    .nav-links > li {
        opacity: 0;
        animation: fadeInDown 0.5s ease-out forwards;
    }

    .nav-links > li:nth-child(1) {
        animation-delay: 0.7s;
    }
    .nav-links > li:nth-child(2) {
        animation-delay: 0.8s;
    }
    .nav-links > li:nth-child(3) {
        animation-delay: 0.9s;
    }
}

/* ------------------- */
/* 3. HERO CAROUSEL (CORREGIDO) */
/* ------------------- */
/* --- Keyframes para la animación de pulso del botón --- */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}
.hero-section {
    /* Anulamos el padding-top del body para que el hero ocupe toda la pantalla */
    margin-top: -90px;
    position: relative;
    width: 100%;
    /* ESTA ES LA REGLA CLAVE: Altura mínima para desktop */
    min-height: 700px;
    /* También usamos vh para que en pantallas más altas, se siga viendo bien */
    height: 95vh;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Evita que cualquier elemento se desborde */
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Asegura que el carrusel llene el .hero-section */
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* La imagen cubre todo el espacio sin deformarse */
    z-index: 1;
    /* Añadimos una transición larga para el efecto de zoom */
    transition: transform 8s ease-out;
}

/* Cuando la diapositiva está activa, aplicamos un zoom lento y sutil */
.swiper-slide-active .hero-bg-img {
    transform: scale(1.1);
}

/* Capa oscura sobre la imagen para legibilidad del texto */
.hero-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

/* --- Animación para el contenido del Hero --- */
.hero-title,
.hero-subtitle,
.hero-cta {
    /* Estado inicial: invisible y desplazado hacia abajo */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s; /* Aparece primero */
}

.swiper-slide-active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* Aparece después del título */
}

.hero-title {
    font-family: var(--font-brand);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta {
    display: inline-block;
    background-color: var(--color-accent-strong);
    color: var(--color-white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-brand);
    font-weight: 700;
    /* La transición ya está definida arriba */
}

.hero-cta:hover {
    transform: scale(1.05) translateY(0); /* Mantenemos el translateY(0) para que no salte */
}

.swiper-slide-active .hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s; /* Aparece al final */
    /* Animación de pulso para llamar la atención */
    animation: pulse-glow 2.5s infinite;
    animation-delay: 1.5s; /* Inicia después de la animación de entrada */
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    width: 12px;
    height: 12px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent-strong);
}

/* ------------------- */
/* 4. CATEGORY SHOWCASE (CORREGIDO) */
/* ------------------- */
.category-showcase {
    padding: 80px 5%;
    position: static;
    margin-top: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 5;
    text-decoration: none;
    color: var(--color-white);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.category-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.category-card-title h3 {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
}

/* ------------------- */
/* 5. VIDEO SHOWCASE */
/* ------------------- */
.video-showcase {
    padding: 80px 5%;
    background-color: rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
}

.video-showcase .swiper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 40px;
}

.video-showcase .swiper-slide {
    opacity: 0.5;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.video-showcase .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
}

.tiktok-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 40%, transparent 80%, rgba(0, 0, 0, 0.4) 100%);
    cursor: pointer; /* Indica que el overlay es interactivo */
}

.unmute-button {
    align-self: flex-end;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Botón de Play/Pausa --- */
.play-pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* No se puede hacer clic cuando está invisible */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.play-pause-button .fa-play {
    margin-left: 4px; /* Ajuste visual para centrar el icono de play */
}

/* Mostrar el botón cuando el video está pausado */
.video-card.is-paused .play-pause-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.video-card-cta {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 5;
    cursor: pointer;
}

.video-progress-fill {
    width: 0;
    height: 100%;
    background-color: var(--color-accent-strong);
    /* Usamos una transición corta para que la barra no se sienta lenta */
    transition: width 0.05s linear;
}

.video-card-cta h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.video-card-cta a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.video-showcase .swiper-button-prev,
.video-showcase .swiper-button-next {
    color: var(--color-text);
}

/* ------------------- */
/* 6. FOOTER Y SECCIONES RELACIONADAS */
/* ------------------- */
.location-section {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--color-accent-1);
}

.location-content,
.location-map {
    width: 50%;
    min-height: 400px;
}

.location-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.location-title {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.directions-button {
    display: inline-block;
    background-color: var(--color-accent-strong);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.directions-button:hover {
    transform: scale(1.05);
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

.footer-cta-container {
    background-color: var(--color-text);
    color: var(--color-white);
    text-align: center;
    padding: 60px 20px;
}

.footer-cta-container h2 {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 2.5rem;
}

.footer-cta-container p {
    font-weight: 300;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent-1);
    color: var(--color-text);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-brand);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-button:active {
    background-color: var(--color-accent-strong);
    transform: scale(0.98);
}

.footer-bottom {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 30px 5%;
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--color-white);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--color-accent-strong);
    transform: translateY(-3px);
}

/* ------------------- */
/* 7. RESPONSIVE */
/* ------------------- */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    .header-container {
        justify-content: center; /* Centramos el logo en móvil */
    }
    .main-nav {
        display: none;
    }

    .main-nav { /* El selector .main-header .main-nav ya no es necesario que sea tan específico */
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 100px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        margin-top: 0;
    }

    .main-nav.is-active {
        display: block;
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-links a:hover::after {
        background-color: var(--color-accent-strong);
    }

    .location-content,
    .location-map {
        width: 100%;
        min-height: 300px;
    }

    .dropdown:hover .dropdown-menu {
        /* Desactivamos el hover de escritorio en móvil */
        display: none; 
    }

    /* Convertimos el submenú en un acordeón animado */
    .dropdown .dropdown-menu {
        display: block; /* Debe estar en el flujo del documento para animar la altura */
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        background-color: #f8f8f8;
        max-height: 0;
        overflow: hidden;
        padding: 0 10px 0 30px;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    }

    .dropdown.is-open .dropdown-menu {
        max-height: 300px; /* Altura aprox. para 6 elementos */
        padding: 10px 0 10px 30px;
    }

    .dropdown-menu li a {
        text-align: left; /* Alineamos a la izquierda en móvil */
        padding: 8px 20px;
        font-size: 1.2rem;
    }

    /* Rotar la flecha en móvil al hacer clic */
    .dropdown.is-open .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ------------------- */
/* 8. CABECERA DE CATEGORÍA */
/* ------------------- */
.category-header {
    padding: 60px 5%;
    background-color: var(--color-accent-1); /* Usamos el rosa pálido */
    text-align: center;
}

.category-header h1 {
    font-family: var(--font-brand);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.category-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 10px auto 0;
}

/* ------------------- */
/* 9. GALERÍA DE REVISTA */
/* ------------------- */
.gallery-section {
    padding: 80px 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Modificadores de TAMAÑO Y PROPORCIÓN */
.gallery-item.item-landscape {
    aspect-ratio: 16 / 9; /* Proporción panorámica */
    grid-column: span 2;  /* Ocupa dos columnas */
}
.gallery-item.item-portrait {
    aspect-ratio: 4 / 5; /* Proporción vertical */
}
.gallery-item.item-square {
    aspect-ratio: 1 / 1; /* Proporción cuadrada */
}

/* Overlay que aparece al pasar el mouse */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1));
    color: var(--color-white);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.gallery-item-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
}
.gallery-item-overlay .item-description {
    font-weight: 300;
    margin: 5px 0 15px;
}
.gallery-item-overlay .item-code {
    font-weight: 700;
    background-color: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

.cta-button-small {
    background-color: var(--color-accent-strong);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    align-self: flex-start;
    transition: transform 0.2s ease;
}
.cta-button-small:hover {
    transform: scale(1.05);
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .gallery-item.item-landscape {
        grid-column: span 1; /* En móvil, todos los items ocupan 1 columna */
        aspect-ratio: 1 / 1; /* Hacemos que los panorámicos sean cuadrados en móvil */
    }
}
/* =========================================== */
/* ===         FUNCIONALIDAD LIGHTBOX        === */
/* =========================================== */

/* Botones dentro de la galería */
.gallery-item-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.view-image-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.view-image-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Estructura del Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.is-visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.lightbox.is-visible .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 4rem;
    font-weight: 100;
    cursor: pointer;
    line-height: 1;
}