body {
    color: #fff;
    background-color: #000;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

#services-body {
    background-color: #000;
}

#hero {
    position: relative;
    height: 100vh; /* Full viewport height to cover both header and hero */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* text-align: center; */
    color: #fff;
    z-index: 1; /* Ensure content is above the video */
}

#hero .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place the video behind the content */
    overflow: hidden;
}

#hero #header-section {
    width: 100%;
}

#hero .video-background iframe, #hero .video-background #player {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Disable mouse events on the video */
    object-fit: cover; /* Ensure the video covers the area */
}

#hero header {
    position: relative;
    background: none; /* Remove the background color */
    z-index: 1; /* Ensure it appears above the video */
    width: 100%;
    padding: 1rem 0; /* Adjust padding to ensure it doesn't collapse */
}

#hero header .container-fluid {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    width: 100%;
}

#hero header h1 {
    margin-bottom: 0.5rem;
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure it appears above the video */
    margin-top: auto; /* Align to the bottom of the section */
    padding-bottom: 2rem; /* Add some padding to the bottom */
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1.75em;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); /* Add a shadow to the text */
}

.hero-content h2 {
    font-size: 1.75em; /* Explicitly set the font size for <h2> elements */
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); /* Add a shadow to the text */
}

#hero #header-section header {
  /* Reset or adjust margins, alignment, or position */
  text-align: left; /* Or whatever alignment you prefer */
  margin: 0 auto; /* Adjust margins as needed */
  padding: 20px;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.fade-out {
    animation: fadeOut 2s forwards;
    animation-delay: 1s; /* Text will be visible for 3.5 seconds before fading out */
}

.video-card {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: scale(1);
    opacity: 1;
}

.video-card-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #050505;
}

.video-card:hover {
    /* Keep the Isotope grid item's footprint fixed. Thumbnail motion is scoped below. */
    transform: none;
}

.video-card .embed-responsive iframe {
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    padding: 1.5rem;
    pointer-events: none;
}

.video-card:not(.active) .video-card-frame:hover .video-overlay,
.video-card:not(.active) .video-card-frame:focus-within .video-overlay {
    opacity: 1;
    transform: translateY(0);
}

.video-card.active .video-overlay {
    opacity: 0;
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
}

.video-overlay-content {
    width: 100%;
}

.video-overlay-content h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.video-overlay-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-overlay {
        transition: none;
    }
}

.video-info h5 {
    margin: 0.5em 0 0;
    font-size: 1.2em;
}

.video-info p {
    margin: 0;
    font-size: 0.9em;
    color: #777;
}

footer p {
    margin: 0;
}

/* About section styling */
#about .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#about .about-text-index {
    flex: 1;
    padding-right: 20px !important;
}

#about .about-text {
    flex: 1;
    padding-right: 60px !important;
}

#about .about-text img {
    display: block;
    margin: 0 auto;
    max-width: 100%; /* Ensures responsiveness */
}

#about .about-photo {
    flex: 1;
    text-align: center;
}

#about .about-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.work-featured {
    width: min(90%, 1200px);
    margin: 3rem auto;
    padding: 2.75rem 2rem;
    background: var(--mrao-featured-card);
    border: 1px solid var(--mrao-border);
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(44, 26, 14, 0.1);
    text-align: center;
}

.work-featured__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.work-featured__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 4vw, 4rem);
    max-width: 1000px;
    margin: 0 auto;
}

.work-featured__logo {
    display: block;
    flex: 1 1 0;
    width: 100%;
    max-width: 280px;
    height: 100px;
    object-fit: contain;
}

/* Default layout for larger screens */
#latest-projects {
    display: flex;
    align-items: stretch;
    background-color: #1c1c1c;
    border-radius: 15px;
    padding: 0;
    margin: 80px;
    overflow: hidden;
}

#latest-projects h2 {
    text-align: center; 
    font-size: 35px;
    letter-spacing: 8px;
    padding-bottom: 1.75em;
    text-transform: uppercase;
}

#latest-projects p {
    text-align: center; 
    margin-top: 2em; 
    font-size: 1.5em;
}

#latest-projects .left-section {
    flex: 1;
    max-width: 65%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#latest-projects .right-section {
    flex: 1;
    position: relative;
    max-width: 35%;
}

#latest-projects .embedded-videos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(16px, 2vw, 32px);
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 clamp(16px, 3vw, 48px);
}

/* Style for individual iframes (YouTube videos) 
#latest-projects iframe {
    width: 30%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    height: auto;
    box-sizing: border-box;
}
*/
#latest-projects .latest-video {
    flex: 1 1 clamp(200px, 28%, 360px);
    min-width: 0;
    max-width: 100%;
}

