.page {
    padding: 2rem 0 6rem;
}

.top-return {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    height: 30px;
    width: 30px;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 15px;
    z-index: 12345;
    display: none;
}

.top-return:hover,
.top-return:focus {
    background-color: rgba(0, 0, 0, 0.75);
}

.top-return span {
    font-size: 22px;
    color: #fff;
}


/* Project Blocks: Video */

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption-description p {
    font-size: 13px;
    line-height: 20px;
}


/* Simple Image Grid */

/*
ul.image-grid-simple {
    list-style: none;
    padding: 0;
    margin: 0;
    display: table;
    border-collapse: collapse;
    width: 100%;
}

ul.image-grid-simple li {
    display: table-cell;
    padding: 0 5px 10px 5px;
}
*/

ul.image-grid-simple {
    list-style: none;
    padding: 0 5px;
    margin: 0 0 10px;
    display: flex;
    border-collapse: collapse;
    width: 100%;
	grid-gap: 10px;
}

/* ul.image-grid-simple li {
    display: table-cell;
} */

ul.image-grid-simple img {
    display: block;
    width: 100%;
    height: auto;
}

ul.image-grid-plain>li:first-child {
    padding-left: 0;
}

ul.image-grid>li:last-child {
    padding-right: 0;
}


/* Project Matrix */

.project-matrix {
    margin-bottom: 80px;
}


/* Testimonial Carousel on About Page */

.testimonial.lead p {
    margin-bottom: 28px;
    font-size: 18px;
    font-weight: 400;
    line-height: 36px;
}

.bg-image {
    opacity: 0;
}

.hero-section {
    background-color: #23272b;
}

.search-grid {
    width: 100%;
}

@media (min-width: 768px) {
    .hero-section.short {
        max-height: 512px;
    }
}

@media (min-height: 640px) {
    .hero-section.short {
        max-height: 50vh;
    }
}

.hero-section .title h1 {
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.25), 0 0 30px rgba(0, 0, 0, 0.75);
}

.hero-section-video-fallback-container {
    display: none;
}

.touch .hero-section-video-fallback-container {
    display: block;
    margin: 0 auto;
    max-width: 1024px;
    padding-top: 0px;
}

.video-test .hero-section-video-fallback-container{
    display: none !important;
}


/* Bulletproof Projects Grid */

.tab-highlights .image {
    overflow: hidden;
}

@media (min-width: 992px) {
    .rg2g:nth-child(odd) {
        clear: left;
    }
    .tab-highlights .project-item p {
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 142px !important;
        /* Fallback for non webkit browsers */
    }
    .tab-highlights .image {
        padding-bottom: 12px;
    }
}


/* About > Practice - Image Descriptions */

.image-section .image-description.top {
    top: 0;
    bottom: auto;
    background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.85) 100%);
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.85) 100%);
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.85) 100%);
}


/* Project Client Feedback Testimonials */

.testimonial-lead p {
    margin-bottom: 28px;
    font-size: 18px;
    font-weight: 400;
    line-height: 36px;
}

.client-name .job-role {
    margin-top: 10px;
}


/* Contact Details */

