#about {
    padding-block: 8rem;
    display: flex;
    flex-wrap: wrap;
    /* flex-direction: column; */

    gap: 5rem;
    position: relative;
    justify-content: center;
    align-items: center;

    text-align: center;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    /* padding-inline: 2rem; */
    
    background-color: var(--clr-background-2);
    background-image: var(--bg-gradient);
    width: 100%;

    overflow: hidden;
    z-index: 2 inherit;

    /* border-top: 20px solid; */
    /* border-image: linear-gradient(to right,
    var(--clr-secondary) 0%,
    var(--clr-primary) 100%) 1; */

    mask: 
        url("../media/mask1.svg") top/contain no-repeat,
        linear-gradient(#000 0 0); 
    mask-composite: exclude;
    /* margin-top: -200svh; */
}

#about h1 {
    /* margin-block: 10rem; */
    /* width: fit-content; */
    display: inline-block;
    /* background-color: #00af00; */
    height: 150px;
    width: 80%;
    /* margin-inline: auto; */

    z-index: 1000;
    /* filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 50%, transparent)); */
    font-size: var(--header-xxl);
    margin-bottom: 15rem;
}


#about h1 span,
#about h1 strong {
    position: absolute;
    display: flex;
    /* width: 100%; */
    /* background-color: aqua; */
}

#about h1 span {
    top: 0;
    left: 0;
}

#about h1 strong {
    bottom: 0;
    right: 0;
    transform-origin: center;
    gap: 1rem;
    z-index: 200;
}



#about h1 mark {
    /* font-size: 8rem !important;
    scale: 0.5; */
    background-color: transparent;
    display: inline-block;
    transition: letter-spacing .2s ease-out !important;
    z-index: 300;
}


#about hr {
    width: 100%;
}

#bg-line {
    /* opacity: 0; */
    position: absolute;
    height: 105%;
    /* max-width: 100svw; */
    transition: stroke-dashoffset 1s ease-in-out;
    will-change: stroke-dashoffset, translateY;
    z-index: 0;
    /* opacity: .5; */
}

#bg-line path {
    width: 200%;
    /* filter: drop-shadow( 0 -.2rem 0.75rem color-mix(in srgb, currentColor 20%, transparent)); */
}

#about .container {
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    min-height: 400px;
    /* margin: 0 auto; */
    gap: 10%;
    padding: 0rem;
    z-index: 10;
}

#about .container.left-sided {
    flex-direction: row;
}

#about .container.right-sided {
    flex-direction: row-reverse;
}

#about .container .image-container img { 
   width: 100%;
   height: 100%;
   object-fit: cover;
}

#about .container .image-container {
    position: relative;

    width: 50rem;
    height: 35rem;
    overflow: hidden;
    flex-grow: 1;
    border-radius: var(--radius-xl);
    z-index: 10;
    border: solid 5px var(--clr-background);
    transform-origin: center;
    /* transition: all .1s ease; */
}

#about .container .text-wrapper {
    display: flex;
    flex-wrap: wrap;
    
    position: relative;
    background-color: color-mix(in srgb, var(--clr-background-2) 50%, transparent);
    background-image: var(--noise) !important;
    background-size: 30%;
    /* background-attachment: fixed;  */
    background-repeat: repeat;
    border: solid 5px var(--clr-background);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    border-radius: var(--radius-xl);
    padding: var(--padding-xl) var(--padding-xl);
    /* justify-content: center; */
    /* padding-block: 2rem; */
    /* padding-left: 2rem; */
    /* flex-grow: 1; */
    /* background-color: aqua; */
    width: 40rem;
    height: 80%;

    z-index: 1100;
    /* transform: translateZ(300px) scale(.7);
    transform-origin: right; */

    margin-block: auto;
}

#about .container.left-sided .text-wrapper {
    margin-right: -300px; 
}

#about .container.right-sided .text-wrapper {
    margin-left: -300px;
}

