page-index img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    max-height: 200px;
}

/* Style the tab */
page-index .tab {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background-color: var(--global--color-sw-green);
    padding: 0 1rem;
    margin: 0 auto;
    box-shadow: 0 0.4rem 0.6rem 0.4rem rgba(0, 0, 0, 0.15);
}

page-index .tab > div {
    max-width: 90rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

page-index .tab > div > section {
    display: flex;
}

page-index .tab .hamburger {
    display: none;
}

page-index button[slot="nav"] {
    display: flex;
}

page-index .tablinks .icon {
    font-size: 1.5rem;
    padding-right: 5px;
}

page-index .tablinks {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--global--color-sw-green);
    font-family: var(--global--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

page-index .tablinks .menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0.4rem 0.6rem rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    text-align: left;
    list-style: none;
    display: flex;
    flex-flow: column nowrap;
    margin: 0;
}

page-index .tablinks:hover .menu {
    opacity: 1;
    visibility: visible;
}

page-index .tablinks .menu li {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    color: var(--global--color-sw-darker-grey);
    text-decoration: none;
}

page-index .tablinks .menu li:hover {
    background-color: var(--global--color-sw-yellow);
    border-radius: 0.5rem;
}

page-index .drawer-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -30rem;
    background: white;
    overflow-y: auto;
    transition: left 0.2s ease;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
    max-width: 25rem;
    min-width: 20rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
}

page-index .drawer-menu.active {
    left: 0;
    align-items: flex-start;
    flex-wrap: nowrap;
}

page-index .drawer-menu .close {
    display: flex;
    color: var(--global--color-sw-darker-grey);
    border: none;
}

page-index .drawer-menu .close > i {
    font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 48;
    font-size: 1.5rem;
}

page-index .tab .drawer-menu .close:hover {
    color: var(--global--color-sw-yellow);
    background-color: white;
    border: none;
}

page-index .drawer-menu ul {
    width: 100%;
    list-style: none;
    margin: 0;
}
  
page-index .drawer-menu li {
    margin: 1rem 0;
    padding: 0.5rem 1.5rem;
    font-family: var(--global--font-secondary);
    font-weight: 500;
    font-size: 1.125rem;
}

page-index .drawer-menu li ul {
    display: none;
}

page-index .drawer-menu li.active ul {
    display: block;
}

page-index .drawer-menu li > div {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

page-index .drawer-menu li > div > span {
    padding: 0.5rem 0;
    cursor: pointer;
}

page-index .drawer-menu li.active > div > span {
    border-bottom: var(--global--color-sw-green) 5px solid;
}

page-index .drawer-menu li > div > span:hover {
    color: var(--global--color-sw-yellow);
    border-color: var(--global--color-sw-yellow);
}

page-index .drawer-menu li ul li > span {
    font-family: var(--global--font-primary);
    cursor: pointer;
}

page-index .drawer-menu li ul li > span:hover {
    color: var(--global--color-sw-yellow);
}

page-index .drawer-menu li .dropdown-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--global--color-sw-green);
}

page-index .drawer-menu li .dropdown-icons:hover {
    color: var(--global--color-sw-yellow);
}

page-index .drawer-menu li .dropdown-icons > i:last-of-type {
    display: none;
}

page-index .drawer-menu li.active .dropdown-icons > i:first-of-type {
    display: none;
}

page-index .drawer-menu li.active .dropdown-icons > i:last-of-type {
    display: inline-block;
}


/* Style the buttons that are used to open the tab content */
page-index .tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 1rem 1rem 0.625rem;
    color: var(--global--color-white);
    font-family: var(--global--font-secondary);
    font-size: 1rem;
    border-bottom: var(--global--color-sw-green) 5px solid;
    transition: all 0.3s;
    text-wrap: nowrap;
}

/* Change background color of buttons on hover */
page-index .tab button:not(.hamburger):hover {
    background-color: var(--global--color-sw-yellow);
    border-bottom: var(--global--color-sw-yellow) 5px solid;
}

/* Create an active/current tablink class */
page-index .tab button.on {
    border-bottom: var(--global--color-sw-yellow) 5px solid;
}

/* Style the tab content */
page-index .tabcontent {
    padding: 0 0 1rem;
    max-width: 90rem;
    margin: 0 auto;
}

page-index .tabcontent > div {
    position: relative;
}

page-index .search-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

page-index .filter select-enhance {
    background: white;
    border: 2px solid white;
    border-radius: 0.25rem;
    padding: 0 5px;
    margin-right: 1rem;
}

page-index .search-icon > i {
    font-size: 1.5rem;
    color: white;
}

