/* ==========================================================================
   Minerva Beauty Salon - Consolidated Stylesheet
   Based on Bootstrap 5.3
   ========================================================================== */

/* 1. BOOTSTRAP 5.3 & VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors */
    --bs-primary: #761F1E;
    /* Burgundy */
    --bs-secondary: #000000;
    /* Black */
    --bs-light: #F1F2F2;
    /* Light Gray */
    --bs-dark: #212529;
    --bs-white: #ffffff;

    --bs-white: #ffffff;
}

/* Global Reset for Square Corners */
* {
    border-radius: 0 !important;
}

/* 2. FONTS (Extracted from desktop.css)
   ========================================================================== */
/* Cabin */

@font-face {
    font-family: 'Cabin', 'Cabin Fallback';
    font-style: normal;
    font-weight: 400;
    src: local('Cabin'), url('https://fonts.gstatic.com/s/cabin/v26/u-4X0qWljRw-PoBA1fA.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Cabin', 'Cabin Fallback';
    font-style: normal;
    font-weight: 700;
    src: local('Cabin Bold'), url('https://fonts.gstatic.com/s/cabin/v26/u-4X0qWljRw-PoBA1fA.woff2') format('woff2');
    font-display: swap;
}

/* Montserrat */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local('Montserrat'), url('https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
    font-display: swap;
}

/* Oswald */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400;
    src: local('Oswald'), url('https://fonts.gstatic.com/s/oswald/v49/TK3iWkUHHAIjg752GT8G.woff2') format('woff2');
    font-display: swap;
}

/* Playball */
@font-face {
    font-family: 'Playball';
    font-style: normal;
    font-weight: 400;
    src: local('Playball'), url('https://fonts.gstatic.com/s/playball/v13/TK3gWksYAxQ7jbsKcg8Eneo.woff2') format('woff2');
    font-display: swap;
}

/* Roboto */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: local('Roboto Light'), url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto'), url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
    font-display: swap;
}

/* 2. TYPOGRAPHY
   ========================================================================== */
body {
    font-family: 'Cabin', sans-serif;
    /* Changed from Source Sans Pro to match live site */
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Global Reset for Borders - "Sin bordes redondeados" */
* {
    border-radius: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--bs-font-heading);
    color: var(--bs-secondary);
    font-weight: 700;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #5a1716;
}

/* 4. UTILITY CLASSES (Matching original overrides)
   ========================================================================== */
.text-burgundy {
    color: var(--bs-primary) !important;
}

.bg-burgundy {
    background-color: var(--bs-primary) !important;
}

.text-script {
    font-family: var(--bs-font-script) !important;
}

/* Images references fixed to img/ folder */
.bg-hero {
    background-image: url('../img/AdobeStock_218337038-2880w.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 208px 0;
}

@media (max-width: 991px) {
    .bg-hero {
        padding: 120px 0;
    }
}

@media (max-width: 767px) {
    .bg-hero {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .bg-hero {
        padding: 60px 0;
    }
}


.hero-title {
    font-family: 'Cabin', sans-serif !important;
    font-size: 60px !important;
    font-weight: 400 !important;
    color: var(--bs-white) !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    margin-bottom: 0px !important;
}

.hero-subtitle {
    font-family: 'Playball', cursive !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    color: var(--bs-white) !important;
    letter-spacing: normal !important;
    margin-top: 0px !important;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
        /* Matches m-font-size-36 */
    }
}

/* Intro Section Typography */
.intro-title,
.intro-subtitle {
    font-family: 'Cabin', sans-serif !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    color: var(--bs-primary) !important;
}

.intro-text {
    font-family: 'Cabin', sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    max-width: 758px;
    margin: 0 auto 30px auto !important;
    /* Centered with max-width */
}

.bg-hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 5. COMPONENTS
   ========================================================================== */

/* Navbar */
.navbar {
    padding: 1.4rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--bs-primary) !important;
}

.nav-link {
    font-size: 18px;
    font-family: 'Cabin', sans-serif !important;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--bs-white) !important;
    padding: 10px 15px !important;
}

.nav-link:hover,
.nav-link.active {
    color: #e6e6e6 !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-radius: 0;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #5a1716;
    border-color: #5a1716;
}

/* Gallery */
/* Gallery */
.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    /* DO NOT REDUCE - Main Gallery stays tall */
    /* 3:2 Aspect Ratio (height/width * 100) */
    height: 0;
    overflow: hidden;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image-bg {
    /* transform: scale(1.1); REMOVED per user request */
}