#latest-projects .latest-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#latest-projects img {
    border-radius: 0 15px 15px 0; /* Rounded corners on the right */
    width: 100%; /* Make image take full width */
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    #latest-projects {
        flex-direction: column;
        height: auto;
        margin: 2vw;
    }

    #latest-projects h2 {
        font-size: 20px;
    }
    
    #latest-projects p {
        margin-top: 8px; 
        font-size: 16px;
    }
    
    #latest-projects .left-section {
        padding: 40px; 
        max-width: 100%;
    }

    #latest-projects .right-section {
        max-width: 100%;
        justify-content: center;
    }

    #latest-projects .embedded-videos {
        flex-direction: column;
        width: 100%;
        gap: 20px;
        display: flex;
        align-items: center;
        padding: 0 20px;
        margin: 0;
    }
/*
    #latest-projects iframe {
        width: 90%; 
        box-sizing: border-box; 
    }
*/
    #latest-projects .latest-video {
        flex: 1 1 auto;
        max-width: 480px;
        width: 100%;
        min-width: 0;
    }

    #latest-projects img {
        width: 100%; /* Make image take full width on mobile */
        max-height: auto;
        object-fit: contain;
        border-radius: 0 0 15px 15px; /* Rounded corners on the bottom */
    }
}

*/ Hidden Section */
.about-the-movie {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Remove padding inside sections */
    margin: 0; /* Remove margin between sections */
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-content {
    display: flex;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.section-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

#review h2 {
    color: #5a5a8c;
}

.intro-content {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    color: #5a5a8c;
    font-size: 2rem;
    margin-bottom: 15px;
}

.text-content {
    width: 45%;
    padding: 20px;
}

.text-content h2 {
    color: #5a5a8c;
    font-size: 2rem;
    margin-bottom: 15px;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.btn {
    padding: 10px 20px;
    background-color: #9095e0; /* Purple color */
    border-color: #9095e0; /* Ensure border color matches */
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    border-width: 3px; /* Default is 2px */
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

form .btn {
    padding: 2px 0px;
}

.btn:hover {
    background-color: #000; 
    border-color: #6d72bf; /* Darker purple color */
    color: #6d72bf; /* Ensure text color matches */
    border-width: 3px;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.btn.active-filter {
    background-color: #000; 
    border-color: #6d72bf; /* Darker purple color */
    color: #6d72bf; /* Ensure text color matches */
    border-width: 3px;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
    }

    .text-content {
        width: 100%;
        text-align: center;
    }

    .section-image {
        width: 100%;
        margin-bottom: 20px;
    }
    .thanks-row {
        flex-direction: column;
        text-align: center;
    }

    .thanks-row p {
        margin-top: 10px;
    }
}

.special-thanks {
    text-align: center;
    padding: 40px 20px;
    background-color: #cfd2fc;
}

.special-thanks h2 {
    font-size: 2.5rem;
    color: #3f5d7d;
    margin-bottom: 30px;
}

.thanks-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.thanks-row {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    width: 100%;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    align-items: center;
}

.thanks-left {
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    text-align: left;
}

.thanks-right {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.thanks-row strong {
    color: #5a5a8c;
    font-size: 1.2rem;
    display: block;
}

.thanks-row p {
    color: #333;
    margin: 0; 
}

.thanks-row em {
    font-size: 0.9rem;
    color: #888;
    margin-left: 0;
    display: block;
    margin-top: 5px;
    width: 100%;
}

#review {
    background-color: #cfd2fc;
}

#review .form-group div {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns content to the left */
}

#review .form-group div label {
    margin-left: 10px; /* Adds a small space between the radio button and the label */
}

#review .container {
    max-width: 600px; /* Limits the width of the form */
    margin: 0 auto;    /* Centers the form horizontally */
}

/*
#contact .container {
    max-width: 600px; 
    margin: 0 auto; 
}
*/
/*
#contact .container h2, #contact .container p {
    color: white;
}
*/
#review .button-container {
    display: flex;
    justify-content: center; /* Centers the buttons horizontally */
    gap: 10px; /* Optional: adds space between the buttons */
}

.video-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensures no overflow happens outside the section */
}

