
.container-media {
    margin: 0 auto;
    padding: 60px 20px;
    align-items: center;
    text-align: center;
}

header h1 {
    color: #F9ECB4 ;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 38px;
}
.title-media-first {
    display: flex;
    flex-direction: column;
}
header p {
    color: #F9ECB4 ;
    font-family: 'Garamond', serif;  
    font-weight: 400;
    font-size: 17px;
    margin: 10px;
    margin-top: -30px;
}
.media-container-hero{
    text-align: center;
    align-items: center;
    justify-content: center;
}
.media-container-hero p {
    color: #F9ECB4;
    font-family: 'Garamond', serif;
    font-size: 19px;
    margin-top: 40px;
    padding: 10px;
    width: 31%; 
    word-wrap: break-word; 
    text-align: center; 
    margin: 0 auto; 
}
.image-gallery-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin-top: 20px;
}

.image-item {
    width: 292px;
    height: 292px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.main-image {
    width: 467px;
    height: 467px;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learn-more-media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.learn-more-media button {
    background-color: transparent;
    border: 1px solid #F9ECB4;
    color: #F9ECB4;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    padding: 10px 20px;
    font-size: 16px;
    margin: 0 auto;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more-media button:hover {
    background-color: #F9ECB4;
    color: #2A3B4C;
}

@media only screen and (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }

    header p {
        font-size: 15px;
    }

    .media-container-hero p {
        font-size: 16px;
        margin: 0 auto;
        width: 70%;
    }

    .image-gallery-media {
        position: relative;
        gap: 10px;
    }
    
    .image-item:nth-child(1){
        position: absolute;
        top: 480px;
        right: 51.3%;
        width: 35%;
        height: auto;
    }
    .image-item:nth-child(3){
        position: absolute;
        left: 51.3%;
        top: 480px;
        width: 35%;
        height: auto;
    }
   
    .main-image{
        width: 60%;
        height: auto;
    }


    /* .image-item, .main-image {
        max-width: 100%;
        
        height: auto;
    } */

    .learn-more-media button {
        margin-top: 43%;
        width: 40%;
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media only screen and (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }

    header p {
        font-size: 14px;
        margin-top: -20px;
    }

    .media-container-hero p {
        font-size: 14px;
    }

    .image-gallery-media {
        flex-direction: column;
    }

    /* .image-item, .main-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    } */
    .image-gallery-media {
        position: relative;
        gap: 10px;
    }
    
    .image-item:nth-child(1){
        position: absolute;
        top: 104%;
        right: 51.3%;
        width: 45%;
        height: auto;
    }
    .image-item:nth-child(3){
        position: absolute;
        left: 51.3%;
        top: 104%;
        width: 45%;
        height: auto;
    }

    .learn-more-media button {
        margin-top: 50%;
        width: 60%;
        font-size: 12px;
        padding: 6px 12px;
    }
    .learn-more-media img {
        width: 27%;
    }
}