.gallery-caption {
    background: transparent;
    /* Always transparent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Title Styles */
.gallery-caption h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 200;
    /* ExtraLight */
    line-height: normal;
    color: white;
    /* No transition or hover color change for title */
}

/* Custom Gallery Button */
.gallery-btn {
    background-color: transparent;
    border: 2px solid black;
    color: black;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background-color: #5a1716;
    /* VINO background */
    border-color: #5a1716;
    color: white;
}

/* Home Contact Button - Matches Gallery Button Style */
.home-contact-btn {
    background-color: white;
    /* Initial white background per previous request */
    border: 2px solid black;
    /* Same border as gallery */
    color: black;
    transition: all 0.3s ease;
}

.home-contact-btn:hover {
    background-color: #5a1716 !important;
    /* VINO background */
    border-color: #5a1716 !important;
    color: white !important;
}

/* Secondary Gallery Shine Effect */
/* Secondary Gallery Shine Effect */
.gallery-shine-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    height: 300px !important;
    /* Forces height, prevents overrides */
}

.gallery-shine-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Styles */
.testimonial-stars {
    color: rgba(0, 0, 0, 0.85);
    /* Dark grey/black from live site */
    font-size: 14px;
    /* Approximate size for 77px width container */
    margin-bottom: 2rem !important;
    /* Spacing below stars */
}

.testimonial-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-style: italic;
    color: black;
    line-height: normal;
    background-color: transparent;
    border: none;
    /* Reduced for tighter spacing */
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0px !important;
}

.testimonial-name {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    /* Bold */
    color: #5a1716;
    /* Burgundy */
    margin-top: 0 !important;
    /* Force 0 top margin */
}

.btn-burgundy {
    background-color: #761F1E !important;
    border-color: #761F1E !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-burgundy:hover {
    background-color: #5a1716 !important;
    border-color: #5a1716 !important;
}

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Open Dropdown on Hover for Desktop */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-menu {
    background-color: rgb(250, 249, 249);
    box-shadow: 0px 3px 11px 0px rgba(0, 0, 0, 0.25);
    border: none;
    padding: 13px 10px;
    border-radius: 0;
}

.dropdown-item {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    /* Live site is 14px */
    color: #999999;
    /* Precise gray from live site */
    text-transform: uppercase;
    font-weight: 400;
    padding: 8px 15px;
    transition: color 0.3s;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #463939;
    /* User requested color */
    background-color: transparent;
}

/* Ensure Top Level Menu uses Cabin */
.navbar-nav .nav-link {
    font-family: 'Cabin', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: white !important;
    /* Ensure white text */
    text-transform: uppercase;
}

/* Active state for top menu */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #e0e0e0 !important;
    /* Slight dim on hover */
}

/* Ensure Logo in Navbar is good */
.navbar-brand img,
.nav-item img {
    vertical-align: middle;
}

/* INTERNAL PAGE HERO RESPONSIVENESS */
@media (max-width: 768px) {
    .page-hero {
        height: 150px !important;
        min-height: 150px !important;
    }

    .page-hero-title {
        font-size: 45px !important;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 110px !important;
        min-height: 110px !important;
    }

    .page-hero-title {
        font-size: 35px !important;
    }
}

#fcontainer {
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 50px 0 20px 0;
    font-family: 'Roboto', sans-serif;
}

#fcontainer h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    /* Explicit white as requested */
    margin-bottom: 8px;
    letter-spacing: 1px;
}

#fcontainer p,
#fcontainer span,
#fcontainer a {
    /* Removed explicit global Roboto to allow default fallback as requested */
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    line-height: normal;
}

/* Specific rule for Opening Hours (Days and Hours) */
#fcontainer .col-md-4:last-child p {
    font-family: 'Roboto', sans-serif;
}

#fcontainer a:hover {
    color: #cccccc;
}

.footer-logo {
    max-width: 231px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.social-icons-container {
    padding: 20px 0px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    /* Wider lines ("casi del ancho") */
}

/* Flanking lines using pseudo-elements */
.social-icons-container::before {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: #dadada;
    margin: 0 50px 0 0;
}

.social-icons-container::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: #dadada;
    margin: 0 0 0 50px;
}

.social-icon {
    font-size: 14px;
    color: #ffffff;
    margin: 0 10px;
    transition: all 0.3s;
    /* Circle Styles - Forced */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 2px solid #ffffff;
    border-radius: 50% !important;
    /* Force circle */
    text-decoration: none;
    background-color: transparent;
    /* Explicit transparent */
}

