/* Bluejack Ranch - news & media */

/* Watch media / view news buttons */

.bjr-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem clamp(1.5rem, 5.85vw, 7.5rem);
  padding: clamp(3rem, 5.5vw, 7rem) var(--bjr-gutter);
  background: var(--bjr-cream);
}
.bjr-links .bjr-btn {
  min-width: clamp(200px, 13.65vw, 280px);
  font-size: clamp(.8rem, 1.05vw, 1.3rem);
  text-align: center;
}

/* News & media */

.bjr-news {
  padding: clamp(3.5rem, 4.6vw, 6rem) 9vw clamp(3.5rem, 4.2vw, 5.5rem);
  background: var(--bjr-cream);
}
.bjr-news--white { background: var(--bjr-white); }
.bjr-news__head { margin-bottom: clamp(2.5rem, 4.8vw, 6rem); text-align: center; }
.bjr-eyebrow {
  margin: 0 0 .35em;
  font-size: clamp(.95rem, 1.4vw, 1.75rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bjr-gold);
}
.bjr-news__title {
  margin: 0;
  font-family: var(--bjr-font-heading);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.55vw, 4.5rem);
  line-height: 1.15;
}
.bjr-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.25vw;
}
.bjr-news__grid + .bjr-news__grid { margin-top: clamp(2.5rem, 4.8vw, 6rem); }
.bjr-news__grid--posts { row-gap: clamp(2.5rem, 6vw, 7.5rem); }
/* the lists on article and video pages ask for one extra so they can skip the current item */
.bjr-news__grid--six > :nth-child(n + 7) { display: none; }
.bjr-news__more { margin: clamp(3rem, 5.6vw, 7rem) 0 0; text-align: center; }

.bjr-video { display: block; color: inherit; text-decoration: none; }
.bjr-video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bjr-brown);
}
.bjr-video__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bjr-video:hover .bjr-video__thumb img,
.bjr-video:focus-visible .bjr-video__thumb img { transform: scale(1.04); }
/* play button */
.bjr-video__thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(40px, 3.4vw, 58px);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='21.5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M19 14.5v19l15-9.5z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%);
}
.bjr-video__title {
  display: block;
  margin-top: clamp(.85rem, 1.35vw, 1.6rem);
  font-family: var(--bjr-font-heading);
  font-size: clamp(1.1rem, 1.4vw, 1.75rem);
  line-height: 1.3;
}