.video-section .background-image {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 80%;  /* Make sure it covers the full height of the section */
    background-image: url('photos/mountains.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;  /* Ensure the background stays behind the content */
}

.content-wrapper {
    width: 100%; /* Ensure the entire content wrapper takes full width */
    max-width: 1200px; /* Limit the max width of the whole content */
    text-align: center; /* Centers the text horizontally */
    z-index: 1;  /* Keeps the content in front of the background */
    padding: 20px;  /* Optional: padding around the content */
}

.aftt-intro-text {
    max-width: 600px; /* Limits the width of the text */
    margin: 0 auto;   /* Centers the text */
}

.video-container {
    width: 100%; /* Ensures video container takes full width */
    display: flex;
    justify-content: center; /* Centers the video horizontally */
    margin-top: 20px;
}

.video-section h2,
.video-section p {
    color: white;  /* Ensure text is readable */
    margin: 10px 0;  /* Add some margin for spacing */
}

.video-section .video-embed {
    width: 60%;  /* Adjust to your preferred width */
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 1200px;  /* Optional: max width for larger screens */
    margin: 20px auto;  /* Centers the video horizontally and adds space */
    border: none;
}

.footer {
    /*background-color: #f9f5e5; Light background like in old mraomedia site */
    background-color: #000;
    padding: 40px 0;
}

.footer-logo {
    max-width: 250px; /* Adjust the logo size */
    width: 100%;
}

.footer p {
    margin: 0;
    /*color: #006b75; Text color similar to old mraomedia site */
    color: #fff;
}

.footer a {
    text-decoration: none;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    vertical-align: middle;
}

.social-icon.icon1:hover {
  content: url('photos/instagram-purple.png'); /* Second image */
}

.social-icon.icon2:hover {
  content: url('photos/youtube-purple.png'); /* Second image */
}

.social-icon.icon3:hover {
  content: url('photos/x-purple.png'); /* Second image */
}

.social-icon.icon4:hover {
  content: url('photos/tiktok-purple.png'); /* Second image */
}

@media (max-width: 768px) {
    .footer .text-center {
        text-align: center !important; /* Ensures proper centering on mobile */
    }
    .footer .text-md-left {
        text-align: center !important; /* Centers logo on smaller screens */
    }
    .footer .text-md-right {
        text-align: center !important; /* Centers social icons on smaller screens */
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: black;
    color: white;
}

.header-logo {
    padding-left: 50px;
}

.header-logo img {
    max-width: 80%;
    height: auto;
    width: auto;
}

/* Navigation Links Styles */

/* Make the navbar background transparent */
.navbar {
  background-color: transparent !important;
}

/* Change text color for navbar links for better contrast on transparent background */
.navbar .nav-link {
  color: white; /* Text color for navbar links */
}

/* Optional: Change the color of navbar links on hover */
.navbar .nav-link.montserrat-700:hover {
  color: #aeb3fc; /* Hover color */
}

.navbar .nav-link.montserrat-700.active {
  color: #aeb3fc; /* Active page color, same as hover color */
}

/* Hamburger Icon Styles */
/*
header .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

header .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
}
*/

/* Media Query for Small Screens */
@media (max-width: 768px) {
    .header-logo img {
        max-width: 70%;
    }

    header {
        flex-direction: column;
        align-items: center;
    }
}

.services {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.service-item {
    width: 300px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
}
.service-item img {
    width: 100%;
    border-radius: 10px;
}
.service-item h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
    color: white;
}
.service-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: white;
}

@media screen and (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
    }
}

.gallery {
    column-count: 2;
    column-gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.caption {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

/* Adjust layout for smaller screens */
@media screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.text-wrapper {
    display: flex;
    justify-content: flex-end; /* Aligns the content container towards the right */
    padding: 50px; /* Adds space around the container */
}

.text-container {
    max-width: 60%; /* Controls the width of the text container */
    padding: 20px;
}

.four-text-container {
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 0 auto;
}

.four-text-container .column {
    width: 23%; /* Adjust width as needed */
    margin-top: 0; /* Reset margin */
    display: flex;
    flex-direction: column;
}

.four-text-container .column:nth-child(1) {
    margin-top: 0; /* First column stays at the top */
}

.four-text-container .column:nth-child(2) {
    margin-top: 40px; /* Adjust this value for desired drop */
}

.four-text-container .column:nth-child(3) {
    margin-top: 55px; /* Adjust this value for desired drop */
}

.four-text-container .column:nth-child(4) {
    margin-top: 70px; /* Adjust this value for desired drop */
}

.services-page {
    text-align: center;
    padding: 50px 0;
    background-color: #000;
}

.header-text {
    font-size: 4em;
    margin-bottom: 30px;
    color: white;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-box {
    background-color: #111;
    border: 2px solid #f2f2f2;
    width: 380px;
    height: 520px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.service-box img {
    width: 100%;
    height: auto;
}

.service-box h3 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: white;
}

.service-box p {
    font-size: 1em;
    line-height: 1.6;
    color: white;
}

.cta-section {
    background-color: #000;
    color: #000;
    padding-bottom: 100px;
    margin-top: 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2em;
    padding-top: 30px;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.cta-button {
    padding: 10px 20px;
    background-color: #9095e0; /* Purple color */
    border-color: #9095e0; /* Ensure border color matches */
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    border-width: 3px; /* Default is 2px */
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.cta-button:hover {
    background-color: #f2f2f2; 
    border-color: #6d72bf; /* Darker purple color */
    color: #6d72bf; /* Ensure text color matches */
    border-width: 3px;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#hero-services {
    position: relative;
    height: 90vh; /* Full viewport height to cover both header and hero */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 1; /* Ensure content is above the video */
    background-color: #000;
}

#hero-services .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 100%;
    margin-left: 15%; /* Push it to the right */
    z-index: -1; /* Place the video behind the content */
    overflow: hidden;
}

#hero-services .video-background iframe, #hero-services .video-background #player-services {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Disable mouse events on the video */
    object-fit: cover; /* Ensure the video covers the area */
}

#why-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 40px 40px 40px;
    background-color: #000;
    color: white;
}

#why-container #image-section {
    flex: 1;
}

#why-container #image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#why-container #text-section {
    flex: 1;
    margin-left: 30px;
}

