/*--------------------------------------------------------------
# Galería (gallery-five)
--------------------------------------------------------------*/
.gallery-five {
    position: relative;
    display: block;
    padding: 110px 0 100px;
    z-index: 1;
    background-color: var(--careon-white);
    background-image:
        radial-gradient(1000px 520px at 92% 0%, rgba(var(--careon-base-rgb), 0.10), transparent 58%),
        radial-gradient(900px 480px at 0% 100%, rgba(227, 27, 35, 0.06), transparent 60%);
    overflow: hidden;
}

.gallery-five > .container {
    position: relative;
    z-index: 2;
}

.gallery-five__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.gallery-five__blob--1 {
    width: 280px;
    height: 280px;
    top: -90px;
    right: -90px;
    background: rgba(var(--careon-base-rgb), 0.18);
}

.gallery-five__blob--2 {
    width: 320px;
    height: 320px;
    bottom: -120px;
    left: -120px;
    background: rgba(0, 0, 0, 0.08);
}

.gallery-five .section-title-three {
    margin-bottom: 48px;
}

.gallery-five .section-title-three__tagline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    background-color: rgba(var(--careon-base-rgb), 0.10);
    border: 1px solid rgba(var(--careon-base-rgb), 0.30);
    border-radius: 100px;
    color: var(--logo-red-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.gallery-five .section-title-three__tagline-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--logo-blue-medium);
    box-shadow: 0 0 0 4px rgba(var(--careon-base-rgb), 0.18);
    animation: gallery-five-pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes gallery-five-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(var(--careon-base-rgb), 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(var(--careon-base-rgb), 0.05); }
}

.gallery-five__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-five__item {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    min-height: 0;
}

.gallery-five__link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.gallery-five__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(var(--careon-bdr-color-rgb), 0.35);
    box-shadow: 0 6px 22px rgba(var(--careon-base-rgb), 0.10);
    background-color: #e8e8e8;
}

.gallery-five__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-five__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(
        180deg,
        rgba(var(--careon-base-rgb), 0.05) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    opacity: 0;
    transition: opacity 400ms ease;
}

.gallery-five__overlay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--careon-white);
    color: var(--logo-blue);
    font-size: 18px;
    transform: scale(0.8);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.gallery-five__overlay-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--careon-white);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 400ms ease, opacity 400ms ease;
}

.gallery-five__item:hover .gallery-five__media img,
.gallery-five__link:focus-visible .gallery-five__media img {
    transform: scale(1.08);
}

.gallery-five__item:hover .gallery-five__overlay,
.gallery-five__link:focus-visible .gallery-five__overlay {
    opacity: 1;
}

.gallery-five__item:hover .gallery-five__overlay-icon,
.gallery-five__link:focus-visible .gallery-five__overlay-icon {
    transform: scale(1);
}

.gallery-five__item:hover .gallery-five__overlay-text,
.gallery-five__link:focus-visible .gallery-five__overlay-text {
    transform: translateY(0);
    opacity: 1;
}

.gallery-five__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow 400ms ease;
}

.gallery-five__item:hover::after {
    box-shadow: inset 0 0 0 2px rgba(var(--careon-base-rgb), 0.55);
}

@media only screen and (max-width: 991px) {
    .gallery-five {
        padding: 90px 0 80px;
    }

    .gallery-five__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media only screen and (max-width: 767px) {
    .gallery-five {
        padding: 80px 0 70px;
    }

    .gallery-five .section-title-three {
        margin-bottom: 36px;
    }

    .gallery-five__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-five__media {
        border-radius: 12px;
    }

    .gallery-five__item {
        border-radius: 12px;
    }

    .gallery-five__item::after {
        border-radius: 12px;
    }

    .gallery-five__overlay {
        opacity: 1;
        background: linear-gradient(
            180deg,
            transparent 55%,
            rgba(0, 0, 0, 0.45) 100%
        );
    }

    .gallery-five__overlay-icon {
        transform: scale(1);
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .gallery-five__overlay-text {
        display: none;
    }
}
