/* global */

* {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: obviously, sans-serif;
    background-color: #ffffff;
    color: var(--font-color);
}

h1 {
    font-family: ethnocentric, sans-serif;
}

h2,
h3,
h4,
h5 {
    font-family: obviously-wide, sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* end of global */

@media(min-width: 1366px) {
    .gallery-intro {
        font-family: obviously, sans-serif;
        text-align: center;
        color: var(--font-color);
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
        max-width: 760px;
        margin: 0 auto;
    }
    .gallery-count {
        font-family: obviously-wide, sans-serif;
        text-align: center;
        color: var(--accent-color);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin: 18px auto 0 auto;
    }
    .project-gallery {
        width: 100%;
        padding: 0;
        margin: 30px auto 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 16px;
        grid-auto-flow: dense;
        grid-auto-rows: 260px;
    }
    .gallery-image {
        position: relative;
        overflow: hidden;
        height: 100%;
        cursor: pointer;
        transition: 0.25s box-shadow ease-out, 0.25s transform ease-out;
        border-radius: 16px;
        background: #e9e9e9;
    }
    .gallery-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        display: block;
        transition: 0.45s transform ease-out;
    }
    .enlarge {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: auto;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        color: #fff;
        font-family: obviously, sans-serif;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        left: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
        padding: 34px 14px 12px 14px;
        opacity: 0;
        transform: translateY(6px);
        transition: 0.25s all ease-out;
    }
    .gallery-image:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    }
    .gallery-image:hover .enlarge,
    .gallery-image:focus-visible .enlarge {
        opacity: 1;
        transform: translateY(0);
    }
    .gallery-image:hover img,
    .gallery-image:focus-visible img {
        transform: scale(1.06);
    }
    .gallery-image:focus-visible {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
    .gallery-image--wide {
        grid-column: span 2;
    }
    .gallery-image--tall {
        grid-row: span 2;
    }
    /* lightbox: sits above the fixed mobile header (z-index 999999) and the chat widget */
    .full-screen {
        position: fixed;
        z-index: 1000000;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(8, 10, 14, 0.94);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .picture-modal {
        position: relative;
        background-color: transparent;
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .picture-modal-img {
        max-width: 90vw;
        max-height: 82vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
        transition: 0.15s opacity ease-out;
    }
    .picture-modal-img.is-switching {
        opacity: 0.35;
    }
    .close-modal {
        z-index: 5;
        position: absolute;
        top: 18px;
        right: 18px;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        width: 46px;
        height: 46px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        transition: 0.15s all ease-out;
    }
    .close-modal:hover {
        background: var(--accent-color);
    }
    .modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 52px;
        height: 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        user-select: none;
        transition: 0.15s all ease-out;
    }
    .modal-nav:hover {
        background: var(--accent-color);
    }
    .modal-nav.is-disabled {
        opacity: 0.25;
        cursor: default;
        pointer-events: none;
    }
    .modal-prev {
        left: 24px;
    }
    .modal-next {
        right: 24px;
    }
    .modal-counter {
        position: absolute;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        font-family: obviously, sans-serif;
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        padding: 6px 14px;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.1);
    }
}

