.img-logo {
    width: 8%;
}

.navbar-header .img-logo {
    width: 110px !important;
    max-width: none;
    height: auto;
}

.custom-navbar {
    padding: 12px 0;
    display: flex;
    align-items: center;
}

.custom-navbar .nav li a {
    font-size: 15px;
    line-height: 1.2;
    margin: 18px 18px 12px;
}

/* Collapse the desktop nav earlier: long labels overflow well before 768px. */
@media (max-width: 991px) {
    .custom-navbar {
        display: block;
        padding: 10px 0;
    }

    .custom-navbar .container {
        display: block;
    }

    .custom-navbar .navbar-header {
        display: block;
    }

    .custom-navbar .navbar-toggle {
        display: block;
        margin-top: 10px;
        margin-right: 0;
    }

    .custom-navbar .navbar-collapse {
        clear: both;
        padding-left: 0;
        padding-right: 0;
        border-top: 0;
        box-shadow: none;
    }

    .custom-navbar .navbar-collapse.collapse {
        display: none !important;
    }

    .custom-navbar .navbar-collapse.collapse.in {
        display: block !important;
    }

    .custom-navbar .navbar-nav {
        display: block;
        float: none !important;
        margin: 16px 0 0;
    }

    .custom-navbar .navbar-nav > li {
        float: none;
    }

    .custom-navbar .nav li a {
        display: block;
        margin: 0;
        padding: 12px 0;
        text-align: left;
        line-height: 1.3;
    }

    .custom-navbar .navbar-nav li a:after {
        display: none;
    }
}

body {
    padding-top: 86px;
}

html {
    scroll-padding-top: 102px;
}

#project .sala-pose-info h2,
#project .sala-pose-info h3,
#sala-pose .sala-pose-info h2,
#sala-pose .sala-pose-info h3,
#gallery-section .sala-pose-info h2,
#gallery-section .sala-pose-info h3 {
    font-family: inherit;
    font-size: 2em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 64px 0;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

#project .sala-pose-info h2:after,
#project .sala-pose-info h3:after,
#sala-pose .sala-pose-info h2:after,
#sala-pose .sala-pose-info h3:after,
#gallery-section .sala-pose-info h2:after,
#gallery-section .sala-pose-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #343841;
}

#studio-info-section .sala-pose-info h1,
#studio-info-section .sala-pose-info h3 {
    font-family: inherit;
    font-size: 3em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 64px 0;
    position: relative;
    padding-bottom: 18px;
    text-align: center;
    color: #ffffff;
}

#studio-info-section .sala-pose-info h1:after,
#studio-info-section .sala-pose-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffffff;
}

#footer {
    background-color: #343841;
    color: #ffffff;
}
#footer a {
    color: #ffffff;
}

#footer p {
    color: #ffffff;
}

.sala-pose-info h1,
.sala-pose-info h2,
.sala-pose-info h3 {
    text-align: center;
}

.sala-pose-info .section-description {
    text-align: center;
    margin: 0;
    font-size: 40px;
    font-weight: 200;
    line-height: 50px;
    letter-spacing: 0;
    color: inherit;
}

#studio-info-section .section-description {
    color: #ffffff;
}

#sala-pose .sala-pose-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

#sala-pose .sala-pose-image {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    order: 1;
}

#sala-pose .sala-pose-info {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

#sala-pose .sala-pose-image img {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

#sala-pose .sala-pose-info {
    text-align: center;
}

#sala-pose .sala-pose-contact {
    margin-top: 32px;
}

#sala-pose .sala-pose-contact p {
    margin-bottom: 16px;
    font-size: 22px;
    line-height: 1.5;
}

#sala-pose .sala-pose-contact .social-icon {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#sala-pose .sala-pose-contact .social-icon li {
    display: inline-flex;
}

/* Logo carousel styles */
.logo-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px 5px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.logo-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.logo-item:hover img {
    transform: scale(1.1);
}