#why-container #text-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#why-container #text-section p {
    font-size: 16px;
    margin-bottom: 20px;
}

#why-container .checklist {
    list-style: none;
    padding: 0;
}

#why-container .checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#why-container .checklist li::before {
    content: '✔';
    color: #00ff00;
    margin-right: 10px;
}

@media (max-width: 768px) {
    #why-container {
        flex-direction: column;
        text-align: center;
    }

    #why-container #text-section {
        margin-left: 0;
        margin-top: 20px;
    }
}
/*
#contact-section {
    background-color: #000;
}
*/
#cta-container {
    max-width: 940px; /* Limits the width of the container */
    margin: 0 auto;    /* Centers content horizontally */
    background-color: #cfd2fc;
    padding: 10px;
    border: 4px solid #9095e0;
}

/* Container to hold both slideshow and text */
.slideshow-text-container {
    display: flex;
    justify-content: flex-start; /* Aligns items to the start (left) */
    align-items: center;
    gap: 20px; /* Optional: space between slideshow and text */
    color: white;
    padding: 100px 40px 40px 40px;
}

/* Slideshow container */
.slideshow-container {
    width: 60%; /* Adjust width as needed */
    height: 70vh;
    overflow: hidden;
    position: relative;
}

.slideshow-container-index {
    width: 50%; /* Adjust width as needed */
    height: 45vh;
    overflow: hidden;
    position: relative;
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade-in and fade-out */
/*take out this part if it messes things up*/
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Visible slide */
.slides.show {
    opacity: 1;
}

/* Ensure images fit within the container */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scales the image to cover the container while maintaining aspect ratio */
    display: block; /* Removes extra spacing below images */
}

.slide-image-small {
    width: 75%;      /* Sets a consistent width */
    height: auto;    /* Allows the height to scale naturally */
    max-width: 100%; /* Ensures it doesn't exceed the container width */
}

/* Text section */
.slideshow-text-container #text-section {
    flex: 1;
    margin-left: 30px;
}

.slideshow-text-container #text-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.slideshow-text-container #text-section p {
    font-size: 16px;
    margin-bottom: 20px;
}

.slideshow-text-container .checklist {
    list-style: none;
    padding: 0;
}

.slideshow-text-container .checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.slideshow-text-container .checklist li::before {
    content: '✔';
    color: #dcc17f;
    margin-right: 10px;
}

/* Font Styles for Text Elements */

h0 {
    display: block;
    font-size: 2em;
    margin-before: 0.67em;
    margin-after: 0.67em;
    margin-start: 0;
    margin-end: 0;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

h1 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

h2 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

p {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* CONTACT FORM 2 CSS */

#contact {
  width: 100%;
  height: 100%;
}

.section-header {
  text-align: center;
  margin: 0 auto;
  padding: 40px 0;
  font: 300 55px 'Oswald', sans-serif;
  color: #fff;
}

.contact-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 auto;
  padding-top: 20px;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 50px;
  position: relative;
  max-width: 840px;
}

/* Left contact page */
.form-horizontal {
  /*float: left;*/
  max-width: 400px;
  font-family: 'Lato';
  font-weight: 400;
}

.form-control, 
textarea {
  max-width: 400px;
  background-color: #000;
  color: #fff;
  letter-spacing: 1px;
}

form div div input.form-control {
  max-width: 400px;
  background-color: #000;
  color: #fff;
  letter-spacing: 1px;
}

.send-button {
  margin-top: 15px;
  height: 34px;
  width: 400px;
  overflow: hidden;
  transition: all .2s ease-in-out;
}

.alt-send-button {
  width: 400px;
  height: 34px;
  transition: all .2s ease-in-out;
}

.send-text {
  display: block;
  margin-top: 10px;
  font: 700 12px 'Lato', sans-serif;
  letter-spacing: 2px;
}

.alt-send-button:hover {
  transform: translate3d(0px, -29px, 0px);
}

/* Begin Right Contact Page */
.direct-contact-container {
  max-width: 400px;
}

/* Location, Phone, Email Section */
.contact-list {
  list-style-type: none;
  margin-left: -30px;
  padding-right: 20px;
}

.list-item {
  line-height: 4;
  color: #aaa;
}

.contact-text {
  font: 300 18px 'Lato', sans-serif;
  letter-spacing: 1.9px;
  color: #bbb;
}

