/* GENERAL STYLING */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  color: #eee;
}

a {
  color: #ffcc70;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}
a:hover { text-decoration: underline; }

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #111;
  border-bottom: 2px solid #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .logo {
  font-size: 1.8em;
  font-weight: 600;
  color: #ffcc70;
  text-shadow: 0 0 6px #ffcc70aa;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row on desktop */
  gap: 12px;
  padding: 15px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* force square */
  object-fit: cover;     /* crop to fit */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #ffcc7077;
}

/* MOBILE: 2 per row */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  display: flex;
  flex-direction: row; /* desktop: image/video left, caption right */
  align-items: center;
  gap: 20px;
  max-width: 90%;
  max-height: 90%;
  margin: 0 auto;
}

.modal-content img,
.modal-content video {
  max-width: 60vw;   /* restrict width */
  max-height: 80vh;  /* restrict height */
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 20px #000;
}

.caption {
  max-width: 35vw;
  color: #ccc;
}

.caption h2 {
  color: #ffcc70;
  margin: 0 0 8px;
  font-size: 1.5em;
}

.caption .date {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 10px;
  font-style: italic;
}

.caption p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #ddd;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.2em;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 0 8px #ffcc70aa;
}
.close:hover { color: #ffcc70; }

/* Navigation arrows */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 2.5em;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  z-index: 1010;
}
.prev { left: 15px; }
.next { right: 15px; }
.nav:hover { background: rgba(255,204,112,0.3); color: #ffcc70; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .modal-content { flex-direction: column; }
  .modal-content img,
  .modal-content video {
    max-width: 90vw;
    max-height: 60vh;
  }
  .caption { max-width: 90vw; text-align: center; margin-top: 10px; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery img { height: 100px; }
}

/* ABOUT PAGE */
.about-container {
  display: flex;
  flex-direction: row;
  gap: 25px;
  padding: 40px 20px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #ffcc70;
}

.bio-text h1 { color: #ffcc70; margin-bottom: 15px; }

@media (max-width: 768px) {
  .about-container { flex-direction: column; text-align: center; }
  .profile-photo { margin-bottom: 15px; }
}
