/*
 * .-----------------------------------------------------.
 * |                     SHARE LINK                      |
 * '-----------------------------------------------------'
 */

html.no-js .swop21-sharelink {
  display: none;
}

a.swop21-sharelink {
  display: block;
  width: 60px;
  height: 60px;
  background: url(../../images/2021/share/icon-share.svg) center center no-repeat;
  background-position: right 9px center;
  background-size: 36px 36px;
  border: 1px solid #767676;
  border-radius: 50% 50%;
  overflow: hidden;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/*
 * .-----------------------------------------------------.
 * |                     SHARE MODAL                     |
 * '-----------------------------------------------------'
 */

.swop21-sharemodal {
  display: flex;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2002;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  overflow: hidden;
}

html.no-js .swop21-sharemodal {
  display: none;
}

.swop21-sharemodal-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.7);
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(.16,.72,.88,.58);
  transition-delay: 0.3s;
}

.swop21-sharemodal-window {
  width: 100%;
  max-width: 672px;
  z-index: 2;
  transform: translate(50%, 0%);
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  opacity: 0;
}

/* --- Shown --- */

.swop21-sharemodal-shown {
  pointer-events: all;
}

.swop21-sharemodal-shown .swop21-sharemodal-bg {
  transform: translate(0, 0);
}

.swop21-sharemodal-shown .swop21-sharemodal-window {
  transform: translate(0, 0);
  opacity: 1;
}

/* --- Heading --- */

.swop21-sharemodal-header {
  padding: 9px 0 30px 40px;
  font-size: 20px;
  line-height: 20px;
  text-transform: uppercase;
  position: relative;
}

.swop21-sharemodal-shareicon {
  position: absolute;
  top: 6px;
  left: 0;
  width: 26px;
  height: 26px;
}

.swop21 .swop21-sharemodal-close {
  position: absolute;
  top: 6px;
  right: 0;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: url(../../images/2021/share/icon-close.svg) center center no-repeat;
  background-size: 23px 23px;
  padding: 0;
  color: inherit;
  outline: 0;
  text-indent: -9999px;
  overflow: hidden;
}

/* --- Content --- */

.swop21-sharemodal-content {
  background: #000;
  border: 1px solid #787878;
  padding: 24px;
  max-height: 100vh;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow-y: auto;
}

.swop21-sharemodal-image {
  width: 100%;
  height: 0;
  padding-bottom: 52.3333%;
  overflow: hidden;
  position: relative;
}

.swop21-sharemodal-image img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #787878;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

p.swop21-sharemodal-description {
  font-size: 18px;
  line-height: 26px;
  margin: 25px 0 25px;
}

.swop21-sharemodal-actions {
  border-top: 1px solid #787878;
}

a.swop21-sharemodal-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 17px 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: 0 !important;
  border: 0;
}

a.swop21-sharemodal-button:last-child {
  border-top: 1px solid #787878;
}

a.swop21-sharemodal-button span {
  display: block;
  width: calc(100% - 45px);
  padding-bottom: 1px;
  font-size: 18px;
  line-height: 26px;
  text-decoration: none;
}

a.swop21-sharemodal-button svg {
  width: 30px;
  height: 30px;
  margin-left: 15px;
  fill: currentColor;
}

@media only screen and (min-width: 550px) {
  .swop21-sharemodal-actions {
    display: flex;
  }

  a.swop21-sharemodal-button {
    width: 50%;
  }

  a.swop21-sharemodal-button:first-child {
    padding-right: 20px;
  }

  a.swop21-sharemodal-button:last-child {
    border-left: 1px solid #787878;
    padding-left: 30px;
    border-top: 0;
  }

  a.swop21-sharemodal-button span {
    font-size: 21px;
    line-height: 28px;
    width: calc(100% - 65px);
  }

  a.swop21-sharemodal-button svg {
    width: 40px;
    height: 40px;
  }
}

@media only screen and (min-width: 768px) {
  .swop21-sharemodal-content {
    padding: 40px 50px 40px 50px;
  }

  p.swop21-sharemodal-description {
    font-size: 23.5px;
    line-height: 32px;
  }
}

@media only screen and (max-width: 420px) {
  .swop21-sharemodal-header {
    font-size: 19px;
  }
}