/* Remove colored hover effect as requested ("no de haber hoover") */
.social-icon:hover {
    color: #ffffff;
    /* Stay white */
    border-color: #ffffff;
    opacity: 0.8;
    /* Slight fade instead of color change */
    background-color: transparent;
}

.copyright-text {
    font-size: 14px !important;
    opacity: 1;
    /* Live site has opacity 1 */
    margin-top: 10px;
}

/*  */
.dmRespColsWrapper {
    max-width: 960px;
    position: relative;
    margin: 0 auto;
    width: 100%;
}

/*  */
.dmHoursOfOperation {
    padding: 0 20px;
}

/* Opening Hours Structure Match */
.open-hours-data {
    margin: 0;
    padding: 0;
    width: 100%;
}

.open-hours-item {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    /* Slight spacing between rows */
    overflow: hidden;
    /* Clear floats */
}

.open-hours-item dt {
    float: left;
    width: auto;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    /* Light weight as on live site */
    font-size: 16px;
    color: #ffffff;
    margin: 0;
}

.open-hours-item dd {
    float: right;
    width: auto;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    /* Light weight as on live site */
    font-size: 16px;
    color: #ffffff;
    text-align: right;
    margin: 0;
}

/* Animation handled by JS */

.gallery-shine-item::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
}

.gallery-shine-item:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}

@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    /* Visible on hover */
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 0;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: #fff;
}

/* 6. PAGE SPECIFIC STYLES (Refactored from style*.css files)
   ========================================================================== */

/* HOME (styleIndex.css) */
.home-intro h1 {
    font-size: 3.5rem;
    color: var(--bs-white);
}

.home-intro p {
    font-size: 1.2rem;
    color: var(--bs-white);
}

/* ABOUT (styleAbout.css) */
.about-section {
    padding: 80px 0;
}

.about-img {
    border: 10px solid var(--bs-light);
}

/* --- SERVICES PAGE REFINEMENTS --- */
.service-section {
    padding: 0;
    overflow: hidden;
    min-height: 450px;
}

.service-img {
    min-height: 450px;
    background-size: cover !important;
    background-position: 50% 50% !important;
    /* User requested 50% 0 */
    width: 100%;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start !important;
    /* Left aligned icons/text */
    padding: 130px 100px;
    background-color: #fff;
    min-height: 450px;
    text-align: left !important;
    /* Left aligned text */
}

.service-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
    color: #761F1E;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Ensure SVG inside is left-aligned */
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    max-width: 90px;
    max-height: 90px;
}

.service-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 2.2rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0px;
    font-weight: 400;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .service-section {
        min-height: auto;
    }

    .service-img {
        height: 350px;
    }

    .service-content {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .service-title {
        font-size: 2.2rem;
    }

    /* Column ordering on mobile - live site stacks naturally by default */
    .mobile-reverse {
        flex-direction: column-reverse;
    }
}


/* CONTACT (styleContcat.css) */
.contact-info-box {
    background: var(--bs-primary);
    color: #fff;
    padding: 40px;
}

.contact-label {
    font-weight: 700;
    color: var(--bs-primary);
    display: block;
    margin-bottom: 5px;
}

.contact-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

/* GALLERY SECTION STYLES */
.gallery-item {
    display: block;
    margin-bottom: 24px;
    cursor: pointer;
    overflow: hidden;
    /* Removed border-radius and box-shadow per user request */
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    /* transform: scale(1.02); REMOVED - No hover effect */
    cursor: zoom-in;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox Modal Styles */
#imageModal .modal-dialog {
    max-width: 90vw;
    /* Wider on desktop */
}

#imageModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#imageModal .btn-close {
    background-color: white;
    opacity: 1;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    position: fixed;
    /* Fixed prevents scrolling away */
    top: 20px;
    right: 20px;
    z-index: 1060;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#imageModal .btn-close:hover {
    background-color: #f0f0f0;
}

/* SimpleLightbox Dark Theme Overrides */
.sl-overlay {
    background: #000000 !important;
    opacity: 0.9 !important;
}

.sl-wrapper .sl-close,
.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter {
    color: #ffffff !important;
}

.sl-wrapper .sl-image img {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    /* Optional: depth */
}

/* Workshop Gallery Specifics if different */
/* Workshop Gallery Specifics if different */
.workshop-gallery .gallery-img {
    height: auto;
    object-fit: cover;
}

/* SPECIALS (styleSpecials.css) */
.special-offer {
    background-image: url('../img/white-background-2880w.png');
    padding: 60px;
    text-align: center;
    border: 2px solid var(--bs-primary);
}

