section.projects article a.tumbnail:after {
  transition: all 0.4s;
}

.wp-block-cb-carousel {
  .slick-dots li button {
    &::before {
      font-size: 12px !important;
    }
  }

  figure {
    position: relative;
  }

  .slick-dots {
    display: none !important;
    padding-left: 0 !important;
    bottom : -60px !important;
  }

  .slick-dots li {
    @media only screen and (max-width: 767px) {
      margin: 0;
      width: 15px;
      height: 15px;
    }
  }

  &.slick-dotted.slick-slider {
    margin-bottom: 68px !important;
  }

  .slick-slide {
    padding-left: 0 !important;
    padding-right: 0 !important;

    img {
      cursor: pointer;
    }
  }

  .slick-next,
  .slick-prev {
    &::before {
      opacity: 0 !important;
      transition: opacity 0.3s;
    }
  }

  .slick-next,
  .slick-prev {
    z-index: 99;
    width: 35% !important;
    height: 100% !important;
    transform: translate(0) !important;
    top: 0 !important;
    background-color: rgba(0, 0, 0, 0) !important;
    transition: background-color 0.3s;

    &:before {
      content: '' !important;
      position: absolute;
      top: calc(50% - 20px);
      width: 30px;
      height: 30px;
      background: url("img/arrow-left.svg") no-repeat;
    }

    &:not(.slick-disabled) {
      &:hover {
        &::before {
          opacity: 1 !important;
        }
      }
    }

    &.slick-disabled {
      &:hover {
        &::before {
          opacity: 0 !important;
        }
      }
    }

  }

  .slick-prev {
    left: -10px;

    &::before {
      left: -25px;
    }
  }

  .slick-next {
    right: -10px;

    &::before {
      right: -25px;
      transform: rotate(180deg);
    }
  }

  @media only screen and (max-width: 1023px) {
    .slick-next,
    .slick-prev {
      display: none !important;
      display: none !important;
    }
  }
}



.wp-block-table {
  &.no-border {
    td {
      border: 0 !important;
      padding: 8px 0 !important;

      @media (max-width: 767px) {
        padding: 0 !important;
      }

      &:first-child {
        width: 102px;

        @media (max-width: 767px) {
          width: 100%;
        }
      }
    }
  }

  @media (max-width: 767px) {
    margin-left: -10px;
  }
}

.attachment-fullsize-link {
  &:has( + .wp-block-cb-carousel) {
    display: none;
  }
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 999;
}

.lightbox.show {
  opacity: 1; visibility: visible;
}

.lightbox-content {
  background: black;
  padding: 0;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;

  @media only screen and (max-width: 767px) {
    max-width: calc(100% - 8px);
  }
}

.lightbox-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  top: 1px;
  right: 1px;
  font-size: 40px;
  cursor: pointer;
  color: black;
  background-color: rgba(255, 255, 255, 0.7);

  @media only screen and (max-width: 767px) {
    font-size: 30px;
  }
}

.wp-block-table table {
  margin-top: 20px;
}

@media (max-width: 767px) {
  td:first-child {
    width: auto;
  }

  .wp-block-table table,
  .wp-block-table tbody,
  .wp-block-table tr {
    display: block;
    width: 100%;
  }

  .wp-block-table tr {
    margin-bottom: 10px;
    //border: 1px solid #ddd;
    padding: 10px;

    &:first-child {
      display: none;
    }
  }

  .wp-block-table td,
  .wp-block-table th {
    display: block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
  }

  .wp-block-table td::before {
    content: attr(data-label); /* Holt das Label aus data-label */
    font-weight: bold;
  }

  .wp-block-table th {
    font-weight: bold;
    background: #f4f4f4;
  }
}

@media (min-width: 768px) {
  .wp-block-table table.has-fixed-layout {
    width: auto;
    td {
      padding: 8px 12px !important;

      &:first-child {
        width: auto;
      }
    }
  }
}