/* Clean Gallery Grid Layout */

.lower-page-works-wall {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 10px;
    justify-content: center;
}

/* Gallery items */
.lower-page-works-wall .gallery-item {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    max-width: 340px;
}

/* Photo container - fixed height, auto width based on image aspect ratio */
.lower-page-works-wall .gallery-item .photo {
    display: block !important;
    height: 500px;
    width: auto;
    min-width: 220px;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Testimonials full width */
.lower-page-works-wall .gallery-item.testimonial-item {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.lower-page-works-wall .gallery-item.testimonial-item .box-table {
    height: auto;
    margin: 0;
}

.box-description {
    padding: 20px 15%;
    text-align: center;
    margin: 0;
}

.box-description p {
    text-align: center !important;
}

/* Responsive */
@media only screen and (max-width: 1400px) {
    .lower-page-works-wall .gallery-item .photo {
        height: 450px;
    }
}

@media only screen and (max-width: 1024px) {
    .lower-page-works-wall .gallery-item .photo {
        height: 400px;
    }
}

@media only screen and (max-width: 768px) {
    .lower-page-works-wall .gallery-item .photo {
        height: 350px;
    }
}

@media only screen and (max-width: 480px) {
    .lower-page-works-wall .gallery-item .photo {
        height: 300px;
        width: 100%;
    }
}

/* Light grey hover overlay */
.hover-effect {
    background: rgba(200, 200, 200, 0.7) !important;
}

/* Lightbox - show full image without cropping, fit to screen */
.lightbox {
    background: rgba(0, 0, 0, 0.95) !important;
}

.lightbox .slider-item {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.lightbox .cycle-slideshow {
    width: 100% !important;
    height: 100% !important;
}

.lightbox .cycle-slideshow ul {
    width: 100% !important;
    height: 100% !important;
}

/* Hero logo */
.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    .hero-logo {
        max-width: 400px;
    }
}

/* Navigation logo responsive */
.main-navigation-logo .logo {
    max-width: 150px !important;
}

.logo-mobile img {
    max-width: 80px !important;
    height: auto !important;
}

@media only screen and (max-width: 880px) {
    .main-navigation {
        display: none !important;
    }
}

/* Navigation hover fix */
.nav-button.navscroll {
    color: #fff !important;
}

.nav-button.navscroll:hover {
    color: #ccc !important;
}

/* Footer */
.footer-credits-copyright {
    text-align: center;
}

.footer-credits-copyright p {
    text-align: center !important;
}
