/*
 * CSS for the Nekrologi plugin.
 */


body.thsn-sidebar-no.single-nekrologi #content  {
  padding-top: 20px;
}

/* Rocznice */

.rocznica__powiazane__tytul {
  margin: 25px 0;
}

.rocznica__powiazane {
  margin-bottom: 0.5em;
}

body.single-rocznice {
  background: #fff;
  background: radial-gradient(circle, #fff 0%, #f8f8f8 100%); 
  background-repeat: repeat !important;
  background-attachment: fixed !important;
  background-size: initial !important;
}


/* Rocznice - koniec */

.tytul-nad-zdjeciem {
  margin-top: 5px;
  font-size: 1.7em;
}

@media (min-width: 1025px) {
  .tytul-nad-zdjeciem {
    font-size: 2.5em;
  }
}

.nekrologi-container {
  margin: auto;
  max-width: 1320px;
  margin-top: 120px;
  padding: 0 25px;
}

@media (min-width: 1025px) {
  .nekrologi-container {
    margin-top: 180px;
  }
}

.home .nekrologi-container {
  margin-top:0;
  padding: 0 10px;
}

.nekrologi-container .nekrolog {
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
  /*margin-bottom: 25px;*/
}

.nekrolog__container {
  padding: 2px;
  margin-bottom: 10px;
}

.nekrolog__wstega {
  position: absolute;
  top: -5px;
  left: 3px;
}

@media (max-width: 1024px) {
  .nekrolog__wstega {
    left: -6px;
  }
}

#headline {
  margin: 20px 0;
}

