

/* Global reset and common styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Ensures padding doesn't affect the element's width/height */
  background: black;
}

/* Nav styling starts */
header nav {
  display: flex;
  justify-content: center;
  background-color: black;
  border-radius: 5px;
}

header nav ul {
  list-style: none;
  display: flex;
  padding: 4px;
  margin: 0;
}

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: inline-block; 
  padding: 5px 15px;
  text-decoration: none;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  transition: color 0.3s, font-size 0.3s, text-shadow 0.3s, transform 0.3s;
}

header nav ul li a:hover {
  color: red;
  font-size: 20px;
  text-shadow: 2px 0px 4px red;
}

header nav ul li a:active {
  transform: scale(1.4);
}
/* Nav styling ends */

/* Reset and common styles for photo gallery container */
.photo-gallery-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Gallery container styling */
.photo-gallery-container {
  background-color: #000; /* Black background */
  text-align: center;
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  border: 2px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Lighting effect on the container */
}

.photo-gallery-container h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 2px solid #444;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: textGlow 1.5s ease-in-out infinite alternate; /* Lighting effect on text */
}

/* Gallery items arranged vertically for mobile */
.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.photo-gallery-item {
  background-color: #222;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* Ensure items take full width */
  max-width: 800px; /* Limit maximum width */
}

.photo-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  cursor: pointer;
}

/* Download button styling */
.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-family: sans-serif;
  font-size: 14px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.download-btn:hover {
  background-color: #555;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Like and Comment button styling */
.comment-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  font-family: sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #28a745;
  color: #fff;
}

.comment-btn:hover {
  background-color: #218838;
}

.like-count {
  margin-left: 5px;
}

/* Comments container styling */
.comments-container {
  margin-top: 10px;
  color: #fff;
}

.comments-container textarea {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #333;
  color: #fff;
  resize: vertical;
}

.comments-container button {
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comments-container button:hover {
  background-color: #0056b3;
}

/* Fullscreen modal styling */
.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.fullscreen-modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
  height: auto;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .photo-gallery-container h1 {
    font-size: 28px;
  }

  .photo-gallery-item {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .photo-gallery-container h1 {
    font-size: 24px;
  }

  .photo-gallery-item {
    max-width: 100%;
  }

  .fullscreen-modal-content {
    width: 95%;
  }
}

/* Grid layout for PC users */
@media (min-width: 769px) {
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns layout */
    gap: 20px;
  }

  .photo-gallery-item {
    background-color: #222;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%; /* Ensure items don't become too large */
  }

  .photo-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
  }
}

.photo-gallery-container h1:hover {
 text-shadow: 1px 1px 6px white;
}

/* Styling for the password input field */
.private-photo-section {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  border: 2px solid #444;
  border-radius: 10px;
  background-color: #111;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.private-photo-section h2 {
  color: white;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid #444;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

#passwordInput {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #222;
  color: white;
  font-size: 16px;
  width: 80%;
  max-width: 300px;
  text-align: center;
  margin-bottom: 10px;
}

#passwordInput::placeholder {
  color: #aaa;
}

.private-photo-section button {
  padding: 12px 18px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.private-photo-section button:hover {
  background-color: #218838;
}

.private-photo-section button:active {
  transform: scale(0.95);
}

/* Lock icon styling in the private photo section */
.private-photo-section h2 i {
  margin-right: 10px;
  color: #ffcc00; /* Yellow lock color */
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Change to the unlock icon color when password is entered */
.private-photo-section h2 i.unlock-icon {
  color: #28a745; /* Green unlock color */
}

/* Styling for the unlock button with the icon */
.private-photo-section button i {
  margin-right: 0px;
}

/* Animation for shaking effect on incorrect password */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 1s ease; /* Apply shaking animation */
}

/* Fade-in effect for the private photos */
.fade-in {
  animation: fadeIn 2s ease-out; /* Apply fade-in animation */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hide private photos by default */


#privatePhotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Container for private photos (use flex to display side by side) */
#privatePhotos {
  display: flex;
  flex-wrap: wrap; /* Ensure the items wrap when necessary */
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 1200px; /* Limit the maximum size */
  margin: 0 auto;
}

/* Styling for the private photos */
.private-photo-item {
  width: 100%;
  max-width: 380px; /* Control the size of each private photo */
  margin: 20px;
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.private-photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsive Design: Adjust photo sizes based on screen size */

/* For large screens (PCs) */
@media (min-width: 1024px) {
  .private-photo-item {
    max-width: 380px; /* Set max width for large screens */
  }
}

/* For medium screens (tablets) */
@media (max-width: 1024px) and (min-width: 768px) {
  .private-photo-item {
    max-width: 300px; /* Smaller photos for tablets */
  }
}

/* For small screens (phones) */
@media (max-width: 768px) {
  .private-photo-item {
    max-width: 100%; /* Full width for mobile devices */
  }
}

/* For very small screens (very small phones) */
@media (max-width: 480px) {
  .private-photo-item {
    max-width: 100%; /* Full width for small devices */
  }
}


/* Small styling for the PDF block */
.pdf-item {
  margin-top:30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  background: black;
  transition: transform 0.2s ease-in-out;
}

.pdf-item:hover {
  
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pdf-item i {
  font-size: 50px;
  color: red;
  margin-bottom: 10px;
}

.pdf-item p {
  font-weight: bold;
  color: red;
  font-size: 16px;
  margin-top: 5px;
  font-family: 'Merriweather', serif;
  text-align: center;
}

/* NEW: PDF embedded preview */
.pdf-item iframe,
.pdf-item embed,
.pdf-item object {
  width: 100%;
  max-width: 600px; /* optional: limit size */
  height: 400px;
 
  border-radius: 8px;
  margin-top: 15px;
}

/* Download button inside PDF item */
.pdf-item .download-btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: red;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.pdf-item .download-btn:hover {
  background-color: darkred;
}



/* Ensure private photos use same grid as public */
#privatePhotos.photo-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}



@media (min-width: 769px) {
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
  }
}