.rga-contact-details {
    float: left;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.rgacontact-form-container h3 {
    margin-top: 60px;
}

.rga-contact-area-top .tel {
    float: right;
    margin-top: 16px;
}

@media (min-width: 1200px) {
    .rga-contact-area-top .tel {
        margin-right: 52px;
    }
}

.rga-contact-area-top .tel ul li {
    list-style: none;
    font-size: 18px;
}

.rga-contact-area-top .tel ul li a.phonelink {
    text-decoration: none;
    color: #23272b;
}

.rga-contact-area-top .tel ul li a.phonelink:hover {
    color: #750707;
}

.rga-contact-area-top .clear {
    clear: both;
    display: block;
    width: 100%;
    height: 1px;
}

@media (max-width: 639px) {
    .rga-contact-area-top .tel {
        float: none;
        clear: left;
    }
    .rga-contact-area-top .tel ul {
        padding-left: 0px;
        margin-bottom: 40px;
    }
}


/* Textarea Lists */

.rg-textarea ul {
    list-style: none;
}

.rg-textarea ul,
.rg-textarea ol {
    padding-left: 24px;
}

.rg-textarea ul li,
.rg-textarea ol li {
    position: relative;
}

.rg-textarea ul li:before {
    position: absolute;
    top: 10px;
    left: -24px;
    width: 8px;
    height: 8px;
    content: "";
    background-color: #23272b;
}

.rg-textarea ul.checked li {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    color: #8f090a;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.rg-textarea ul.checked li:before {
    position: absolute;
    top: 0;
    left: -32px;
    height: 8px;
    font-family: "theme-icons";
    font-size: 20px;
    content: "\e802";
    background-color: #fff;
}

.rg-textarea ul.checked {
    padding-left: 32px;
}

.rg-textarea ul li,
.rg-textarea ol li {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 24px;
    color: #23272b;
    letter-spacing: .025em;
}

.rg-textarea ul a,
.rg-textarea ol a {
    font-weight: 400;
    color: #8f090a;
}

.rg-textarea ol li {
    padding-left: 18px;
}


/* Vido Header Autplay Toggle */

.btn-play-mute {
    right: 54px;
    bottom: 54px;
}

.hover {
    font-weight: bold;
    color: #23272b;
}

.tab-filters a:hover {
    font-weight: bold;
    color: #23272b;
}

.tab-filters a:hover:before,
.tab-filters a.active:before {
    position: absolute;
    left: 50%;
    margin-left: -10px;
    content: "";
    border: 5px solid transparent;
    border-bottom-color: #23272b;
    bottom: -17px;
    z-index: 1;
    border-bottom-color: #fff;
}

.tab-filters a:hover:after,
.tab-filters a.active:after {
    position: absolute;
    bottom: -16px;
    left: 50%;
    margin-left: -10px;
    content: "";
    border: 5px solid transparent;
    border-bottom-color: #23272b;
}

.project-section .tab-filters a {
    padding: 5px 15px;
}

.project-section .project-grid .grid-item-content .overlay {
    background-image: -webkit-linear-gradient(top, transparent 60%, rgba(0, 0, 0, .4) 100%);
    background-image: -o-linear-gradient(top, transparent 60%, rgba(0, 0, 0, .4) 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(60%, transparent), to(rgba(0, 0, 0, .4)));
    background-image: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, .4) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#66000000', GradientType=0);
    background-repeat: repeat-x;
    opacity: 1;
    transition: unset;
}

.project-section .project-grid .grid-item-content .overlay label {
    bottom: 0;
    transition: unset;
}

.project-section .project-grid .grid-item-content .overlay:hover label span,
.project-section .project-grid .grid-item-content .overlay:active label span {
    margin-left: 40px;
    -webkit-transition: all 200ms ease-in;
    -o-transition: all 200ms ease-in;
    transition: all 200ms ease-in;
}


/* About Page Amendments */

#details {
    margin-top: -80px;
}

#company-details-body {
    margin-top: 60px;
}

#feedback p a,
.awards-section p a,
#company-details-body a {
    color: #8f090a;
    text-decoration: none;
}

#feedback p a:hover,
.awards-section p a:hover,
#company-details-body a:hover {
    color: #750707;
    text-decoration: underline;
}

#company-details-body ul {
    list-style-type: square;
    margin-left: 10px;
}

#company-details-body ul li {
    padding: 0 0 7px 4px;
}


/* Footer Link Hover */

#footer ul a:hover {
    color: #750707;
    text-decoration: underline;
}


/* Homepage Header Amendments and Video */

.homepage-video {
    margin-top: 40px !important;
    margin-bottom: -40px !important;
    padding-bottom: 0px !important;
}

@media (min-width: 992px) {
    .homepage-video {
        margin-top: 60px !important;
    }
}


/* Text Blocks Additions */

.rg-textarea .std-lrg-center {
    display: block;
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
    line-height: 48px;
    margin-top: 20px;
    font-family: inherit;
    font-weight: 200;
    color: #23272b;
    letter-spacing: -.02em;
}

@media (max-width: 1199px) {
    .rg-textarea .std-lrg-center {
        font-size: 32px;
        line-height: 48px;
    }
}

@media (max-width: 979px) {
    .rg-textarea .std-lrg-center {
        font-size: 26px;
        line-height: 42px;
    }
}

@media (max-width: 599px) {
    .rg-textarea .std-lrg-center {
        font-size: 24px;
        line-height: 36px;
    }
}


/* Fix for 'Photographers:' label in project details tables */

.figure-list .large-caption {
    margin-top: 4px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .figure-list .large-caption {
        font-size: 11px;
        margin-top: 4px;
    }
}