.contact-blurb {
  color: #fff;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

.contact-icon {
    width: 30px;
    height: 30px;
    margin-left: 30px;
    vertical-align: middle;
}

.place {
  margin-left: 62px;
}

.phone {
  margin-left: 56px;
}

.gmail {
  margin-left: 53px;
}

.contact-text a {
  color: #bbb;
  text-decoration: none;
  transition-duration: 0.2s;
}

.contact-text a:hover {
  color: #fff;
  text-decoration: none;
}

.direct-contact-container hr {
  width: 85%;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Begin Media Queries*/
@media screen and (max-width: 850px) {
  .contact-wrapper {
    display: flex;
    flex-direction: column;
  }
  .direct-contact-container, .form-horizontal {
    margin: 0 auto;
  }  
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 300px;
  }    
}

@media screen and (max-width: 569px) {

  .direct-contact-container, .form-wrapper {
    float: none;
    margin: 0 auto;
  }  
  .form-control, textarea {
    
    margin: 0 auto;
  }
 
  
  .name, .email, textarea {
    width: 280px;
  } 
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 280px;
  } 
  
}

@media screen and (max-width: 410px) {
  .send-button {
    width: 99%;
  }
}

.form-horizontal .form-group {
    margin-right: -15px;
    margin-left: -15px;
}

/* <uniquifier>: Use a unique and descriptive class name */
/* <weight>: Use a value from 100 to 900 */

.montserrat-100 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.montserrat-200 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.montserrat-300 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.montserrat-400 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.montserrat-500 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.montserrat-600 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.montserrat-700 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.montserrat-800 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.montserrat-900 {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

/* Ensure the HTML and contact-page body fill the viewport */
html, body.contact-page {
  height: 100%;
  margin: 0;
}

/* Make the contact page a flex container */
body.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Full viewport height */
  /* The contact form stacks on narrow screens. Keep its cream gradient in the
     document's coordinate space so it does not restart between the form and
     the contact-details block while the page scrolls. */
  background-attachment: scroll;
}

/* Allow the main content area to expand */
body.contact-page #contact-section {
  flex: 1 0 auto;
}

#featured-videos #featuredCarousel {
  position: relative;
}

#sabrina-reel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  transition: min-height 0.35s ease, padding 0.35s ease;
}

#sabrina-reel .container {
  width: 100%;
}

#sabrina-reel .sabrina-reel-frame {
  max-width: min(96vw, 1800px);
  transition: max-width 0.35s ease;
}

#sabrina-reel .embed-responsive {
  border-radius: 14px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

#sabrina-reel.compact {
  min-height: auto;
  padding: 2.75rem 0 2rem;
}

#sabrina-reel.compact .sabrina-reel-frame {
  max-width: min(90vw, 1080px);
}

#sabrina-reel .header-text {
  transition: margin-bottom 0.35s ease;
}

#sabrina-reel.compact .header-text {
  margin-bottom: 1.25rem !important;
}

body.portfolio-page #header-section {
  max-height: 220px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.45s ease;
  position: relative;
  z-index: 15;
}

body.portfolio-page.portfolio-immersive #header-section {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
}

body.portfolio-page.portfolio-immersive #header-section header {
  background: transparent;
}

body.portfolio-page.portfolio-immersive #header-section .navbar {
  margin-left: auto;
  margin-top: 0;
}

body.portfolio-page.portfolio-immersive #header-section .header-logo {
  visibility: hidden;
  pointer-events: none;
}

body.portfolio-page.portfolio-immersive #sabrina-reel {
  min-height: 100vh;
  padding: 0;
}

body.portfolio-page.portfolio-immersive #sabrina-reel .container {
  max-width: 100%;
  padding: 0;
}

body.portfolio-page #sabrina-reel .container,
body.portfolio-page #sabrina-reel .row,
body.portfolio-page #sabrina-reel .sabrina-reel-frame,
body.portfolio-page #sabrina-reel .embed-responsive {
  transition: max-width 0.45s ease, padding 0.45s ease, margin 0.45s ease, border-radius 0.45s ease, box-shadow 0.45s ease;
}

body.portfolio-page.portfolio-immersive #sabrina-reel .row {
  margin: 0;
}

body.portfolio-page.portfolio-immersive #sabrina-reel .sabrina-reel-frame {
  max-width: 100vw;
  padding: 0;
}

body.portfolio-page.portfolio-immersive #sabrina-reel .embed-responsive {
  border-radius: 0;
  box-shadow: none;
}

.reel-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vh, 48px);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem 0.7rem;
  background: rgba(5, 5, 5, 0.42);
  color: #fff;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 20;
}

.reel-scroll-cue__label {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.reel-scroll-cue__icon {
  font-size: 0.9rem;
  opacity: 0.9;
  animation: reelScrollCueBounce 1.8s ease-in-out infinite;
}

.reel-scroll-cue:hover,
.reel-scroll-cue:focus-visible {
  background: rgba(5, 5, 5, 0.65);
  transform: translateX(-50%) translateY(-2px);
}

body.portfolio-page.portfolio-immersive .reel-scroll-cue {
  opacity: 1;
  pointer-events: auto;
}

body.portfolio-page:not(.portfolio-immersive) .reel-scroll-cue {
  opacity: 0;
  pointer-events: none;
}

@keyframes reelScrollCueBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

#featured-videos .carousel-inner {
  padding: 0 4.5rem;
}

/* Bootstrap 5's carousel script applies the *-start/*-end state classes,
   while this site retains Bootstrap 4's base stylesheet.  Supply the matching
   transition states here so the incoming slide starts moving immediately. */
