/* Import the custom font */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');



* {
    margin: 0;
    padding: 0;
}


img {
    -webkit-user-drag: none;
}



body {
    /*width: 1200px; /* Set a fixed width for the page */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
   
    margin: 0 auto; /* Center the page horizontally */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: 'Lato', sans-serif; /* Set a default font */
    font-weight: 300;
}

html {
    overflow-x: hidden; /* Ensure the entire page allows horizontal scrolling */
}


/* Scroll to top button */
.scroll-top {
    position: fixed;
    top: 50%; /* place it in the middle vertically */
    right: 0.9em;
    color: white;
    background-color: black;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top.hiding {
    opacity: 0;
    visibility: visible; /* keep it visible until fade completes */
}

.scroll-top:hover {
    transform: scale(1.1);
}




.mainContainer#blur {

    transition: filter 0.7s ease;

}

.mainContainer#blur.active {

    filter: blur(20px);
    pointer-events: none;
    user-select: none;

}

/* Modal background */
.modal {
    visibility: hidden;
    position: fixed;
    z-index: 1000; /* On top of other content */
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    width: 100%;
    height: 100%;

}

/* Modal content (centered image) */
.modal-content {
    
    display: block;
    margin: 4% auto auto auto;
    max-width: 80%;
    max-height: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    opacity: 0; /* Start transparent */
    transition: 0.4s; /* Fade-in for the image */

}

.modal-arrow {
    background: none;
    background-color: transparent !important;
    border: none;
    outline: none;
    box-shadow: none;  
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
}

.arrow-icon{

    max-width: 0.8em;
    max-height: 0.8em;

}


.modal-arrow:hover {
  transform: scale(1.1);
}

.modal-arrow.left {
  left: 0.7em;
}

.modal-arrow.right {
  right: 0.7em;
}

.fade-out {
    opacity: 0 !important;
    transition: opacity 0.2s ease;
}

.fade-in {
    opacity: 1 !important;;
    transition: opacity 0.2s ease;
}



.modal-description {

    color:white;
    background-color: transparent;
    font-size: 1.1rem;
    text-align: left;
    margin-top: 0.5rem;
    position: absolute; /* Use absolute positioning */

    opacity: 0;
    transition: opacity 1s ease;

}

/* Show modal when active */
.modal.show {
    visibility: visible;
    opacity: 1;
}

/* When modal is active, fade in the image */
.modal.show .modal-content,
.modal.show .modal-description {
    opacity: 1;
}

/* Modal close button */
.modal .close {

}


em {
    background-color: transparent !important;  /* Remove any background */
    color: inherit;  /* Ensure the text color matches the rest of the content */
}





/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
    display: none;
}
  
  /* Hide scrollbar for IE, Edge and Firefox */
.example {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

header {
    padding: 1.5rem; /* Padding around the header */
}

a {
    text-decoration: none;
    color: white;
    padding: 2rem;
}

.logo {

    width:17%;
    min-width: 13%;
    padding: 0 0 0 0.5em;
    /*padding: 1rem 2rem 1rem 2rem;*/

}

.button {
    will-change: transform;
    padding: 0 0 0 0;
    transition: transform 2s ease;
    transform-origin: center;
    text-decoration: none;
}

.button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.button.active::after {
    width: 100%;
}

.button:hover {
    transform: scale(1.08);
}

.headContainer {
    display: flex; /* Use Flexbox for layout */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    
    font-size: 1.5rem;
    color: white;
}

.transition-fade {
    opacity: 1;
    transition: opacity 0.4s ease;
    flex: 1;
    min-height: 77vh;
}

html.is-animating .transition-fade {
    opacity: 0;
}


.filter {
    display: flex;
    margin: 0 auto; /* Center the filter container horizontally */
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    font-size: 120%;
    color: white;
    gap: 0rem; 
    width: 100%; /* Ensures the container takes the full width */
}

.filter p {
    font-size: 22px;
    cursor: default;
    letter-spacing: 1px;
    margin-right: 1em;
 /* Automatically aligns the paragraph to the right */
}

.disabled {
    opacity: 0.5;
    pointer-events: none; /* Disables clicking */
    color: light grey;
    font-size: 100px
}


.btn {

    cursor:pointer;
    background-color: transparent;
    color: white;
    padding: 5px 10px;
    border: 2px;
    border-radius: 8px;
    will-change: transform;
    transition: transform 0.5s ease;
    transition: background-color 0.5s ease, transform 0.5s ease;
    transform-origin: center;
    font-family: 'Lato', sans-serif;
    font-size: 100%;
    font-weight: 300;
    white-space: nowrap;

}

.btn:hover {
    transform: scale(1.1); /* Makes the button grow by 10% */
}

.btn.active {
    background-color: rgba(255, 255, 255, 0.412); /* Opaque white background */
    transform: scale(0.9); /* Slightly larger background on active */
}

.grid {
    --gap: 16px;
    --num-cols: 3; /* Number of columns */
    --row-height: 200px;
    max-width: 1300px;
    margin: 0 auto; /* Center the grid horizontally */
    box-sizing: border-box;
    padding: var(--gap);

    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr); /* 3 columns for larger screens */
    grid-auto-rows: 400px;
    gap: var(--gap); /* Space between grid items */

}