page-index .search {
    background: white;
    border: 2px solid white;
    border-radius: 0.25rem;
    padding: 0 5px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

page-index .searchterms {
    border: none;
    outline: none;
}

page-index .searchterms:active,
page-index .searchterms:focus {
    border: none;
    outline: none;
}


/* Style the cards */
page-index .cards {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

page-index .cards-item {
    display: flex;
    padding: 1rem;
    min-width: 15rem;
}

page-index .card {
    background-color: var(--global--color-white);
    border-radius: 0.25rem;
    box-shadow: 0 1.25rem 2.5rem -0.875rem rgba(0, 0, 0, 0.25);
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

page-index .card:hover {
    box-shadow: 0 1.8rem 1rem -0.5rem rgba(0, 0, 0, 0.15);
    transform: scale(1.05, 1.05);
}

page-index .card > div {
    width: 100%;
    flex-grow: 1;
}

page-index .card-content {
    padding: 1rem;
}

page-index .card-title {
    color: var(--global--color-black);
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin: 0;
    padding: 0.25rem 0;
    word-break: break-word;
}

page-index .card-text {
    color: var(--global--color-black);
    font-size: 1rem;
    line-height: 1.25rem;
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.25rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

page-index .card-image {
    text-align: center;
    background: var(--global--color-light-grey);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.75rem;
    position: relative;
}


page-index .card-image i.type-icon {
    font-family: "Material Symbols Rounded";
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 48;
    font-style: normal;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    position: absolute;
    bottom: -2rem;
    margin-left: -2rem;
    padding: 1rem;
    color: var(--global--color-sw-green);
    background-color: white;
    border-radius: 50%;
}

page-index .tags {
    display: flex;
}

page-index .tags > small {
    color: var(--global--color-sw-darker-grey);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 0.4rem;
    margin-right: 0.5rem;
    background-color: var(--global--color-sw-light-grey);
    border-radius: 0.25rem;
}

page-index h2 {
    font-family: var(--global--font-secondary);
    color: var(--global--color-black);
    font-size: 1rem;
}

page-index .card-button,
page-index .bulk-action-button {
    width: 60%;
    outline: none;
    border: none;
    cursor: pointer;
    color: white;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    white-space: nowrap;
}
page-index .bulk-action-button {
    border-radius: 0.25rem;
    margin-left: 1rem;
    padding: 0 0.5rem;
}

page-index .card-button.add[data-cart="1"] {
    display: none;
}

page-index .card-button.remove[data-cart="0"] {
    display: none;
}

page-index .card-button.add,
page-index .card-button.download,
page-index .card-button.remove {
    padding: .625rem 1.25rem;
    line-height: 1.25rem;
    border-radius: 1.25rem;
    height: 2.2rem;
    letter-spacing: 0.01rem;
    color: var(--global--color-sw-black);
    border: 2px solid var(--global--color-sw-yellow);
    margin-bottom: 1rem;
}

page-index .card-button.remove {
    border: 2px solid var(--global--color-sw-red);
}

page-index .card-button:hover,
page-index .bulk-action-button.add:hover,
page-index .bulk-action-button.remove:hover {
    background-color: var(--global--color-sw-darker-grey);
    color: white;
    border-color: var(--global--color-sw-darker-grey);
}

page-index .bulk-action-button {
    padding: .625rem 1.25rem;
    line-height: 1.25rem;
    border-radius: 1.25rem;
    height: 2.5rem;
    letter-spacing: 0.01rem;
    color: var(--global--color-sw-black);
    border: 2px solid var(--global--color-sw-yellow);
    background-color: white;
    box-shadow: 0 0.2rem 0.6rem 0.2rem rgba(0, 0, 0, 0.15);
}

page-index .bulk-action-button.add {
    border-color: var(--global--color-sw-yellow);
    color: var(--global--color-sw-black);
}

page-index .bulk-action-button.remove {
    border-color: var(--global--color-sw-red);
    color: var(--global--color-sw-black);
}

page-index .card-button.disabled {
    pointer-events: none;
    border-color: var(--global--color-grey);
    color: var(--global--color-sw-grey);
    cursor: not-allowed;
}

page-index .card-button > .icon,
page-index .bulk-action-button > .icon {
    font-size: 1.5rem;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 48;
}

page-index .card-button > span,
page-index .bulk-action-button > span {
    font-family: var(--global--font-medium);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 0.2rem;
    letter-spacing: 0.02rem;
}

page-index .highlight {
    background-color: var(--global--color-yellow);
    border-radius: 0.1rem;
}

page-index .tabcontent > div > aside {
    display: flex;
    position: sticky;
    top: 0;
    margin-right: 1rem;
    padding-top: 1rem;
    margin-left: auto;
    justify-content: center;
    align-items: center;
    width: fit-content;
    z-index: 2;
}

page-index .tabcontent .hint-more,
page-index .tabcontent .hint-no-more {
    text-align: center;
    padding: 1rem 0;
}

page-index #home[data-role="guest"] .card-button,
page-index #home[data-role="guest"] .card-button,
page-index #home[data-role="guest"] .bulk-action-button {
    display: none;
}

@media (min-width: 40rem) {
    page-index .cards-item {
        width: 50%;
    }

    page-index .card-image {
        min-height: 220px;
    }

    page-index .tabcontent > div > h2 {
        display: none;
    }
}

@media (min-width: 56rem) {
    page-index .cards-item {
        width: 33.3333%;
    }

    page-index .card-image {
        min-height: 250px;
    }
}

@media (min-width: 90rem) {
    page-index .cards-item {
        width: 25%;
    }

    page-index .card-image {
        min-height: 200px;
    }
}

@media (max-width: 40rem) {
    page-index .tab > div > section {
        flex-wrap: wrap;
    }

    page-index .card-image {
        min-height: auto;
        min-width: calc(99vw - 2rem);
    }

    page-index .tablinks span {
        display: none;
    }

    page-index .tabcontent.on .msg {
        padding-top: 3rem;
    }
}

@media (max-width: 64rem) {
    page-index .tab > div > div.search-container {
        flex-wrap: nowrap;
    }
}

@media (max-width: 88rem) {
    page-index .tabcontent > div > h2 {
        display: block;
        position: absolute;
        top: 1.5rem;
        left: 1rem;
    }

    page-index .tab .hamburger {
        display: flex;
    }

    page-index button[slot="nav"] {
        display: none;
    }
}