#featuredCarousel .carousel-item {
  transition: transform 0.35s ease-in-out;
}

#featuredCarousel .carousel-item-next:not(.carousel-item-start),
#featuredCarousel .active.carousel-item-end {
  transform: translateX(100%);
}

#featuredCarousel .carousel-item-prev:not(.carousel-item-end),
#featuredCarousel .active.carousel-item-start {
  transform: translateX(-100%);
}

#featured-videos .carousel-control-prev,
#featured-videos .carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: 50%;
  bottom: auto;
  border: 1px solid var(--mrao-gold);
  border-radius: 50%;
  background-color: rgba(197, 160, 89, 0.28);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

#featured-videos .carousel-control-prev:hover,
#featured-videos .carousel-control-prev:focus,
#featured-videos .carousel-control-prev:focus-visible,
#featured-videos .carousel-control-prev:active,
#featured-videos .carousel-control-next:hover,
#featured-videos .carousel-control-next:focus,
#featured-videos .carousel-control-next:focus-visible,
#featured-videos .carousel-control-next:active {
  border-color: var(--mrao-lilac);
  background-color: rgba(174, 179, 252, 0.28);
}

#featured-videos .carousel-control-prev-icon,
#featured-videos .carousel-control-next-icon {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-size: 34% 34%;
}

#featured-videos .carousel-control-prev {
  left: 0.5rem;
}

#featured-videos .carousel-control-next {
  right: 0.5rem;
}

@media (max-width: 1200px) {
  #featured-videos .carousel-inner {
    padding: 0 3.75rem;
  }

  #featured-videos .carousel-control-prev,
  #featured-videos .carousel-control-next {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 992px) {
  #featured-videos .carousel-inner {
    padding: 0 3.25rem;
  }

  #featured-videos .carousel-control-prev,
  #featured-videos .carousel-control-next {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 576px) {
  #sabrina-reel {
    padding: 1.5rem 0;
  }

  #sabrina-reel.compact {
    padding: 2rem 0 1.25rem;
  }
  
  #featured-videos .carousel-inner {
    padding: 0 2.75rem;
  }

  #featured-videos .carousel-control-prev,
  #featured-videos .carousel-control-next {
    width: 2.25rem;
    height: 2.25rem;
  }

  .reel-scroll-cue {
    bottom: 18px;
    padding: 0.68rem 1rem 0.62rem;
  }

  .reel-scroll-cue__label {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sabrina-reel,
  #sabrina-reel .sabrina-reel-frame,
  #sabrina-reel .header-text,
  .reel-scroll-cue {
    transition: none;
  }

  .reel-scroll-cue__icon {
    animation: none;
  }
}

/* Flyer-inspired brand palette ------------------------------------------------
   Keep these declarations at the end so the older, page-specific theme rules
   inherit the new visual system without changing their responsive layout. */
:root {
  --mrao-cream-top: #f4f1e1;
  --mrao-cream-bottom: #fdfcf5;
  --mrao-gold: #c5a059;
  --mrao-brown: #2c1a0e;
  --mrao-lilac: #aeb3fc;
  --mrao-card: rgba(255, 253, 244, 0.86);
  --mrao-featured-card: #fffdf4;
  --mrao-border: rgba(197, 160, 89, 0.42);
}

html {
  background: var(--mrao-cream-top);
}

.btn:focus,
.btn.focus {
  box-shadow: 0 0 0 0.2rem rgba(174, 179, 252, 0.55);
}

body,
#services-body {
  color: var(--mrao-brown);
  background-color: var(--mrao-cream-bottom);
  background-image: linear-gradient(180deg, var(--mrao-cream-top) 0%, var(--mrao-cream-bottom) 100%);
  background-attachment: fixed;
}

/* The flyer uses gold for the visual hierarchy and brown for all supporting copy. */
h1,
h2,
.section-header,
.hero-title {
  color: var(--mrao-gold) !important;
}

body,
p,
li,
label,
input,
textarea,
select,
.service-item h3,
.service-item p,
#latest-projects .left-section,
#latest-projects p,
.footer p,
.nav-link,
.contact-blurb,
.contact-list,
.contact-list .list-item,
.contact-list .contact-text,
.contact-list .contact-text a,
.text-white {
  color: var(--mrao-brown) !important;
}

a {
  color: var(--mrao-brown);
  text-decoration-color: var(--mrao-gold);
}

a:hover,
a:focus-visible {
  color: var(--mrao-gold);
}

#hero {
  color: var(--mrao-brown);
}

.hero-content {
  color: var(--mrao-gold);
  text-shadow: 0 2px 12px rgba(44, 26, 14, 0.68);
}

.hero-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.15;
  text-transform: uppercase;
}

header {
  color: var(--mrao-brown);
  background: rgba(253, 252, 245, 0.82);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Keep the home navigation over the hero footage, as in the original layout. */
#hero header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* The portfolio reel uses the same uninterrupted video treatment. */
body.portfolio-page #header-section header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar .nav-link,
.nav-link,
.navbar .nav-link.active {
  color: var(--mrao-gold) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--mrao-lilac) !important;
}

