#photogallery {
    padding: 32px 24px;
    height: 460px;
    background-image: url('/themes/newmiur/assets/bg_photogallery.svg');
    background-size: cover;
    background-attachment: fixed;
    background-color: var(--hrz-home-photogallery-loading-bgcolor);
}

#photogallery > .container {
    height: 100%;
}

#photogallery .section-title-wrapper {
    padding-bottom: 16px;
}

#photogallery .section-title-wrapper .section-title {
    font-weight: 600;
    font-size: 1.5em;
}

#photogallery .section-title-wrapper span a {
    text-decoration: none;
    color: var(--hrz-home-photogallery-title);
}

#photogallery .section-title-wrapper span a:hover {
    text-decoration: underline;
}

#photogallery > .container > .row {
    height: calc(100% - 55.95px);
}

#photogallery .photogallery-section {
    padding: 0 32px;
    height: 100%;
}

#photogallery .photogallery-section .image,
#photogallery .photogallery-section .image-sm-row {
    height: 100%;
}

#photogallery .section-title {
    color: var(--hrz-home-photogallery-title);
    margin: 0;
    font-weight: 600;
    font-size: 1.5em;
}

#photogallery .image {
    border: 1px solid var(--hrz-home-photogallery-border-color);
    position: relative;
}

#photogallery .image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

#photogallery .image-overlay {
    color: var(--hrz-home-photogallery-overlay-textcolor);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--hrz-home-photogallery-overlay-bgcolor);
    opacity: 0;
    transition: opacity .5s;
}

#photogallery .image-overlay:hover {
    opacity: .8;
}

#photogallery .image-overlay {
    padding: 16px;
}

#photogallery .image-overlay .icon {
    fill: var(--hrz-home-photogallery-overlay-textcolor);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#photogallery .image-sm-wrapper {
    height: 50%;
    padding: 0 8px;
}

#photogallery .image-sm-wrapper:nth-child(1),
#photogallery .image-sm-wrapper:nth-child(2) {
    padding-bottom: 8px;
}

#photogallery .image-sm-wrapper:nth-child(3),
#photogallery .image-sm-wrapper:nth-child(4) {
    padding-top: 8px;
}

@media screen and (max-width: 992px) {
    #photogallery .image-sm-wrapper {
        height: 100%;
        padding: 0;
    }

    #photogallery {
        height: auto;
    }

    #photogallery .image {
        margin: 8px 0;
    }
}

/* Focus event */
#photogallery .photogallery-section a:focus {
    box-shadow: none !important;
}

#photogallery .photogallery-section a:focus .image {
    box-shadow: 0 0 0 4px var(--hrz-home-photogallery-focuscolor);
}