.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1; /* Default opacity (visible) */
    transform: scale(1); /* Default scale (normal size) */
}


.grid img:hover {

    transform: scale(1.06);

}

.grid-col-2 {

    grid-column: span 2;

}

.grid-row-2 {

    grid-row: span 2;

}

.grid img.hide {
    opacity: 0; /* Fade out */
    pointer-events: none; /* Disable pointer events during transition */
}

.grid img.show {
    opacity: 1; /* Fade in */
}


















main {
    display: flex; /* Align images and text horizontally */
    align-items: flex-start; /* Align content at the top */
    gap: 0em;
}

.photosOfMe-container {
    position: relative;
    display: flex;
    width: 350px;
    margin-left: 18%;
    flex-shrink: 0;
}

.photoOfMe{

    position: relative;
    width: 600px;
    margin-top: 3em;
    margin-right: 3em;
    margin-left: 5em;

}



.aboutMePhotos {
    width: 100%;
    height: auto;
    position: relative; /* Allows overlapping */
    transition: transform 0.8s ease, z-index 0.8s ease;
}

/*.aboutMePhotos:hover {
    transform: scale(1.1) rotate(-3deg);
}*/

.photoOfMe1 {
    width: 80%; 
    left: -3em;
    top: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

.photoOfMe2 {
    width: 80%;
    left: 7em;
    top: 11em;
    transform: rotate(5deg);
    z-index: 2;
}

.photoOfMe3 {
    width: 80%;
    right: 13em;
    top: 21em;
    transform: rotate(-8deg);
    z-index: 3;
}

.photoOfMe4 {
    width: 80%;
    left: 6em;
    top: 28em;
    transform: rotate(10deg);
    z-index: 5;
}

.photoOfMe5 {
    width: 80%;
    left: -5em;
    top: 33em;
    transform: rotate(-15deg);
    z-index: 5;
}



.aboutMeBody {
    position: relative;
    max-width: 700px;
    display: flex; /* Enables flexbox */
    flex-direction: column;
    justify-content: center; /* Centers content horizontally */
    /* Aligns content vertically */
    gap: 1rem;
    color: white;
    line-height: 1.5;
    text-align: justify;
    /* Center the entire section */
    flex-wrap: wrap; /* Makes it responsive */

}

.aboutMeBody p:not(:last-of-type)::first-letter {
    font-size: 3em;    /* Make the first letter large */
    font-weight: bold;  /* Optional: Make it bold */
    color: #ffffff;     /* Change the color of the drop cap */
    float: left;        /* Float the letter to the left */
    margin-right: 0.1em; /* Add space between the letter and the text */
    line-height: 1;     /* Adjust line-height for alignment */
}

.aboutMeBody p {
    margin-bottom: 20px;
    max-width: 500px; /* Add space between paragraphs */
}

.aboutMeBody p.right-align {

    margin-left: 10em;
    max-width: 500px; /* Optional: Limit the width for readability */

}


.aboutMeBody h1{

    text-align: right;
    font-weight: 300;
    padding-bottom: 0.5em;
    margin-right: 0.5em;

}


.signature {

    width: 45%;
    padding: 1em 0 0 0;

}



footer {
    align-self: flex-end;
    bottom: 0;
    right: 0;
    font-style: italic;
    text-align: right;
    color: white;
    background-color: black;


}

footer a{

    padding: 0 0 0 0;
    padding-right: 1em;

}


::-webkit-scrollbar {
    display: none;
}


@media (min-width: 1600px){

    .photoOfMe{

        position: relative;
        width: 600px;
        margin-top: 3em;
        margin-left: 20em;
    
    }

}


/*
@media (max-width: 1300px) {

    .photosOfMe-container {
        margin-left: 13%;
    }

}*/


/*
@media (max-width: 1200px) {

    .photosOfMe-container img{
        
        width: 70%;

    }

    .photosOfMe-container {
        margin-left: 11%;
        margin-right: -9%;
    }

    .aboutMeBody{
        font-size: 0.9em;
    }


}
*/

/*
@media (max-width: 1115px) {

    .photosOfMe-container {
        margin-left: 25%;
    }


}
*/


@media screen and (max-width: 1050px) {
    .grid {
        --num-cols: 2;
    }

    img[alt="Photo 293"] {
        grid-column: span 1 !important;
    }
    
    img[alt="Photo 249"] {
        grid-column: span 1 !important;
    }

    .scroll-top {

        top: 90%;

    }

    .modal-arrow {

        top: 90%;

    }




    .modal {
        display: flex;
        align-items: center; /* Center vertically */
        justify-content: center; /* Center horizontally */
        flex-direction: column;
    }

    .modal-content {
        max-width: 90%; /* Adjust for responsiveness */
        max-height: 80vh; /* Prevent images from exceeding the screen height */
        margin: 0; /* Remove any default margin */
    }

    .modal-description {

        color:white;
        background-color: transparent;
        font-size: 1.1rem;  
        margin-top: 0.5rem;
        margin-left: -8%;
        text-align: center;
        position: relative; 
        opacity: 0;
        transition: opacity 1s ease;
        
    
    }



    .logo {
        width: 35vw;
    }

    .button {
        font-size: 0.8em; 
    }


    .photosOfMe-container {
        margin-left: 8%;
    }


    .photosOfMe-container img{
        width: 60%;
    }


    .photoOfMe3 {
        left: -3em;
    }

    .photoOfMe5 {
        left: -2em;
    }

    
    .aboutMeBody p.right-align {

        margin-left: 0em;
    
    }

}




@media (max-width: 963px) {
    main {
        flex-direction: column; /* Stack images on top, text below */
        align-items: center; /* Center everything */
    }

    .photosOfMe-container {
        max-width: 500px;
        max-height: 1250px; /* Prevent them from getting too large */
        height: auto;
        margin-left: 0em;
        margin-right: 0em;
        display: flex;
        flex-direction: column;   
        justify-content: center;
        position: relative;
        /*background-color: green;*/

    }

    .photosOfMe-container img{
        
        align-content: center;
        width: 70%;

    }

    .photoOfMe{

        width: 80%;
        margin-right: 4.8em;
        margin-top: 1em;
        padding-bottom: 3em;

    }

    .aboutMePhotos {
        position: relative; /* Remove absolute positioning */
        
    }


    .photoOfMe1 {
        left: 2em;
        top: 3em;
        transform: rotate(-5deg);
        z-index: 5;
    }
    
    .photoOfMe2 {
        left: 4em;
        top: 0em;
        transform: rotate(5deg);
        z-index: 6;
    }
    
    .photoOfMe3 {
        left: 2em;
        top: -3em;
        transform: rotate(-8deg);
        z-index: 7;
    }
    
    .photoOfMe4 {
        left: 5em;
        top: -3em;
        transform: rotate(10deg);
        z-index: 8;
    }
    
    .photoOfMe5 {
        left: 2em;
        top: -3em;
        transform: rotate(-10deg);
        z-index: 9;
    }

    .aboutMeBody {
        font-size: 1em;
        max-width: 80%; /* Ensure text is readable */
    }

}





@media (max-width: 768px) {
    .filter {
        flex-direction: column;
        justify-content: center;
        font-size: 18px;
        gap: 0.5rem;
    }

    .filter p {
        font-size: 22px;
        font-style: italic;
        font-weight: 350;
        
    }

    .modal{
        opacity: 0;
    }

    .grid img {
        
        

    }

    .grid {

        grid-auto-rows: 250px;

    }
    
}