/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f9fafb;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
  position: relative;
  background: url("photos/back.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.header * {
  position: relative;
  z-index: 1;
}

nav {
  position: absolute;
  top: 20px;
  right: 40px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #00b4d8;
}

nav .active {
  color: #90e0ef;
}

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px;
}

.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
}

.card p {
  padding: 15px;
  font-size: 0.95rem;
}

/* ========== JOURNAL PAGE ========== */
.journal {
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  background: #f9fafb;
}

.journal-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.journal-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
}

.journal-content {
  padding: 20px;
  line-height: 1.6;
}

.journal-content h2 {
  color: #0077b6;
  margin-bottom: 8px;
}

.date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

/* ========== ZOOM MODAL ========== */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.zoomed-image {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

.zoom-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
  max-width: 80%;
}

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

.close:hover {
  color: #00b4d8;
}

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

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== FOOTER ========== */
footer {
  margin-top: auto;
  text-align: center;
  padding: 15px;
  background: #0077b6;
  color: white;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
 /* ✅ Transparent full background image */
    body::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('photos/back.jpg') center/cover no-repeat;
      filter: brightness(0.4);
      z-index: -1;
    }
