
/* This is the main library of CSS code for Flor De Lino Creative Lab */

/* Update 20260819 */

/* =========================================== */
/*            Hero 01 Parallax Hero            */
/* =========================================== */
.parallaxHero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.parallaxHero > .figureBlock {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.parallaxHero > .messageBlock {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Performance optimization for scroll animations */
    transform: translate(-50%, -50%);  /* <<-- Study */
    will-change: transform;
}

.parallaxHero > .messageBlock > h1,
.parallaxHero > .messageBlock > p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .parallaxHero > .figureBlock {
        object-position: 25% center;
    }
}

/* =============== End of Hero =============== */


/* ========================== */
/*       Parallax Hero        */
/* ========================== */
.parallaxHero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}
.parallaxHero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.parallaxHero > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.parallaxHero > div > h1,
.parallaxHero > div > p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* min-height: 100vh; /* AI */
    margin: 0 auto;
}

/* ========================== */
/*          List Menu         */
/* ========================== */
.autoListToC {
    min-height: 10px;
}
.autoListToC > .menuList {
    width: 100%;
    margin: 0 auto;
    padding: 100px 33%;
    background-color: green;
}
.autoListToC > .menuList > li {
    margin: 0 auto;
    line-height: 2.0;
    background-color: darkseagreen;
}
.autoListToC > .menuList > li a:link {
    color: #1877f2; /* facebook classic brand #4267B2*/
}
.autoListToC > .menuList > li a:visited {
    color: #4267B2; /* facebook bright blue #1877f2*/
}
.autoListToC > .menuList > li a:focus,
.autoListToC > .menuList > li a:hover,
.autoListToC > .menuList > li a:active {
    color: #3B5998; /* Original legacy dark blue #3B5998*/
}

/* =========================== */
/*   Mobile Layout (< 768px)   */
/* =========================== */
@media (max-width: 768px) {
    .autoListToC > .menuList {
        padding: 40px 100px;
    }
}


/* =========================================== */
/*         Layout 01 Image Grid Collage        */
/* =========================================== */
.imageGridCollage {
    display: flex;
    flex-direction: column-reverse;
    gap: 5vh;
    height: auto;
    margin: 0 auto;
    padding: 5vh 0;
    /* background-color: teal; */
}

.imageGridCollage > .figureBlock,
.imageGridCollage > .messageBlock {
    width: 40%;
    margin: 0 auto;
    padding-top: 0 12px;
    /* background-color: lightblue;    /*-- visual guide --*/
}

.imageGridCollage > .messageBlock {
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.imageGridCollage > .messageBlock > h2,
.imageGridCollage > .messageBlock > p {
    width: 100%;
    margin: 0 auto;
    /* background-color: blue;         /*-- visual guide --*/
}

.imageGridCollage > .figureBlock {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* Gives rows a base structural height unit to snap to */
    grid-auto-rows: minmax(10px, auto); 
    /* Allows smaller items to pack tightly back into empty gap spaces */
    grid-auto-flow: dense;
    gap: 12px;
    align-items: stretch;
}

.imageGridCollage > .figureBlock > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid Alignment Columns */
.imageGridCollage > .figureBlock > .gridOne {
    grid-column-start: 1;
}

.imageGridCollage > .figureBlock > .gridFour {
    grid-column-start: 4;
}

.imageGridCollage > .figureBlock > .gridSeven {
    grid-column-start: 7;
}

.imageGridCollage > .figureBlock > .gridTen {
    grid-column-start: 10;
}

/* Grid Spans */
.imageGridCollage > .figureBlock > .twelveGrids {
    grid-column-end: span 12;
}

.imageGridCollage > .figureBlock > .eightGrids {
    grid-column-end: span 8;
}

.imageGridCollage > .figureBlock > .sixGrids {
    grid-column-end: span 6;
}

.imageGridCollage > .figureBlock > .fourGrids {
    grid-column-end: span 4;
}

.imageGridCollage > .figureBlock > .threeGrids {
    grid-column-end: span 3;
}

.imageGridCollage > .figureBlock > .twoRows {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .imageGridCollage {
        display: flex;
        flex-direction: column-reverse;
        gap: 24px;
        padding: 24px 0;
    }

    .imageGridCollage > .figureBlock,
    .imageGridCollage > .messageBlock {
        gap: 9px;
        width: 80%;
        margin: 0 auto;
        padding: 0 9px;
    }

    .imageGridCollage > .figureBlock {
        gap: 9px;
    }

    .imageGridCollage > .messageBlock {
        gap: 24px;
    }

    .imageGridCollage > .messageBlock > h2,
    .imageGridCollage > .messageBlock > p {
        width: 100%;
        margin: 0 auto;
    }
}


/* =========================================== */
/*             Layout 02 Glide Show            */
/* =========================================== */
.glideShow {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    /* background-color: darkseagreen; */    /*-- visual guide --*/
}

.glideShow.reverse {
    justify-content: flex-end;
    /* background-color: darkseagreen; */    /*-- visual guide --*/
}

.glideShow > .messageBlock {
    position: relative;
    z-index: 2;
    width: 30%;
    margin: 0 4%;
    padding: 2%;
    background-color: white;
}

.glideShow > .figureBlock {
    position: fixed;
    top: 0%;
    left: 0%;
    z-index: -1;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    opacity: 0;
}

.glideShow > .figureBlock > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.1s ease-out;
}

