/* Gulfalts article pop-up v2 (Blogs Template, CMS "Popups"). Restyles the native art-pop* card: the photo runs edge to
   edge and fades into a warm dark card, a round glass close button sits on the photo, the title is a large serif with an
   optional italic subtitle (CMS field "Subtitle"), the main button is a full-width cream pill with an arrow, and the
   secondary link is a plain underlined text link. Cards without a subtitle (promos) keep a smaller title. */
html .art-pop_sheet { width: min(560px, 100%); max-width: none; }

html .art-pop .art-pop_card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  max-height: calc(100svh - 48px); overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
  padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 32px;
  color: #f2ebe2;
  background:
    radial-gradient(95% 55% at 10% 100%, rgba(128, 88, 64, .36), transparent 72%),
    linear-gradient(180deg, #221c18 0%, #1c1714 55%, #271e18 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 40px 90px -30px rgba(10, 8, 6, .75);
}
html .art-pop .art-pop_card::-webkit-scrollbar { display: none; }

html .art-pop .art-pop_media {
  display: block; flex: none; width: 100%; height: auto; max-height: 38svh; aspect-ratio: 16 / 9;
  border-radius: 0; object-fit: cover; object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .45) 72%, rgba(0, 0, 0, .08) 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .45) 72%, rgba(0, 0, 0, .08) 92%, transparent 100%);
}

/* Close: round glass button on the photo */
html .art-pop .art-pop_close {
  position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%;
  color: #fff; background: rgba(28, 22, 18, .3); cursor: pointer;
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 18px -8px rgba(0, 0, 0, .5);
  transition: background-color .2s ease, transform .2s ease;
}
html .art-pop .art-pop_close svg { width: 16px; height: 16px; }
html .art-pop .art-pop_close:hover { background: rgba(28, 22, 18, .5); transform: scale(1.04); }

/* Text */
html .art-pop .art-pop_body {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0;
  margin-top: -30px; padding: 0 44px 38px;
}
html .art-pop .art-pop_body .blog-eyebrow {
  margin: 0 0 18px; color: #ece4d8; font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: .28em;
}
html .art-pop .art-pop_body .blog-float-cta_title {
  margin: 0; color: #f4ede4; font-family: var(--heading-font); font-size: 30px; font-weight: 400;
  line-height: 1.12; letter-spacing: -.01em;
}
html .art-pop .art-pop_card:has(.art-pop_subtitle:not(.w-dyn-bind-empty):not(:empty)) .blog-float-cta_title {
  font-size: 51px; line-height: 1.04; letter-spacing: -.015em;
}
/* The site serif has no italic file, and the site turns off synthesized styles; allow a slanted version here. */
html .art-pop .art-pop_subtitle {
  margin: 8px 0 0; color: #ebe2d6; font-family: var(--heading-font); font-size: 23px; font-style: italic;
  font-weight: 400; line-height: 1.25; letter-spacing: -.005em; font-synthesis: style; font-synthesis-style: auto;
}
html .art-pop .art-pop_subtitle.w-dyn-bind-empty,
html .art-pop .art-pop_subtitle:empty { display: none; }
html .art-pop .art-pop_body .blog-float-cta_text {
  margin: 20px 0 0; color: rgba(242, 235, 226, .88); font-size: 15px; font-weight: 300; line-height: 1.6;
}

/* Actions: full-width cream pill with an arrow, then an underlined text link */
html .art-pop .art-pop_body .blog-float-cta_actions {
  display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 30px;
}
html .art-pop .art-pop_body .gl-button {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  padding: 0 60px; border: 0; border-radius: 999px; color: #201b17; background: #efe8de; background-image: none;
  font-size: 16px; font-weight: 400; line-height: 1.2; letter-spacing: 0; text-align: center;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 12px 30px -14px rgba(0, 0, 0, .7);
  transition: background-color .25s ease, box-shadow .25s ease;
}
html .art-pop .art-pop_body .gl-button::after {
  content: ''; position: absolute; top: 50%; right: 26px; width: 20px; height: 20px; margin-top: -10px;
  background-color: currentColor; transition: transform .25s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2.5 10h15m0 0L12 4.5M17.5 10 12 15.5' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2.5 10h15m0 0L12 4.5M17.5 10 12 15.5' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html .art-pop .art-pop_body .gl-button:hover { background: #fbf7f1; }
html .art-pop .art-pop_body .gl-button:hover::after { transform: translateX(3px); }
html .art-pop .art-pop_body .blog-float-cta_link {
  display: inline-block; width: auto; padding: 2px 0; color: #ece4d8; font-size: 14px; font-weight: 300;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(236, 228, 216, .7); transition: color .2s ease, text-decoration-color .2s ease;
}
html .art-pop .art-pop_body .blog-float-cta_link::after { content: none; display: none; }
html .art-pop .art-pop_body .blog-float-cta_link:hover { color: #fff; text-decoration-color: #fff; }

@media (max-width: 767px) {
  html .art-pop .art-pop_card { max-height: calc(100svh - 24px); border-radius: 26px; }
  html .art-pop .art-pop_media { max-height: 34svh; }
  html .art-pop .art-pop_close { top: 12px; right: 12px; }
  html .art-pop .art-pop_body { margin-top: -24px; padding: 0 24px 28px; }
  html .art-pop .art-pop_body .blog-eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .24em; }
  html .art-pop .art-pop_body .blog-float-cta_title { font-size: 25px; }
  html .art-pop .art-pop_card:has(.art-pop_subtitle:not(.w-dyn-bind-empty):not(:empty)) .blog-float-cta_title { font-size: 38px; }
  html .art-pop .art-pop_subtitle { margin-top: 6px; font-size: 19px; }
  html .art-pop .art-pop_body .blog-float-cta_text { margin-top: 16px; font-size: 14px; line-height: 1.55; }
  html .art-pop .art-pop_body .blog-float-cta_actions { gap: 16px; margin-top: 24px; }
  html .art-pop .art-pop_body .gl-button { min-height: 50px; padding: 0 52px; font-size: 15px; }
  html .art-pop .art-pop_body .gl-button::after { right: 22px; }
}
