/* Tasks */
section.tasks {
  width: 95%;
  max-width: 2400px;
  margin: 20px auto;
}

section.tasks table {
  width: 100%;
  /* border: 1px solid #ccc;
    border-radius: 5px; */
  /* border: 5px solid #ef88da; */
  border: 5px solid #f5edf3;
  border-radius: 10px;
}

section.tasks table th {
  font-weight: bold;
  font-size: 18px;
  padding: 10px;
  /* border-bottom: 1px solid #ccc; */
  border-bottom: 5px solid #f5edf3;
  /* border: 1px solid #ccc; */
  border: 5px solid #f5edf3;
  border-radius: 10px;
}

section.tasks table td {
  font-size: 14px;
  padding: 10px;
  /* border: 1px solid #ccc; */
  border: 5px solid #f5edf3;
  border-radius: 10px;
}

section.tasks table td a {
  color: #e69710;
  /* text-decoration: underline; */
  font-weight: bold;
}

/* Comments */

ul.comments-list {
  list-style: none;
}

ul.comments-list li {
  padding: 10px;
  /* border-bottom: 1px solid #ccc; */
}

ul.comments-list li span.author {
  /* text-decoration: underline; */
  display: inline-block;
  /* padding-bottom: 5px; */
  /*new style */
  display: inline-block;
  background-color: #f5edf3;
  padding: 6px 13px;
  border-radius: 11px;
  margin-bottom: 3px;
}

span.comment-date {
  padding-left: 5px;
  color: #bfbdbd;
}

.author-comment-text {
  background-color: #edebeb;
  padding: 5px 13px;
  border-radius: 11px;
}

/* ul.comments-list li form.comment-form {
    max-width: 500px;
    padding: 20px;
    background-color: #f2f2f2;
    border-radius: 10px;
}

ul.comments-list li form.comment-form label {
    display: inline-block;
    width: 100%;
}

ul.comments-list li form.comment-form input[type='text'] {
    display: inline-block;
    width: 100%;
}

ul.comments-list li form.comment-form textarea {
    display: inline-block;
    width: 100%;
    height: 120px;
} */

.comment-form-panel form.comment-form {
  max-width: 500px;
  padding: 20px;
  background-color: #f2f2f2;
  border-radius: 10px;
}

.comment-form-panel form.comment-form label {
  display: inline-block;
  width: 100%;
}

.comment-form-panel form.comment-form input[type="text"] {
  display: inline-block;
  width: 100%;
  /* new style*/
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 35px;
}

.comment-form-panel form.comment-form input[type="text"]:focus-visible {
  border-color: #f5edf3 !important;
}

.comment-form-panel form.comment-form textarea {
  display: inline-block;
  width: 100%;
  height: 120px;
  /* new style*/
  border: 1px solid #ccc;
  border-radius: 5px;
}

.submit-comment-btn {
  background-color: #f5edf3;
  border-radius: 5px;
  width: 70px;
  height: 29px;
}

.instagram-tab-wrapper a.image-link {
  position: relative;
  z-index: 100;
}

.instagram-tab-wrapper a.image-link .comment-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000 !important;
  cursor: pointer;
}
@media (min-width: 360px) and (max-width: 728px) {
  .instagram-tab-wrapper a.image-link .comment-button {
    opacity: 0;
  }
  .instagram-tab-wrapper a.image-link .comment-button:hover {
    opacity: 1;
  }
}

/*
.instagram-tab-wrapper .trigger-box {
    position: relative;
    width: 310px;
    height: 310px;
    padding: 0px;
    margin: 0px
}

.instagram-tab-wrapper .trigger-box a.image-link {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
}

.instagram-tab-wrapper .trigger-box a.image-link.accepted {
    border: 4px solid green;
}

.instagram-tab-wrapper .trigger-box a.image-link.rejected {
    border: 4px solid red;
}

.instagram-tab-wrapper .trigger-box .comment-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000 !important;
    cursor: pointer;
}

.instagram-tab-wrapper .trigger-box .comment-button:hover {
    opacity: 0.5;
}*/

/*
.instagram-tab-wrapper .trigger-box .buttons-wrapper {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 30px;
}
*/
/*
.instagram-tab-wrapper .trigger-box .item-desc{
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 70px;
    font-size: 14px;
    color: #fff;
    background-color: #000;

    display: none;
    width: 100%;
    padding: 10px 10px;
    overflow: hidden;
}

.instagram-tab-wrapper .trigger-box:hover .item-desc{
    display: block;
}*/

/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 10000;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
  /* Could be more or less, depending on screen size */
}

@media all and (min-width: 0px) and (max-width: 800px) {
  .modal-content {
    width: 90%;
  }
}

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

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.fancybox-image,
.fancybox-spaceball {
  top: -43%;
}
.fancybox-button {
  top: 26% !important;
}
.fancybox-caption {
  width: 100%;
  max-height: 138px;
  font-family: initial;
  overflow: auto;
}
.new-comment-button {
  margin-top: 10px;
  margin-left: 5px;
}
.custom-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.carousel-slide {
  text-align: center;
  visibility: hidden;
}
.custom-carousel.slick-initialized .carousel-slide {
  visibility: visible;
}
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.custom-carousel {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
}