@media(max-width: 1366px) and (min-width: 1024px) {
    .gallery-intro {
        font-family: obviously, sans-serif;
        text-align: center;
        color: var(--font-color);
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
        max-width: 760px;
        margin: 0 auto;
    }
    .gallery-count {
        font-family: obviously-wide, sans-serif;
        text-align: center;
        color: var(--accent-color);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin: 18px auto 0 auto;
    }
    .project-gallery {
        width: 100%;
        padding: 0;
        margin: 30px auto 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 14px;
        grid-auto-flow: dense;
        grid-auto-rows: 220px;
    }
    .gallery-image {
        position: relative;
        overflow: hidden;
        height: 100%;
        cursor: pointer;
        transition: 0.25s box-shadow ease-out, 0.25s transform ease-out;
        border-radius: 16px;
        background: #e9e9e9;
    }
    .gallery-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        display: block;
        transition: 0.45s transform ease-out;
    }
    .enlarge {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: auto;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        color: #fff;
        font-family: obviously, sans-serif;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        left: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
        padding: 34px 14px 12px 14px;
        opacity: 0;
        transform: translateY(6px);
        transition: 0.25s all ease-out;
    }
    .gallery-image:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    }
    .gallery-image:hover .enlarge,
    .gallery-image:focus-visible .enlarge {
        opacity: 1;
        transform: translateY(0);
    }
    .gallery-image:hover img,
    .gallery-image:focus-visible img {
        transform: scale(1.06);
    }
    .gallery-image:focus-visible {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
    .gallery-image--wide {
        grid-column: span 2;
    }
    .gallery-image--tall {
        grid-row: span 2;
    }
    /* lightbox: sits above the fixed mobile header (z-index 999999) and the chat widget */
    .full-screen {
        position: fixed;
        z-index: 1000000;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(8, 10, 14, 0.94);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .picture-modal {
        position: relative;
        background-color: transparent;
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .picture-modal-img {
        max-width: 90vw;
        max-height: 82vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
        transition: 0.15s opacity ease-out;
    }
    .picture-modal-img.is-switching {
        opacity: 0.35;
    }
    .close-modal {
        z-index: 5;
        position: absolute;
        top: 18px;
        right: 18px;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        width: 46px;
        height: 46px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        transition: 0.15s all ease-out;
    }
    .close-modal:hover {
        background: var(--accent-color);
    }
    .modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        user-select: none;
        transition: 0.15s all ease-out;
    }
    .modal-nav:hover {
        background: var(--accent-color);
    }
    .modal-nav.is-disabled {
        opacity: 0.25;
        cursor: default;
        pointer-events: none;
    }
    .modal-prev {
        left: 20px;
    }
    .modal-next {
        right: 20px;
    }
    .modal-counter {
        position: absolute;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        font-family: obviously, sans-serif;
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        padding: 6px 14px;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.1);
    }
}

@media(max-width: 1024px) and (min-width: 769px) {
    .gallery-intro {
        font-family: obviously, sans-serif;
        text-align: center;
        color: var(--font-color);
        font-size: 15px;
        font-weight: 400;
        line-height: 1.6;
        max-width: 760px;
        margin: 0 auto;
    }
    .gallery-count {
        font-family: obviously-wide, sans-serif;
        text-align: center;
        color: var(--accent-color);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin: 18px auto 0 auto;
    }
    .project-gallery {
        width: 100%;
        padding: 0;
        margin: 30px auto 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 12px;
        grid-auto-flow: dense;
        grid-auto-rows: 200px;
    }
    .gallery-image {
        position: relative;
        overflow: hidden;
        height: 100%;
        cursor: pointer;
        transition: 0.25s box-shadow ease-out, 0.25s transform ease-out;
        border-radius: 14px;
        background: #e9e9e9;
    }
    .gallery-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        display: block;
        transition: 0.45s transform ease-out;
    }
    .enlarge {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: auto;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        color: #fff;
        font-family: obviously, sans-serif;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        left: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
        padding: 34px 14px 12px 14px;
        opacity: 0;
        transform: translateY(6px);
        transition: 0.25s all ease-out;
    }
    .gallery-image:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    }
    .gallery-image:hover .enlarge,
    .gallery-image:focus-visible .enlarge {
        opacity: 1;
        transform: translateY(0);
    }
    .gallery-image:hover img,
    .gallery-image:focus-visible img {
        transform: scale(1.06);
    }
    .gallery-image:focus-visible {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
    .gallery-image--wide {
        grid-column: span 2;
    }
    .gallery-image--tall {
        grid-row: span 2;
    }
    /* lightbox: sits above the fixed mobile header (z-index 999999) and the chat widget */
    .full-screen {
        position: fixed;
        z-index: 1000000;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(8, 10, 14, 0.94);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .picture-modal {
        position: relative;
        background-color: transparent;
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .picture-modal-img {
        max-width: 92vw;
        max-height: 80vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
        transition: 0.15s opacity ease-out;
    }
    .picture-modal-img.is-switching {
        opacity: 0.35;
    }
    .close-modal {
        z-index: 5;
        position: absolute;
        top: 14px;
        right: 14px;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        transition: 0.15s all ease-out;
    }
    .close-modal:hover {
        background: var(--accent-color);
    }
    .modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        user-select: none;
        transition: 0.15s all ease-out;
    }
    .modal-nav:hover {
        background: var(--accent-color);
    }
    .modal-nav.is-disabled {
        opacity: 0.25;
        cursor: default;
        pointer-events: none;
    }
    .modal-prev {
        left: 14px;
    }
    .modal-next {
        right: 14px;
    }
    .modal-counter {
        position: absolute;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        font-family: obviously, sans-serif;
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        padding: 6px 14px;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.1);
    }
}

