HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode-jobs/resources/sass/components/_gallery.scss
.gallery {
    padding-top: 2px;
    --gallery-cols: repeat(4, 1fr);

    @include breakpoint-down('lg') {
        --gallery-cols: repeat(3, 1fr);
        padding-top: 35px;
    }

    @include breakpoint-down('sm') {
        --gallery-cols: 1fr 1fr;
    }

    &__inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        position: relative;
        gap: 0;

        @include breakpoint-down('sm') {
            justify-content: center;
            left: 0;
            width: 100%;
        }
    }

    &__item {
        width: calc((100% - 30px * 2) / 3);
        height: 205px;
        border-radius: 10px;
        overflow: hidden;
        margin-top: 30px;
        margin-right: 30px;

        @include breakpoint-up('sm') {
            &:nth-child(3n + 3) {
                margin-right: 0;
            }
        }

        @include breakpoint-down('lg') {
            margin-right: 10px;
            margin-top: 10px;
            width: calc((100% - 10px * 2) / 3);
            height: 155px;
        }

        @include breakpoint-down('sm') {
            width: calc((100% - 20px) / 2);
            height: 150px;
            margin-right: 20px;
            margin-top: 20px;

            &:nth-child(2n + 2) {
                margin-right: 0;
            }
        }

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

.gallery-modal {
    --input-border-radius: 0.5rem;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 30px 0;
    overflow-y: auto;
    z-index: 49;
    display: none;
    background-color: #132c3f81;

    &.is-active {
        display: flex;
    }

    &__slider {
        width: 100%;
        height: 462px;
    }

    &__slide {
        position: relative;
        width: 100%;
        height: 462px;

        img {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            object-fit: cover;
        }

        .slider-location__play {
            display: none;
        }

        iframe {
            width: 100%;
            height: 100%;
        }
    }

    &__inner {
        position: relative;
        margin: auto;
    }

    &__content {
        margin: auto;
        min-height: 300px;
        min-width: 300px;
        max-width: calc(100% - 20rem);

        img {
            max-height: calc(100vh - 20rem);
        }
    }

    &__close {
        position: absolute;
        top: 0;
        right: 0;
        background-color: #F1162F;
        width: 5.5rem;
        height: 5.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    &__counter {
        position: absolute;
        bottom: -30px;
        left: 0;
        right: 0;
        margin: auto;
        text-align: center;
        font-size: 20px;
        font-weight: 300;
        color: #FFFFFF;
        pointer-events: none;
    }

    .as-next-btn {
        @include breakpoint-down('sm') {
            display: block;
            top: calc(50% - 22px);
            right: 0;
        }
    }

    .as-prev-btn {
        @include breakpoint-down('sm') {
            display: block;
            top: calc(50% - 22px);
            left: 0;
        }
    }
}