#about .container .text-wrapper p {
    width: 100%;
    /* max-width: 400px; */
    padding-top: var(--padding-l);
    font-size: var(--font-m);
}

#about .container .text-wrapper p::before {
    content: open-quote;
    font-family: "Playfair Display", serif;
    font-size: 20rem;
    scale: 1.5;
    opacity: .2;
    position: absolute;
    top: -22rem;
    left: 2rem;
    z-index: -1;
}

#about .container .text-wrapper p::after {
    content: no-close-quote;
    font-family: "Playfair Display", serif;
    font-size: 20rem;
    scale: 2;
    opacity: .4;
    position: absolute;
    /* top: 0rem; */
    /* left: 5rem; */
    z-index: -1;
}

#about .container .text-wrapper h2 {
    font-weight: 700;
    font-size: var(--header-l);
    align-content: end;
    width: 100%;
    /* max-width: 400px; */
    /* background-color: darkgoldenrod; */
}

.scroller {
    display: flex;
    width: 100%;
    height: max-content;
    position: relative;
    border-block: solid 1rem var(--clr-background);
    margin-inline: 12rem;
    z-index: 501;
    background-image: var(--noise);
    background-color: var(--navbar-sticked);
    backdrop-filter: blur(10px);
}

.scroller[data-animated] {
    display: block;
    height: 21.875rem;
    overflow: hidden ;
    -webkit-mask: linear-gradient(90deg , transparent, black 15%, black 85%, transparent);
    mask: linear-gradient(90deg , transparent, black 15%, black 85%, transparent);
}

.scroller-inner {
    width: max-content;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.scroller[data-animated] .scroller-inner {
    flex-wrap: nowrap !important;
    animation: scroller-animation var(--_animation-duration, 50s) 
        var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"]  {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"]  {
    --_animation-direction: forwards;
}

.scroller[data-animated] .scroller-inner:hover {
    animation-play-state: paused !important;
}

.scroller-item {
    height: 80%;
    aspect-ratio: 1.2/1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-background);
    border-radius: var(--radius-xxl);
    /* overflow: hidden; */
    contain: paint;
    transition: background-size .3s ease, background-position .3s ease;
    --_hover-offset: 20px;
    --_hover-size: 20%;
}

.scroller-item.photo {
    overflow: hidden;
}

.scroller-item.photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-xxl);
    transition: transform .8s ease;
}
.scroller-item.photo:hover img {
    background-size: 120% 120%;
    transform: scale(1.2);
}

.scroller-item.photo .title {
    display: flex;
    justify-content: center;
    position: absolute;
    color: color-mix(in srgb, blue 30%, white);
    background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,.7) 70%, rgba(0,0,0,0));
    padding-block: var(--padding-l); 
    width: 100%;
    min-height: 4rem;
    opacity: 0;
    border-bottom-left-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
    /* border: 3px solid red; */
    /* border-radius: 60px; */
    bottom: 0;
    transform: translateY(100%);
    transition: transform .5s ease, opacity .3s ease .05s;
    z-index: 300;
}

.scroller-item.photo .title h4 {
    width: fit-content;
    font-size: 1.2rem;
    /* background-color: red; */
}

.scroller-item.photo:hover .title {
    opacity: 1;
    transform: translateY(0);
}

.scroller-item.image {
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-blend-mode: darken;
}

.scroller-item.image:hover {
    background-size: var(--_hover-size, 20%);
    background-position: 50% calc(0% + var(--_hover-offset, 0px));
    transition: background-size .3s ease, background-position .3s ease;
}

.scroller-item .text-wrapper {
    position: absolute;
    background: var(--bg-gradient-3);
    padding: var(--padding-s) var(--padding-s) 0 var(--padding-s); 
    width: 100%;
    height: 100%;
    /* border: 3px solid red; */
    /* border-radius: 60px; */
    bottom: 0;
    transform: translateY(100%);
    transition: transform .3s ease;
    /* height: 0; */
}