.carousel-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  max-width: 100%;
}
.custom-carousel {
  max-width: 100%;
}

.custom-carousel .carousel-slide {
  padding: 0 5px;
}

.custom-carousel img,
.custom-carousel video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
video.w-100 {
  max-height: 500px;
  object-fit: contain; /* Ovaj stil pomaže da se video pravilno prilagodi */
}
/* Uverite se da carousel ne pravi horizontalni scroll */
.custom-carousel {
  overflow: hidden;
}

/* Stilizujte strelice */
.custom-carousel .slick-prev,
.custom-carousel .slick-next {
  font-size: 30px; /* Povećajte veličinu strelica po potrebi */
  color: #fff; /* Boja strelica */
  background-color: rgba(0, 0, 0, 0.5); /* Pozadina strelica */
  border-radius: 50%; /* Zaobljeni oblik strelica */
  padding: 10px; /* Povećajte veličinu dugmadi */
}

.custom-carousel .slick-prev:hover,
.custom-carousel .slick-next:hover {
  background-color: rgba(0, 0, 0, 0.7); /* Pozadina pri hover-u */
}

/* Prilagodite poziciju strelica */
.custom-carousel .slick-prev {
  left: 10px;
}

.custom-carousel .slick-next {
  right: 10px;
}

/* Ako želite da sakrijete tačkice */
.custom-carousel .slick-dots {
  display: none;
}
/* Uverite se da strelice nisu blokirane od strane drugih elemenata */
.custom-carousel .slick-prev,
.custom-carousel .slick-next {
  z-index: 9999; /* Povećajte z-index kako bi strelice bile iznad drugih slojeva */
  top: 20%;
}

/* Ako Fancybox koristi visoki z-index, možda treba da se postavi i na carousel */
.custom-carousel {
  z-index: 9998; /* Manji z-index nego strelice, ali veći od osnovnih elemenata */
}
.slick-prev::before {
  content: "←";
  position: absolute;
  bottom: 0px;
  right: 0px;
}
.slick-next::before {
  content: "→";
  position: absolute;
  bottom: 0px;
  left: 0px;
}
.fancybox-content {
  max-width: 100% !important;
  vertical-align: top;
  background: transparent;
}
.fancybox-content video {
  max-width: 315px;
}
.fancybox-close-small {
  color: #fff;
}
.fancybox-navigation .fancybox-button {
  height: 30px;
  width: 30px;
}
.story-wrapper .image-link {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  display: block;
  position: relative;
}
.story-wrapper .image-link img,
.story-wrapper .image-link video {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
}
.custom-carousel-wrapper {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.carousel-loader {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}
[id^="gallery-"] {
  position: relative;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.video-cover-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  pointer-events: none; /* da ne reaguje na hover/click */
}

.video-overlay {
  position: absolute;
  top: 10%;
  right: -13px;
  transform: translate(-50%, -50%);
  /* background: rgba(0, 0, 0, 0.4); */
  background: transparent;
  border-radius: 25%;
  padding: 5px;
  pointer-events: none;
  z-index: 1;
}
.video-overlay svg {
  color: #fff;
}

@media (min-width: 416px) {
  .fancybox-image,
  .fancybox-spaceball {
    top: -38%;
  }
}
@media (min-width: 467px) {
  .fancybox-image,
  .fancybox-spaceball {
    top: -21%;
    height: 90%;
  }
  .fancybox-content video {
    max-width: 400px;
  }
}
@media (min-width: 591px) {
  .fancybox-image,
  .fancybox-spaceball {
    top: -13%;
    height: 80%;
  }
}
@media (min-width: 650px) {
  .fancybox-image,
  .fancybox-spaceball {
    top: -11%;
    height: 80%;
  }
  .fancybox-caption {
    height: 246px;
  }
  .fancybox-content video {
    max-width: 100%;
  }
  .video-overlay {
    top: 7%;
  }
}
@media (min-width: 960px) {
  .fancybox-content {
    max-width: 1230px !important;
    vertical-align: middle;
  }
  .fancybox-caption {
    max-height: 350px;
  }
  .fancybox-image,
  .fancybox-spaceball {
    top: 0;
    height: 100%;
  }
  .fancybox-caption {
    top: 150px;
    right: 10px !important;
    max-width: 300px;
    height: 100%;
    left: 35px;
  }
  .fancybox-button {
    top: 50% !important;
  }
  .custom-carousel .slick-prev,
  .custom-carousel .slick-next {
    top: 50%;
  }
  .fancybox-navigation .fancybox-button {
    height: 38px;
    width: 38px;
  }
  .fancybox-content video {
    max-width: 68%;
    margin-left: unset;
  }
  .gallery-slide {
    max-width: 60%;
    margin-left: 323px;
    max-height: 60%;
  }
}
@media (min-width: 1400px) {
  .fancybox-content video {
    max-width: 100%;
    margin-left: unset;
  }
  .fancybox-content .carousel-slide video {
    max-width: 100%;
    margin-left: unset;
  } 
  .fancybox-caption {
    max-height: 700px;
  }
}

.placeholder-img {
  position: relative;
  display: block;
  width: 83.333vw;
}

.placeholder-img::after {
  content: "";
  display: block;
  padding-top: 80%;
}
.placeholder-img img, 
.placeholder-img video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
