.logo {
    overflow: hidden;
    margin-inline: auto;
}

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

/* gmg-logos-wrapper */
#gmg-logos-wrapper {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 10rem;
}

#gmg-logos-wrapper a {
    height: 45px;
    /* overflow: hidden; */
}

.site-logo {
    display: inline-block;
    /* overflow: hidden; */
    margin-bottom: 83px;
}

@media screen and (max-width: 768px) {
    .site-logo {
        max-width: 300px;
    }

    .site-logo-gmg {
        max-width: unset;
    }

    .site-logo img {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .overlay #about p,
    .hero-1 .front-content p {
        margin-inline: 0;
    }

    .site-logo {
        max-width: 221px;
    }
}

.site-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* .overlay #about p, */
.overlay #about h1 {
    margin-bottom: 15px;
}

.overlay #about p {
    line-height: 26px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .overlay #about p {
        line-height: 26px;
        max-width: 70%;
        margin: 0 auto;
    }

    .site-logo {
        height: 109px;
    }

    .site-logo-gmg {
        height: 72px;
    }
}

/* #overlay[data-bg="undefined"] .up-button{
    display: unset;
} */

@media screen and (max-width: 768px) {
    .overlay #about p,
    .hero-1 .front-content p {
        margin-bottom: 10rem;
    }
}

@media screen and (max-width: 1024px) {
    #gmg-logos-wrapper a {
        height: 4rem;
    }
}

@media screen and (max-width: 768px) {
    #gmg-logos-wrapper a {
        height: 16px;
    }
}

#gmg-logos-wrapper a img {
    max-height: 100%;
    max-width: 100%;
    aspect-ratio: auto;
}

.hero-1 .front-content .down-button i {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.ti-arrow-down:before {
    content: none;
}

.overlay-down-button {
    transition: 1s;
}

/* overlay backgrounds */
#overlay[data-bg="bap"] {
    background-color: #00005D;
}

#overlay[data-bg="cmi"] {
    background-color: #0a2440;
}

#overlay[data-bg="merryck"] {
    background-color: #172e29;
}

#overlay[data-bg="cmi-merryck"] {
    background-color: #0a212e;
}

#overlay[data-bg="mentore"] {
    background-color: #046553;
}
#overlay[data-bg="mentore"] #about p {
	color: #bbb;
}


#overlay[data-bg="gmg"] {
    background-color: #121212;
}

#overlay:not([data-bg="gmg"]) .scroll-to-top {
    display: none;
}

#overlay[data-bg="gmg"] .overlay-down-button,
#overlay[data-bg="undefined"] .overlay-down-button {
    display: none;
    transform: translateX(-50%) translateY(100%);
}

#overlay .up-button i::before {
    content: none;
    display: none;
}

.mobile-overlay #overlay .up-button {
    display: unset;
}

#overlay .up-button,
.overlay-down-button {
    transform: translateX(-50%) translateY(0%);
    width: 52px !important;
    height: 52px !important;
    background: none;
    color: #fff;
    border: 1px solid #919da6;
    border-radius: 8px;
}

#overlay .up-button {
    top: 52px !important;
    display: none;
    transform: translateX(-50%) translateY(0%) rotate(180deg);
}

.overlay-down-button {
    top: unset !important;
    bottom: 52px !important;
}

#overlay .up-button i,
.overlay-down-button i {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

@media screen and (max-width: 768px) {
    #gmg-logos-wrapper {
        margin-bottom: 20rem;
    }

    .hero .container-mid {
        padding-top: 10rem;
    }
}

@media screen and (max-height: 800px) {
    #gmg-logos-wrapper {
        margin-bottom: 5rem !important;
    }
}

#overlay[data-bg="gmg"] .scroll-to-top {
    display: unset;
    -webkit-transform: translateX(-50%) translateY(0%) rotate(180deg);
    transform: translateX(-50%) translateY(0%) rotate(180deg);
}

.hero-1 .front-content.page-enter-animated .arrow-wrap {
    position: absolute;
    left: 50%;
    top: unset !important;
    bottom: 52px !important;
    -webkit-transform: translateX(-50%) translateY(100%) !important;
    transform: translateX(-50%) translateY(100%) !important;
    z-index: 10000;
    -webkit-transition: 0.5s 0.75s;
    transition: 0.5s 0.75s;
}

.hero-1 .front-content.page-enter-animated.show .arrow-wrap {
    -webkit-transform: translateX(-50%) translateY(0) !important;
    transform: translateX(-50%) translateY(0) !important;
    -webkit-transition: 0.5s 0.75s;
    transition: 0.5s 0.75s;
}

.hero-1 .front-content div.open-overlay {
    width: 52px !important;
    height: 52px !important;
}

/* slide scrolling */
.overlay {
    opacity: 0;
    transition: 0s;
}

.slide-from-top,
.slide-from-bottom {
    opacity: 1;
    -webkit-transition: all 800ms ease;
    transition: all 800ms ease;
}
