/* Existing styles */
html,
body {
  margin: 0;
  font-family: "Microsoft Jhenghei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

main {
  min-width: 375px;
  max-width: 375px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: auto;
  background-image: url(../img/background.jpg);
  background-size: cover;
  position: relative;
}
main > .bottom-banner {
  margin-top: auto;
}
main img {
  width: 100%;
}
main .ctn {
  width: 329px;
  margin: auto;
}
main .top-banner {
  padding: 0;
  padding-bottom: 0;
}
main h2 {
  font-size: 17px;
  margin: 0;
}
main p {
  margin: 0;
}
main .video-slider {
  margin-bottom: 0;
}
main .video-ctn a {
  text-decoration: none;
}
main .video-ctn .item {
  padding: 4px 25px;
}
main .video-ctn .video-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 1.5px 3px 18px rgba(0, 0, 0, 0.16);
  background-color: #fff;
}
main .video-ctn .video-box .content {
  padding: 13px 15px;
  padding-top: 20px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}
main .video-ctn .video-box .content h2 {
  margin-bottom: 15px;
}
main .video-ctn .video-box .content h2 {
  margin-bottom: 15px;
}
main .video-ctn .video-box .content .description-wrapper {
  position: relative;
}
main .video-ctn .video-box .content p {
  margin-bottom: 8px;
}
main .video-ctn .video-box .content .description-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
main .video-ctn .video-box .content .read-more-btn {
  background: none;
  border: none;
  color: #609dd1;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  margin-top: 5px;
  display: block;
  margin-left: auto;
}
main .video-ctn .video-box .share-ctn {
  display: flex;
  margin-bottom: 23px;
  text-decoration: underline;
}
main .video-ctn .video-box .share-ctn > * {
  min-width: 33%;
  max-width: 33%;
}
main .video-ctn .video-box .share-ctn > * .share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #87a128;
  font-size: 13px;
  position: relative;
}
main .video-ctn .video-box .share-ctn > * .share-item img {
  width: 30px;
}
main .video-ctn .video-box .share-ctn > *:not(:first-child) .share-item::before {
  content: "";
  position: absolute;
  background-color: #87a128;
  width: 1px;
  height: 90%;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
}
main .bottom-banner a {
  display: block;
}
main .bottom-banner a img {
  display: block;
}
main .remark {
  font-size: 12px;
  padding-bottom: 10px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-container.short {
  padding-bottom: 177.78%; /* 9:16 */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-container img {
  z-index: 5;
  position: relative;
  cursor: pointer;
}

/* New Styles for Image Gallery */
.image-gallery {
  padding-bottom: 15px;
}
.image-gallery .topic {
  display: block;
  max-width: 240px;
  margin: auto;
  margin-bottom: 8px;
}
.image-gallery h2 {
  padding-bottom: 8px;
  font-size: 30px;
  text-align: center;
  font-weight: 400;
  display: block;
  margin: auto;
  color: #ff9900; /* Brighter orange color */
  text-shadow: -1px -1px 0 #f2802d, 1px -1px 0 #f2802d, -1px 1px 0 #f2802d, 1px 1px 0 #f2802d; /* Black shadow */
}
.image-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  grid-auto-rows: 1fr;
}
.image-gallery .gallery-item {
  cursor: pointer;
  position: relative;
  aspect-ratio: 0.8;
}
.image-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}
.image-gallery .gallery-item img.pin {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 20%;
  height: auto;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
  border-radius: 50%;
}
.image-gallery .loading {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  color: #000;
}

