﻿/* 整個內容方塊 */
.index其他項目內容20 {
    --margin: 10px;
    --bg-color01: chocolate;
    --bg-color02: blue;
    --bg-color03: /*darkgreen*/ yellow;
    --bg-color04: darkorange;
    --font-color: #FFFFFF;
    --font-size: 1.8rem;
    --font-weight : 900;
    --animate-duration: 1s;
    --animate-bar-thickness: 3px;
    --animate-bar-color: #FFFFFF;
    --block-aspect-ratio: 3 / 3;
    --title-align: left;
  
  --box-shadow:
    inset 0 0 50px #fff,      /* inner white */
    inset 20px 0 80px #f0f,   /* inner left magenta short */
    inset -20px 0 80px #0ff,  /* inner right cyan short */
    inset 20px 0 300px #f0f,  /* inner left magenta broad */
    inset -20px 0 300px #0ff, /* inner right cyan broad */
    0 0 50px #fff,            /* outer white */
    -10px 0 80px #f0f,        /* outer left magenta */
    10px 0 80px #0ff;         /* outer right cyan */

    /* --For simpleBar Start-- */
    --content-height-without-heading: auto;
    --whole-block-height: auto;
    /* --For simpleBar End-- */

    height: var(--whole-block-height);
}

    /* 內容方塊標題 */
    .index其他項目內容20 .blockTitle {
        text-align: var(--r-index-block-title-align, --title-align);
    }

        .index其他項目內容20 .blockTitle h2 {
        }

    /* 捷徑容器，每個捷徑都放在裡面 */
    .index其他項目內容20 .loopElementList {
        height: var(--content-height-without-heading);
    }

    .index其他項目內容20 .shortcutList {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .index其他項目內容20 .eachShortcut {
        aspect-ratio: var(--block-aspect-ratio);
        overflow: hidden;
        margin : 2em 2em 2em 2em;
        /*border-radius : 81% 19% 49% 51% / 12% 57% 43% 88%; */
        border-radius : 50%;
        /*box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;*/
        box-shadow : var(--box-shadow);
    }

.index其他項目內容20 .eachShortcut:nth-of-type(2)
{
   margin-top : 120px; 
}
.index其他項目內容20 .eachShortcut:nth-of-type(3)
{
   margin-top : 210px; 
   
}
.index其他項目內容20 .eachShortcut:nth-of-type(4)
{
   margin-top : 300px; 
}

    .index其他項目內容20 .innerShell {
        overflow: hidden;
        width: 100%;
        height: 100%;
        background-color: antiquewhite;
    }

    .index其他項目內容20 .link {
        text-align: center;
        height: 100%;
        display: block;
    }

    .index其他項目內容20 .bg {
        transition: transform var(--animate-duration);
        object-fit: cover;
        height: calc(100% - 3rem);
    }

    .index其他項目內容20 .link:hover .bg {
        transform: scale(1.1, 1);
    }

    .index其他項目內容20 .content {
        position: relative;
        color: var(--font-color);
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .index其他項目內容20 .text {
        font-size: var(--font-size);
        font-weight: var(--font-weight);
        width: 100%;
        text-align: center;
        padding: 0.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

        .index其他項目內容20 .text i {
            margin-right: 1rem;
        }

            .index其他項目內容20 .text i[class=""] {
                margin-right: 0;
                display: none;
            }

    .index其他項目內容20 .eachShortcut:nth-child(1n) .text {
        background-color: var(--bg-color01);
    }

    .index其他項目內容20 .eachShortcut:nth-child(2n) .text {
        background-color: var(--bg-color02);
    }

    /*English Channel*/
    .index其他項目內容20 .eachShortcut:nth-child(3n) .text {
        background-color: var(--bg-color03);
        font-size: 1.4rem;
        padding: 1em 0 0.2em 0;
        color : #000000;
        
    }

    .index其他項目內容20 .eachShortcut:nth-child(4n) .text {
        background-color: var(--bg-color04);
    }

    .index其他項目內容20 .animBar {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: var(--animate-bar-thickness);
        transition: all var(--animate-duration);
    }

    .index其他項目內容20 .link:hover .animBar {
        width: 100%;
        background-color: var(--animate-bar-color);
    }
    .index其他項目內容20 .eachShortcut:hover
    {
       
    }
@media (max-width: 480px) {
    .index其他項目內容20 .eachShortcut {
        width: calc(100% - 4em);
    }

    .index其他項目內容20 .text {
        padding: 0.5em;
    }
    .index其他項目內容20 .eachShortcut:nth-of-type(1), .index其他項目內容20 .eachShortcut:nth-of-type(2), .index其他項目內容20 .eachShortcut:nth-of-type(3), .index其他項目內容20 .eachShortcut:nth-of-type(4)
    {
        margin-top : 2em; 
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .index其他項目內容20 .eachShortcut {
        width: calc(50% - 4em);
    }

    .index其他項目內容20 .text {
        padding: 0.5em;
    }
    .index其他項目內容20 .eachShortcut:nth-of-type(1), .index其他項目內容20 .eachShortcut:nth-of-type(2), .index其他項目內容20 .eachShortcut:nth-of-type(3), .index其他項目內容20 .eachShortcut:nth-of-type(4)
    {
        margin-top : 2em; 
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    .index其他項目內容20 .eachShortcut {
        width: calc(50% - 4em);
    }
    .index其他項目內容20 .shortcutList {
        justify-content: center;
    }

    .index其他項目內容20 .text {
        padding: 0.3em;
    }
   .index其他項目內容20 .eachShortcut:nth-of-type(1), .index其他項目內容20 .eachShortcut:nth-of-type(2), .index其他項目內容20 .eachShortcut:nth-of-type(3), .index其他項目內容20 .eachShortcut:nth-of-type(4)
    {
        margin-top : 2em; 
    }
}

@media (min-width: 980px) and (max-width:1199px) {
    .index其他項目內容20 .eachShortcut {
        width: calc(25% - 4em);
    }
    .index其他項目內容20 .shortcutList {
        justify-content: center;
    }
    .index其他項目內容20 .text {
        font-size: 1.2rem;
    }
  .index其他項目內容20 .eachShortcut:nth-child(3n) .text
  {
    font-size: 1.2rem;
  }
}

@media (min-width: 1200px) and (max-width:1919px) {
    .index其他項目內容20 .eachShortcut {
        width: calc(25% - 4em);
    }
}

@media (min-width: 1920px) {
    .index其他項目內容20 .eachShortcut {
        width: calc(25% - 4em);
    }
}
