@layer theme {
    .jobPosting {
        .templateCover {
            background-color: transparent;
            padding-top: calc(var(--section) * 2.5);

            .container {
                padding: 0;
                background-color: transparent;
                gap: 0;
                @media (max-width: 56em) {
                    align-content: flex-end;
                }
                @media (--max-fablet) {
                    align-content: flex-end;
                }
                .media {
                    order: 2;
                    grid-column: span 6;
                    min-height: 100%;
                    @media (min-width: 56em) {
                        border-top-right-radius: 0;
                    }
                    @media (--min-fablet) {
                        border-top-right-radius: 0;
                    }

                    .buttons {
                        position: absolute;
                        left: auto;
                        right: calc(var(--padding) / 2);
                        bottom: calc(var(--padding) / 2);
                        z-index: 55;
                        display: flex;
                        flex-direction: row;
                        gap: 10px;

                        @media (max-width: 56em) {
                            left: 50%;
                            top: 50%;
                            bottom: auto;
                            right: auto;
                            transform: translateX(-50%) translateY(-50%);
                        }

                        @media (--max-fablet) {
                            left: 50%;
                            top: 50%;
                            bottom: auto;
                            right: auto;
                            transform: translateX(-50%) translateY(-50%);
                        }
                        
                        button, a {
                            position: initial;
                            top: auto;
                            bottom: auto;
                            left: auto;
                            right: auto;
                            width: 48px;
                            height: 48px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border-radius: 100%;
                        }
                        button {
                            background-color: #C3C8BD;
                            @media (max-width: 56em) {
                                display: none;
                            }
                            @media (--max-fablet) {
                                display: none;
                            }
                            .icon {
                                color: #fff;
                            }
                        }
                        a {
                            background-color: var(--color2);
                            .icon {
                                color: #fff;
                                &.play {
                                    @media (min-width: 56em) {
                                        display: none;
                                    }
                                    @media (--min-fablet) {
                                        display: none;
                                    }
                                }
                                &.enlarge {
                                    @media (max-width: 56em) {
                                        display: none;
                                    }
                                    @media (--max-fablet) {
                                        display: none;
                                    }
                                }
                            }
                        }
                    }

                    @media (max-width: 56em) {
                        grid-column: span 12;
                        height: auto;
                        img, video {
                            height: auto;
                        }
                    }

                    @media (--max-fablet) {
                        grid-column: span 12;
                        height: auto;
                        img, video {
                            height: auto;
                        }
                    }
                }
                .overlay {
                    border-top-left-radius: 0;
                    order: 2;
                    grid-column: span 6;
                    background: var(--color4);
                    padding: var(--padding);
                    display: flex;
                    flex-direction: column;
                    gap: var(--section);
                    
                    @media (min-width: 56em) {
                        border-top-right-radius: var(--section-radius);
                    }
                    
                    @media (--min-fablet) {
                        border-top-right-radius: var(--section-radius);
                    }

                    @media (max-width: 56em) {
                        grid-column: span 12;
                        order: 3;
                    }

                    @media (--max-fablet) {
                        grid-column: span 12;
                        order: 3;
                    }

                    .button {
                        align-self: flex-start;
                    }
                    .tags {
                        flex-direction: column;
                        gap: var(--gutter);
                        .tag {
                            background-color: transparent;
                            padding: 0px;
                            .icon {
                                width: 1.75rem;
                                height: 1.75rem;
                                color: var(--color2);
                            }
                            .text {
                                font-size: var(--s-fontsize);
                                line-height: var(--s-lineheight);
                                font-weight: bold;
                            }
                        }
                    }
                }
                .inner {
                    order: 1;
                    grid-column: span 12;
                    align-items: center;
                    padding-bottom: var(--section);
                    .intro {
                        .title {
                            color: var(--color-light);
                            font-size: var(--xl-fontsize);
                            line-height: var(--xl-lineheight);
                        }
                    }
                }
            }
               
        }
        







        .section-sticky {
            width: 100%;
            z-index: 999;
            background: var(--gradient);
            visibility: hidden;
            opacity: 0;
            height: 0;
            transition: var(--transition);
            .container {
                padding: calc(var(--padding) / 2) 0;
            }
            .inner {
                grid-column: 1 / span 12;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                .title {
                    color: var(--color-light);
                    font-size: var(--m-fontsize);
                    line-height: var(--m-lineheight);
                    @media (max-width: 56em) {
                        display: none;
                    }
                    @media (--max-fablet) {
                        display: none;
                    }
                }
            }
            &.is-sticky {
                position: fixed;
                top: 0;
                visibility: visible;
                opacity: 1;
                height: auto;
            }
            
        }

        .conditions {
            ul {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                gap: var(--gutter);
                padding: 0;
                @media (max-width: 56em) {
                    flex-direction: column;
                }
                @media (--max-fablet) {
                    flex-direction: column;
                }
                li {
                    list-style: none;
                    position: relative;
                    padding-left: calc(54px + var(--gutter));
                    min-height: 54px;
                    display: flex;
                    align-items: center;
                    @media (min-width: 56em) {
                        width: calc(50% - var(--gutter));
                    }
                    @media (--min-fablet) {
                        width: calc(50% - var(--gutter));
                    }
                    &:before {
                        content: "";
                        position: absolute;
                        left: 0;
                        top: 0.2em;
                        width: 54px;
                        height: 54px;
                        background-image: url("data:image/svg+xml,%3Csvg width='54' height='54' viewBox='0 0 54 54' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='54' height='54' rx='27' fill='white'/%3E%3Cpath d='M35.4644 16.332C36.1543 15.525 37.3568 15.3555 38.2482 15.9732C39.1989 16.6324 39.4353 17.9382 38.7761 18.889L37.7193 20.3953C35.2024 23.9455 32.37 27.6907 30.0722 30.6664C28.757 32.3695 27.6123 33.8263 26.7966 34.8575C26.3887 35.3731 26.0631 35.7828 25.8388 36.0638C25.7266 36.2043 25.6399 36.313 25.581 36.3865C25.5517 36.4231 25.5292 36.4511 25.514 36.47C25.5064 36.4795 25.5004 36.4868 25.4965 36.4917C25.4947 36.4938 25.4934 36.4956 25.4923 36.4968L25.4903 36.4989L23.9613 38.4001L15.4007 29.0611L15.2646 28.8951C14.63 28.0439 14.7301 26.8338 15.5295 26.101C16.3292 25.368 17.5442 25.3729 18.337 26.0793L18.4896 26.2299L23.7437 31.9613C24.5301 30.9654 25.5744 29.637 26.7564 28.1063C29.3672 24.7254 32.6407 20.385 35.3335 16.5011L35.4644 16.332Z' fill='%2340A533'/%3E%3C/svg%3E%0A");
                        background-size: contain;
                        background-repeat: no-repeat;
                    }
                }
            }

        }

        .templateCollection.collectionPerson.single,
        .conditions  {
            .container {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                border-bottom-left-radius: var(--section-radius);
                border-bottom-right-radius: var(--section-radius);
            }
        }

        .socialShare {
            position: fixed;
            z-index: 99;
            top: 50%;
            transform: translateY(-50%);
            right: -100px;
            gap: 10px;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            flex-wrap:wrap;
            align-items: center;
            .title {
                width: 100%;
                text-align: center;
                font-size: var(--m-fontsize);
                color: var(--color1);
                @media (min-width: 56em) {
                    display: none;
                }
                @media (--min-fablet) {
                    display: none;
                }
            }
            @media (max-width: 56em) {
                justify-content: center;
                align-items: center;
                flex-direction: row;
                right: auto;
                transform: none;
                top: auto;
                position: relative;
            }
            @media (--max-fablet) {
                justify-content: center;
                align-items: center;
                flex-direction: row;
                right: auto;
                transform: none;
                top: auto;
                position: relative;
            }
            &.is-sticky {
                @media (min-width: 56em) {
                    right: 1.25rem;
                }
                @media (--min-fablet) {
                    right: 1.25rem;
                }
            }
            a, button {
                overflow: hidden;
                text-decoration: none;
                background-color: var(--color2);
                background-image: linear-gradient(90deg,var(--color1) 0,transparent 100%);
                width: 50px;
                height: 50px;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: var(--border-radius);
                color: #fff;
                transition: transform .2s;
                &:hover {
                    @media (hover: hover) {
                        transform: scale(1.05);
                    }
                }
            }
        }
    }
}