@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
  --vh: 1vh;
  --gallery-row-height: 14rem;
  --gallery-gap: 0.05em;
}

* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img, a {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: #f4f7fa;
  color: #1a202c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.forum-regular {
  font-family: 'Nunito Sans', sans-serif;;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-main {
  font-family: "Great Vibes", serif;;
}
.font-header {
  font-family: 'Nunito Sans', sans-serif;;
}
.font-button {
  font-family: 'Nunito Sans', sans-serif;;
}
.font-content {
  font-family: 'Nunito Sans', sans-serif;;
}

#hero-section {
  background-size: cover;
  background-position: center;
}

.hidden {
  display: none !important;
}

.main-content-scrollbar::-webkit-scrollbar {
  display: none;
}

.main-content-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

.password-input-container input {
  height: 4.5rem;
  text-align: center;
  font-size: 2rem;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
  transition: all 0.2s;
}

.password-input-container input[type='tel'] {
  width: 3.5rem;
}

.password-input-container input:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Advanced Slideshow Styles */
#slideshow-modal .swiper-container {
  width: 100%;
  height: 100%;
}

#slideshow-modal .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#slideshow-modal .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#slideshow-modal .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}

#slideshow-modal .swiper-pagination-bullet-active {
  background: #fff;
}

#slideshow-modal .swiper-button-next,
#slideshow-modal .swiper-button-prev {
  color: #fff;
}

#slideshow-modal .swiper-slide .swiper-zoom-container {
  width: 100%;
  height: 100%;
}

@keyframes kenburns {
  0% {
    transform: scale(1.1) translate(0, 0);
  }

  50% {
    transform: scale(1.25) translate(10px, -5px);
  }

  100% {
    transform: scale(1.1) translate(0, 0);
  }
}

.slideshow-image-animation {
  animation: kenburns 20s ease-in-out infinite;
}

/* Hide/Show on Scroll Styles */
#content-header,
#bottom-nav {
  transition: transform 0.3s ease-in-out;
}

.header-hidden {
  transform: translateY(-100%);
}

.bottom-nav-hidden {
  transform: translateY(100%);
}

#app-layout {
  transition: opacity 0.4s ease-in-out;
}

.person-item>div {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* keeps it square */
  border-radius: 50%;
  background: #efefef;
}

