p {
    font-size: 28px;
}
em {
    font-style: normal;
    font-weight: bolder;
    color: rgb(200, 16, 9);
}

/* Home page gallery styling and animation */
.template_home_gallery_img_container {
    width: 500px;
}
.template_home_gallery_img {
    height: 300px;
    width: 500px;
    flex-shrink: 0;
}
#home_gallery {
    position: relative;
    width: 100vw;
    max-width: 1920px;
    height: 1080px;
    overflow: hidden;
}
#home_gallery_imgs {
    position: relative;
    width: 100%;
    height: 100%;
}
.template_home_gallery_img_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.template_home_gallery_img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Show only the active image */
.template_home_gallery_img_container.active {
    opacity: 1;
}
.gallery_navigation {
    background: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    opacity: 50%;
}
.gallery_navigation:hover {
    opacity: 100%;
}
#prev_button {
    left: 10px;
}
#next_button {
    right: 10px;
}
@media (max-width: 850px) {
    #home_gallery {
        height: 100vw;
    }
}

/* Home page about section styling */
#home_about {
    padding: 50px 5vw; /* Short hand for padding: "top + bottom" "left + right" */
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: rgb(220, 220, 220);
}

#home_welcome_to_autoworx {
    width: 100%;
    grid-column: 1/3;
    font-size: 50px;
    text-align: center;
}

#home_about_img_container {
    margin-right: 40px;
    display: flex;
    justify-content: flex-end;
}
#home_about_img {
    width: 30vw;
}
#home_about_text_container {
    height: 30vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.template_home_about_text {
    margin-left: 40px;
    padding-top: 10px;
    font-size: 1.5vw;
    font-weight: 500;
    text-align: left;
    color: black;
}
.template_home_about_text:first-child {
    padding-top: 0px;
    padding-bottom: 30px;
    font-size: 2vw;
    font-weight: 700;
}
@media (max-width: 850px) {
    #home_about {
        height: auto;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
    }
    #home_about_img_container {
        justify-content: center;
        margin: 0px;
    }
    #home_about_img {
        display: none;
    }
    #home_about_text_container {
        height: 100%;
    }
    .template_home_about_text {
        margin: 0px;
        font-size: 20px;
    }
    .template_home_about_text:first-child {
        font-size: 24px;
    }
}

/* Fade element */
#home_about_services_fade {
    background: linear-gradient(rgb(220, 220, 220), rgb(66, 65, 65));
}

/* Template home page sections styling */
.template_home_section_heading {
    position: relative; /* So overlayed text can be absolutely positioned */
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide cropped edges */
}
.template_home_section_heading_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: white;
    font-size: 72px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8); /* Add text shadow to make it more legible */
    text-align: center;
}
.template_home_section_heading_img_container {
    position: relative;
    height: 100%;
    overflow: hidden; /* Hide cropped edges */
    display: flex;
    align-items: center;
}
.template_home_section_heading_img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center center; /* Crop evenly from sides */
}

.template_home_section_content {
    width: 100vw;
    margin-top: 30px;
    margin-bottom: 100px;
    align-items: stretch;
}
.template_home_section_content_text_left_padding {
    width: 20px;
    margin-right: 30px;
    background-color: rgb(153, 16, 9);
}
.template_home_section_content_text {
    width: 80vw;
    font-size: 28px;
}
#home_section_content_text_fxuk_link {
    font-weight: 500;
    color: rgb(200, 16, 9);
}
@media (max-width: 700px) {
    .template_home_section_heading {
        height: 150px;
    }
    .template_home_section_heading_text {
        
        font-size: 40px;
    }
    .template_home_section_content_text {
        font-size: 22px;
    }
}