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

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

.swop25-sharelink a {
  display: block;
  width: 26px;
  height: 26px;
}

.swop25-sharelink svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-out;
}

.swop25-sharelink a path {
  transition: fill 0.1s ease-out;
}

/* Add circle around sharelinks shown in page sections. */
.swop25 article .swop25-sharelink a {
  width: 20px;
  height: 22px;
  padding: 14px 13px 14px 17px;
  border: 2px solid #f18a00;
  border-radius: 50%;
  box-sizing: content-box;
}

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

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

.swop25-sharemodal-hidden {
  visibility: hidden;
}

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

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

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

/* --- Shown --- */

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

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

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

/* --- Close Button --- */

.swop25-sharemodal-close {
  margin-bottom: 15px;
  width: 100%;
}

.swop25-sharemodal-close button {
  display: block;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  color: inherit;
  overflow: visible;
}

.swop25-sharemodal-close svg {
  float: left;
  width: 40px;
  height: 40px;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  fill: currentColor;
}

.swop25-sharemodal-close span {
  float: left;
  font-size: 15px;
  line-height: 40px;
  padding-left: 15px;
}

.swop25-sharemodal-close button:hover svg {
  transform: translateX(-10px);
}

/* --- Modal Content --- */

.swop25-sharemodal-content {
  background: #fff;
  padding: 36px 60px 0;
  box-shadow: 0 0 13px 0 rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 55px);
  overflow-y: auto;
}

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

.swop25-sharemodal-image img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

p.swop25-sharemodal-description {
  font-size: 21px;
  line-height: 28px;
  margin: 10px 0 25px;
}

.swop25-sharemodal-actions {
  display: flex;
  border-top: 3px solid currentColor;
  padding-top: 15px;
  padding-bottom: 25px;
}

a.swop25-sharemodal-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  width: 100%;
  border: 0;
}

a.swop25-sharemodal-button.facebook {
  color: #0866ff;
}

a.swop25-sharemodal-button.twitter {
  color: #000;
}

a.swop25-sharemodal-button.facebook:hover {
  color: #2079ff;
}

a.swop25-sharemodal-button.twitter:hover {
  color: #333;
}

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

a.swop25-sharemodal-button:last-child {
  border-left: 1px solid #4a4a4a;
  padding-left: 30px;
}

a.swop25-sharemodal-button span {
  display: block;
  width: calc(100% - 65px);
  padding-bottom: 1px;
  font-size: 21px;
  line-height: 28px;
  text-decoration: none;
}

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

@media all and (max-width: 768px) {
  .swop25-sharemodal-close {
    padding-left: 20px;
  }
}

@media all and (max-width: 700px) {
  .swop25-sharemodal-content {
    padding: 24px 24px 15px;
  }
}

@media all and (max-width: 500px) {
  .swop25-sharemodal-close svg,
  .swop25-sharemodal-button svg {
    width: 30px;
    height: 30px;
  }

  .swop25-sharemodal-close {
    margin-bottom: 10px;
  }

  .swop25-sharemodal-close span {
    line-height: 30px;
  }

  .swop25-sharemodal-content {
    padding-bottom: 0;
    max-height: calc(100vh - 40px);
  }

  p.swop25-sharemodal-description {
    font-size: 18px;
    line-height: 26px;
  }

  .swop25-sharemodal-actions {
    display: block;
    padding-top: 0;
  }

  a.swop25-sharemodal-button {
    padding: 17px 0;
    border: 0;
  }

  .swop25-sharemodal-actions a.swop25-sharemodal-button:last-child {
    border-left: 0;
    padding-left: 0;
    padding-right: 20px;
    border-top: 1px solid #4a4a4a;
  }

  a.swop25-sharemodal-button span {
    font-size: 18px;
    line-height: 26px;
    width: calc(100% - 55px);
  }
}
