.hero-local-video {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-local-video__video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 87% !important;

    object-fit: cover !important;
    object-position: center center !important;

    transform: scale(1.30) !important;

    z-index: 0 !important;
}

.hero-local-video .wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}


/* =========================================================
   SECOND HOMEPAGE VIDEO
   ========================================================= */

#section_video {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#section_video video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;

    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;

    z-index: 1 !important;
}

#section_video .pinned-image__container-overlay {
    z-index: 2;
}

.pinned_over_content {
    z-index: 3;
}


/* =========================================================
   HOME ABOUT SECTION - SMALL REEL
   ========================================================= */

.parallax_wrapper .img_over {
    overflow: hidden;
}

.parallax_wrapper .img_over span {
    display: block;
}

.parallax_wrapper .img_over .about-reel {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;

    aspect-ratio: 478 / 850;

    object-fit: cover;
    object-position: center;

    border-radius: 10px;
}


/* =========================================================
   CASA MARIA FOOTER LOGO
   ========================================================= */

.footer_casa_logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_casa_logo img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 991px) {

    .footer_casa_logo {
        margin-top: 40px;
        justify-content: flex-start;
    }

    .footer_casa_logo img {
        width: 240px;
    }
}


/* =========================================================
   SMOOTHER PAGE SCROLLING
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

img,
video {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pinned-image,
.parallax_wrapper,
.row_list_version_3 {
    transform: translateZ(0);
}


/* =========================================================
   CASA MARIA GALLERY ARRANGEMENT
   ========================================================= */

.isotope-wrapper .item-img {
    width: 100%;
    height: 320px;

    overflow: hidden;
    border-radius: 12px;

    position: relative;
}

.isotope-wrapper .item-img > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

@media (max-width: 991px) {

    .isotope-wrapper .item-img {
        height: 300px;
    }
}

@media (max-width: 767px) {

    .isotope-wrapper .item-img {
        height: 260px;
    }
}


/* =========================================================
   CASA MARIA HEADER LOGO
   ========================================================= */

.logo_normal img {
    width: 250px;
    height: auto;
    max-width: none;
    object-fit: contain;
}

.logo_sticky img {
    width: 220px;
    height: auto;
    max-width: none;
    object-fit: contain;
}

.logo_panel img {
    width: 220px;
    height: auto;
    object-fit: contain;
}


/* Tablet */
@media (max-width: 991px) {

    .logo_normal img {
        width: 200px;
    }

    .logo_sticky img {
        width: 190px;
    }

    .logo_panel img {
        width: 200px;
    }
}


/* Small Mobile */
@media (max-width: 575px) {

    .logo_normal img {
        width: 170px;
    }

    .logo_sticky img {
        width: 165px;
    }

    .logo_panel img {
        width: 180px;
    }
}


/* ==========================================================
   CASA MARIA FOOTER - DESKTOP
   IMPORTANT:
   Do NOT add !important to position: relative.
   footerReveal must be allowed to control footer positioning.
   ========================================================== */

footer.casa-footer {
    position: relative;

    width: 100% !important;

    height: 58vh !important;
    min-height: 500px !important;
    max-height: 620px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background: #080b0f !important;
}


/* ==========================================================
   FOOTER BACKGROUND AREA
   ========================================================== */

footer.casa-footer .footer_bg {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    z-index: 0 !important;

    overflow: hidden !important;

    background: #080b0f !important;
}


/* ==========================================================
   FERRY BACKGROUND IMAGE
   Darker + reduced visibility
   ========================================================== */

footer.casa-footer .footer_bg .background-image {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    /*
       Lower opacity = less visible picture.
       0.72 gives a dark background while keeping
       the ferry recognizable.
    */
    opacity: 0.72 !important;

    /*
       Additional image darkening.
    */
    filter: brightness(0.82) !important;
    -webkit-filter: brightness(0.82) !important;

    transform: none !important;
}


/* ==========================================================
   CASA MARIA FOOTER - DARK CINEMATIC GRADIENT
   ========================================================== */

