.panel {
  padding: var(--panel-mobile-vertical-padding) var(--mobile-padding);
  @media (min-width: 801px) {
    padding: var(--panel-desktop-vertical-padding) 10vw;
  }
  h3 {
    color: var(--azure);
  }
}
/* set titles to white when the colorway is not white */
html[data-colorway]:not([data-colorway='white']) {
  .panel {
    h3 {
      color: #FFF;
    }
  }
}

.panel-image {
  img {
    max-height: calc(100dvh - var(--header-nav-height));
    object-fit: cover;
  }
}

.panel-text-with-image,
.panel-text-with-slideshow {
  .image,
  .slideshow {
    margin-top: 3rem;
  }
  img {
    display: block;
  }
  @media (min-width: 801px) {
    display: flex;
    align-items: center;
    padding-right: 0;
    .text {
      flex: 1 0 0;
    }
    .image,
    .slideshow {
      margin: 0 10vw;
    }
    &.image-width-20 {
      .image,
      .slideshow{
        width: 20vw;
      }
    }
    &.image-width-30 {
      .image,
      .slideshow{
        width: 30vw;
      }
    }
    &.image-width-40 {
      .image,
      .slideshow {
        width: 40vw;
      }
    }
    &.image-width-50 {
      .image,
      .slideshow {
        width: 50vw;
      }
    }
    &.image-width-60 {
      .image,
      .slideshow {
        width: 60vw;
      }
    }
    &.image-side-left {
      flex-direction: row-reverse;
      padding-right: 10vw;
      padding-left: 0;
    }
    &.image-side-right.with-bleed {
      .image,
      .slideshow {
        margin-right: 0;
      }
    }
    &.image-side-left.with-bleed {
      .image,
      .slideshow {
        margin-left: 0;
      }
    }
  }
  .slideshow {
    position: relative;
  }
  .slide {
    transition: opacity 0.5s;
  }
  .slide + .slide {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }
  .slide.show {
    opacity: 1;
  }
  &.gail-map-1, &.gail-map-2, &.gail-map-3, &.gail-map-4 {
    .image {
      position: relative;
      img {
        mix-blend-mode: multiply;
      }
      &:after {
        content: '';
        display: block;
        position: absolute;
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        background: #FFF;
      }
    }
  }
  &.gail-map-1 .image:after {
    left: 44%;
    top: 56%;
  }
  &.gail-map-2 .image:after {
    left: 39%;
    top: 28%;
  }
  &.gail-map-3 .image:after {
    left: 51%;
    top: 37%;
  }
  &.gail-map-4 .image:after {
    left: 57%;
    top: 46%;
  }
}

.panel-text {
  @media (min-width: 801px) {
    /* text area should by 50% the width of the window */
    &.text-side-left {
      padding-right: 40vw;
    }
    &.text-side-center {
      padding-left: 25vw;
      padding-right: 25vw;
    }
    &.text-side-right {
      padding-left: 40vw;
    }
  }
  .button-area {
    margin-top: var(--panel-mobile-vertical-padding);
    text-align: center;
    @media (min-width: 801px) {
      margin-top: var(--panel-desktop-vertical-padding);
      font-size: 2.4rem;
      .button {
        font-size: 2.8rem;
      }
    }
  }
}

.panel-html {
  padding-top: 0;
  @media (min-width: 801px) {
    /* text area should by 50% the width of the window */
    &.layout-side-left {
      padding-right: 40vw;
    }
    &.layout-side-center {
      padding-left: 25vw;
      padding-right: 25vw;
    }
    &.layout-side-right {
      padding-left: 40vw;
    }
  }
}


.panel-product {
  .flavor,
  table,
  form {
    font-family: var(--sans);
    font-weight: 300;
  }
  .flavor {
    font-size: 2rem;
  }
  table,
  form {
    max-width: 52rem;
    width: 100%;
  }
  table {
    margin-top: 3rem;
    font-size: 1.7rem;
    text-transform: uppercase;
  }
  td {
    padding: 0;
    border-top: 1px solid rgb(0 0 0 / 30%);
    border-bottom: 1px solid rgb(0 0 0 / 30%);
    &:last-child {
      text-align: right;
    }
  }
  &.color-green,
  &.color-blue,
  &.color-purple,
  &.color-peach {
    td:last-child {
      color: #FFF;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
  }
  form {
    display: flex;
    align-items: center;
    font-size: 2rem;
    gap: 3rem;
    margin-top: 4rem;
    + form {
      margin-top: 2rem;
    }
  }
  .variant-title {
    flex-grow: 1;
  }
  label {
    font-size: 1.4rem;
    text-transform: uppercase;
  }
  .quantity input {
    width: 3.5em;
    margin-left: 0.25em;
  }
  input,
  button {
    font-size: 1.6rem;
  }
  .image {
    margin-bottom: 3rem;
  }
  @media (min-width: 801px) {
    display: flex;
    .image {
      width: 30vw;
      margin: 0 10dvw 0 0;
    }
    .text {
      flex: 1 0 0;
    }
  }
  @media (max-width: 520px) {
    form {
      flex-direction: column;
      gap: 0.5rem;
      + form {
        margin-top: 3rem;
      }
    }
    button {
      margin-top: 1rem;
    }
  }
}

.panel-cards {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.2;
  .cards {
    display: flex;
    margin: -1.5rem;
    flex-wrap: wrap;
  }
  .card {
    width: 25%;
    padding: 1.5rem 1.5rem 4.5rem;
    @media (max-width: 1150px) {
      width: 33.33%;
    }
    @media (max-width: 800px) {
      width: 50%;
    }
    @media (max-width: 450px) {
      width: 100%;
    }
  }
  h3 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 3em;
  }
  h4 {
    font-size: 1.8rem;
    font-weight: 300;
    border-bottom: 1px solid var(--text-color);
    margin: 0 0 0.75em;
  }
  a {
    color: var(--azure);
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }
  p {
    margin: 0.75em 0 0;
  }
}
.section-panel-cards + .section-panel-cards {
  .panel-cards {
    padding-top: 0;
  }
}

.panel-order-form {
  font-family: var(--sans);
  h2 {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 2rem;
    margin: 0 0 4rem;
  }
  .product {
    border-top: 1px solid var(--text-color);
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 300;
  }
  .variants {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
  }
  .variant {
    display: flex;
    gap: 1.5em;
    align-items: center;
    + .variant {
      margin-top: 1em;
    }
  }
  label {
    font-size: 1.4rem;
    font-weight: bold;
  }
  input {
    margin-left: 0.25em;
    width: 4em;
  }
  .name {
    text-transform: none;
  }
  .product + h2, .submit {
    margin-top: 6rem;
  }
  .submit {
    text-align: right;
  }
  @media (max-width: 600px) {
    .product {
      flex-direction: column;
    }
    .title {
      margin-bottom: 2rem;
    }
  }
}