/* Adjust carousel for smaller items */
#owl-team .owl-item {
    min-width: 200px;
}

#gallery-section {
    padding-bottom: 60px;
}

.project-item {
    max-height: none;
    height: 320px;
    overflow: hidden;
}

.project-item img,
.project-item .img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slightly smaller thumbnails on narrow screens */
@media (max-width: 768px) {
    body {
        padding-top: 74px;
    }

    html {
        scroll-padding-top: 90px;
    }

    .navbar-header .img-logo {
        width: 90px !important;
    }

    #studio-info-section,
    #sala-pose,
    #project {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .sala-pose-info .section-description {
        font-size: 30px;
        line-height: inherit;
    }

    #sala-pose .sala-pose-layout {
        gap: 28px;
    }

    #sala-pose .sala-pose-image img {
        max-height: 520px;
    }

    #sala-pose .sala-pose-contact p {
        font-size: 20px;
    }

    .project-item {
        height: 220px;
    }
    .project-item img,
    .project-item .img-responsive {
        height: 100%;
    }
}

@media (max-width: 767px) {
    #footer .col-sm-6 {
        margin-bottom: 32px;
    }

    #footer .col-sm-6:last-of-type {
        margin-bottom: 0;
    }

    #studio-info-section .sala-pose-info h1,
    #studio-info-section .sala-pose-info h3 {
        font-size: 2.4em;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .navbar-header .img-logo {
        width: 82px !important;
    }

    .custom-navbar .navbar-toggle {
        margin-top: 6px;
    }

    .custom-navbar .nav li a {
        font-size: 14px;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    #sala-pose .sala-pose-layout {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 56px;
    }

    #sala-pose .sala-pose-image {
        flex: 0 0 38%;
        margin: 0;
        order: 0;
    }

    #sala-pose .sala-pose-info {
        flex: 1;
        max-width: 540px;
        margin: 0;
        text-align: left;
    }

    #sala-pose .sala-pose-info h2,
    #sala-pose .sala-pose-info h3,
    #sala-pose .sala-pose-info .section-description,
    #sala-pose .sala-pose-contact,
    #sala-pose .sala-pose-contact p {
        text-align: left;
    }

    #sala-pose .sala-pose-info h2:after,
    #sala-pose .sala-pose-info h3:after {
        left: 0;
        transform: none;
    }

    #sala-pose .sala-pose-contact .social-icon {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    #footer .row {
        display: flex;
        flex-wrap: wrap;
    }

    #footer .col-sm-6 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #footer .col-sm-6 .social-icon {
        margin-top: auto;
    }

    #footer .copyright-text {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .custom-navbar {
        display: block;
        padding: 10px 0;
    }

    .custom-navbar .container,
    .custom-navbar .navbar-header {
        display: block;
    }

    .custom-navbar .navbar-header {
        float: none;
        width: 100%;
    }

    .custom-navbar .navbar-toggle {
        display: block;
        float: right !important;
        margin-top: 8px;
        margin-right: 14px;
    }

    .custom-navbar .navbar-collapse {
        clear: both;
        display: block !important;
        width: 100%;
        margin-top: 12px;
        padding: 0 22px 0 24px;
        border-top: 0;
        box-shadow: none;
    }

    .custom-navbar .navbar-collapse.collapsing {
        display: block !important;
        width: 100%;
    }

    .custom-navbar .navbar-collapse.collapse {
        display: none !important;
    }

    .custom-navbar .navbar-collapse.collapse.in {
        display: block !important;
    }

    .custom-navbar .navbar-nav {
        display: block;
        float: none !important;
        margin: 0;
    }

    .custom-navbar .navbar-nav > li {
        display: block;
        float: none;
    }

    .custom-navbar .nav li a {
        display: block;
        margin: 0;
        padding: 12px 0;
        text-align: left;
        line-height: 1.3;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 6px;
        text-decoration-color: rgba(52, 56, 65, 0.45);
    }

    .custom-navbar .navbar-nav li a:after {
        display: none;
    }
}