/* Bootstrap's navbar-dark icon is white by default; render it in the brand gold. */
.navbar-toggler-icon {
  background-color: var(--mrao-gold);
  background-image: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

header .hamburger .bar {
  background-color: var(--mrao-gold);
}

#about,
.container,
#contact-section {
  background-color: transparent;
}

.service-item,
#latest-projects {
  background: var(--mrao-card);
  border: 1px solid var(--mrao-border);
  box-shadow: 0 12px 30px rgba(44, 26, 14, 0.1);
}

#latest-projects {
  background: var(--mrao-featured-card);
}

/* Let one body-level gradient flow continuously through the services page. */
.services-page,
.cta-section,
.slideshow-text-container,
#hero-services,
#contact-section {
  color: var(--mrao-brown);
  background-color: transparent;
  background-image: none;
}

.service-box,
#cta-container {
  color: var(--mrao-brown);
  background: var(--mrao-card);
  border-color: var(--mrao-border);
  box-shadow: 0 12px 30px rgba(44, 26, 14, 0.1);
}

.service-box p,
.slideshow-text-container #text-section p,
.slideshow-text-container .checklist li {
  color: var(--mrao-brown);
}

.services-page .service-box h3 {
  color: var(--mrao-gold);
}

#latest-projects a {
  color: var(--mrao-brown) !important;
}

.contact-list .contact-text a:hover,
.contact-list .contact-text a:focus-visible {
  color: var(--mrao-gold) !important;
}

.direct-contact-container hr {
  border-color: var(--mrao-border);
}

/* Keep each mobile contact detail paired with its icon on one line. */
@media screen and (max-width: 850px) {
  body.contact-page #contact-section {
    flex: 0 0 auto;
  }

  body.contact-page #contact {
    height: auto;
  }

  #contact .form-horizontal {
    width: 100%;
    max-width: 400px;
    min-width: 0;
  }

  #contact .form-horizontal .form-group {
    margin-right: 0;
    margin-left: 0;
  }

  #contact .form-horizontal .col-sm-12 {
    padding-right: 0;
    padding-left: 0;
  }

  #contact .form-horizontal .form-control,
  #contact .form-horizontal textarea,
  #contact .form-horizontal .send-button,
  #contact .form-horizontal .alt-send-button {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .direct-contact-container {
    width: 100%;
    max-width: 340px;
  }

  .contact-list {
    margin: 0;
    padding: 0;
  }

  .contact-list .list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    white-space: nowrap;
  }

  /* Give each stacked contact detail its own breathing room on mobile. */
  .contact-list .list-item + .list-item {
    margin-top: 1rem;
  }

  .contact-list .contact-icon {
    flex: 0 0 30px;
    margin-left: 0;
  }

  .contact-list .contact-text,
  .contact-list .place,
  .contact-list .phone,
  .contact-list .gmail {
    margin-left: 0;
  }
}

@media screen and (max-width: 360px) {
  .contact-list .contact-text {
    font-size: 16px;
    letter-spacing: 1px;
  }
}

/* Portfolio grid: fixed card footprints with a thumbnail-only hover treatment. */
body.portfolio-page #portfolio-items {
  margin-inline: -1rem;
}

body.portfolio-page #portfolio-items .video-card {
  display: flex;
  flex-direction: column;
  height: 19rem;
  padding-inline: 0.85rem;
  background: transparent;
  box-shadow: none;
  filter: none;
}

body.portfolio-page #portfolio-items .video-card-surface {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0.75rem 0.75rem 0.5rem;
  background: var(--mrao-card);
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(44, 26, 14, 0.12);
  overflow: hidden;
}

body.portfolio-page #portfolio-items .video-card-frame {
  flex: 0 0 auto;
}

body.portfolio-page #portfolio-items .video-card-frame .embed-responsive {
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.25s ease;
}

body.portfolio-page #portfolio-items .video-card:not(.active) .video-card-frame:hover .embed-responsive,
body.portfolio-page #portfolio-items .video-card:not(.active) .video-card-frame:focus-within .embed-responsive {
  transform: scale(1.035);
}

body.portfolio-page #portfolio-items .video-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

body.portfolio-page #portfolio-items .video-info h5 {
  display: -webkit-box;
  margin-inline: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 767.98px) {
  body.portfolio-page #portfolio-items {
    margin-inline: -15px;
  }

  body.portfolio-page #portfolio-items .video-card {
    height: auto;
    padding-inline: 15px;
  }

  body.portfolio-page #portfolio-items .video-card-surface {
    min-height: 0;
  }
}

.btn,
.send-button {
  color: var(--mrao-brown);
  background-color: var(--mrao-gold);
  border-color: var(--mrao-gold);
}

.btn:hover,
.btn:focus,
.btn.active-filter {
  color: #fff;
  background-color: var(--mrao-lilac);
  border-color: var(--mrao-lilac);
}

