html,
body {
    font-size: 14px;
    box-sizing: border-box;
    display: block;
    max-height: 100vmin;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, ::before, ::after {
    box-sizing: inherit;
    background-repeat: no-repeat;
}

/* ==============================
 * Gallery
============================== */
.gallery {
    height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100vh;
    display: flex;
    width: max-content;
    background-image: url('../images/bg_wall.png');
    background-size: auto 100%;
    background-repeat: repeat-x;
    overflow-y: hidden;
}

/* Expo details */
.expo-details {
    width: 100vw;
    max-width: 500px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 10px 25px 0 rgb(0 0 0 / 50%);
}

.expo-details p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.site-header {
    background-color: #000000;
    padding: 1rem;
}

.site-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
}

.expo-details__inner {
    padding: 2rem;
    height: calc(100% - 4rem - 150px);
    overflow: scroll;
    box-sizing: border-box;
}

.expo-details__thumbnail {
    margin-bottom: 1rem;
}

.expo-details__thumbnail img {
    width: 100%;
}

.expo-details__title {
    margin-bottom: 2rem;
}

.expo-details__title .subtitle {
    margin: 0;
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.expo-details__title .title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.4;
}

/* Artwork */
.artwork-list__wrapper {
    display: flex;
    height: calc(100vh - 150px);
    align-items: center;
}

.artwork-list {
    display: flex;
    height: 45vh;
}

.artwork-item:first-child {
    margin-left: 200px;
}

.artwork-item:last-child {
    margin-right: 50px;
}

.artwork-item {
    margin-right: 200px;
}

.artwork-item__caption {
    width: 100%;
    max-width: 200px;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0.7rem;
}

.artwork-item__caption .title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
    margin-bottom: 0.5rem;
}

.artwork-item__caption .artist {
    font-size: 0.75rem;
    margin: 0;
    padding: 0;
}

.artwork-item a {
    display: block;
    height: 100%;
    width: max-content;
    text-decoration: none;
    color: #000000;
}

.artwork-item img {
    height: 100%;
    width: 100%;
    max-width: 70vw;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}

/* Gallery Navigation */
.gallery-nav {
    height: 150px;
    width: 100vw;
    background-color: #000000;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
}

.gallery-nav .arrow {
    width: 30px;
    height: 100%;
    margin: 0 10px;
}

.gallery-nav .arrow::after {
    content: '';
    width: 30px;
    height: 100%;
    display: block;
}

.gallery-nav .arrow:hover {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gallery-nav .prev-arrow::after {
    background: url("../images/button-left.svg") no-repeat center;
}

.gallery-nav .next-arrow::after {
    background: url("../images/button-right.svg") no-repeat center;
}

.gallery-nav-list {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: scroll;
    display: flex;
    align-items: center;
    list-style: none;
}

.gallery-nav-item {
    margin-right: 10px;
    flex-grow: 0;
    flex-shrink: 0;
}

.gallery-nav-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* ==============================
 * Single Page
============================== */
.single {
    width: 100%;
    min-height: 100vh;
    background-color: #eeeeee;
}

.single__container {
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
}

.artwork {
    width: 100%;
    height: 70vh;
    max-height: 600px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.artwork img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.article {
    padding: 1.6rem;
    background-color: rgba(255, 255, 255, 0.6);
}

.article .header {
    margin-bottom: 2rem;;
}

.article .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .article .header-top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
}

.article .header-top .price {
    display: flex;
    align-items: flex-end;
}

.article .header-top .price .number {
    font-size: 1.5rem;
    margin-right: 0.3rem;
}

.article .title {
    font-size: 1.8rem;
}

.article .body h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.article .body h3 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.article .body p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.article ul {
    margin-left: 1rem;
}

.article .footer {
    margin-top: 4rem;
    padding-top: 1.6rem;
    border-top: #cccccc 1px solid;
}

/* ==============================
 * Components
============================== */
.button {
    color: #ffffff;
    background-color: #000000;
    position: relative;
    display: inline-block;
    width: auto;
    min-width: 13rem;
    line-height: 3rem;
    font-size: 0.9rem;

    text-align: center;
    text-decoration: none;

    border: none;
    cursor: pointer;
    appearance: none;
}

.button:hover {
    background-color: #2a2a2a;
}

.button::after {
    position: absolute;
    top: 50%;
    right: 8%;
    width: 0.6rem;
    height: 0.6rem;
    margin-top: -5px;
    content: '';
    transform: rotate(45deg);
    border: 0;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
}

/* ==============================
 * Modal
============================== */
.modal {
    font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
  }
  
  .modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .modal__container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  .modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    box-sizing: border-box;
  }
  
  .modal__close {
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  
  .modal__header .modal__close:before { content: "\2715"; }
  
  .modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0,0,0,.8);
  }
  
  .modal__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0,0,0,.8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out,-webkit-transform .25s ease-out;
  }
  
  .modal__btn:focus, .modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
  
  .modal__btn-primary {
    background-color: #00449e;
    color: #fff;
  }
  
  @keyframes mmfadeIn {
      from { opacity: 0; }
        to { opacity: 1; }
  }
  
  @keyframes mmfadeOut {
      from { opacity: 1; }
        to { opacity: 0; }
  }
  
  @keyframes mmslideIn {
    from { transform: translateY(15%); }
      to { transform: translateY(0); }
  }
  
  @keyframes mmslideOut {
      from { transform: translateY(0); }
      to { transform: translateY(-10%); }
  }
  
  .micromodal-slide {
    display: none;
  }
  
  .micromodal-slide.is-open {
    display: block;
  }
  
  .micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  }
  
  .micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
  }
  
  .micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  }
  
  .micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
  }
  
  .micromodal-slide .modal__container,
  .micromodal-slide .modal__overlay {
    will-change: transform;
  }