#wrapper {
    padding-top: 1.2em;
    padding-bottom: 0;
}

#poster {
    width: 100%;
    height: 80vh;
    overflow: hidden;
}
#poster figure {
    height: 100%;
    margin-right: 10px;
    border-radius: 5px;
}
#poster img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.carousel {
    background: none;
    margin-bottom: 2em;
}

.carousel figure {
    width: 100%;
    height: 60vh;
    margin-right: 1em;
    counter-increment: carousel-cell;
}
#frame,
.carousel figure iframe {
    height: 70vh;
    width: 100%;

}

/* cell number */
/* .carousel figure:before {
    display: block;
    text-align: center;
    content: counter(carousel-cell);
    line-height: 200px;
    font-size: 80px;
    color: white;
} */

.carousel-nav {
    margin: 0 -1.8em 0 0;
    width: 100%;
}
.carousel-nav .flickity-viewport {
    min-height: 9em;
    margin: 0 1em;
}
.carousel-nav .flickity-viewport::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 1px;
    box-shadow: 0 0 6px 20px #323232;
}

.carousel-nav figure {
    /* background: #8C8; */
    background-color: #252525;
    border: 1px solid transparent;
    border-radius: 5px;
    box-shadow: 0 4px 6px #2c2c2c;
    padding: 2em;

    min-height: auto;
    height: 7em;
    width: 10em;
    transition: .15s transform ease-in-out, .35s box-shadow ease;
    top: .4em;
    padding: .5em;
    overflow: hidden;
}

.carousel-nav figure img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: .5;
    object-fit: cover;
}
.carousel-nav figure figcaption {
    position: relative;
    width: 100%;
    height: 100%;
    display: table;
    text-align: center;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, .8);
}
.carousel-nav figure figcaption span {
    vertical-align: middle;
    display: table-cell;
    text-align: center;
}

.carousel-nav figure:before {
    font-size: 50px;
    line-height: 80px;
}

.carousel-nav figure.is-selected {
    /* background: #ED2; */
    border-color: lightgrey;
    box-shadow: 0 2px 6px rgba(10, 10, 10, .5);
    transform: scale(1.05);
}


#zooms > div {
    display: flex;
    /* grid-template-columns: repeat(auto-fit, minmax(12em, 1fr)); */
    /* grid-template-columns: repeat(auto-fill, minmax(min(17em, 100%), 1fr)); */
    flex-wrap: wrap;
    justify-items: flex-start;
    justify-content: space-between;
    margin: 1em -1em;
}

#main #zooms article + article {
    margin-top: 1em;
}
#main #zooms article {
    display: inline-block;

    font-size: .8em;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    margin: 1em;
    padding-right: 4em;
    position: relative;
    transition: .15s transform ease-in-out, .35s box-shadow ease;
    box-shadow: 0 4px 6px #2c2c2c;
}
#main #zooms article:hover {
    box-shadow: 0 2px 6px rgba(10, 10, 10, .5);
    transform: scale(1.01);
}
#zooms article::after {
    font-family: 'icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    font-size: 1em;
    content: "\e90a";
    position: absolute;
    top: 50%;
    right: 2em;
    margin-top: -.8em;
}
#zooms article h1 {
    line-height: 1.2;
    flex: 1 0 auto;
    word-break: normal;
    white-space: normal;
    word-wrap: normal;
}
#zooms article h2 {
    padding-bottom: 0;
}
#zooms article > a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}
#zooms article > a span {
    display: none;
}



/* from INDEX */

#foreword {
    text-align: justify;
}
#main #foreword article {
    columns: auto;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}
#foreword blockquote {
    background-color: #252525;
    /* border: 1px solid #4b4b4b; */
    border-radius: 5px;
    /* box-shadow: 0 4px 6px #2d2d2d; */
    padding: 2em;
}
#foreword blockquote + figcaption::before {
    border-top-color: #252525;
}

#mbn > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
    /* grid-template-columns: repeat(auto-fill, minmax(min(17em, 100%), 1fr)); */
    grid-gap: 1em;
    gap: 1em;
    align-items: stretch;
}

#main #mbn article + article {
    margin-top: 0;
}
#mbn article {
    min-width: 10em;
    font-size: .8em;
    position: relative;
    display: inline-block;
}
#mbn article h1 {
    margin-bottom: 0;
}
#mbn article .content {
    margin-top: 1em;
}
#mbn article time {
    float: right;
    display: none;
}
#mbn article > a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
#mbn article > a span {
    display: none;
}




/* Flickity carousel */
.flickity-viewport {
    transition: height .2s;
}

/* page dots */
.flickity-page-dots {
    bottom: 0;
}
.flickity-page-dots .dot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
    width: 5px;
    height: 5px;
}

.flickity-button {
    background: none;
    transform: none;
    border: none;
    box-shadow: none;
    color: #fff;
}
.flickity-button:hover {
    /* background: none; */
    background: #323232;
    /* box-shadow: none; */
    box-shadow: 0 0 6px 6px #323232;
}
.flickity-prev-next-button.previous {
    left: -.05em;
}
.flickity-prev-next-button.next {
    right: -.05em;
}
.flickity-prev-next-button {
    border-radius: 0;
    width: 1em;
    height: 2em;
    height: 100%;
    top: 0;
    /* bottom: -7em; */
    z-index: 999;
    background: #323232;
    box-shadow: 0 0 6px 6px #323232;
}
/* fullscreen */
.flickity-fullscreen-button {
    right: 10px;
    top: 14px;
    width: 12px;
    height: 19px;
    border-radius: 4px;
}
.flickity-enabled.is-fullscreen {
    top: 0;
    bottom: 0;
    height: auto;
    margin: 0!important;
    padding: .5em!important;
    background-color: rgba(0,0,0,.9);
    -webkit-backdrop-filter: blur(2px);
}
.flickity-enabled.is-fullscreen .flickity-slider > * {
    height: 100%;
}
.flickity-enabled.is-fullscreen .flickity-slider img {
    max-width: 100%;

    top: 50%;
    position: relative;
    display: block;
    margin: auto;
    transform: translateY(-50%);
}
.flickity-enabled.is-fullscreen .flickity-page-dots {
    bottom: .15em;
}

/* hide disabled button */
.flickity-prev-next-button:disabled {
    display: none;
}
.flickity-page-dots .dot:first-child:nth-last-child(1) {
    opacity: 0;
}

dl {
    break-inside: avoid-column;
}
dl dt {
    font-weight: bold;
}