.send-button:hover,
.send-button:focus-visible {
  color: var(--mrao-brown);
  background-color: var(--mrao-lilac);
  border-color: var(--mrao-lilac);
}

.form-control,
textarea,
form div div input.form-control {
  color: var(--mrao-brown);
  background-color: rgba(253, 252, 245, 0.92);
  border-color: var(--mrao-border);
}

.footer {
  background: rgba(244, 241, 225, 0.94);
  border-top: 1px solid var(--mrao-border);
}

@media (max-width: 768px) {
  .work-featured__logos {
    flex-direction: column;
    gap: 1.5rem;
  }

  .work-featured__logo {
    flex: 0 0 auto;
    width: min(100%, 280px);
  }

  .work-featured {
    width: min(94%, 1200px);
    padding: 2rem 1rem;
  }

  /* Services: stack the Why Book Our Service copy before its slideshow. */
  .slideshow-text-container {
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem;
  }

  .slideshow-text-container #text-section {
    order: -1;
    width: 100% !important;
    margin: 0;
    text-align: center;
  }

  .slideshow-text-container #text-section .checklist {
    width: 100%;
    max-width: 38rem;
    margin: 2rem auto 0;
  }

  .slideshow-text-container .checklist li {
    justify-content: center;
    text-align: center;
  }

  .slideshow-text-container .slideshow-container {
    order: 0;
    width: 100vw;
    height: min(100vw, 420px);
    margin-inline: calc(50% - 50vw);
  }

  /* Match the mobile Services hero to the landscape player so the complete
     video stays visible without letterbox space above or below it. */
  #hero-services {
    height: 47.8125vw;
    min-height: 0;
  }

  #hero-services .video-background {
    width: 85%;
    height: 47.8125vw;
    margin-left: 15%;
  }

  #hero-services .video-background #player-services,
  #hero-services .video-background iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  /* About page: use the full screen in the reading order of headline, portrait,
     then biography instead of squeezing the desktop columns side by side. */
  #about .about-text {
    display: contents;
  }

  #about .about-text h1 {
    grid-row: 1;
    width: 100%;
    margin: 0;
    text-align: center;
  }

  #about .about-photo {
    grid-row: 2;
    width: 100vw !important;
    margin-inline: calc(50% - 50vw);
  }

  #about .about-photo img {
    display: block;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  #about .about-text p {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  #about .about-text > a {
    justify-self: center;
  }

  /* Keep the About-page thank-you message readable at mobile width. */
  .text-wrapper {
    display: block;
    width: 100%;
    padding: 2.5rem 1rem;
  }

  .text-container {
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: center;
  }

  /* Present the home introduction as heading, full-width slideshow, then copy. */
  #about .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem 0;
  }

  #about .about-text-index {
    display: contents;
  }

  #about .about-text-index h1 {
    grid-row: 1;
    margin: 0;
    text-align: center;
  }

  #about .slideshow-container-index {
    grid-row: 2;
    width: 100vw;
    height: min(75vw, 360px);
    margin-inline: calc(50% - 50vw);
  }

  #about .slideshow-container-index .slide-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #about .about-copy {
    grid-row: 3;
    width: 100%;
  }

  #about .about-copy p {
    font-size: 1.1rem;
    line-height: 1.65;
  }

  /* Crop the landscape YouTube player to fill the vertical hero, centered on the footage. */
  #hero .video-background #player,
  #hero .video-background iframe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 177.778vh !important;
    max-width: none !important;
    height: 100% !important;
    transform: translateX(-50%);
  }

  .hero-content {
    padding-inline: 1rem;
    transform: translateY(-1.2em);
  }

  #latest-projects {
    margin: 2vw;
  }

  .service-item {
    max-width: min(300px, calc(100vw - 2rem));
  }
}

/* Keep the mobile toggle and its expanded links centered in the shared header. */
@media (max-width: 991.98px) {
  body.portfolio-page #header-section {
    max-height: none;
    overflow: visible;
  }

  header .navbar > .container-fluid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  header .navbar-toggler {
    align-self: center;
  }

  header .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
    text-align: center;
  }

  header .navbar-nav {
    width: 100%;
    align-items: center;
  }

  header .navbar-nav .nav-link {
    text-align: center;
  }
}

/* CMS-selected portrait videos keep their native shape in every placement. */
.embed-responsive.video-vertical {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 9 / 16;
}
.embed-responsive.video-vertical::before {
    display: none;
}
#latest-projects .embedded-videos {
    align-items: flex-start;
}
#latest-projects .latest-video.video-vertical {
    max-width: 240px;
}
body.portfolio-page #sabrina-reel.reel-vertical .embed-responsive {
    aspect-ratio: 9 / 16;
    width: min(100%, 320px);
    height: auto;
    padding-bottom: 0;
    margin: 0 auto;
}
body.portfolio-page.portfolio-immersive #sabrina-reel.reel-vertical .embed-responsive {
    width: min(100%, 48vh);
    height: auto;
}
