﻿/*LARGE IMAGE WITH TEXT*************************************************************************************************************/
/* Container with your specified padding-top */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 35.66%; /* Your requested value */
    overflow: hidden;
}

.large-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay settings */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
}

.overlay-text {
    width: 70%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 3%;
    color: white;
}

    /* Typography for desktop */
    .overlay-text h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .overlay-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        font-weight: 400;
    }

.mobile-hide {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
/* Tablet adjustments (900px and below) */
@media (max-width: 890px) {
    .overlay-text {
        width: 80%;
        padding: 4%;
    }

        .overlay-text h1 {
            font-size: 1.2rem;
        }

        .overlay-text h3 {
            font-size: .8rem;
            margin-bottom: 0.8rem;
        }
}
/* Mobile adjustments (768px and below) */
@media (max-width: 700px) {
    .overlay-text {
        width: 75%;
        padding: 4%;
    }

        .overlay-text h1 {
            font-size: 1.2rem;
        }

        .overlay-text h3 {
            font-size: .8rem;
            margin-bottom: 0.8rem;
        }

    /* Hide paragraph on mobile */
    .mobile-hide {
        display: none;
    }
    .overlay-text p {
        display: none;
        border: 1px solid red;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    .overlay-text h1 {
        font-size: 1.3rem;
    }

    .overlay-text h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    .overlay-text p {
        display: none;
        border: 1px solid red;
    }
}