/*=====================
 CUSTOM THEME STARTS HERE
 ======================*/

.site-content {
    padding: 90px 0 0 !important;
}

/* Your own reusable containers */
.container {
    width: min(var(--my-max), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}


/** HEADER
*/
.gm-site-header {
    /*position: relative;*/
    position: fixed;
    width: 100%;
    z-index: 9999;
    background: #fff;
}

.gm-site-header__inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
}

.gm-site-header__logo {
    color: #ff5a3c;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .02em;
}

.gm-menu-toggle {
    position: absolute;
    right: 2rem;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #ff5a3c;
    cursor: pointer;
}

.gm-menu-toggle__line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 4px;
    background: currentColor;
    transform-origin: center;
    transition: transform .25s ease;
}

.gm-menu-toggle__line:first-child {
    transform: translate(-50%, -50%) rotate(0deg);
}

.gm-menu-toggle__line:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

.gm-menu-toggle[aria-expanded="true"] .gm-menu-toggle__line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gm-menu-toggle[aria-expanded="true"] .gm-menu-toggle__line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gm-primary-menu {
    position: fixed;
    /* 90px == header height */
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;

    background: var(--gm-color-accent);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: clamp(2rem, 5vw, 5rem) 1.5rem;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
}

.gm-primary-menu[hidden] {
    display: none;
}

.gm-primary-menu__list {
    list-style: none;
    margin: auto 0;
    padding: 0;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: clamp(1.5rem, 3vw, 3rem);
}

.gm-primary-menu__list li {
    margin: 0;
}

.gm-primary-menu__list a {
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    /*font-size: clamp(3rem, 8vw, 6rem);*/
    font-size: min(8vw, 5rem);
    font-weight: 700;
    line-height: 1;
}

.gm-primary-menu__list a:hover,
.gm-primary-menu__list a:focus-visible {
    color: #000;
}

.gm-primary-menu__list a:focus-visible,
.gm-menu-toggle:focus-visible,
.gm-site-header__logo:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 6px;
}

body.gm-menu-open {
    overflow: hidden;
}


/** FOOTER
*/
.gm-contact-footer {
    padding: 50px 20px 100px;
    background: #000;
    color: #fff;
    text-align: center;
}

.gm-contact-footer__title {
    margin-bottom: 1rem;
    color: var(--gm-accent);
}

.gm-contact-footer__text {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.gm-contact-footer__email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--gm-accent);
    text-decoration: none;
    transition: transform .25s ease;
}

.gm-contact-footer__email:hover,
.gm-contact-footer__email:focus-visible {
    transform: translateY(-4px);
}

.gm-contact-footer__email:focus-visible {
    outline: 2px solid var(--gm-accent);
    outline-offset: 6px;
}


/** PAGE - BLOCKS
*/
.gm-page {
    width: 100%;
    margin: 0;
    padding: 0;
}


/** SINGLE - PROJECTS
*/
.gm-single-project {
    background: #000;
    color: #fff;
    min-height: 100vh;
}

.gm-single-project__header {
    text-align: center;
    padding: 5rem 1.5rem 3rem;
}

.gm-single-project__client {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gm-single-project__title {
    margin: 0;
    color: inherit;
    font-size: clamp(3rem, 7vw, 6rem);
}

.gm-single-project__hero {
    position: relative;
    width: min(1100px, calc(100% - 3rem));
    margin: 0 auto 4rem;
    aspect-ratio: 16 / 9;
    background: #444;
    border-radius: 14px;
    overflow: hidden;
}

.gm-single-project__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gm-single-project__visit-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ff5a3c;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: .9rem 1.3rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}

.gm-single-project__visit-button:hover,
.gm-single-project__visit-button:visited {
    color: #fff;
    background: #e84b3c;
}

.gm-single-project__content {
    width: min(760px, calc(100% - 3rem));
    margin: 0 auto 4rem;
    text-align: center;
}

.gm-single-project__thumbs {
    width: min(1100px, calc(100% - 3rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.gm-project-thumb {
    border: 0;
    padding: 0;
    background: #444;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.gm-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox 
*/

.gm-project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
    padding: 5rem 6rem 3rem;
    background: rgba(0, 0, 0, .94);
    color: #fff;
    overflow: hidden;
}

.gm-project-lightbox[hidden] {
    display: none;
}

.gm-project-lightbox__stage {
    width: min(1600px, 100%);
    height: calc(100vh - 8rem);
    margin-inline: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.gm-project-lightbox__slide {
    display: none;
    margin: 0;
}

.gm-project-lightbox__slide.is-active {
    display: block;
}

.gm-project-lightbox__slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin-inline: auto;
}

.gm-project-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100002;
    font-size: clamp(3rem, 6vw, 4rem);
    padding: 10px;
}

.gm-project-lightbox__prev,
.gm-project-lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    font-size: clamp(3rem, 6vw, 4rem);
    padding: 10px;
}

.gm-project-lightbox__prev {
    left: 1.5rem;
}

.gm-project-lightbox__next {
    right: 1.5rem;
}

.gm-project-lightbox__count {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    font-size: .875rem;
}

.gm-project-lightbox button:focus-visible,
.gm-project-thumb:focus-visible {
    outline: 3px solid #ff5a3c;
    outline-offset: 4px;
}

/* Post Navigation
*/
.gm-project-nav {
    background-color: var(--gm-color-bg);
    padding: 50px 20px;
}

.gm-project-nav__inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.gm-project-nav__link {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.gm-project-nav__link--prev {
    text-align: left;
    justify-self: start;
}

.gm-project-nav__link--next {
    text-align: right;
    justify-self: end;
}

.gm-project-nav__link span {
    display: block;
    color: #ff5a3c;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gm-project-nav__link strong {
    display: block;
    margin-top: .4rem;
    font-size: clamp(.95rem, 3vw, 1.25rem);
    line-height: 1.2;
}


@media (max-width: 700px) {

    .gm-single-project__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Lightbox
    */
    .gm-project-lightbox {
        padding: 5rem 1rem 1rem;
    }

    .gm-project-lightbox__stage {
        height: calc(100vh - 6rem);
        width: 100%;
    }

    .gm-project-lightbox__prev,
    .gm-project-lightbox__next {
        top: 1rem;
        transform: none;
        font-size: 2.5rem;
    }

    .gm-project-lightbox__prev {
        left: 50%;
        margin-left: -4rem;
    }

    .gm-project-lightbox__next {
        left: 50%;
        right: auto;
        margin-left: 1.5rem;
    }

    .gm-project-lightbox__close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }

    .gm-project-lightbox__count {
        display: none;
    }


}