.person-item img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.btn-gradient {
  background-image: linear-gradient(to right, #3b82f6 0%, #6366f1 100%);
}

.btn-gradient:hover {
  filter: brightness(1.1);
}

.btn-gradient-secondary {
  background-image: linear-gradient(to right, #8b5cf6, #a855f7);
}

.btn-gradient-secondary:hover {
  filter: brightness(1.1);
}

/* Dialog box */
.swal2-popup {
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #1f2937;
  /* text-gray-800 */
  font-family: 'Inter', sans-serif;
  max-width: 90%;
}

/* Title */
.swal2-title {
  font-size: 1.25rem;
  /* text-xl */
  font-weight: 600;
  /* font-semibold */
  margin-bottom: 0.2rem;
  color: #111827;
  /* text-gray-900 */
  width: 100% !important;
  max-width: none !important;
  min-width: none !important;
}

/* Text content */
.swal2-html-container {
  font-size: 1rem;
  /* text-base */
  color: #374151;
  /* text-gray-700 */
}

/* Action buttons container */
.swal2-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Shared gradient button style */
.swal2-popup .swal2-confirm,
.swal2-popup .swal2-cancel {
  background-image: linear-gradient(to right, #3b82f6 0%, #6366f1 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  /* py-2 px-6 */
  border-radius: 9999px !important;
  /* rounded-full */
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Hover effect */
.swal2-popup .swal2-confirm:hover,
.swal2-popup .swal2-cancel:hover {
  filter: brightness(1.1);
}

/* If you want different color for cancel button */
.swal2-popup .swal2-cancel {
  background-image: linear-gradient(to right, #9ca3af 0%, #6b7280 100%);
  color: #ffffff !important;
}

/* Icon (success, error, warning, etc.) */
.swal2-icon {
  color: #facc15 !important;
  /* yellow-400 */
  border: none !important;
}

/* Input fields */
.swal2-input,
.swal2-textarea {
  border: 1px solid #d1d5db;
  /* gray-300 */
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  font-size: 1rem;
  margin-top: 0.75rem;
  box-sizing: border-box;
}

.swal2-input:focus,
.swal2-textarea:focus {
  outline: none;
  border-color: #2563eb;
  /* blue-600 */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  /* focus ring */
}

/* Validation message */
.swal2-validation-message {
  color: #dc2626;
  /* red-600 */
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.swal2-popup .swal2-actions button {
  border-radius: 1rem !important;
  /* rounded-md */
}

#aiProcessingOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  /* A z-index of 10 is plenty */
  overflow: hidden;
  /* Optional: A subtle background to dim the preview */
  background-color: rgba(0, 10, 20, 0.4);
}

/* --- Scanning Line --- */
.scanner-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #00aaff, transparent);
  box-shadow: 0 0 10px #00aaff;
  /* Corrected 'animation' property */
  animation: scan-vertical 3s linear infinite;
}

/* Corrected @keyframes rule */
@keyframes scan-vertical {
  from {
    top: 0;
    transform: translateY(-100%);
    /* Start just above the box */
  }

  to {
    top: 100%;
    transform: translateY(0%);
    /* End just below the box */
  }
}


/* --- Corner Borders (Static, no animation needed) --- */
.corner-border {
  position: absolute;
  width: 25px;
  height: 25px;
  border-style: solid;
  border-color: #00aaff;
}

.corner-border.top-left {
  top: 10px;
  left: 10px;
  border-width: 3px 0 0 3px;
}

.corner-border.top-right {
  top: 10px;
  right: 10px;
  border-width: 3px 3px 0 0;
}

.corner-border.bottom-left {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 3px 3px;
}

.corner-border.bottom-right {
  bottom: 10px;
  right: 10px;
  border-width: 0 3px 3px 0;
}


/* --- Blinking Dots Grid --- */
.dots-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(0, 170, 255, 0.4) 1px, transparent 1.5px);
  background-size: 20px 20px;
  /* Corrected 'animation' property */
  animation: grid-blink 1.5s infinite alternate;
}

/* Corrected @keyframes rule */
@keyframes grid-blink {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.7;
  }
}

.loader {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.masonry-gallery {
  padding: 0.1rem;
}

.masonry-gallery:after {
  content: '';
  display: block;
  clear: both;
}

.grid-sizer,
.masonry-gallery>* {
  width: 33.333%;
  padding: 0.1rem;
  box-sizing: border-box;
  float: left;
}

@media screen and (max-width: 1024px) {

  .grid-sizer,
  .masonry-gallery>* {
    width: 50%;
  }
}

@media screen and (max-width: 640px) {

  .grid-sizer,
  .masonry-gallery>* {
    width: 50%;
  }
}

.masonry-gallery>* img {
  display: block;
  width: 100%;
  height: auto;
}

.justified-gallery>* {
  
}

.panel-gallery-item {
  background: none !important;
}

.mobx-holder.mobx-loading-more::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mobx-spin 1s linear infinite;
  z-index: 10;
}

@keyframes mobx-spin {
  to {
    transform: rotate(360deg);
  }
}

.galleryIconGroup {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding: 0.8rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 39;
}

.iconFavourite,
.iconHidden {
  color: #fff;
  visibility: hidden;
}

.isFavouritePhoto .iconFavourite {
  visibility: visible;
}

.isHiddenPhoto .iconHidden {
  visibility: visible;
}

.isHiddenPhoto::after {
  background: #0000007a;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  content: "";
}

.video-item video {
  pointer-events: none;
}