/* ================================
   Brands Page Styles
   ================================ */

.brands-header {
  height: 390px;
  background: #888 no-repeat center;
  background-size: cover;
  color: #fff;
  font-size: 24px;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
}

.brands-header.brands-header-bumil {
  background-image: url(/static/brands/img/brands-bumil-bg.jpg);
}

.brands-header.brands-header-gompyo {
  background-image: url(/static/brands/img/brands-gompyo-bg.jpg);
}

.brands-header__container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: right;
}

.brands-header-bumil > .brands-header__container {
  flex-direction: row-reverse;
  text-align: left;
}

.brands-header__container > h2 > img {
  width: 232px;
}

.brands-body {
  padding: 104px 0 200px;
  background-color: #f5f5f2;
}

.brands-body__container.container {
  max-width: 944px;
}

.brands-view-item {
  display: none;
  gap: 40px;
  align-items: center;
}

.brands-view-item.is-active {
  display: flex;
}

.brands-view-item > img,
.brands-view-item > .brands-view-item__video {
  flex: 0 0 40%;
  aspect-ratio: 9 / 8;
  overflow: hidden;
  object-fit: cover;
}

.brands-view-item > .brands-view-item__video {
  position: relative;
}

.brands-view-item > .brands-view-item__video > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.brands-view-item__info {
  flex: 1;
  min-width: 0;
}

.brands-view-item__info > h3 {
  font-size: 24px;
  font-weight: 400;
}

.brands-view-item__info > p {
  font-size: 14px;
  margin-top: 16px;
  color: #777;
}

.brands-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 24px;
  margin-top: 24px;
}

.brands-thumbnail-item {
  flex: 1;
  max-width: 158px;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  transition:
    opacity 0.2s,
    border-color 0.2s;
  cursor: pointer;
}

.brands-thumbnail-item:hover {
  opacity: 0.8;
}

.brands-thumbnail-item.is-active {
  border-color: #777;
  opacity: 1;
}

.brands-thumbnail-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .brands-header {
    height: 240px;
    font-size: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }

  .en-page .brands-header {
    height: 256px;
    font-size: 14px;
  }

  .brands-header.brands-header-bumil {
    background-image: url(/static/brands/img/brands-bumil-bg-m.jpg);
  }

  .brands-header.brands-header-gompyo {
    background-image: url(/static/brands/img/brands-gompyo-bg-m.jpg);
  }

  .brands-header__container {
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
  }

  .brands-header-bumil > .brands-header__container {
    flex-direction: column;
    text-align: center;
  }

  .brands-header__container > h2 > img {
    width: 200px;
  }

  .brands-body {
    padding: 56px 0 104px;
  }

  .brands-view-item {
    flex-direction: column;
    gap: 16px;
  }

  .brands-view-item > img,
  .brands-view-item > .brands-view-item__video {
    flex: none;
    width: 100%;
    max-width: 364px;
  }

  .brands-view-item__info {
    text-align: center;
  }

  .brands-view-item__info > h3 {
    font-size: 18px;
  }

  .brands-view-item__info > p {
    font-size: 12px;
    margin-top: 8px;
  }

  .brands-thumbnails {
    gap: 4px;
    padding: 0;
    margin-top: 20px;
  }
}