/* Sign Up Area Tweaks */

.signup-section .rga-signup-heading {
    margin-bottom: 15px;
}

.no-padding {
    padding: 0 !important;
    margin: 0 !important;
}

.instagram {
    position: relative;
    margin-top: 80px;
}

.instagram .instagram-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

.instagram .instagram-button a {
    color: #FFFFFF;
    font-size: 16px;
    background: url(../img/instagram.svg) center left no-repeat;
    background-size: contain;
    padding-left: 25px;
}

.instagram-item a {
    width: 100%;
    height: 0;
    padding: 0 0 100% 0;
    display: block;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* About > People */


/* Amend the styles to use display three boxes in a row, instead of two */

.rg-people {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    gap: 8px;
}

.rg-people .aspect-ratio-square {
    padding-top: 100%;
    height: 0;
}

.image-section .rg-people .image-description {
    background: #23272b;
    position: relative;
}

@media (min-width: 992px) {
    .image-section.vertical .rg-people .image {
        /* float: left;
        width: 33.33% !important; */
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }
}

.image-section .rg-people .people-logos {
    display: flex;
    flex-direction: row;
    gap: 16px;
    row-gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .image-section .rg-people .people-logos {
        max-width: 240px;
    }
}

.image-section .rg-people .people-logos .sqlogo {
    aspect-ratio: 1 / 1;
    width: 108px;
}

.image-section .rg-people .people-logos .sqlogo.transparent {
    background: transparent;
}
.image-section .rg-people .people-logos .sqlogo.black {
    background: #000;
}
.image-section .rg-people .people-logos .sqlogo.white {
    background: #fff;
}

.image-section .rg-people .people-logos .sqlogo {
    display: flex;
    align-items: center;
    align-content: space-evenly;
    justify-content: space-evenly;
}

.image-section .rg-people .people-logos img {
    width: initial;
    max-width: 108px;
    max-height: 108px;
    height: auto;
}

.rg-people .content .image-description .nee-people-content {
    flex-direction: column;
    height: 100%;
    display: flex;
    justify-content: space-between;
}

/*
@media (min-width: 992px) {
    .image-section.vertical .rg-people .image:first-child {
        padding-right: 0px;
    }
}

@media (min-width: 992px) {
    .image-section.vertical .rg-people .image:last-child {
        padding-left: 0px;
    }
}

@media (min-width: 992px) {
    .image-section.vertical .rg-people .image:nth-of-type(3n+0) {
        padding-left: 4px;
        padding-right: 0px;
    }
}

@media (min-width: 992px) {
    .image-section.vertical .rg-people .image:nth-of-type(3n+1) {
        padding-left: 0px;
        padding-right: 4px;
    }
}

@media (min-width: 992px) {
    .image-section.vertical .rg-people .image:nth-of-type(3n+2) {
        padding-left: 2px;
        padding-right: 2px;
    }
}
*/


/* Homepage Intro Area */

.ng-hp-intro {
    text-align: center;
    padding-bottom: 0;
    margin-bottom: -40px;
}

.ng-hp-intro p {
    font-size: 28px;
    line-height: 48px;
    font-weight: 200;
}

.ng-hp-intro p em {
    font-weight: 200;
}


/* Nee Gibson Logo Changes */

.navbar {
    min-height: 200px;
    border-color: transparent;
}

.navbar-default:after {
    height: 200px;
}

.navbar-toggle {
    bottom: -148px;
}

.ng-logo-mobile {
    display: inline;
    width: 218px;
    height: auto;
    margin-top: -30px;
}

.ng-logo-desktop {
    display: none;
}

.ng-logo-text {
    display: none;
}

@media (min-width: 992px) {
    .ng-logo-mobile {
        display: none;
    }
    .ng-logo-text {
        display: none;
    }
    .ng-logo-desktop {
        display: inline;
        margin-top: -8px;
    }
}

@media (min-width: 992px) {
    .navbar {
        max-height: 84px;
        min-height: 84px;
        height: 84px;
    }
    .main-navigation {
        margin-top: 20px;
    }
    .navbar-right.contact-info {
        margin-top: 20px;
    }
}

@media (min-width: 992px) {
    .navbar-default:after {
        height: 89px;
    }
}

@media (max-height: 620px) and (max-width: 991px) {
    .ng-logo-text {
        display: inline;
        /* height: 44px; */
        height: 55px;
        width: auto;
        margin-top: -10px;
    }
    .ng-logo-mobile {
        display: none;
    }
    .ng-logo-desktop {
        display: none;
    }
    .navbar {
        min-height: 80px;
    }
    .navbar-default:after {
        height: 80px;
    }
    .navbar-brand h1 {
        text-align: left;
    }
    .navbar-toggle {
        right: 10px;
        left: auto;
        bottom: -15px;
    }
}


/* Nee Gibson Logo Overlay */

#neegibson-overlay {
    position: absolute;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove the line below to display the overlay */
    /* display: none; */
}

