/* DO NOT include @tailwind directives when using CDN */

/* Spacing override to match your layout */
.mt-16 {
  margin-top: 0rem;
}

.padme {
  padding-left: 5%;
  padding-bottom: 5%;
}

.fade-mask {
  position: absolute;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.nopos-fade-mask {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Animations used on the index */
@keyframes zoomIn {
  0% {
    transform: scale(1)
  }

  100% {
    transform: scale(1.1)
  }
}

.animate-zoom {
  animation: zoomIn 20s linear forwards;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px)
  }

  100% {
    opacity: 1;
    transform: translateX(0)
  }
}

/* Utilities from your original CSS (kept for other pages/widgets) */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 1rem;
}

.calendar-cell {
  padding: .5rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2);
}

.calendar-cell.unavailable {
  opacity: .5;
  cursor: not-allowed;
}

.calendar-cell.selected {
  background: rgba(255, 255, 255, .2);
}

.aspect-ratio {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 5px;
}

.aspect-ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: .4s;
  border-radius: 50%;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

button[type="submit"] {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

button[type="submit"] :hover {
  background: rgba(255, 255, 255, 0.2);
}

input:checked+.slider {
  background-color: rgb(34 197 94);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

@keyframes pulse {
  0% {
    opacity: 1
  }

  50% {
    opacity: .4
  }

  100% {
    opacity: 1
  }
}

.animating {
  animation: pulse 1s infinite;
  background-color: #fbbf24;
}

.timeline-widget {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.timeline-bar {
  width: 100%;
}

.timeline-labels {
  font-size: .875rem;
}

.histThumbNail {
  width: 50%;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Gallery grid utilities preserved for other pages */
#galleryGrid {
  perspective: 1000px;
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0;
}

@media (min-width:768px) {
  #galleryGrid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (min-width:1024px) {
  #galleryGrid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.gallery-item {
  opacity: 0;
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
  transform: translateZ(50px) translateY(-10px);
  backface-visibility: hidden;
  will-change: transform, opacity;
  height: auto !important;
}

.gallery-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: brightness(.95);
  transition: all .3s ease-out;
  border-radius: 5px;
}

@media (max-width:767px) {
  .gallery-item {
    transform: translateZ(20px) translateY(-5px);
    transform-origin: center center;
  }

  .gallery-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
  }
}

.gallery-item:hover img {
  filter: brightness(1.05);
}

.gallery-item:hover {
  animation: subtle-bounce .4s ease-out;
}

@keyframes subtle-bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-5px)
  }
}

.spinner-moon {
  animation: spin 1.5s infinite linear;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0)
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg)
  }
}

section.container {
  overflow: hidden;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

#modal {
  z-index: 9999;
}

#modal .relative {
  width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalImage {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

/* Navbar visual style moved here from inline <style> */
nav {
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 50;
  isolation: isolate;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}

nav.visible {
  opacity: 1;
}

.navbar-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 51;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 108, .7), transparent);
  background-size: 200% 100%;
  animation: navbarLoading 1.5s infinite;
}

@keyframes navbarLoading {
  0% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0 50%
  }
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  padding: 10px;
  min-width: 150px;
}

.dropdown-logged-in:hover .dropdown-menu {
  display: block;
}

nav video {
  box-shadow: none !important;
  filter: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: 100;
  transform: translateZ(0);
}

@media (max-width:768px) {
  #navMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(10px);
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, .2);
  }

  #navMenu.active {
    right: 0
  }

  #navMenu li {
    margin: 10px 0;
    width: 100%;
    text-align: left;
  }

  #navMenu a {
    display: block;
    padding: 10px 15px;
    width: 100%;
    border-radius: 5px;
  }

  #navMenu a:hover {
    background: rgba(255, 255, 255, .1);
  }

  #navClose {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: transform .25s ease-in-out;
  }

  .hamburger span:nth-child(1) {
    top: 0
  }

  .hamburger span:nth-child(2) {
    top: 10px
  }

  .hamburger span:nth-child(3) {
    top: 20px
  }
}

/* Handy utilities */
.pt-10r {
  padding-top: 10rem;
}

.text-section {
  font-size: 8rem;
  line-height: 1;
}