@layer theme {

    .templateHomepageCover {
        min-height: 100svh;
        overflow-x: clip;
        padding: 0;
        
        @media (max-width: 56em) {
            overflow-x: clip;
            min-height: unset;
            padding-top: calc(var(--section) * 1.5);
        }
        
        @media (--max-fablet) {
            overflow-x: clip;
            min-height: unset;
            padding-top: calc(var(--section) * 1.5);
        }

        .container {
            z-index: 2;
            align-items: center;

            @media (max-width: 56em) {
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: var(--section);
            }

            @media (--max-fablet) {
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: var(--section);
            }

            .media {
                position: absolute;
                inset: 0;
                overflow: visible;
                pointer-events: none;
                z-index: 1;
                border-radius: 0;

                @media (max-width: 56em) {
                    position: relative;
                    height: 275px;
                    width: 100%;
                    order: 1;
                }

                @media (--max-fablet) {
                    position: relative;
                    height: 275px;
                    width: 100%;
                    order: 1;
                }

                img {
                    position: absolute;
                    width: 512px;
                    height: 296px;
                    object-fit: cover;
                    border-radius: 0 128px 128px 128px;
                    will-change: transform, opacity;
                    opacity: 0;
                    z-index: 9;

                    @media (max-width: 56em) {
                        width: 90%;
                        height: 275px;
                        border-radius: var(--border-radius) var(--border-radius) 0 var(--border-radius);
                        aspect-ratio: 1;
                    }

                    @media (--max-fablet) {
                        width: 90%;
                        height: 275px;
                        border-radius: var(--border-radius) var(--border-radius) 0 var(--border-radius);
                        aspect-ratio: 1;
                    }
                }
            }

            .inner {
                pointer-events: none;
                grid-column: 3 / span 8;
                text-align: center;

                .title {
                    font-size: var(--xl-fontsize);
                    color: var(--color-light);
                    opacity: 0;
                    div {
                        display: inline-block;
                        overflow: hidden;
                        vertical-align: bottom;
                        span {
                            display: inline-block;
                        }
                    }
                }
            }

            /* .customCursor {
                position: absolute;
                top: 0;
                left: 0;
                width: 96px;
                height: 91px;
                pointer-events: none;
                will-change: transform, opacity;
                z-index: 20;
                opacity: 0;

                @media (--max-fablet) {
                    display: none;
                }
            } */
        }
    }
}
