/* Base for all layouts */

.wlss-d-none {
  display: none !important;
}

@media (min-width: 768px) {
  .wlss-d-md-block {
    display: block !important;
  }
}

.wlss-d-block {
  display: block !important;
}

.wlss-w-100 {
  width: 100% !important;
}

.wlss-img-fluid {
  max-width: 100%;
  height: auto;
}


.wlss-list-layoutA-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  .wlss-list-layoutA-row {
    margin-right: auto;
    margin-left: auto;
  }
}

.wlss-list-layoutA-col-source,
.wlss-list-layoutA-col-text {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .wlss-list-layoutA-col-source {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .wlss-list-layoutA-col-text {
    flex: 0 0 50%;
    max-width: 50%;
  }
}


.wlss-video-natural {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* Play-Button */
.plyr__control--overlaid {
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plyr__control--overlaid:hover,
.plyr__control--overlaid:focus {
  background: rgba(0, 0, 0, 0.8);
}

.plyr__control--overlaid svg {
  display: none;
}

.plyr__control--overlaid::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
}

/* Splide carousel; mounting/behavior is in js/wlss-carousel.js */
.wlss-splide .splide__arrow {
  background: transparent;
  opacity: 0.9;
}

.wlss-splide .splide__arrow svg {
  fill: var(--wlss-carousel-btn-color, #fff);
}

.wlss-splide .splide__arrow--prev {
  left: 0em;
}

.wlss-splide .splide__arrow--next {
  right: 0em;
}

#lightbox {
  display: flex;
  flex-direction: column;
}

#lightbox .lb-dataContainer {
  order: 0;
  margin-bottom: 5px;
}

#lightbox .lb-outerContainer {
  order: 1;
}

#lightbox .lb-number {
  padding-bottom: 0;
}

#lightbox .lb-data .lb-caption a {
  color: #ffffff;
  text-decoration: underline;
}

#lightbox .lb-data .lb-caption a:hover {
  color: #c2c2c2;
}


/* ---------- [LIST] ---------- */
.wlss-first-divider {
  display: none;
}

.wlss-date {
  font-style: italic;
  font-size: 0.9em;
}

.wlss-text {
  font-size: 1em;
  margin-bottom: 0px;
}

.wlss-text-head {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 0px;
}

.wlss-carousel-icon {
  font-size: 1.6em;
  color: #76767e;
}


.wlss-splide .splide__slide img,
.wlss-splide .splide__slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wlss-linked-video-thumbnail {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.wlss-linked-video-thumbnail img {
  width: 500px;
}

.wlss-linked-video-thumbnail::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    content: "\f522";
    font-family: dashicons;
    font-size: 100px;
    color: #76767e;
    opacity: .8;
}
.wlss-linked-video-thumbnail:hover::after {
    opacity: .7;
}

@media screen and (max-width: 768px) {
  .wlss-incl-media {
    margin-top: 16px;
    margin-bottom: 10px;
  }
  .wlss-date {
    margin-bottom: 10px;
  }
}


/* ---------- [GRID] ---------- */

.wlss-card-columns {
  column-count: 3;
  column-gap: 1.25rem;
}

.wlss-card-columns > .wlss-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.wlss-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.wlss-card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

.wlss-card-title {
  margin-bottom: 0.75rem;
}

.wlss-card-text:last-child {
  margin-bottom: 0;
}

.wlss-card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.wlss-card-columns > .wlss-card {
  border-radius: 0.5rem;
}

.wlss-card-columns .wlss-card-body {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.wlss-card-columns video {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  width: 100%;
  height: auto;
  display: block;
}

.wlss-card-columns img {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.wlss-card-columns .wlss-card-body .wlss-card-title {
  font-weight: bold;
}

.wlss-card-columns .wlss-card-title a {
  color: #000000;
}

.wlss-card-columns .wlss-card-title a:hover {
  color: #000000;
}

.wlss-card-columns .wlss-card-title a:visited {
  color: #000000;
}

/* ---------- [IMGWALL] ---------- */
.imgwall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 4px 8px;
}

.imgwall-column {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.imgwall-column a,
.imgwall-column .wlss-video-natural,
.imgwall-column .wlss-imgwall-video-trigger {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}

.imgwall-column .wlss-imgwall-video-trigger {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.imgwall-column img,
.imgwall-column video,
.imgwall-column canvas.wlss-imgwall-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  transition: transform 0.3s ease;
}

.imgwall-column canvas.wlss-imgwall-thumb {
  display: block;
  background: #e0e0e0;
}

.imgwall-column:hover img,
.imgwall-column:hover video,
.imgwall-column:hover canvas.wlss-imgwall-thumb {
  transform: scale(1.08);
}

.wlss-imgwall-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.wlss-imgwall-icon .dashicons {
  color: #ffffff;
  width: 22px;
  height: 22px;
  font-size: 22px;
}

/* "Instagram besuchen" overlay on inline/fullscreen IG video players (List + Grid, see wlss-plyr-init.js) */
.wlss-video-insta-link {
  position: absolute;
  bottom: 60px;
  left: 20px;
  background: #00b2ff;
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

.wlss-video-insta-link:hover {
  background: #ffffff;
  color: #000000 !important;
}

/* "View on Instagram" overlay on video slides inside an IG carousel (see get_photos() in wlss-feed.php) */
.wlss-insta-overlay-btn.wlss-video-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #00b2ff;
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  z-index: 2;
}

.wlss-insta-overlay-btn.wlss-video-btn:hover {
  background: #ffffff;
  color: #000000 !important;
}

/* Fullscreen-only close button for the imgwall video modal (see wlss-imgwall-video-trigger.js) */
.wlss-video-fullscreen-close {
  position: absolute !important;
  top: 30px !important;
  right: 30px !important;
  z-index: 999999 !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s;
}

.wlss-video-fullscreen-close:hover {
  opacity: 1 !important;
}

.wlss-video-fullscreen-close .dashicons {
  color: #ffffff !important;
  width: 42px !important;
  height: 42px !important;
  font-size: 42px !important;
}

/* Modal/lightbox-style overlay for imgwall video playback (see wlss-imgwall-video-trigger.js) */
.wlss-video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wlss-video-modal-box {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
}

.wlss-video-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 4px 5px;
}

.wlss-video-modal-insta-link {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}

.wlss-video-modal-insta-link:hover {
  color: #c2c2c2 !important;
}

.wlss-video-modal-close {
  display: block;
  width: 30px;
  height: 30px;
  background: url(../vendor/lightbox2/images/close.png) top right no-repeat;
  border: none;
  padding: 0;
  text-align: right;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.wlss-video-modal-close:hover {
  opacity: 1;
}

.wlss-video-modal-frame {
  background: #ffffff;
  border-radius: 3px;
  padding: 4px;
}

.wlss-video-modal-frame video {
  display: block;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .imgwall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0 2px 4px;
  }
}