.nekrolog__border {
  background-color: #000;
  padding: 40px 10px 40px;
  -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: solid;
  border-image-slice: 1;
  border-width: 5px;
  border-image-source: -webkit-linear-gradient(30deg,#82828D, #DEDEFF, #FFFFFF, #DEDEFF, #82828D);
}

.nekrolog__border a {
  text-decoration: none;
}

/*
.nekrolog__border:after {
    z-index: -1;
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
}
 */

/*.nekrolog__border:hover, .nekrolog__border:hover .nekrolog__wstega {
	-webkit-transform: scale(1.01, 1.01);
    transform: scale(1.01, 1.01);
}*/

.nekrolog__title {
  font-size: 29px;
  margin-top: 20px;
  height: 54px;
  line-height: 1.2em;
  font-family: "Title";
}

@media (max-width: 767px) {
  .nekrolog__title {
    height: auto;
  }
}

.nekrolog__img {
  display: block;
  margin: auto;
  width: 200px;
  max-width: 100%;
}

.nekrolog__img--photo {
  padding: 3px;
  max-width: 100%;
  border: solid;
  border-image-slice: 1;
  border-width: 1px;
  border-image-source: -webkit-linear-gradient(30deg,#82828D, #DEDEFF, #FFFFFF, #DEDEFF, #82828D);
}

.nekrolog__info {
  display: block;
  margin-top: 15px;
  font-size: 17px;
}

.nekrolog__button__container {
  display: block;
  margin-top: 25px;
  text-align: center;
}

.nekrolog__button__container--glowna {
  margin-top: 45px;
  margin-bottom: 30px;
}

.nekrolog__page-title {
  text-align: center;
  margin: 40px 0;
}

.navigation.pagination {
  text-align: center;
  margin: 40px auto;
}

.nav-links {
  margin: auto;
}

.page-numbers {
  border: 1px solid #fff;
  padding: 10px 20px;
  margin: 0 5px 5px 0;
  text-align: center;
  display: inline-block;
}

.next.page-numbers,
.prev.page-numbers {
  border: none;
}

.page-numbers.current, .page-numbers:hover {
  color: #fff;
  background-color: #000;
}

body.single-nekrologi {
  background: #030305;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
  background-size: initial !important;
}

.single-nekrolog {
  text-align: center;
  margin: auto;
  max-width: 1320px;
  margin-top: 120px;
  padding: 0 25px;
  margin-bottom: 40px;
}

@media (min-width: 1025px) {
  .single-nekrolog {
    margin-top: 180px;
  }
}

.single-nekrolog__img--photo {
  padding: 3px;
  border: solid;
  border-image-slice: 1;
  border-width: 1px;
  border-image-source: -webkit-linear-gradient(30deg,#82828D, #DEDEFF, #FFFFFF, #DEDEFF, #82828D);
}

.single-nekrolog__page-title {
  margin-top: 20px;
  margin-bottom: 15px;
  line-height: 1.3em;
}

.single-nekrolog__subtitle {
  font-size: 1.4em;
  line-height: 1.5em;
  margin-bottom: 0;
  padding-bottom: 0;
}

.single-nekrolog__date {
  font-size: 1.4em;
  line-height: 1.5em;
  margin-bottom: 20px;
}

.single-nekrolog__info {
  font-size: 1.15em;
  line-height: 2em;
  padding: 20px 0 40px;
}

/*
.nekrolog__address {
  font-weight: 600;
  color: #ad8f63;
}

.nekrolog__address:hover {
  color: #d1b48a;
}
  */

.single-nekrolog__desc {
  padding-top: 20px;
  max-width: 900px;
  margin: auto;
}

.single-nekrolog__gallery {
  padding: 20px 0;
}

.single-nekrolog__divider {
  line-height: 0;
  padding: 15px 0;
}

.single-nekrolog__divider img {
  max-width: 300px;
}

.brak-nekrologow {
  text-align: center;
  min-height: 70vh;
}

.single-nekrolog__gallery__img {
  padding: 3px 5px;
  max-width: 100%;
}

.single-nekrolog__img {
  max-width: 100%;
}

@media (max-width: 767px) {
  .single-nekrolog__img {
    max-width: 220px;
  }

  .container {
    width: 100% !important;
  }
}

.nekrolog__button {
    color: #000;
    transition: all .3s;
    background-color: transparent;
    box-shadow: inset 0 0 0 0;
  border-width: 0;
  background-image: 
    linear-gradient(
      to right, 
      #ebcfa7, 
      #aa8c60
    );
    padding: 14px 24px;
    cursor: pointer;
    position: relative;
    width: auto;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nekrolog__button:last-child {
  margin-right: 0;
}

.nekrolog__button:hover {
  color: #fff !important;
  background-color: #000;
  text-decoration: none;
}

.pobierz__button {
  text-align: center;
  margin-bottom: 35px;
  margin-top: 25px;
}

.nekrolog__button--inline {
  display: inline-block;
  margin-bottom: 10px;
}

.e-nekrologi {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 25px;
}

.e-nekrologi-logo {
  vertical-align: middle;
  width: 177px;
  height: 30px;
  filter: invert(1);
}

@media (max-width:768px) {
  .nekrolog__button {
    margin-right: 0;
  }

  .nekrolog__button--inline,
  .nekrolog__button--transmisja {
    display: block;
    margin: auto;
    margin-top: 20px;
    width: 100% !important;
  }
}

@media (min-width: 601px) {
  .br-mobile {
    display: none;
  }
}



/*Gdy przyciski nie mieszczą się w 1 linii */
@media (min-width: 768px) and (max-width: 1024px) {
  .nekrolog__button--transmisja {
    display: block;
    width: fit-content;
    margin: 20px auto !important;
  }
}

@media (min-width: 768px) {
  .nekrologi-container .nekrolog {
    display: inline-block;
    width: 49.5%;
  }

  .nekrolog__container {
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1025px) {

  .nekrologi-container .nekrolog {
    width: 33%;
  }

  .single-nekrolog__page-title,
  .nekrolog__page-title {
    font-size: 60px;
    font-weight: 700;
  }
}


/* Popup */

#pobierzQRPodziekowania .img-thumbnail {
  display: none;
}

#pobierzQR .img-thumbnail-podziekowania {
  display: none;
}

@media(max-width: 976px) {
  .img-thumbnail-podziekowania {
    display: none;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 10005;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content */
.modal-content {
  background-color: #030305;
  margin: auto;
  padding: 35px;
  border: 1px solid #000;
  width: 90%;
  max-width: 900px;
  word-break: break-word;
}

.qr-button {
  display: block;
  margin: auto;
}

#phone-number {
  margin: 20px auto;
  border: 1px solid #000;
  padding: 9px;
  font-size: 16px;
}

/* The Close Button */
.close {
  color: #000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-top: -5px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-content .modal-qr {
  overflow: scroll;
}

@media (min-width: 768px) {
  .modal {
    padding-top: 200px;
  }
}

/* Css do kodu QR */

.single-nekrolog .table {
  display: table;
  width: 100%;
  height: 100%;
  margin-bottom: 1em;
}

.single-nekrolog .table .cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.qrcode-image {
  margin-top: 1em;
}

#qr-mobile-header {
  line-height: 1.6em;
  margin-bottom: 10px;
}

@media (max-width:600px) {
  #phone-number {
    width: 90%;
  }
}

@media (max-width: 990px) {
  .single-nekrolog .form-control {
    margin-top: 1rem;
    margin-bottom: .1em;
    width: 50%;
  }

  .qr-download {
    margin-top: 0;
  }

  .single-nekrolog .table {
    margin-bottom: 0;
  }

}

html .single-nekrolog .table .cell,
body .single-nekrolog .table .cell {
  display: table-cell;
  vertical-align: middle;
}

/* Szukajka */
.szukaj {
  margin: auto;
  text-align: center;
  margin-bottom: 40px;
  padding-left: 25px;
  padding-right: 25px;
}

.szukaj__wyniki {
  margin: auto;
  text-align: center;
  margin-bottom: 40px;
}

.szukaj__imie {
  padding: 12px 24px !important;
  font-size: 15px;
  border-color: #000 !important;
  border-width: 2px !important;
  border-style: solid !important;
  margin-bottom: 10px !important;
  margin-top: 10px !important;
  max-width: 400px;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

.szukaj__button {
  border-color: #000;
  color: #fff;
  background-color: #000;
  transition: all .3s;
  border-width: 5px 2px 1px 2px;
  border-style: solid;
  box-shadow: inset 0 0 0 0;
  padding: 14px 24px;
  cursor: pointer;
  position: relative;
  width: auto;
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2em;
  letter-spacing: 3px;
  text-transform: uppercase;
  outline: 0;
}

/*.szukaj__button:hover {
	color: #fff;
	background-color: #000;
	text-decoration: none;
}*/

/*.share-button-popup {
	padding: 16px 24px 15px!important;
    margin-right: 6px;
}*/

/* Drobne poprawki - Divi */

.screen-reader-text {
  display: none;
}

.post-type-archive-nekrologi .nekrologi-container {
  padding-bottom: 20px;
}

/* Single Nekrologi -> style potrzebne tylko na tej stronie */

.pobierz__button {
  display: none;
}

.showQRCode {
  display: inline-block;
}

.close-button svg {
  width: 18px;
  height: 18px;
}

/* przycisk udostepniania */

.hidden {
  display: none;
}

.share-dialog {
  display: none;
  width: 95%;
  max-width: 800px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
  z-index: 100;
  border: 1px solid #ddd;
  padding: 20px 20px 30px;
  background-color: #030305;
}

.share-dialog.is-open {
  display: block;
  margin-bottom: 30px;
  z-index: 100;
}

.targets {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-bottom: 20px;
}

.close-button {
  background-color: transparent;
  border: none;
  padding: 0;
}

.close-button svg {
  margin-right: 0;
}

.udostepnij {
  display: flex !important;
  justify-content: space-between;
  margin-bottom: 20px;
}

.udostepnij__link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
  background-color: #eee;
}

.pen-url {
  margin: 15px 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px;
  background-color: #f9f9f9;
}

.nekrolog__button__container__share {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

@media only screen and (max-width: 960px) {

  .pobierz__button {
    display: block;
  }

  .showQRCode {
    display: none;
  }

  .targets {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
  }

  .udostepnij__link {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
  }
}

/* First instance of the popup */

.dialog-title {
  font-weight: 700;
}

.share-dialog,
.share-dialog-2 {
  display: none;
  width: 95%;
  max-width: 800px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
  z-index: 100;
  border: 1px solid #ddd;
  padding: 20px 20px 30px;
  background-color: #030305;
}

.share-dialog.is-open,
.share-dialog-2.is-open {
  display: block;
  margin-bottom: 30px;
  z-index: 100;
}

.targets,
.targets-2 {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-bottom: 20px;
}

.close-button,
.close-button-2 {
  background-color: transparent;
  border: none;
  padding: 0;
  background-image: none !important;
  color: #fff !important;
}

.close-button-2 {
  max-width: 160px;
}

.close-button svg,
.close-button-2 svg {
  margin-right: 0;
  height: 22px;
}

.udostepnij,
.udostepnij-2 {
  display: flex !important;
  justify-content: space-between;
  margin-bottom: 20px;
}

.udostepnij__link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
  background-color: #eee;
}

.pen-url {
  margin: 15px 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px;
  background-color: #ffffff2b;
}

.nekrolog__button__container__share {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

@media only screen and (max-width: 960px) {

  .pobierz__button {
    display: block;
  }

  .showQRCode {
    display: none;
  }

  .targets,
  .targets-2 {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
  }

  .udostepnij__link {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
  }
}


/* transmisje online */

.content-section-transmisje {
  padding: 120px 0;
  text-align: center;
}

.countdown-content li {
  display: inline-block;
  font-size: 1.5em;
  list-style-type: none;
  padding: 1em;
  text-transform: uppercase;
  text-align: center;
}

.countdown-content li span {
  display: block;
  font-size: 4.5rem;
}

.message {
  font-size: 4rem;
  display: none;
  padding: 1rem;
}

.countdown {
  align-items: center;
  text-align: center;
  display: block;
  font-family: -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif;
}

#player-pogrzeb {
  display: none;
}

.content-section h2 {
  text-align: center;
  font-weight: normal;
  letter-spacing: .125rem;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  #fb-share-button {
    margin-bottom: 20px !important;
  }

  ul.countdown-content {
    padding-left: 0 !important;
  }

  .countdown-content li {
    font-size: 0.8rem;
    padding: .75rem;
  }

  .countdown-content li span {
    font-size: 2.375rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }
}

[data-tooltip]:before {
  position: absolute;
  bottom: 150%;
  left: 0% !important;
  margin-bottom: 5px;
  margin-left: 0px !important;
  padding: 7px;
  width: auto;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: #000;
  background-color: hsla(0, 0%, 20%, 0.9);
  color: #fff;
  content: attr(data-tooltip);
  text-align: center;
  font-size: 12px;
}

/* Add this attribute to the element that needs a tooltip */
[data-tooltip] {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

/* Hide the tooltip content by default */
[data-tooltip]:before,
[data-tooltip]:after {
  visibility: hidden;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  pointer-events: none;
}

/* Position tooltip above the element */
[data-tooltip]:before {
  position: absolute;
  bottom: 150%;
  left: -30%;
  margin-bottom: 5px;
  margin-left: -80px;
  padding: 7px;
  width: auto;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: #000;
  background-color: hsla(0, 0%, 20%, 0.9);
  color: #fff;
  content: attr(data-tooltip);
  text-align: center;
  font-size: 12px;
}

/* Triangle hack to make tooltip look like a speech bubble */
[data-tooltip]:after {
  position: absolute;
  bottom: 150%;
  left: 50%;
  margin-left: -5px;
  width: 0;
  border-top: 5px solid #000;
  border-top: 5px solid hsla(0, 0%, 20%, 0.9);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: " ";
  font-size: 0;
  line-height: 0;
}

/* Show tooltip content on hover */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  visibility: visible;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.container-podziekowania {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  width: 100%;
  padding: 40px 0 80px;
}

.card {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  max-width: 1100px;
  padding: 20px;
  width: 100%;
  text-align: center;
}

.naglowek {
  margin-bottom: 15px;
}

.zmarly,
.osoby {
  margin-bottom: 10px;
}

@media(max-width: 600px) {
  .close-button-2 {
    max-width: 220px;
    margin: -58px;
  }
}

/* Styles for e-pamiątka */
.qr__container {
  margin: 30px 0;
  padding: 20px;
  background: radial-gradient(circle, #fff 0%, #f8f8f8 100%);
  border: 4px double #fff !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.qr__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}

.qr__image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #000;
  padding: 10px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qr__thumbnail {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.qr__caption {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: #333;
  line-height: 1.4;
}

.qr__description {
  flex: 1;
  padding: 0 20px;
  min-width: 300px;
}

.qr__description h3 {
  margin-bottom: 15px;
  text-align: center;
  font-size: 24px;
}

.qr__description p {
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}

.qr__button__container {
  text-align: center;
  margin-top: 20px;
}

.qr-download-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: inherit;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.qr-download-btn:hover {
  background-color: inherit;
}

@media (max-width: 768px) {
  .qr__content {
    flex-direction: column;
  }

  .qr__description {
    padding: 20px 0 0 0;
  }
}

input.text,
input.title,
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
select,
textarea {
  width: 100%;
}