.scroller-item .text-wrapper .noise {
    background-size: 100%;
}

.scroller-item .text-wrapper a {
    display: block;
    z-index: 110;
    /* width: min-content; */
    height: min-content;
    margin-block: var(--margin-s) var(--margin-m);
}

.scroller-item .text-wrapper a span {
    padding-bottom: .5rem;
    color: color-mix(in srgb, var(--clr-primary) 50%, black);
}

.scroller-item .text-wrapper h2 {
    color: color-mix(in srgb, var(--clr-primary) 50%, black);
}

.scroller-item .text-wrapper h2 i {
    z-index: 111 !important;
}

.scroller-item .text-wrapper p {
    z-index: 11;
}

.scroller-item:hover .text-wrapper {
    transform: translateY(20%);
}

@keyframes scroller-animation {
    to {
        transform: translateX(calc(-50% - 1rem)); 
        /* 1 rem to połowa gapa w scroller-inner */
    }
}


.custom-shape-divider-top-1732886407 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 100;
}

.custom-shape-divider-top-1732886407 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

.custom-shape-divider-top-1732886407 .shape-fill {
    fill: var(--clr-background);
}

.custom-shape-divider-bottom-1732886520 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 100;
}

.custom-shape-divider-bottom-1732886520 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 5rem;
}

.custom-shape-divider-bottom-1732886520 .shape-fill {
    fill: var(--clr-background);
}

@media (max-width: 1200px) {
    .scroller {
        margin-inline: 2rem !important;
    }
}

@media (max-width: 800px) {
    #about {
        padding-inline: 0;
        /* font-size: 15px; */
        gap: 2rem;

        padding-block: 4rem 1rem;
    }

    #bg-line {
        transform: scale(1.1);
    }

    #about h1 {
        height: 100px;
    }

    #about h1 span,
    #about h1 strong {
        font-size: var(--header-xl);
    }

    #about .container {
        flex-wrap: wrap;
        padding-inline: var(--padding-m);
        padding-top: var(--padding-m);
        margin-bottom: var(--padding-m);
    }

    #about .container .text-wrapper {
        width: 80%;
        margin-block: none;
        margin-bottom: -75px;
    }
    #about .container .text-wrapper p,
    #about .container .text-wrapper h2 {
        max-width: 100%;
    }

    #about .container .text-wrapper h2 {
        font-size: var(--header-s);
    }

    #about .container.left-sided .text-wrapper {
        margin-right: unset;
        margin-block: none;
    }

    #about .container.right-sided .text-wrapper {
        margin-left: unset;
        margin-block: none;
    }

    #about .container .image-container {
        width: 80%;
        /* height: 30rem; */
    }
    /* .scroller {
        margin-inline: 2rem !important;
    }
    .scroller[data-animated] {
        display: block;
        height: 18rem;
        overflow: hidden ;
        -webkit-mask: linear-gradient(90deg , transparent, black 15%, black 85%, transparent);
        mask: linear-gradient(90deg , transparent, black 15%, black 85%, transparent);
    }

    .scroller-item {
        aspect-ratio: 1/1;
    }

    .scroller-item .text-wrapper a {
        margin-block: var(--margin-s) var(--margin-s);
    }

    .scroller-item .text-wrapper h2 {
        font-size: var(--font-l);
    }

    .scroller-item .text-wrapper p {
        font-size: var(--font-s);
    } */
}

@media (max-width: 600px) {
    #about h1 {
        width: 100%;
        margin-bottom: 4rem;
    }
    #about h1 strong,
    #about h1 span {
        font-size: var(--header-l);
    }


    .custom-shape-divider-bottom-1732886520 svg {
        height: 2rem;
        /* width: 200%; */
        /* transform: translateX(-25%);    */
    }
}

/* .custom-shape-divider-bottom-1737286746 {
    margin-top: -100svh;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1737286746 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

.custom-shape-divider-bottom-1737286746 .shape-fill {
    fill: #FFFFFF;
} */