﻿/*--------------------------------------------------------------
# gallery Section
--------------------------------------------------------------*/

.gallery .text-p {
    font-size: 1rem;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.gallery .gallery-filters {
    padding: 0;
    margin: 0 auto 20px auto;
    list-style: none;
    text-align: center;
}

    .gallery .gallery-filters li {
        cursor: pointer;
        display: inline-block;
        padding: 8px 20px 10px 20px;
        margin: 0;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        margin-bottom: 5px;
        border-radius: 4px;
        transition: all 0.3s ease-in-out;
        font-family: var(--heading-font);
    }

        .gallery .gallery-filters li:hover,
        .gallery .gallery-filters li.filter-active {
            color: var(--contrast-color);
            background-color: var(--primary-color);
        }

        .gallery .gallery-filters li:first-child {
            margin-left: 0;
        }

        .gallery .gallery-filters li:last-child {
            margin-right: 0;
        }

@media (max-width: 575px) {
    .gallery .gallery-filters li {
        font-size: 14px;
        margin: 0 0 10px 0;
    }
}

.gallery .gallery-item {
    position: relative;
    overflow: hidden;
}

    .gallery .gallery-item .gallery-info {
        opacity: 0;
        position: absolute;
        left: 12px;
        right: 12px;
        z-index: 3;
        transition: all ease-in-out 0.5s;
        padding: 15px;
    }

        .gallery .gallery-item .gallery-info .text-5 {
            font-size: 18px;
            font-weight: 700;
            padding-right: 50px;
        }

        .gallery .gallery-item .gallery-info .text-p {
            color: color-mix(in srgb, var(--default-color), transparent 30%);
            margin-bottom: 0;
            padding-right: 50px;
        }

        .gallery .gallery-item .gallery-info .preview-link,
        .gallery .gallery-item .gallery-info .details-link {
            /*position: absolute;
            right: 12px;*/
            font-size: 24px;
            top: calc(50% - 14px);
            color: color-mix(in srgb, var(--default-color), transparent 30%);
            transition: 0.3s;
            line-height: 0;
        }

            .gallery .gallery-item .gallery-info .preview-link:hover,
            .gallery .gallery-item .gallery-info .details-link:hover {
                color: var(--primary-color);
            }

        .gallery .gallery-item .gallery-info .details-link {
            right: 14px;
            font-size: 28px;
        }

.gallery .gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery .gallery-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    z-index: 2;
}

.gallery .gallery-item:hover .gallery-info {
    opacity: 1;
    bottom: 0;
}

.gallery .preview-link i {
    color: var(--light-color);
    font-size: 16px;
    top: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    background: var(--primary-color);
    padding: 12px;
    border-radius: 50%;
    margin-top: -20px;
}

.gallery .preview-link {
    font-size: 18px;
    color: var(--light-color);
    transition: transform 0.3s ease;
}

    .gallery .preview-link:hover {
        color: var(--primary-color);
    }

.gallery .gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
