/*
 * Custom styles
 *
 * Site-wide overrides and page-specific styles extracted from inline
 * <style> blocks in index.html, photos.md, and all-posts.md.
 */

/* Existing site-wide overrides */
.sidebar-about h1 a {
  line-height: normal;
  padding-top: 50vh;
}

blockquote {
    background-color: #f9f9f9;
    border-left: 4px solid #2196F3;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
}


/* ==========================================================================
   Home page (index.html)
   ========================================================================== */

.intro-section {
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 42rem;
}

.intro-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.intro-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #313131;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}

.intro-section p {
  margin-bottom: 1rem;
}

.read-more-link {
  color: #ac4142;
  text-decoration: none;
  font-weight: bold;
}

.read-more-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .intro-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }
}

/* "View All Posts" button */
#viewAllPostsBtn {
  display: block;
  width: fit-content;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #ac4142;
  color: white;
  text-decoration: none;
  text-align: center;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#viewAllPostsBtn:hover {
  transform: translateY(-2px);
  background-color: #d85c58;
}


/* ==========================================================================
   Photos page (photos.md)
   ========================================================================== */

/* Masonry Gallery */
.gallery {
  column-count: 3;
  column-gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gallery-item {
  width: 100%;
  display: block;
  margin: 0 0 15px;
  border: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.gallery-item:hover {
  transform: scale(1.02);
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: default;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

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

.close:hover {
  color: #ddd;
}

/* "Load More" button */
#loadMoreBtn {
  display: block;
  width: fit-content;
  margin: 30px auto;
  padding: 10px 20px;
  background-color: #ac4142;
  color: white;
  text-decoration: none;
  text-align: center;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#loadMoreBtn:hover {
  transform: translateY(-2px);
  background-color: #d85c58;
}

/* Gallery responsive */
@media (max-width: 800px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }

  .close {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }

  #loadMoreBtn {
    padding: 8px 16px;
    font-size: 14px;
  }
}


/* ==========================================================================
   All Posts page (all-posts.md)
   ========================================================================== */

.filters {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.filter-btn {
  background-color: #ac4142;
  color: white;
  border: black;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn:hover {
  background-color: #c25455;
}