footer.casa-footer .casa-footer-overlay {
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    /*
       Dark from top to bottom.
       Bottom becomes darker so it blends naturally
       into the copyright strip.
    */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.48) 30%,
        rgba(0, 0, 0, 0.58) 60%,
        rgba(0, 0, 0, 0.72) 82%,
        rgba(0, 0, 0, 0.88) 100%
    ) !important;

    z-index: 1 !important;

    pointer-events: none !important;
}


/* ==========================================================
   FOOTER CONTACTS / EXPLORE
   ========================================================== */

footer.casa-footer h5 {
    margin-bottom: 20px !important;

    color: #ffffff !important;

    font-size: 20px !important;
}

footer.casa-footer ul {
    margin-bottom: 0 !important;
}

footer.casa-footer li,
footer.casa-footer p,
footer.casa-footer .footer_links a {
    color: #ffffff !important;
}

footer.casa-footer .footer_links li {
    margin-bottom: 7px !important;
}


/* Contact email and phone */

footer.casa-footer strong a {
    color: #e6c68a !important;
}


/* Social icons */

footer.casa-footer .social {
    margin-top: 20px !important;
}


/* ==========================================================
   FOOTER CASA MARIA LOGO
   ========================================================== */

footer.casa-footer .footer_casa_logo {
    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
}

footer.casa-footer .footer_casa_logo img {
    width: 260px !important;
    max-width: 90% !important;

    height: auto !important;

    display: block !important;

    object-fit: contain !important;
}


/* ==========================================================
   FOOTER CONTENT CENTERING
   ========================================================== */

footer.casa-footer .casa-footer-content {
    position: absolute !important;

    top: 0 !important;
    left: 50% !important;
    bottom: 58px !important;

    transform: translateX(-50%) !important;

    width: 100% !important;

    z-index: 2 !important;

    display: flex !important;
    align-items: center !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* Contacts + Explore + Logo row */

footer.casa-footer .casa-footer-content > .row {
    width: 100% !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    align-items: center !important;
}


/* Vertically center each column */

footer.casa-footer .casa-footer-content > .row > div {
    align-self: center !important;
}


/* ==========================================================
   COPYRIGHT BLACK STRIP
   ========================================================== */

footer.casa-footer .copy {
    position: absolute !important;

    left: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 58px !important;

    z-index: 5 !important;

    /*
       Darker copyright strip matching the new footer.
    */
    background: rgba(8, 11, 15, 0.98) !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 !important;
    margin: 0 !important;
}

footer.casa-footer .copy .container {
    text-align: center !important;

    color: #faf9f9 !important;

    font-size: 13px !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991px) {

    footer.casa-footer {
        height: auto !important;

        min-height: 720px !important;
        max-height: none !important;
    }

    footer.casa-footer > .container {
        height: auto !important;

        min-height: 660px !important;

        padding-top: 55px !important;
        padding-bottom: 100px !important;

        align-items: flex-start !important;
    }

    footer.casa-footer .footer_casa_logo {
        margin-top: 35px !important;

        justify-content: flex-start !important;
    }

    footer.casa-footer .footer_casa_logo img {
        width: 230px !important;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 575px) {

    footer.casa-footer {
        min-height: 850px !important;
    }

    footer.casa-footer > .container {
        min-height: 790px !important;

        padding-top: 45px !important;
        padding-bottom: 90px !important;
    }

    footer.casa-footer h5 {
        font-size: 18px !important;

        margin-bottom: 14px !important;
    }

    footer.casa-footer .footer_casa_logo {
        margin-top: 30px !important;

        justify-content: center !important;
    }

    footer.casa-footer .footer_casa_logo img {
        width: 200px !important;
    }

    footer.casa-footer .copy {
        height: 55px !important;
    }

    footer.casa-footer .copy .container {
        font-size: 11px !important;
    }
}


/* ==========================================================
   FOOTER REVEAL - DESKTOP SAFETY
   Keeps original footer animation.
   Does NOT force footer positioning.
   ========================================================== */

@media (min-width: 1024px) {

    html,
    body {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    footer.casa-footer.revealed {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}