.no-scroll {
  overflow: hidden;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #888;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  position: relative;
}

.modal-content::-webkit-scrollbar {
  width: 16px;
  border-radius: 1000px !important;
}

.modal-content::-webkit-scrollbar-track {
  background: white;
  border-radius: 1000px !important;
  /* box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); */
}

.modal-content::-webkit-scrollbar-thumb {
  background: #555;
  border: 4px solid white;
  border-radius: 1000px !important;
}

.modal-content h2 {
  margin-bottom: 2rem;
}

.modal-content button {
  color: var(--text);
  background: var(--yellow);
  margin: 1rem auto;
}

.modal-content button:hover {
  background: black;
  color: white;
  transform: scale(1.1);
}

.close {
  color: #aaa;
  font-size: 50px;
  line-height: 1rem;
  font-weight: bold;
  position: sticky;
  display: flex;
  justify-content: flex-end;
  top: 0;
}

.close:hover,
.close:focus {
  color: black;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/*Gallery of image modal links*/
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns */
  gap: 1rem;
  /* Optional gap between columns */
}

/* Wrapper to maintain aspect ratio */
.modal-gallery__item {
  border-radius: var(--radius);
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 aspect ratio */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: pointer;
}

/* Overlay container */
.modal-gallery__item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
  /* Ensure overlay is on top of the background */
}

/* Text overlay */
.modal-gallery__item__content {
  color: white;
  font-size: 18px;
  text-align: center;
  padding: 1rem;
  z-index: 2;
  /* Ensure text is on top of the overlay */
}