/* MY WORK TITLES */

.fancy-title-mywork {
    color: #f5f5f5;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden; /* Prevents overflow */
    padding: 0%;
    margin: 0;
    padding-top: 3vh;
    margin-bottom: 0;
    position: relative;
}


.animated-title-mywork {
    padding: 0%;
    font-size: 3.4vw;
    padding-left: 2.7vw; /* Ensures the text starts 2.7vw from the left edge */
    background: linear-gradient(270deg, #fcb900 10%, #f5f5f5 40%, #fcb900 60%, #f5f5f5 90%);
    background-size: 400% 400%;
    animation: gradientAnimation 16s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: hidden; /* Prevents overflow */
    margin: 0;
    margin-bottom: 0;
    font-family: 'Monument', sans-serif;
}

@media (min-width: 768px) and (max-width: 1200px) {
    .animated-title-mywork {
        font-size: 40;
    }
}

@media (max-width: 767px) {
    .animated-title-mywork {
        font-size: 25;
        padding-left: 3%;
    }
}


.zoom-on-hover {
    margin: 0;
    overflow: hidden;
    position: relative;
    background-color: black;
    width: 49.9vw;
}

.zoom-on-hover img {
    width: 100%; /* Ensure the image fills the container */
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.5s ease; /* Smooth transition for the image */
    display: block; /* Remove any default inline spacing */
}

.zoom-on-hover:hover img {
    transform: scale(1.2); /* Apply zoom effect */
}

.overlay {
    position: absolute; 
    bottom: 0; 
    left: 0;
    right: 0;
    top: 0; /* Cover the entire height of the parent */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 100%); /* Gradient covering 30% height */
    color: white; 
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.zoom-on-hover:hover .overlay {
    opacity: 1;
    pointer-events: auto;
}

.overlay-text {
    margin: 0;
    transform: scaleX(0.9);
    transform-origin: left;
    position: absolute;
}

.top-right {
    top: 10px;
    right: 10px;
    font-size: 12px; /* Adjust font size as needed */
}

.main-text {
    bottom: 25px;
    left: 10px;
    font-size: 20px; /* Adjust font size as needed */
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    font-size: 12px; /* Adjust font size as needed */
}


/* Mobile Styles */
@media (max-width: 1000px) {
    .top-right {
        font-size: 9px; /* Adjust font size as needed */
    }
    
    .main-text {
        bottom: 21px;
        font-size: 16px; /* Adjust font size as needed */
    }
    
    .bottom-left {
        font-size: 9px; /* Adjust font size as needed */
    }
    .overlay {
        padding-left: 1vw;
    }
}

/* Container for your work section */
.mywork-container {
    margin-top: 0.2vw;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    background-color: black;
    gap: 0.2vw
}


/* Mobile Styles */
@media (max-width: 767px) {
    .mywork-container {
        flex-direction: column;
        align-items: center;
        background-color: black;
    }


    .zoom-on-hover {
        overflow: hidden;
        position: relative;
        background-color: black;
        width: 100%;
        margin-top: 1px;
        margin-bottom: 1px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .overlay {
        opacity: 1;
        padding: 8px;
        padding-left: 10px;
    }

    .top-right {
        font-size: 12px; /* Adjust font size as needed */
    }
    
    .main-text {
        bottom: 23px;
        font-size: 18px; /* Adjust font size as needed */
    }
    
    .bottom-left {
        font-size: 12px; /* Adjust font size as needed */
    }
}

/* Mobile Styles */
@media (max-width: 500px) {
    .top-right {
        font-size: 9px; /* Adjust font size as needed */
    }
    
    .main-text {
        bottom: 21px;
        font-size: 16px; /* Adjust font size as needed */
    }
    
    .bottom-left {
        font-size: 9px; /* Adjust font size as needed */
    }
}

@media (max-width: 420px) {
    .top-right {
        font-size: 8px; /* Adjust font size as needed */
    }
    
    .main-text {
        bottom: 20px;
        font-size: 14px; /* Adjust font size as needed */
    }
    
    .bottom-left {
        font-size: 8px; /* Adjust font size as needed */
    }
}