@keyframes fadeInOut {
    0% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

#neegibson-overlay img {
    display: block;
    margin: 0 auto;
    max-height: 45vh;
    /* max-height: 65vh; */
    max-width: 75%;
    width: auto;
    height: auto;
    opacity: 0;
}

#neegibson-overlay.fadeInOut img {
    opacity: 0;
    animation: fadeInOut 8s;
}

@media (max-width: 420px) {
    #neegibson-overlay img {
        max-width: 90%;
    }
}

@media (max-width: 980px) {
    #neegibson-overlay img {
        max-height: 50vh;
    }
}


/* Nee Gibson Logo Overlay - Mobile version */

#neegibson-mobile-overlay {
    position: absolute;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

#neegibson-mobile-overlay img {
    display: block;
    margin: 0 auto;
    max-height: 65vh;
    max-width: 75%;
    width: auto;
    height: auto;
    opacity: 0.8;
}

@media (max-width: 420px) {
    #neegibson-overlay img {
        display: none;
    }
    #neegibson-mobile-overlay img {
        max-width: 65%;
    }
}

@media (max-width: 980px) {
    #neegibson-overlay img {
        display: none;
    }
    #neegibson-mobile-overlay img {
        max-height: 30vh;
    }
}

@media (max-height: 620px) and (max-width: 991px) {
    #neegibson-overlay img {
        display: none;
    }
    #neegibson-mobile-overlay {
        opacity: 1;
        /* Remove following line to display overlay in hero area on mobiles in landscape orientation */
        /* display: none; */
    }
}


/* About Section Amendments */

.practice-image-section.image-section .image-description {
    position: relative;
    bottom: auto;
    right: auto;
}

.practice-image-section .image .content {
    background: #23272b;
}

.practice-image-section.image-section .image-description {
    background: transparent;
}

@media (min-width: 992px) {
    .practice-image-section.image-section .image-description {
        padding: 50px 30px;
    }
    .practice-image-section .image {
        display: flex;
    }
   /* .practice-image-section .aspect-ratio16x9 {
        width: calc(100% / 3 * 2);
    }*/
    .practice-image-section .image .content {
        width: calc(100% / 3);
    }
}

.img-box {
    flex: 1;
}
.aspect-ratio16x9 {
    height: 0;
}


@media (max-width: 993px) {
    .practice-image-section.image-section .image-reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .practice-image-section.image-section [class*="aspect-ratio"] {
        padding-top: 56.25%;
        height: 0;
    }
}

/* Navar Amends */
.rga-navbar-fixed-top {
    position: absolute;
}
.header-site .navbar-default:after {
    position: absolute;
}

/* Navbar Social Icons */
@media (max-height: 430px) and (max-width: 991px) {
    .nav.contact-info.social-icons {
        display: none;
    }
}

/* Announcement Areas */
.ng-announcement-container {
    position: absolute;
    bottom: 30px;
    width: 100%;
}
.ng-announcement-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.ng-announcement {
    border-radius: 20px;
    background: #000;
    padding: 0.5rem;
    margin: 1rem 2rem 6rem 2rem;
}
@media (min-height: 800px) {
    .hero-section .ng-announcement {
        margin: 1rem 2rem 10rem 2rem;
    }
}
@media (min-width: 1024px) {
    .ng-announcement {
        margin: 1rem 0rem 6rem 0rem;
    }
}
.ng-announcement .panel-body {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    line-height: 32px;
    font-weight: 200;
    color: #fff;
    text-align: center;
}
.ng-announcement .panel-body p {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    line-height: 32px;
    font-weight: 200;
}
.ng-announcement .panel-body p:last-child  {
    margin-bottom: 0;
}
.ng-announcement .panel-body a {
    color: #fff;
    text-decoration: underline;
}
.ng-announcement .panel-body a:hover {
    color: #ccc;
}
