body {
  font-family: 'Poppins', sans-serif;
}

.container-fluid {
  --bs-gutter-x: 0 !important;
}

/* NAVIGATION Styles */
.navbar-logo img {
  width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .navbar-logo img {
    width: 150px;
  }
}

@media (max-width: 576px) {
  .navbar-logo img {
    width: 120px;
  }
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.navbar-collapse {
  justify-content: flex-end;
  text-align: right;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.archive-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.archive-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.archive-btn i {
  font-size: 1.1rem;
}

/* Favourite Button Styles */
#favourite-btn:hover i {
  color: red;
}

.heart-active i {
  color: red;
}


@media (max-width: 768px) {
  .archive-title {
    font-size: 1.5rem;
  }

  .archive-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
  }

  .archive-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .archive-title {
    font-size: 1.2rem;
  }

  .archive-btn {
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
  }

  .archive-btn i {
    font-size: 0.9rem;
  }
}

/* FOOTER Styles */
.footer-nav a {
  color: #ffffff;
  transition: color 0.3s ease !important;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.75) !important;
  text-transform: uppercase !important;
}

/* MODAL Styles Calendar + Favourite Section View Focus */
#apod-modal,
#calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
}

#apod-modal.show,
#calendar-modal.show {
  opacity: 1;
  visibility: visible;
}

.apod-modal-content {
  background-color: #000;
  padding: 1rem;
  max-width: 60%;
  max-height: 90vh;
  overflow: auto;
  cursor: default;
}

/* Focused image scale style */
.apod-modal-content img {
  width: 100%;
  padding: 2rem;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

/* FAVOURITES SECTION Gallery Layout Styles */
#favourites-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.favourite-item {
  overflow: hidden;
}

.favourite-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Medium screens: 3 columns */
@media (max-width: 1200px) {
  #favourites-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets: 2 columns */
@media (max-width: 768px) {
  #favourites-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phones: 1 column */
@media (max-width: 480px) {
  #favourites-list {
    grid-template-columns: 1fr;
  }
}


/* CALENDAR MODAL Styles */
.calendar-modal-content {
  background-color: #000;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  cursor: default;
  border: 2px solid #fff;
  border-radius: 15px;
}

.calendar-modal-content label {
  color: #fff;
  margin-bottom: 0.5rem;
}