* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #FFFBEF;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 90%;
  margin: 0 auto;
  padding: 40px 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  background-color: #FFFBEF;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Updated Modal Styles */
.modal {
  display: none;
  position: fixed;
  text-align:center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: inline-block;
  width: auto;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  
}

.img-responsive {
  max-height: 100vh;
  margin: -113px 0;
  padding: 113px 0;
}

.modal-content .modal-dialog {
  background-color: #282828;
  padding: 10px;
  border-radius: 12px;
  position: relative;
  max-height: 50%;
  max-width: 500px;
  text-align: center;
}

#modalImage {
  
  max-height: 500px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #FFFBEF;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  line-height: 1;
}

.download-btn {
  padding: 15px;
  background-color: #FFFBEF;
  color: #282828;
  border: none;
  border-radius: 50%; 
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.2s ease;
  width: 50px;  
  height: 50px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-btn:hover {
  background-color: #89A078;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-content {
    height: 90%;
    max-width: 400px;
    padding: 15px;
  }
  
  #modalImage {
    max-width: 300px;
  }
}

.modal-buttons1 {
  position: absolute;
  bottom: 30%; 
  right: 1%; 
  display: flex;
  justify-content: center;  /* Space out the buttons */
  gap: 10px;  /* Add space between buttons */
  margin-top: 10px;
}
.modal-buttons2 {
  position: absolute;
  bottom: 25%; 
  right: 1%; 
  display: flex;
  justify-content: center;  /* Space out the buttons */
  gap: 10px;  /* Add space between buttons */
  margin-top: 10px;
}

.modal-title {
  color: #FFFBEF;
  margin-bottom: 15px;
  text-transform: capitalize;
  font-size: 1.5rem;
}

.modal-description {
  color: #FFFBEF;
  margin-bottom: 15px;
  font-size: 1rem;
  padding: 0 20px;
}


  .pinterest-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFBEF; 
    color: #282828;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s;
  }

  .pinterest-button i {
    margin-right: 6px; /* Spacing between the icon and text */
    font-size: 20px;
  }

  .pinterest-button:hover {
    background-color: #89A078; 
  }


/* Watermark styles for gallery items */
.gallery-item::after {
  content: '';
  position: absolute;
  bottom: 8px; 
  right: 8px; 
  /* No transform needed since we're using direct positioning */
  width: 60px; /* Fixed width for consistency */
  height: 60px; /* Fixed height for consistency */
  background-image: url('assets/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

/* Watermark styles for modal image */
.modal-content::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  /* Use percentage-based sizing */
  width: 30%; /* Slightly smaller for modal to ensure it fits */
  height: 30%;
  background-image: url('assets/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

.watermark-notice {
  text-align: center;
  color: #666;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  font-style: italic;
}