@media(max-width: 769px) {
    .gallery-intro {
        font-family: obviously, sans-serif;
        text-align: center;
        color: var(--font-color);
        font-size: 15px;
        font-weight: 400;
        line-height: 1.6;
        max-width: 760px;
        margin: 0 auto;
    }
    .gallery-count {
        font-family: obviously-wide, sans-serif;
        text-align: center;
        color: var(--accent-color);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin: 18px auto 0 auto;
    }
    .project-gallery {
        width: 100%;
        padding: 0;
        margin: 30px auto 0 auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
        grid-auto-flow: dense;
        grid-auto-rows: 150px;
    }
    .gallery-image {
        position: relative;
        overflow: hidden;
        height: 100%;
        cursor: pointer;
        transition: 0.25s box-shadow ease-out, 0.25s transform ease-out;
        border-radius: 12px;
        background: #e9e9e9;
    }
    .gallery-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        display: block;
        transition: 0.45s transform ease-out;
    }
    .enlarge {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: auto;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        color: #fff;
        font-family: obviously, sans-serif;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        left: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
        padding: 34px 14px 12px 14px;
        opacity: 0;
        transform: translateY(6px);
        transition: 0.25s all ease-out;
    }
    .gallery-image:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    }
    .gallery-image:hover .enlarge,
    .gallery-image:focus-visible .enlarge {
        opacity: 1;
        transform: translateY(0);
    }
    .gallery-image:hover img,
    .gallery-image:focus-visible img {
        transform: scale(1.06);
    }
    .gallery-image:focus-visible {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
    .gallery-image--wide {
        grid-column: span 2;
    }
    .gallery-image--tall {
        grid-row: span 1;
    }
    /* lightbox: sits above the fixed mobile header (z-index 999999) and the chat widget */
    .full-screen {
        position: fixed;
        z-index: 1000000;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(8, 10, 14, 0.94);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .picture-modal {
        position: relative;
        background-color: transparent;
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .picture-modal-img {
        max-width: 96vw;
        max-height: 76vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
        transition: 0.15s opacity ease-out;
    }
    .picture-modal-img.is-switching {
        opacity: 0.35;
    }
    .close-modal {
        z-index: 5;
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        transition: 0.15s all ease-out;
    }
    .close-modal:hover {
        background: var(--accent-color);
    }
    .modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        user-select: none;
        transition: 0.15s all ease-out;
    }
    .modal-nav:hover {
        background: var(--accent-color);
    }
    .modal-nav.is-disabled {
        opacity: 0.25;
        cursor: default;
        pointer-events: none;
    }
    .modal-prev {
        left: 8px;
    }
    .modal-next {
        right: 8px;
    }
    .modal-counter {
        position: absolute;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        font-family: obviously, sans-serif;
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        padding: 6px 14px;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.1);
    }
}
