/* ==============================================================================
   Glossier Homepage - Two Column Promo Banner Block
   1:1 Pixel-Perfect Replica from live glossier.com
   ============================================================================== */

.two-column__section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column nowrap;
  flex-flow: column nowrap;
  gap: 12px; /* 12px mobile */
  padding: 12px; /* 12px mobile */
  margin: 0 auto 32px auto;
  width: 100%;
  max-width: 1920px;
  box-sizing: border-box;
}

@media only screen and (min-width: 768px) {
  .two-column__section {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    gap: 16px; /* 16px desktop */
    padding: 16px; /* 16px desktop */
    margin: 0 auto 48px auto;
  }
}

.two-column__wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column nowrap;
  flex-flow: column nowrap;
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

@media only screen and (min-width: 768px) {
  .two-column__wrapper {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    width: 50%;
    max-width: 50%;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
  }
}

.two-column {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none !important;
  color: inherit;
  outline: none;
  cursor: pointer;
}

.two-column__image-wrapper {
  position: relative;
  background-color: #f7f7f7;
  overflow: hidden;
  width: 100%;
}

.two-column__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.two-column .ir--four-three {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 Aspect Ratio (1:1 with Glossier live) */
  overflow: hidden;
}

.two-column .two-column-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.4s ease;
}

.two-column__content-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column nowrap;
  flex-flow: column nowrap;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}

.two-column__cta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  width: 100%;
  height: 100%;
  padding: 12px;
  z-index: 2;
  box-sizing: border-box;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

@media only screen and (min-width: 768px) {
  .two-column__cta {
    padding: 16px;
  }
}

/* Button with L-border in rest state and marching ants on hover */
.two-column .btn--primary.two-column__nested-link {
  pointer-events: auto;
  background-color: #ffffff;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: Apercu, "Gill Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.001875em;
  color: #000000 !important;
  text-align: center;
  padding: 11px 16px !important;
  min-height: 40px;
  box-sizing: border-box;
  text-decoration: none !important;
  position: relative;
  user-select: none;

  /* L-border in rest state (bottom line and right line only) */
  background-size: 0 0, 100% 1px, 0 0, 1px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-image: none,
                    linear-gradient(to right, #000000 50%, #000000 50%),
                    none,
                    linear-gradient(to bottom, #000000 50%, #000000 50%);
  transition: background-color 0.2s ease-in-out;
}

.two-column .btn--primary.two-column__nested-link p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Marching ants animation on card hover or direct button hover */
.two-column:hover .btn--primary.two-column__nested-link,
.two-column .btn--primary.two-column__nested-link:hover,
.two-column .btn--primary.two-column__nested-link:focus {
  background-color: #ffffff;
  background-size: 5px 1px, 5px 1px, 1px 5px, 1px 5px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  -webkit-animation: 1.5s linear infinite marching-ants-full-1;
  animation: 1.5s linear infinite marching-ants-full-1;
  background-image: linear-gradient(to right, #000000 50%, transparent 50%),
                    linear-gradient(to right, #000000 50%, transparent 50%),
                    linear-gradient(to bottom, #000000 50%, transparent 50%),
                    linear-gradient(to bottom, #000000 50%, transparent 50%);
}

@keyframes marching-ants-full-1 {
  0% {
    background-position: 0 0, 0 100%, 0 0, 100% 0;
  }
  100% {
    background-position: 10px 0, -10px 100%, 0 -10px, 100% 10px;
  }
}

@-webkit-keyframes marching-ants-full-1 {
  0% {
    background-position: 0 0, 0 100%, 0 0, 100% 0;
  }
  100% {
    background-position: 10px 0, -10px 100%, 0 -10px, 100% 10px;
  }
}