/* WORKSHOPS (styleWorkshops.css) */
.workshop-header {
    background-image: url('../img/AdobeStock_218337038-2880w.jpeg');
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Masonry Grid Styles (Renamed to bypass cache) */
.masonry-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block !important;
}

/* Clearfix */
.masonry-grid:after {
    content: '';
    display: block;
    clear: both;
}

.masonry-item {
    width: 33.333%;
    float: left;
    padding: 10px;
    box-sizing: border-box;
}

.masonry-item img {
    width: 100%;
    display: block;
    height: auto !important;
}

/* Tablet */
@media (max-width: 991px) {
    .masonry-item {
        width: 50%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .masonry-item {
        width: 100%;
    }
}

/* 7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
/* Desktop Hover Support */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 991px) {

    /* Tablet & Mobile */
    .home-intro h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: #fff;
        /* White background for mobile menu */
        padding: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Submenu Items Color as requested */
    .navbar-collapse .dropdown-menu .dropdown-item {
        color: #463939 !important;
        font-weight: 500;
        text-transform: uppercase;
    }

    /* CRITICAL: Force Nav Links to be BLACK on Mobile (since background is white) */
    /* Overriding .navbar-dark .nav-link */
    .navbar-dark .navbar-nav .nav-link {
        color: #000000 !important;
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: #761F1E !important;
        /* Burgundy on hover/active in mobile */
    }

    /* FORCE WHITE HAMBURGER ICON & BORDER */
    .navbar-dark .navbar-toggler {
        color: rgba(255, 255, 255, 1) !important;
        border-color: rgba(255, 255, 255, 1) !important;
    }

    .navbar-dark .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    /* --- IMPROVED MOBILE SUBMENU UX --- */
    /* Force Left Alignment for the whole menu on mobile for consistent indentation */
    .navbar-nav {
        text-align: left !important;
        align-items: flex-start !important;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: left;
    }

    .nav-link {
        padding-left: 20px !important;
        /* Base padding for main links */
    }

    /* Submenus: Remove the "box" look: no shadow, flat background, indentation */
    .navbar-collapse .dropdown-menu {
        box-shadow: none !important;
        background-color: transparent !important;
        /* Blend with menu bg */
        border: none !important;
        padding-left: 45px !important;
        /* Deep Indentation for hierarchy (Sangria) */
        margin-left: 0 !important;
        padding-top: 0;
        padding-bottom: 5px;
        /* display: block removed to let Bootstrap toggle visibility */
    }

    .navbar-collapse .dropdown-menu .dropdown-item {
        color: #463939 !important;
        font-weight: 500;
        text-transform: uppercase;
        padding: 8px 15px;
        /* Comfortable target */
        border-bottom: 1px solid #f0f0f0;
        /* Subtle separator */
    }

    .navbar-collapse .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 767px) {

    /* Mobile Logo Reduction */
    .navbar-brand img,
    .nav-item img[src*="MinervaLogo"] {
        /* Targeting the logo specifically if it has a class or based on src */
        max-width: 150px !important;
        height: auto !important;
    }

    /* Specific Mobile override for Intro Logo */
    .intro-logo {
        max-width: 80% !important;
        /* On mobile/tablet, make it smaller */
    }

    /* Mobile */
    .btn-primary {
        width: 100%;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* GLOBAL STYLES FOR INTRO LOGO (Apply at bottom or globally) */
/* Moving this out of media query for desktop support, but overrides inside query remain */
.intro-logo {
    max-width: 500px;
    /* Default Desktop Max Width */
    width: 100%;
    /* Ensure it scales down if needed */
    height: auto;
}

/* FIX: Ensure Active Link is Visible on Desktop */
.navbar-nav .nav-link.active {
    font-weight: 900 !important;
    border-bottom: 2px solid #fff;
}

.dmNewParagraph {
    font-family: 'Cabin' !important;
    margin: 8px 0;
    padding: 2px 0;
}

/* About Page Collage Overrides */
.photogallery .gallery-item {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    height: auto !important;
}

.photogallery .gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* FINAL MASONRY FIX - APPENDED */
.masonry-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block !important;
}

.masonry-grid:after {
    content: '';
    display: block;
    clear: both;
}

.masonry-item {
    width: 33.333%;
    float: left;
    padding: 10px;
    box-sizing: border-box;
}

.masonry-item img {
    width: 100%;
    display: block;
    height: auto !important;
}

@media (max-width: 991px) {
    .masonry-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .masonry-item {
        width: 100%;
    }
}