/* Category YouTube video on product attachments */

.product-attachments .product-attachment-video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-attachments .product-attachment-video .product-feature-video-trigger {
  color: #002e55;
  line-height: 1;
  border: 0;
  background: transparent;
  padding: 0;
}

.product-attachments .product-attachment-video .product-feature-video-trigger:hover,
.product-attachments .product-attachment-video .product-feature-video-trigger:focus {
  color: #b61f29;
  text-decoration: none;
}

.product-attachments .product-attachment-video .product-feature-video-trigger:hover .fa-video-camera,
.product-attachments .product-attachment-video .product-feature-video-trigger:focus .fa-video-camera {
  color: inherit;
}

.product-attachments .product-attachment-video .fa-video-camera {
  font-size: 3em;
  line-height: 1;
}

/* Modal: Bootstrap 4 alpha.5 — center with flex on .modal.in / .show */
#category-youtube-modal.in,
#category-youtube-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#category-youtube-modal .modal-dialog {
  width: 100%;
  max-width: min(1100px, 92vw);
  margin: 0 auto;
}

#category-youtube-modal .modal-content {
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

#category-youtube-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
}

#category-youtube-modal .modal-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
  color: #002e55;
}

#category-youtube-modal .modal-header .close {
  float: none;
  position: static;
  flex: 0 0 auto;
  margin: 0 0 0 1rem;
  padding: 0;
  opacity: 1;
  font-size: 1.75rem;
  line-height: 1;
  color: #002e55;
}

#category-youtube-modal .modal-body {
  padding: 0;
}

.category-youtube-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
}

.category-youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  #category-youtube-modal.in,
  #category-youtube-modal.show {
    padding: 0.75rem;
  }

  #category-youtube-modal .modal-dialog {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  #category-youtube-modal.in,
  #category-youtube-modal.show {
    padding: 0.5rem;
    align-items: center;
  }

  #category-youtube-modal .modal-header {
    padding: 0.5rem 0.75rem;
  }

  #category-youtube-modal .modal-title {
    font-size: 0.9375rem;
  }
}