.bjr-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: clamp(12px, 1.2vw, 20px);
  color: inherit;
  text-decoration: none;
  background: var(--bjr-white);
  transition: box-shadow .3s ease, transform .3s ease;
}
.bjr-post:hover,
.bjr-post:focus-visible {
  box-shadow: 0 18px 40px rgba(var(--bjr-brown-rgb), .14);
  transform: translateY(-4px);
}
.bjr-post__image { aspect-ratio: 340 / 262; overflow: hidden; background: #e6e1d8; }
.bjr-post__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bjr-post__body { padding: clamp(1.5rem, 2.2vw, 2.75rem) clamp(1.5rem, 2.85vw, 3.5rem) clamp(2rem, 3.4vw, 4.25rem); }
.bjr-post__date {
  margin: 0 0 1.1em;
  font-weight: 500;
  font-size: clamp(.7rem, .82vw, 1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bjr-post__title {
  margin: 0;
  font-family: var(--bjr-font-heading);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.77vw, 2.2rem);
  line-height: 1.33;
}
/* press coverage: where it ran (Blog Post > Publication) */
.bjr-post__source {
  margin: 1.1em 0 0;
  font-weight: 500;
  font-size: clamp(.7rem, .82vw, 1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bjr-orange);
}

@media (max-width: 991.98px) {
  .bjr-news { padding: 3.5rem var(--bjr-gutter); }
  .bjr-news__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Video modal */

.bjr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 4.5rem 1.25rem 2rem;
  background: rgba(var(--bjr-brown-rgb), .92);
  opacity: 0;
  transition: opacity .25s ease;
}
.bjr-modal.is-open { opacity: 1; }
.bjr-modal__box { position: relative; width: min(100%, 1100px, calc((100vh - 8rem) * 16 / 9)); }
.bjr-modal__frame { aspect-ratio: 16 / 9; background: #000; }
.bjr-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.bjr-modal__close {
  position: absolute;
  right: 0;
  bottom: 100%;
  padding: .75rem 0;
  border: 0;
  font: 500 .8rem var(--bjr-font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bjr-white);
  background: none;
  cursor: pointer;
}
.bjr-modal__close:hover,
.bjr-modal__close:focus-visible { color: var(--bjr-gold); }

/* Article (Blog Post > Post Detail layout) */

.bjr-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15vw;
  column-gap: 7.5vw;
  align-items: start;
  padding: clamp(3rem, 8.2vw, 10.5rem) 6.3vw clamp(3.5rem, 7vw, 9rem) 6vw;
}
.bjr-article__title {
  margin: 0;
  font-family: var(--bjr-font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 4.4rem);
  line-height: 1.25;
}
.bjr-article__date {
  margin: clamp(1.25rem, 3vw, 3.75rem) 0 clamp(1.5rem, 4vw, 5rem);
  font-weight: 500;
  font-size: clamp(.7rem, .85vw, 1.05rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bjr-orange);
}
.bjr-article__image {
  display: block;
  width: 100%;
  margin-bottom: clamp(1.5rem, 3vw, 3.75rem);
}

/* whatever comes out of the post editor */
.bjr-article__body {
  font-size: clamp(1.05rem, 1.5vw, 1.85rem);
  line-height: 1.57;
}
.bjr-article__body > :first-child { margin-top: 0; }
.bjr-article__body > :last-child { margin-bottom: 0; }
.bjr-article__body p,
.bjr-article__body ul,
.bjr-article__body ol { margin: 0 0 1.4em; }
.bjr-article__body h2,
.bjr-article__body h3,
.bjr-article__body h4 {
  margin: 1.6em 0 1.3em;
  font-family: var(--bjr-font-heading);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.85vw, 2.3rem);
  line-height: 1.3;
  color: var(--bjr-orange);
}
.bjr-article__body a { color: var(--bjr-orange); }

/* press coverage: where it ran and a link to the full story (Article Link on the post) */
.bjr-article__source {
  margin-top: clamp(2rem, 4vw, 5rem);
  padding-top: clamp(1.5rem, 3vw, 3.5rem);
  border-top: 1px solid rgba(var(--bjr-brown-rgb), .2);
}
.bjr-article__source p {
  margin: 0 0 clamp(1.25rem, 2.2vw, 2.5rem);
  font-size: clamp(1rem, 1.2vw, 1.45rem);
}
.bjr-article__source strong { font-weight: 500; color: var(--bjr-orange); }

.bjr-article__side h2 {
  margin: 0 0 clamp(.9rem, 1.4vw, 1.75rem);
  font-family: var(--bjr-font-heading);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.85vw, 2.3rem);
  line-height: 1.3;
}
.bjr-recent,
.bjr-archive {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bjr-recent {
  margin-bottom: clamp(1.75rem, 2.4vw, 3rem);
  border-top: 1px solid var(--bjr-gold);
  font-size: clamp(.9rem, 1.2vw, 1.5rem);
  line-height: 1.5;
}
.bjr-recent li { border-bottom: 1px solid var(--bjr-gold); }
.bjr-recent a {
  display: block;
  padding: .85em 0;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.bjr-recent a:hover,
.bjr-recent a:focus-visible { color: var(--bjr-orange); }

.bjr-archive {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.6rem, 1.5vw, 1.9rem);
}
.bjr-archive a {
  display: block;
  min-width: clamp(64px, 6.7vw, 135px);
  padding: .3em 1em;
  border: 1px solid var(--bjr-gold);
  border-radius: 99px;
  font-size: clamp(.75rem, 1.05vw, 1.3rem);
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  color: var(--bjr-gold);
  transition: color .2s ease, background-color .2s ease;
}
.bjr-archive a:hover,
.bjr-archive a:focus-visible { color: var(--bjr-white); background: var(--bjr-gold); }

/* Video page (Videos > Detail layout) */

.bjr-watch { padding: clamp(3rem, 8vw, 10rem) 8.07vw clamp(3rem, 7.8vw, 9.75rem); }
.bjr-watch__player {
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(1.5rem, 4vw, 5rem);
  background: var(--bjr-brown);
}
.bjr-watch__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.bjr-watch .bjr-article__date { margin: 0 0 clamp(.9rem, 2.4vw, 3rem); }
.bjr-watch .bjr-article__title { margin-bottom: clamp(1rem, 2.6vw, 3.25rem); }

@media (max-width: 991.98px) {
  .bjr-watch { padding: 3rem var(--bjr-gutter); }
  .bjr-article {
    grid-template-columns: 1fr;
    row-gap: 3rem;
    padding: 3rem var(--bjr-gutter) 3.5rem;
  }
}