/* Modal Styles */
.image-modal {
  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;
  z-index: 100;
}
.image-modal .modal-content {
  max-width: 100%;
  width: 100%;
  padding-inline: 20px;
  max-height: 100vh;
  overflow: auto;
  position: relative;
  text-align: center;
  padding-top: 30px;
  border-radius: 10px;
  /* New styles for modal arrows */
}
.image-modal .modal-content .close {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}
.image-modal .modal-content .modal-image {
  max-width: calc(100% - 50px);
  max-height: calc(100vh - 216px);
  margin: auto;
  display: block;
  margin-bottom: 10px;
  -o-object-fit: contain;
     object-fit: contain;
}
.image-modal .modal-content .modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
}
.image-modal .modal-content .modal-actions button {
  padding: 10px 20px;
  background: #00abc4;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
}
.image-modal .modal-content .remarks-box {
  padding: 10px 20px;
  background: #00abc4;
  color: #fff;
  border: none;
  border-radius: 10px;
}
.image-modal .modal-content .modal-message {
  font-size: 14px;
  color: #333;
}
.image-modal .modal-content .modal-prev,
.image-modal .modal-content .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: opacity 0.3s ease;
}
.image-modal .modal-content .modal-prev span,
.image-modal .modal-content .modal-next span {
  z-index: 2;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.image-modal .modal-content .modal-prev span {
  z-index: 2;
  background-image: url(../img/arrow-on.png) !important;
  transform: rotate(180deg);
  animation-name: prev-move;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.image-modal .modal-content .modal-next span {
  z-index: 2;
  background-image: url(../img/arrow-on.png) !important;
  transform: rotate(0deg);
  animation-name: next-move;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.image-modal .modal-content .modal-prev {
  left: 0px;
}
.image-modal .modal-content .modal-next {
  right: 0px;
}
.image-modal .modal-content .modal-prev:disabled,
.image-modal .modal-content .modal-next:disabled {
  filter: grayscale(1);
  cursor: not-allowed;
}

/* Existing Slick Slider Styles */
.slick-slider .inner-slick-dots {
  width: 100%;
  max-width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  margin-top: 5px !important;
  margin-bottom: -20px;
}
.slick-slider .inner-slick-dots li {
  width: 6px;
  height: 6px;
  position: relative;
  display: inline-block;
  margin: 5px;
  padding: 0;
  cursor: pointer;
  opacity: 0.25;
}
.slick-slider .inner-slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 20px;
  height: 20px;
  padding: 5px;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: 0;
  background: transparent;
  background-color: #00008f;
  width: 6px;
  height: 6px;
  border-radius: 50px;
  padding: 0;
}
.slick-slider .inner-slick-dots li button::before {
  content: "";
  width: 6px;
  height: 6px;
}
.slick-slider .inner-slick-dots li.active {
  opacity: 1;
}
.slick-slider .slick-dots {
  display: none !important;
  top: 155px;
  pointer-events: none;
}
.slick-slider .slick-dots li {
  width: 6px;
  height: 6px;
  opacity: 0.25;
}
.slick-slider .slick-dots li button {
  background-color: #00008f;
  width: 6px;
  height: 6px;
  border-radius: 50px;
  padding: 0;
}
.slick-slider .slick-dots li button::before {
  content: "";
  width: 6px;
  height: 6px;
}
.slick-slider .slick-dots li.slick-active {
  opacity: 1;
}
.slick-slider.image-slider {
  margin-left: -10px;
  margin-right: -10px;
  margin-bottom: 0px;
}
.slick-slider.image-slider img {
  -webkit-touch-callout: default;
  -webkit-user-select: default;
  -moz-user-select: default;
  user-select: default;
}
.slick-slider.image-slider .slick-prev {
  left: 0 !important;
}
.slick-slider.image-slider .slick-next {
  right: 0 !important;
}
.slick-slider.image-slider .image-box {
  position: relative;
}
.slick-slider.image-slider .image-box .text {
  color: #fff;
  padding-bottom: 8px;
}
@keyframes prev-move {
  0% {
    transform: rotate(180deg) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: rotate(180deg) scale(1.7);
    filter: brightness(1.75);
  }
  100% {
    transform: rotate(180deg) scale(1);
  }
}
@keyframes next-move {
  0% {
    transform: rotate(0deg) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: rotate(0deg) scale(1.7);
    filter: brightness(1.75);
  }
  100% {
    transform: rotate(0deg) scale(1);
    filter: brightness(1);
  }
}
.slick-slider .slick-prev {
  z-index: 2;
  background-image: url(../img/arrow-on.png) !important;
  transform: rotate(180deg);
  animation-name: prev-move;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  left: 10px;
}
.slick-slider .slick-prev::before {
  content: "";
}
.slick-slider .slick-prev.slick-disabled {
  animation-name: unset;
  background-image: url(../img/arrow-off.png) !important;
  transform: rotate(0deg);
}
.slick-slider .slick-next {
  z-index: 2;
  background-image: url(../img/arrow-on.png) !important;
  transform: rotate(0deg);
  animation-name: next-move;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  right: 10px;
}
.slick-slider .slick-next::before {
  content: "";
}
.slick-slider .slick-next.slick-disabled {
  animation-name: unset;
  background-image: url(../img/arrow-off.png) !important;
  transform: rotate(180deg);
}

.floating {
  background-color: #00008f;
  color: #fff;
  text-align: center;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  min-width: 375px;
  max-width: 375px;
  transform: translate(-50%, 0);
  z-index: 10;
}

#toast {
  visibility: hidden;
  background-color: #000;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 10px 20px;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -50px;
  width: auto;
  transform: translateX(-50%);
  font-size: 16px;
}
#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: -50px;
    opacity: 1;
  }
}
@keyframes fadeout {
  from {
    top: -50px;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}/*# sourceMappingURL=style.css.map */