/*-- .right {background-color: aquamarine;}    visual guide --*/

@media (max-width: 768px) {
    .glideShow > .messageBlock {
        width: 60%;
        margin-left: 32px;
        margin-right: 32px;
        padding: 32px;
    }
    
    .glideShow > .figureBlock > img {
        object-fit: cover;
        /* object-position: 35% center; */
    }
}


/* =========================================== */
/*            Layout 03 Split Layout           */
/* =========================================== */
.splitLayout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    /* background-color: white;    /*-- visual guide --*/
}

.splitLayout > .messageBlock {
    position: relative;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    margin: 0;
    padding: 7vh 0;
    /* background-color: darkseagreen;    /*-- visual guide --*/
}

.splitLayout > .messageBlock > * {
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    list-style-type: "-   ";
    /* background-color: lightgreen;    /*-- visual guide --*/
}

.splitLayout > .figureBlock {
    position: sticky;
    top: 0;
    grid-column: 2;
    height: 100vh;
    overflow: hidden;
}

.splitLayout > .figureBlock > img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

.splitLayout.reverse > .messageBlock {
    grid-column: 2;
}

.splitLayout.reverse > .figureBlock {
    grid-column: 1;
}

@media (max-width: 768px) {
    .splitLayout {
        grid-template-columns: 1fr;
    }
    
    .splitLayout > .figureBlock {
        position: relative;
        z-index: 2;
        grid-column: 1 !important;
    }
    
    .splitLayout > .messageBlock {
        z-index: 1;
        grid-column: 1 !important;
    }
    
    .splitLayout > .messageBlock > * {
        width: 100% !important;
        max-width: 100%;
    }
}

/* ============= End of Layouts ============== */


/* =========================================== */
/*         Component 01 Image Lightbox         */
/* =========================================== */
.lightboxDisplay {
    cursor: pointer;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: rgba(150, 150, 150);
    cursor: pointer;
}

.lightboxNav {
    position: absolute;
    top: 50%;
    padding: 10px 15px;
    font-size: 40px;
    color: rgba(150, 150, 150);
    background: rgba(0, 0, 0, 0.95);
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.close:hover, .lightboxNav:hover {
    color: rgba(200, 200, 200);
}

@media (max-width: 768px) {
    .lightboxNav {
        font-size: 16px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.30);
    }
}

/* =========== End of Components ============= */


/* =========================================== */
/*             Animation Manager               */
/* =========================================== */
.js [data-effect] {opacity: 0;}

/* =========== End of Animations ============= */            