body {
    background-color: #25A3C4;
}

.ajb-head-inner {
    height: 100% !important;
    background-color: #b47474;
    width: 100%;
    background-image: url('assets/media/bathroom_ajbird_bath_image.jpg');
    background-position: center bottom;
    background-size: cover;
}

.logo-col {
    padding-top: 100px;
}

.s-descrip {
    background: none repeat scroll 0 0 #FFFFFF;
    margin: 0 auto 139px;
    padding: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-family: Actor;
    font-size: 1.4em;
}

.navbar .nav-link {
    font-family: Actor;
}

/* HEADINGS
================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Crete Round';
    line-height: 1.1em;
    margin: 1.6em 0 .6em;
    font-weight: normal;
    color: #0C4480;
}

h1 {
    font-size: 2.5em;
    font-family: 'DM Sans', sans-serif;
}

h2 {
    font-size: 1.4em;
    line-height: 1em;
    margin: 0;
    padding: 0 0 .5em;
    font-family: 'DM Sans', sans-serif;
}

h3 {
    font: normal 1.5em/1em Alice;
    margin: 0;
    padding-right: 20px;
    font-family: 'DM Sans', sans-serif;
}

h4 {
    font-size: 1.35em;
    padding-left: 20px;
    padding-right: 20px;
}

h5 {
    font-size: 1.2em;
}

h6 {
    font-size: 1em;
}

p {
    color: #5E5E5E;
    margin-top: 5px;
}

.embed-container {
    margin-top: 8px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width:480px) {
    .s-descrip {
        font-size: 1.1em!important;
    }
}

@media only screen and (max-width:480px) {
    .logo-col {
        padding-top: 30px;
    }
}

.ajb-foot-inner {
    background-color: rgba(251, 251, 251, 0.42);
}

#ajb-footer p {
    font-family: Actor;
    font-size: 0.9em;
}

#ajb-footer h3 {
    font-size: 1.3em;
}

#ajb-footer a {
    color: #000000;
    font-size: 1.0em;
}

#ajb-content #message {
    font-size: 0.9em;
    font-family: Actor;
}

#ajb-footer {
    background-image: url('assets/media/footer_ajbird_bathrooms.jpg');
    background-size: cover;
    background-position: center top;
}

.name {
    color: #4ea1c1;
    font-style: italic;
    padding-left: 100px;
}

.testim {
    color: #747070;
    padding: 20px;
    text-align: justify;
}

.rs-head {
    min-height: 200px;
}

@media only screen and (max-width:575px) {
    .rs-head {
        max-height: !important;
        display: none;
    }
}

.headline {
}

@media only screen and (max-width:735px) {
    .headline {
        width: 100%;
        padding: 5px;
    }
}

@media only screen and (max-width:767px) {
    .headline {
    }
}

.gal-im:hover {
    transform: scale(1.05)!important;

    /* Makes the image 5% bigger */
    transition: transform 0.3s ease!important;

    /* Adds a smooth transition effect */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5)!important;

    /* Adds a shadow to make it stand out */
}

.position-relative {
    position: relative;
}

.booking-text {
    position: absolute;
    top: 10px;

    /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);

    /* Semi-transparent background */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;

    /* Adjust as needed */
    font-weight: bold;
    color: #000;

    /* Text color */
    text-align: center;
    z-index: 10;
    font-family: 'Actor', sans-serif;
    text-transform: uppercase;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    orphans: 1;
    widows: 1;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    opacity: 20;
    transition: all 0.5s ease;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    background: white;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.overlay-content h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.overlay-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    padding: 10px;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}/* ============================================================
   GALLERY-2 STYLES – Recent Installations
   Add these rules to the bottom of style.css
   (They refine / extend the existing .gallery-card rules)
   ============================================================ */

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    background: #f8f9fa;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.78) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.gallery-card .overlay-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.45s ease;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    width: 100%;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card .overlay-content h5 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.gallery-card .overlay-content p {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.9;
    font-family: Actor, sans-serif;
}

/* Responsive height adjustments */
@media (max-width: 991.98px) {
    .gallery-card img {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .gallery-card img {
        height: 240px;
    }
}

/* end gallery-2 styles */

/* ============================================================
   Recent Work CTA – Index page
   ============================================================ */
.recent-work-cta {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.recent-work-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.recent-work-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.recent-work-image {
    position: relative;
    overflow: hidden;
}

.recent-work-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.recent-work-cta:hover .recent-work-image img {
    transform: scale(1.06);
}

.recent-work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 30, 60, 0.88) 0%,
        rgba(0, 30, 60, 0.45) 45%,
        rgba(0, 30, 60, 0.15) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem 1.5rem;
    color: #fff;
}

.recent-work-badge {
    display: inline-block;
    align-self: flex-start;
    background: #f0ad4e;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.recent-work-title {
    font-family: 'DM Sans', Actor, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.65rem 0;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.recent-work-btn {
    display: inline-block;
    align-self: flex-start;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.recent-work-cta:hover .recent-work-btn {
    background: #fff;
    color: #003366;
    border-color: #fff;
}

@media (max-width: 767.98px) {
    .recent-work-image img {
        height: 220px;
    }
    .recent-work-title {
        font-size: 1.15rem;
    }
}
