/* ------------------------------------------------------------------
/* b. layout
/* ------------------------------------------------------------------ */

#sidebar {
    /* position: fixed; */
    /* height: calc(100vh - 6rem); */
    /* padding-right: 2rem; */
    /* background-color: rgba(0, 100, 100, 0.2); */

    /* 2xl */
    @media (min-width: 1536px) {
        width: calc((1536px - 3rem) * 0.4)
    }

    /* xl */
    @media (max-width: 1536px) {
        width: calc((1280px - 3rem) * 0.4)
    }

    /* lg */
    @media (max-width: 1280px) {
        width: calc((100% - 3rem) * 0.4)
    }

    /* md ... */
    @media (max-width: 1024px) {
        position: relative;
        height: 100%;
        width: 100%;
    }
}

#home-main-container #sidebar {
    padding-right: 0rem;
}

#contentbar {
    left: 40%;
    /* margin-top: 0%; */
    /* min-height: calc(100vh - 3rem); */
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 2;
    /* background-color: rgba(220, 100, 100, 0.2); */

    /* 2xl */
    @media (min-width: 1536px) {
        left: 40%;
    }

    /* xl */
    @media (max-width: 1536px) {
        left: 40%;
    }

    /* lg */
    @media (max-width: 1024px) {
        left: 0%;
    }
}

/* IMAGES FOR HERO SHOULD BE SQUARE FOR BETTER DISPLAY */

.tc-photos {
    /* height: 100%; */
    position: fixed;
    /* width: 100%; uncoment this for gradient relative to page width*/
    /* top: 0%; */
    /* left: 0%; */
    /* z-index: -1; */
    /* margin-bottom: 0%; */
    /* background-color: rgba(103 135 17 / 0.3); */
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;


    /* md */
    @media (max-width: 1024px) {
        position: relative;
        /* margin-bottom: -30rem; */
    }

    /* sm ... */
    @media (max-width: 768px) {
        /* margin-bottom: -18rem; */
    }
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#tc-photos img {
    /* fix also the img to be able to scroll in sidebar */
    /* position: relative; */
    /* height: 100% !important; */
    /* opacity: 1; */
    /* transition: opacity 1s ease; */
    -o-object-fit: cover;
    object-fit: cover;
    /* z-index: -1; */
}

/* mask for hero */
div[class*='tc-photos']::before {
    content: "";
    position: absolute;
    /* allow click on iphone system play icon */
    pointer-events: none;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    z-index: 2;
    --gradient-end: 70%;
    --gradient-start: 0%;
    /* Default direction for all sizes below lg */
    --gradient-direction: to top;
    
    background: linear-gradient(var(--gradient-direction), rgba(39, 39, 42, 1) var(--gradient-start), rgba(39, 39, 42, 0.2) var(--gradient-end));

    /* md (This can be removed if you just want lg and up) */
    @media (min-width: 1024px) {
        --gradient-start: 0%;
        /* The default direction is already 'to top' if you remove the line below. */
        /* --gradient-direction: to top; */ 
    }

    /* 👇 NEW: Activate to left for lg (1024px) and up */
    @media (min-width: 1024px) {
        --gradient-direction: to left;
    }

    /* 👇 NEW: Revert to top for 2xl (1536px) and up */
    @media (min-width: 1536px) {
        --gradient-direction: to top;
    }
}


@media(prefers-reduced-motion:reduce) {
    .rm-hidden {
        display: none !important
    }
}

@media(prefers-reduced-motion:no-preference) {
    .rmnp-hidden {
        display: none !important
    }
}

